fixed crons, tested on 2 boxes
This commit is contained in:
parent
53a8b4adf1
commit
0643cf4b87
@ -47,14 +47,15 @@ $dStartTime = microtime(true);
|
|||||||
// Our cron name
|
// Our cron name
|
||||||
$cron_name = basename($_SERVER['PHP_SELF'], '.php');
|
$cron_name = basename($_SERVER['PHP_SELF'], '.php');
|
||||||
|
|
||||||
// Our security check
|
|
||||||
define("SECURITY", 1);
|
|
||||||
|
|
||||||
// Include our configuration (holding defines for the requires)
|
// Include our configuration (holding defines for the requires)
|
||||||
|
require_once(BASEPATH . 'include/config/global.inc.dist.php');
|
||||||
require_once(BASEPATH . 'include/config/global.inc.php');
|
require_once(BASEPATH . 'include/config/global.inc.php');
|
||||||
|
|
||||||
// We include all needed files here, even though our templates could load them themself
|
require_once(BASEPATH . 'include/config/security.inc.dist.php');
|
||||||
require_once(INCLUDE_DIR . '/autoloader.inc.php');
|
@include_once(BASEPATH . 'include/config/security.inc.php');
|
||||||
|
|
||||||
|
require_once(BASEPATH . 'include/bootstrap.php');
|
||||||
|
require_once(BASEPATH . 'include/version.inc.php');
|
||||||
|
|
||||||
// Command line switches
|
// Command line switches
|
||||||
array_shift($argv);
|
array_shift($argv);
|
||||||
|
|||||||
@ -39,7 +39,7 @@ if (@$_SESSION['USERDATA']['is_admin'] && $user->isAdmin(@$_SESSION['USERDATA'][
|
|||||||
}
|
}
|
||||||
// check if htaccess exists
|
// check if htaccess exists
|
||||||
if (!file_exists(BASEPATH.".htaccess")) {
|
if (!file_exists(BASEPATH.".htaccess")) {
|
||||||
$htaccess_link = "<a href='https://github.com/MPOS/php-mpos/blob/next/public/.htaccess'>.htaccess></a>";
|
$htaccess_link = "<a href='https://github.com/MPOS/php-mpos/blob/next/public/.htaccess'>.htaccess</a>";
|
||||||
$notice[] = "You don't seem to have a .htaccess in your public folder, if you're using apache set it up $htaccess_link";
|
$notice[] = "You don't seem to have a .htaccess in your public folder, if you're using apache set it up $htaccess_link";
|
||||||
}
|
}
|
||||||
// check if we can write templates/cache and templates/compile -> error
|
// check if we can write templates/cache and templates/compile -> error
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user