0 && $_GET['count']>0) { $sectioncount = (int)$_GET['count']; } $gen = new babble_generator(); if ($_GET['list']!='') { $html = implode(', ', $gen->list_commands()); echo showpage($html."


"); exit; } $brainfiles = array( array(), array( 'title'=>'Shady drinks menu', 'filename'=>'drink'), array( 'title'=>'Random music genres', 'filename'=>'music_genre'), array( 'title'=>'Værktøj jeg skal huske', 'filename'=>'vaerktoej'), array( 'title'=>'Minecraft villager names', 'filename'=>'villager'), array( 'title'=>'Sære dyr fra andre planeter', 'filename'=>'saere_dyr_fra_andre_planeter'), array( 'title'=>'sounds', 'filename'=>'sounds', 'wordlength'=>3, 'separator'=>"\n", 'multiply_amount'=>5), array( 'title'=>'A.I. Control Tags', 'filename'=>'ai_control_tag', 'wordlength'=>1, 'separator'=>"

\n"), array( 'title'=>'Bogstavsuppe .dk', 'filename'=>'bogstavsuppe', 'link'=>'http://www.bogstavsuppe.dk/'), array( 'title'=>'R.Y.M genres', 'filename'=>'rate your music', 'wordlength'=>mt_rand(3,6), 'sectioncount'=>6), array( 'title'=>'Try', 'filename'=>'a_try', 'wordlength'=>5, 'sectioncount'=>1), // array( // 'title'=>'Test', // 'filename'=>'test'), ); // besides the manually specified ones, also add anything listed by the API (if there's a .jpg for it) foreach ($gen->list_commands() as $key=>$val) { $exists = false; $filename = str_replace(' ', '_', $val); for ($x=0; $xucfirst($val), 'filename'=>str_replace(' ', '_', $val)); } } if (count($brainfiles[$selector])==0) { include 'menu.php'; exit; } $html = "

".$brainfiles[$selector]['title']."


\n"; $html .= "\"Back\"         \"More\"

\n"; $separator = $brainfiles[$selector]['separator'] == '' ? "
\n" : $brainfiles[$selector]['separator']; $gen->initialize($brainfiles[$selector]['filename']); if ($brainfiles[$selector]['multiply_amount'] > 0) { $sectioncount *= $brainfiles[$selector]['multiply_amount']; } if ($brainfiles[$selector]['sectioncount'] > 0) { $sectioncount = $brainfiles[$selector]['sectioncount']; } $html .= str_replace("\n", $separator, $gen->generate($sectioncount, $brainfiles[$selector]['wordlength'])); $html .= "

\n"; echo showpage($html, array('title' => $brainfiles[$selector]['title'])); ?>