First Commit

This commit is contained in:
mark committed 2026-10-19 15:22:52 -07:00
1 parent 5eb9dd037d
commit 2e62c0e60b
11877 files changed
+2035312

No files matched your search

+34
View File
@@ -0,0 +1,34 @@
<?php
$ValidAccess = 2010;
require_once("include/globals.php");
$moduleName = "ajax.accessCodeValidate.php";
// startLog($moduleName);
$return_data = array();
$return_data['ajax_return_code'] = 0;
// CSRF token validation
include "include/ajax.csrfToken.php";
// Get search text
$code = db_escape_string(trim($_GET['code']));
writeLog("code: $code");
writeLog("school_code: ".$school_record['system_access_code']);
if ($school_record['system_access_code'] != $code) {
$return_data['ajax_error_message'] = getLanguageText('ERRORMSG-ACCESS-CODE-REQUIRED');
$return_data['ajax_return_code'] = 1;
}
writeLog("ajax_return_code: ".$return_data['ajax_return_code']);
writeLog("completed");
echo(json_encode($return_data));
return false;
?>