19 lines
310 B
PHP
19 lines
310 B
PHP
<?php
|
|
$wordlist=parse_ini_file("wordlist.ini");
|
|
|
|
$title="Generic random generator";
|
|
|
|
if(isset($wordlist["title"])){
|
|
$title=$wordlist["title"];
|
|
}
|
|
|
|
$format=$wordlist["format"] or die("unspecified format");
|
|
|
|
$idea="";
|
|
|
|
foreach($format as $part){
|
|
$idea.=$wordlist[$part][array_rand($wordlist[$part])].' ';
|
|
}
|
|
|
|
?>
|