From 56b7c876fce6e191f804663309c33090f95f21f2 Mon Sep 17 00:00:00 2001 From: secretr Date: Thu, 31 May 2012 10:42:38 +0000 Subject: [PATCH] cron executable check removed for windows environments --- e107_admin/cron.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/e107_admin/cron.php b/e107_admin/cron.php index 14f6e6479..85f8641ed 100644 --- a/e107_admin/cron.php +++ b/e107_admin/cron.php @@ -332,8 +332,13 @@ class cron_admin_ui extends e_admin_ui //FIXME: for Windows, the is_executable() function only checks the file // extensions of exe, com, bat and cmd. + $isWin = strtoupper(substr(PHP_OS, 0, 3)) === 'WIN'; $actualPerm = substr(decoct(fileperms(e_BASE."cron.php")),3); - if ($actualPerm != 755) // is_executable() is not reliable. + if($isWin) + { + $mes->add("Please be sure cron.php is executable.", E_MESSAGE_WARNING); + } + if (!$isWin && $actualPerm != 755) // is_executable() is not reliable. { $mes->add("Please CHMOD /cron.php to 755 ", E_MESSAGE_WARNING); }