1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-01 21:38:15 +02:00

cron executable check removed for windows environments

This commit is contained in:
secretr
2012-05-31 10:42:38 +00:00
parent 3913e76b3d
commit 56b7c876fc

View File

@ -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);
}