-
Notifications
You must be signed in to change notification settings - Fork 3
/
example.php
112 lines (106 loc) · 2.61 KB
/
example.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<?php
/**
* Example uses of the Fake Name Generator
*/
namespace Brytecore;
include_once "namegen.php";
$name = new NameGen();
?>
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="https://rawgit.com/Brytecore/pwn/master/dist/css/pwn.min.css">
<link rel="stylesheet" type="text/css" href="example.css">
<title>Pwn components</title>
</head>
<body>
<div class="header">
<div class="container">
<div class="row">
<div class="pwn-xs-12">
<h2>Fake Name Generator - Examples</h2>
<p>
Example uses of the brytecore.NameGen class. Refresh this page to regenerate the
example results.
</p>
</div>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="pwn-xs-12">
<h3>First Name + Short Random Last Name</h3>
<ul>
<?php
for ( $i = 0; $i < 5; $i ++ ) {
echo "<li>{$name->firstName()} {$name->randomWord( 3, 6 )}</li>";
echo "\n\t\t\t\t\t";
}
?>
</ul>
<div class="syntax">
<code>
$name = new NameGen();<br>
<?php echo htmlentities( 'echo $name->firstName() . " " . $name->randomWord( 3, 6 );' ); ?>
</code>
</div>
</div>
</div>
<div class="row">
<div class="pwn-xs-12">
<h3>Adjective + First Name + Medium Random Last Name</h3>
<ul>
<?php
for ( $i = 0; $i < 5; $i ++ ) {
echo "<li>{$name->adjective()} {$name->firstName()} {$name->randomWord( 5, 8 )}</li>";
echo "\n\t\t\t\t\t";
}
?>
</ul>
<div class="syntax">
<code>
$name = new NameGen();<br>
<?php echo htmlentities( 'echo $name->adjective() . " " . $name->firstName() . " " . $name->randomWord( 5, 8 );' ); ?>
</code>
</div>
</div>
</div>
<div class="row">
<div class="pwn-xs-12">
<h3>Adjective + Long Random Last Name</h3>
<ul>
<?php
for ( $i = 0; $i < 5; $i ++ ) {
echo "<li>{$name->adjective()} {$name->randomWord( 9, 12 )}</li>";
echo "\n\t\t\t\t\t";
}
?>
</ul>
<div class="syntax">
<code>
$name = new NameGen();<br>
<?php echo htmlentities( 'echo $name->adjective() . " " . $name->randomWord( 9, 12 );' ); ?>
</code>
</div>
</div>
</div>
</div>
<div class="footer">
<div class="container">
<div class="row">
<div class="pwn-xs-12">
<ul>
<li><a href="https://github.com/brytecore/fake-name-generator">Fake Name Generator on Github</a></li>
<li><a href="http://www.brytecore.com">Code Maintained by Brytecore</a></li>
<li><a href="">Free for your Use - See License</a></li>
</ul>
</div>
</div>
</div>
</div>
</body>
</html>
<?php