public function OptOut() { $current = getJSON('version.php'); $version[] = array("version" => $current[0]['version'], "time" => $current[0]['time'], "optout" => "true", "name" => $current[0]['name']); saveJSON('version.php', $version); }
* [root]/license.txt for more. This information must remain intact. */ require_once '../../common.php'; require_once 'class.update.php'; ////////////////////////////////////////////////////////////////// // Verify Session or Key ////////////////////////////////////////////////////////////////// checkSession(); $update = new Update(); ////////////////////////////////////////////////////////////////// // Set Initial Version ////////////////////////////////////////////////////////////////// if ($_GET['action'] == 'init') { $update->Init(); } ////////////////////////////////////////////////////////////////// // Clear Version ////////////////////////////////////////////////////////////////// if ($_GET['action'] == 'clear') { if (checkAccess()) { $update->Clear(); } } ////////////////////////////////////////////////////////////////// // OptOut ////////////////////////////////////////////////////////////////// if ($_GET['action'] == 'optout') { if (checkAccess()) { $update->OptOut(); } }