if ($_GET['action'] == 'cudiscounts') { if ($alterconf['CUD_ENABLED']) { $discounts = new CumulativeDiscounts(); $discounts->processDiscounts(); die('OK:CUDISCOUNTS'); } else { die('ERROR:CUDISCOUNTS_DISABLED'); } } /* * Crime And Punishment processing */ if ($_GET['action'] == 'crimeandpunishment') { if ($alterconf['CAP_ENABLED']) { $dostoevsky = new CrimeAndPunishment(); $dostoevsky->processing(); die('OK:CRIMEANDPUNISHMENT'); } else { die('ERROR:CRIMEANDPUNISHMENT_DISABLED'); } } /* * database backup */ if ($_GET['action'] == 'backupdb') { if ($alterconf['MYSQLDUMP_PATH']) { $backpath = zb_backup_database(true); } else { $backpath = zb_backup_tables('*', true); } die('OK:BACKUPDB ' . $backpath);