Version 4.7.6
This commit is contained in:
1 parent
8ba7d43898
commit
7b7404e741
1085 files changed
+30590
-7837
No files matched your search
@@ -26,6 +26,20 @@ if ( !isset( $_SERVER['argv'] ) )
|
||||
/* Init Invision Community */
|
||||
\define('READ_WRITE_SEPARATION', FALSE);
|
||||
\define('REPORT_EXCEPTIONS', TRUE);
|
||||
|
||||
$path = str_replace( 'interface/task/task.php', 'data/requirements.json', str_replace( '\\', '/', __FILE__ ) );
|
||||
|
||||
/* Check the used PHP version and compare it with the requirements */
|
||||
$phpVersion = PHP_VERSION;
|
||||
$requirements = json_decode( file_get_contents( $path ), TRUE );
|
||||
|
||||
if( version_compare($phpVersion, $requirements['php']['required'] ) < 0 )
|
||||
{
|
||||
@ini_set('display_errors', 1);
|
||||
trigger_error('The task was called with PHP version ' . $phpVersion . " while PHP " . $requirements['php']['required'] . " is required.", E_USER_ERROR );
|
||||
exit;
|
||||
}
|
||||
|
||||
require_once str_replace( 'applications/core/interface/task/task.php', 'init.php', str_replace( '\\', '/', __FILE__ ) );
|
||||
|
||||
if ( !\IPS\CIC and $_SERVER['argv'][1] !== \IPS\Settings::i()->task_cron_key )
|
||||
|
||||
Reference in new issue
Block a user