Cerrada por Mantenimiento
Created by: e$cRi es-cri@hotmail.com    (http://www.pedroescribano.com)

==========================================================================

1)

Abre /catalog/includes/application_top.php

Localiza esta linea:

	// Shopping cart actions


Aade antes esto:

	// BOF: Down for Maintenance except for admin ip
	if (EXCLUDE_ADMIN_IP_FOR_MAINTENANCE != getenv('REMOTE_ADDR')){
		if (DOWN_FOR_MAINTENANCE=='true' and !strstr($PHP_SELF,DOWN_FOR_MAINTENANCE_FILENAME)) { tep_redirect(tep_href_link(DOWN_FOR_MAINTENANCE_FILENAME)); }
		}
	// do not let people get to down for maintenance page if not turned on
	if (DOWN_FOR_MAINTENANCE=='false' and strstr($PHP_SELF,DOWN_FOR_MAINTENANCE_FILENAME)) {
    	tep_redirect(tep_href_link(FILENAME_DEFAULT));
	}
	// EOF: WebMakers.com Added: Down for Maintenance

==========================================================================

2)

Abre /catalog/includes/header.php

Localiza esta linea:

	// check session.auto_start is disabled


Aade antes esto:

	// give the visitors a message that the website will be down at ... time
  	if ( (WARN_BEFORE_DOWN_FOR_MAINTENANCE == 'true') && (DOWN_FOR_MAINTENANCE == 'false') ) {
       	tep_output_warning(TEXT_BEFORE_DOWN_FOR_MAINTENANCE . PERIOD_BEFORE_DOWN_FOR_MAINTENANCE);
  	}
	// this will let the admin know that the website is DOWN FOR MAINTENANCE to the public
  	if ( (DOWN_FOR_MAINTENANCE == 'true') && (EXCLUDE_ADMIN_IP_FOR_MAINTENANCE == getenv('REMOTE_ADDR')) ) {
       	tep_output_warning(TEXT_ADMIN_DOWN_FOR_MAINTENANCE);
  	}

==========================================================================

3)

Abre /catalog/includes/classes/currencies.php

Localiza esta linea:

        return $format_string;


Aade antes esto:

	// BOF: WebMakers.com Added: Down for Maintenance
      	if (DOWN_FOR_MAINTENANCE=='true' and DOWN_FOR_MAINTENANCE_PRICES_OFF=='true') {
        	$format_string= '';
      	}
	// BOF: WebMakers.com Added: Down for Maintenance

==========================================================================

4)

Abre /admin/configuration.php

Localiza esta linea:

      case 'save':
        $configuration_value = tep_db_prepare_input($HTTP_POST_VARS['configuration_value']);
        $cID = tep_db_prepare_input($HTTP_GET_VARS['cID']);

        tep_db_query("update " . TABLE_CONFIGURATION . " set configuration_value = '" . tep_db_input($configuration_value) . "', last_modified = now() where configuration_id = '" . tep_db_input($cID) . "'");
        tep_redirect(tep_href_link(FILENAME_CONFIGURATION, 'gID=' . $HTTP_GET_VARS['gID'] . '&cID=' . $cID));
        break;
    }
  }


Reeplazalo por esto:

      case 'save':
        $configuration_value = tep_db_prepare_input($HTTP_POST_VARS['configuration_value']);
        $cID = tep_db_prepare_input($HTTP_GET_VARS['cID']);

        tep_db_query("update " . TABLE_CONFIGURATION . " set configuration_value = '" . tep_db_input($configuration_value) . "', last_modified = now() where configuration_id = '" . tep_db_input($cID) . "'");
        // set the WARN_BEFORE_DOWN_FOR_MAINTENANCE to false if DOWN_FOR_MAINTENANCE = true
        if ( (WARN_BEFORE_DOWN_FOR_MAINTENANCE == 'true') && (DOWN_FOR_MAINTENANCE == 'true') ) {
        tep_db_query("update " . TABLE_CONFIGURATION . " set configuration_value = 'false', last_modified = '" . NOW . "' where configuration_key = 'WARN_BEFORE_DOWN_FOR_MAINTENANCE'"); }
        tep_redirect(tep_href_link(FILENAME_CONFIGURATION, 'gID=' . $HTTP_GET_VARS['gID'] . '&cID=' . $cID));
        break;
    }
  }

==========================================================================

5)

aade lo siguiente en /catalog/includes/languages/espanol.php

define('TEXT_BEFORE_DOWN_FOR_MAINTENANCE', 'NOTICE: Cerrado por Mantenimiento, periodo (mm/dd/yy) (hh-hh): ');
define('TEXT_ADMIN_DOWN_FOR_MAINTENANCE', 'NOTICE: Cerrado por Manteniemiento');

==========================================================================

6)

Copia este fichero  /catalog/down_for_maintenance.php 

		     a  /catalog

==========================================================================

7)

Copia este fichero  /catalog/includes/languages/espanol/down_for_maintenance.php 

		     a  /catalog/includes/languages/espanol

==========================================================================

8)

Copia este fichero  /catalog/images/cerrado_por_mantenimiento.jpg

                 a  /catalog/images

==========================================================================

9)

Carga el fichero down_for_maintenance.sql con phpMyAdmin o tu metodo favorito.

==========================================================================

10)

Se acab