Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/public_html/admin/commandcenter.php on line 46
Y este es el archivo la linea 46 es la primera
Código PHP:
<?PHP
if (isset($_GET['p']) && $_GET['p'] == "login") {
if ($_POST['name'] != $reg_user) {
echo "<p>Sorry, that username does not match. Use your browser back button to go back and try again.</p>";
exit;
} else if ($reg_pass != sha1($_POST['pass'].$regsalt)) {
echo "<p>Sorry, that password does not match. Use your browser back button to go back and try again.</p>";
exit;
} else if ($_POST['name'] == $reg_user && sha1($_POST['pass'].$regsalt) == $reg_pass) {
setcookie('amcms3admin', $reg_pass);
header("Location: $_SERVER[PHP_SELF]");
} else {
echo "<p>Sorry, you could not be logged in at this time. Refresh the page and try again.</p>";
}
}
?>
This page is not directly accessable.