initial commit
This commit is contained in:
commit
b65642cd0a
18 changed files with 1543 additions and 0 deletions
9
modules/random/random.php
Normal file
9
modules/random/random.php
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
<?php
|
||||
|
||||
$len = $_GET['length'] ?? 32;
|
||||
|
||||
$contains = isset($_GET['contains']) ? explode(',', $_GET['contains']) : ['digit', 'upper', 'lower', 'special'];
|
||||
|
||||
header('Content-Type: text/plain');
|
||||
|
||||
echo generateRandomString($len, $contains);
|
||||
23
modules/random/random_help.php
Normal file
23
modules/random/random_help.php
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
<?php
|
||||
|
||||
return [
|
||||
'actions' => [
|
||||
[
|
||||
'name' => 'Generate alphanumerics',
|
||||
'path' => '/?contains=digit,lower,upper'
|
||||
],
|
||||
[
|
||||
'name' => 'More complex',
|
||||
'path' => '/?contains=digit,lower,upper,special'
|
||||
],
|
||||
[
|
||||
'name' => 'Change length',
|
||||
'path' => '/?length=20'
|
||||
]
|
||||
],
|
||||
'append' => function () {
|
||||
?>
|
||||
Of course, you can combine many parameters into one query.
|
||||
<?php
|
||||
}
|
||||
];
|
||||
Loading…
Add table
Add a link
Reference in a new issue