2017 © Pedro Peláez
 

magento-module mage_maintenance

Simple template for magento errors and maintenance mode

image

reillo/mage_maintenance

Simple template for magento errors and maintenance mode

  • Monday, July 25, 2016
  • by reillo
  • Repository
  • 0 Watchers
  • 0 Stars
  • 0 Installations
  • CSS
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Simple Magento Maintenance Template

Simple template for magento maintenance mode and allow white listed ip to access the site when maintenance mode., (*1)

Simple Magento Maintenance Template, (*2)

Installation

  • Download zip files
  • Extract files at your magento installation
  • For white listed ip addresses. Replace or backup your original index.php then use and rename the index.php.simple to index.php.
  • or, use and insert the code below in your index.php for whitelisted ip
/**
 * Maintenance mode
 * note! insert me after `define('MAGENTO_ROOT', getcwd());`
 */
$allowed_ip = array('127.0.0.12', '60.241.193.31');
if (file_exists(MAGENTO_ROOT.'/maintenance.flag') && !in_array($_SERVER['REMOTE_ADDR'], $allowed_ip)) {
    include_once __DIR__.'/errors/503.php';
    exit();
}

License

This project is open-sourced software licensed under the MIT license., (*3)

The Versions

25/07 2016

dev-master

9999999-dev

Simple template for magento errors and maintenance mode

  Sources   Download

OSL-3.0

by Ner Atillo