"; //print_r($_REQUEST); //print "“; $users = array(); $x = file(“http://” . $_SERVER[‘SERVER_NAME’] . “/private-passwords/”); foreach ($x as $line) { $line = str_replace(‘
‘, ”, $line); $line = str_replace(‘
‘, ”, $line); $line = str_replace(‘‘, ”, $line); if (strpos($line, ‘-#-#-‘) > 0) { //print “### $line
“; list($u, $p) = explode(“-#-#-“, trim($line)); $users[trim($u)] = trim($p); } } //print_r($users); $err = ”; if (!empty($_REQUEST[‘private-username’])) { $u = $_REQUEST[‘private-username’]; $err = ‘username/password not correct’; if (!empty($_REQUEST[‘private-password’])) { $p = $_REQUEST[‘private-password’]; if (!empty($users[$u])) { if ($users[$u] == $p) { $url = “http://” . $_SERVER[‘SERVER_NAME’] . “/customer/”; $err = ”; print ““; exit; } } } } if (!empty($err)) { print “
$err