$bg_colors = array('orange', 'blue', 'white', 'yellow'); $bg_color = $bg_colors[array_search($_GET['bg'], $bg_colors)]; $frame_colors = array('turquoise' => '35d1d8', 'red' => 'fc361b', 'blue' => '0764f0', 'black' => '000000'); $text_color = $frame_colors[$_GET['color']] ?: '000000'; $frame_color = $frame_colors[$_GET['color']] ? $_GET['color'] : 'black'; $default_text = array( "yeehaa", "vrooom", "ilovny", "strwby", "t1rmsu", "2 kool", "coolit", "miaow", "boss 1", "speedy", "woosh", "im no1", "screee", "99pblm", "iloveu", "watsup", "o ye4h", "o rly", "aloha", "banana", "thxbai", "letsgo", "jtaime", "heyhey", "chaka", "hello", "b nice", "hooray", "yummy", "woopee", "ka pow", "mov 1t", "noodle", "wonton", "choclt", "sorbet", "hola", "tacos", "uwould", "ti amo", "bronx", "l8tr" ); $text = filter_input(INPUT_GET, 'text'); $text = iconv_substr(preg_replace("/[^a-z0-9åäöñ ]+/i", "", $text), 0, 6, 'utf-8'); if(empty($text)) { shuffle($default_text); $text = $default_text[0]; } ?>