// version 0.91 // fix to get the email anyway option working correctly // version 0.9 - 23 June 2014 // First release // initialize if (file_exists('config.php')) { require 'config.php'; } else { require 'config_master.php'; } // check $path if (!endsWith($path, "/")) { $path = $path . "/"; } require 'classes/autoload.php'; Logfile::create("logfile.log"); Logfile::writeWhen("Logfile created"); if (version_compare(PHP_VERSION, '5.4.0') >= 0) { // echo 'I am at least PHP version 5.4.0, my version: ' . PHP_VERSION . "\n"; } else { $text = 'You MUST be running on PHP version 5.4.0 or higher, running version: ' . PHP_VERSION . "\n"; $mailed = mail($email, "WebMonitor: ERROR SCANNING " . $domain, $text); die; } $appStatus = new Isapprunning(); switch ($appStatus->Status()) { case Isapprunning::NotRunning: $alreadyRunning = false; break; case Isapprunning::WasRunning: $period = $appStatus->timePeriod();