Initial Commit

This commit is contained in:
Andy Dixon
2024-07-23 16:21:39 +01:00
commit 5c41c928a6
126 changed files with 26257 additions and 0 deletions
+41
View File
@@ -0,0 +1,41 @@
<?php
$_users=[];
error_reporting(E_ALL & ~E_NOTICE);
@session_start();
if (isset($_SESSION['neoCMSSess']) && strstr($_SESSION['neoCMSSess'], 'neoCMSsession')) {
include_once('createsession.php');
if ($_POST) {
include_once('getpath.php');
$logingets = 'neoCMSUsername=' . urlencode($_POST['neoCMSUsername']) . '&neoCMSPassword=' . urlencode($_POST['neoCMSPassword']) . '&neoCMSSess=' . urlencode($_SESSION['neoCMSSess']) . '&neoCMSPath=' . urlencode($path);
include_once('../config.php');
if (@$_users[$_POST['neoCMSUsername']]["password"] == $_POST['neoCMSPassword']) {
$_SESSION['neoCMSUserid'] = $_POST['neoCMSUsername'];
$_SESSION['neoCMSUserurl'] = $_SERVER['HTTP_HOST'];
$_SESSION['neoCMSIsadmin'] = $_users[$_POST['neoCMSUsername']]["isAdmin"];
}
include_once('sessionConfiguration.php');
if (isset($_SESSION['neoCMSUserid']) && $_SESSION['neoCMSUserid'] != '') {
$script = '<script type="text/javascript">window.top.window.location="../";</script>';
echo $script;
} else {
$script = '<script type="text/javascript">window.top.window.loginIncorr("Incorrect Username or Password.");</script>';
echo $script;
}
}
} else {
$script = '<script type="text/javascript">window.top.window.loginIncorr("There was an error creating a session.");</script>';
echo $script;
}