I get this error:
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/pixogeni/public_html/arcade/admin/commandcenter.php on line 46

Well this is line 46, I can't seem to figure out a fix for it...

if (isset($_GET) && $_GET == "login") {


Any suggestions? :S
Thanks in advance :)

Suggestion: check the previous line and make sure its statement was terminated correctly. The line if (isset($_GET['p'] && $_GET['p'] == "login"){} parses fine on my server.

} else {
        echo "<p>This page requires authentication.  Please login.</p>";
        exit;
   }
}   

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.

Thats the area around it, I still don't see anything wrong though ....

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.