") + 10; $passfound = false; while ($pos !== false) { $end = strpos($fcnt, ""); if ($end === false) { $pos = strpos($fcnt, "", $pos); continue; } $passfound = true; $str = substr($fcnt, $pos, $end - $pos); if ($str == $password) return; $pos = strpos($fcnt, "", $end + 11); } if ($passfound) { echo "Wrong password."; die(); } } } function register_post_var($name) { global $HTTP_POST_VARS, $$name; if (isset($HTTP_POST_VARS[$name])) $$name = $HTTP_POST_VARS[$name]; else $$name = ""; } register_post_var('filename'); register_post_var('password'); register_post_var('fcnt'); if (empty($filename)) { echo '
'; ?> Filename:
Password:
'; echo " "; echo " "; echo " "; ?>