function txGalleryExport() { global $DB, $C; VerifyAdministrator(P_GALLERY); $message = DoGalleryExport($_REQUEST); include_once 'includes/message.php'; }
if (IsEmptyString($args['sql-file'])) { echo "ERROR: You must specify at least a SQL data backup filename when using the --backup function\n" . "Example:\n" . "{$_SERVER['_']} {$path}/{$GLOBALS['argv'][0]} --backup --sql-file=sql-backup.txt --thumbs-file=thumbs-backup.txt --archive-file=backup.tar.gz\n"; break; } DoDatabaseBackup($args, TRUE); break; case '--restore': $args = ParseCommandLine(); if (IsEmptyString($args['sql-file'])) { echo "ERROR: You must specify at least a SQL data backup filename when using the --restore function\n" . "Example:\n" . "{$_SERVER['_']} {$path}/{$GLOBALS['argv'][0]} --restore --sql-file=sql-backup.txt --thumbs-file=thumbs-backup.txt\n"; break; } DoDatabaseRestore($args, TRUE); break; case '--export': DoGalleryExport(null, TRUE); break; case '--optimize': OptimizeDatabase(); break; case '--daily-partner': DailyPartnerMaintenance(); break; case '--cleanup': ScheduledCleanup(FALSE); break; case '--reset-clicks-submitted': $DB->Update('UPDATE `tx_galleries` SET `clicks`=0 WHERE `type`=?', array('submitted')); break; case '--reset-clicks-permanent': $DB->Update('UPDATE `tx_galleries` SET `clicks`=0 WHERE `type`=?', array('permanent'));