| Server IP : 209.209.40.120 / Your IP : 216.73.217.112 Web Server : Microsoft-IIS/10.0 System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586 User : NEWWWW$ ( 0) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/HostingSpaces/admin/247sms.com/wwwroot/dvsa-test-check-master/ |
Upload File : |
<?php error_reporting(0); ?>
<?php
/**
* DVSA Test Cancellation Check
*
* @category File
* @package DVSATestCheck
* @author Craig Watson <craig@cwatson.org>
* @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
* @link https://github.com/craigwatson/dvsa-test-check
*/
// Script set-up
date_default_timezone_set('Europe/London');
$include_dir = dirname(__FILE__);
// Include DOM parser + script functions
require_once "$include_dir/inc/simple_html_dom.php";
require_once "$include_dir/inc/functions.php";
$cnt = 1;
while($cnt ==1){
// Error if secrets file not found
if (!is_file("$include_dir/secrets.php")) {
die(logger("Secrets file not found at $include_dir/secrets.php", "ERROR"));
} else {
include_once "$include_dir/secrets.php";
}
// System Variables
$email_subject = "Driving Test Cancellations";
$user_agent = 'Mozilla/5.0';
// Loop through checks to make
foreach ($check_data as $name => $data) {
logger("========= Running Check for: $name");
runTest($data, $name);
}
sleep(30);
} // end for loop
?>