\n"); if (!empty($_POST["url_target"]) && !empty($_POST["url_alias"])) { $url_target = $_POST["url_target"]; $url_alias = $_POST["url_alias"]; $url_alias = sanitize_filename($url_alias); $dest_file = $url_aliasize_dir . $url_alias . $url_aliasize_suffix; $beaming_permitted = 0; } else { $beaming_permitted = 1; } if (!filter_var($url_target, FILTER_VALIDATE_URL)) { $beaming_permitted = 3; } else if (file_exists($dest_file)) { $beaming_permitted = 2; } switch ($beaming_permitted) { case 1: celebrate_death($dest_file, $url_aliasize_item, $url_aliasize_die_img, $url_aliasize_die_alt, "

... you didn't pick a URL/target.

Do it next time >;c

"); break; case 2: celebrate_death($dest_file, $url_aliasize_item, $url_aliasize_die_img, $url_aliasize_die_alt, "

Oh, sorry. Some-one just took that mask before you got here!

Try a different target name, doggo

"); break; case 3: celebrate_death($dest_file, $url_aliasize_item, $url_aliasize_die_img, $url_aliasize_die_alt, "

Are you screwing with me? That's not a URL

Nice try, buck-o

"); break; case 0: write_alias($dest_file, $url_target); celebrate($dest_file, $url_aliasize_item, $url_aliasize_win_img, $url_aliasize_win_alt); break; } ?>