diff --git a/cron.sh b/cron.sh index 3b8d705f143..5918d5974e9 100755 --- a/cron.sh +++ b/cron.sh @@ -41,7 +41,7 @@ PHP_BIN=`which php` # absolute path to magento installation INSTALLDIR=`echo $0 | sed 's/cron\.sh//g'` -# prepend the intallation path if not given an absolute path +# prepend the installation path if not given an absolute path if [ "$INSTALLDIR" != "" -a "`expr index $CRONSCRIPT /`" != "1" ];then if ! ps auxwww | grep "$INSTALLDIR$CRONSCRIPT$MODE" | grep -v grep 1>/dev/null 2>/dev/null ; then $PHP_BIN $INSTALLDIR$CRONSCRIPT$MODE & diff --git a/index.php.sample b/index.php.sample deleted file mode 100644 index 2da615f0878..00000000000 --- a/index.php.sample +++ /dev/null @@ -1,62 +0,0 @@ -

Whoops, it looks like you have an invalid PHP version.

OpenMage supports PHP 7.0.0 or newer. Find out how to install OpenMage using PHP-CGI as a work-around.

'; - exit; -} - -require 'app/bootstrap.php'; - -/** - * Compilation includes configuration file - */ -$compilerConfig = 'includes/config.php'; -if (file_exists($compilerConfig)) { - include $compilerConfig; -} - -$mageFilename = 'app/Mage.php'; - -if (!file_exists($mageFilename)) { - if (is_dir('downloader')) { - header("Location: downloader"); - } else { - echo $mageFilename." was not found"; - } - exit; -} - -require_once $mageFilename; - -#Varien_Profiler::enable(); - -umask(0); - -$mageRunCode = isset($_SERVER['MAGE_RUN_CODE']) ? $_SERVER['MAGE_RUN_CODE'] : ''; -$mageRunType = isset($_SERVER['MAGE_RUN_TYPE']) ? $_SERVER['MAGE_RUN_TYPE'] : 'store'; - -Mage::run($mageRunCode, $mageRunType);