MDL-23967 admin/cron.php - warn about use on CLI

Admins now need to use the explicit CLI script
This commit is contained in:
Dan Poltawski
2011-08-10 02:06:12 +02:00
committed by Eloy Lafuente (stronk7)
parent 3b97dedfbd
commit c0d30fbb75
+6
View File
@@ -36,6 +36,12 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
if (defined('STDIN')) {
fwrite(STDERR, "ERROR: This script no longer supports CLI, please use admin/cli/cron.php instead\n");
exit(1);
}
// This is a fake CLI script, it is a really ugly hack which emulates
// CLI via web interface, please do not use this hack elsewhere
define('CLI_SCRIPT', true);