Version 4.5.0

This commit is contained in:
Neo committed 2025-12-19 05:51:58 -08:00
1 parent 1a0c7fd3c2
commit f79dcf067a
3791 files changed
+248032 -76372

No files matched your search

+3 -9
View File
@@ -22,16 +22,10 @@ if ( !isset( $_SERVER['argv'] ) )
}
/* Init Invision Community */
define('READ_WRITE_SEPARATION', FALSE);
define('REPORT_EXCEPTIONS', TRUE);
\define('READ_WRITE_SEPARATION', FALSE);
\define('REPORT_EXCEPTIONS', TRUE);
require_once str_replace( 'applications/core/interface/task/task.php', 'init.php', str_replace( '\\', '/', __FILE__ ) );
/* Check key */
if ( !\IPS\Settings::i()->task_use_cron )
{
echo "Cron tasks not enabled.";
exit;
}
if ( !\IPS\CIC and $_SERVER['argv'][1] !== \IPS\Settings::i()->task_cron_key )
{
echo "Incorrect key\n";
@@ -46,7 +40,7 @@ try
if( isset( $_SERVER['argv'][2] ) )
{
$task = \IPS\Task::load( $_SERVER['argv'][2], ( is_numeric( $_SERVER['argv'][2] ) ) ? NULL : 'key' );
$task = \IPS\Task::load( $_SERVER['argv'][2], ( \is_numeric( $_SERVER['argv'][2] ) ) ? NULL : 'key' );
if ( !$task )
{