-
-
Save SebSept/ed3c925fdb2c60ddd7f050773e7c32d8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class BackupDatabaseCronModuleFrontController extends ModuleFrontController | |
{ | |
public function init() | |
{ | |
try { | |
$this->checkAccess(); | |
$this->module->cron(); | |
header( "backup ok", true ,200 ); | |
} | |
catch(BackupDatabaseException $e) { | |
header( $e->getMessage(), true , 400 ); | |
} | |
exit(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment