O hi ".$_SESSION['username']."
"; } // Show search if ($_GET["srch"] == "show") { $header = "Search for a tags!"; $content = "Here you can search for funnies! Like raccoons!!!!!!!!!"; $action = ""; flyout($header, $content, $action); } /* Search Confirm */ if (isset($_POST['search_confirm'])) { // Unset all the variables, needed by flyout unset($header, $content, $action); // Clean tags before adding function clean($string) { // Change to lowercase $string = strtolower($string); // Replace hyphens $string = str_replace('-', '_', $string); // Regex $string = preg_replace('/[^A-Za-z0-9\_ ]/', '', $string); // Return string return preg_replace('/ +/', ' ', $string); } // Clean input $tags_string = clean(trim($_POST['search'])); header("Location:https://superdupersecteteuploadtest.fluffybean.gay?q=".$tags_string); } if (isset($_GET["q"])) { echo "Search results for: ".$_GET['q']."
"; } ?>".$welcome_message[array_rand($welcome_message, 1)]."
"; ?>