[ Index ] |
|
Code source de Zen Cart E-Commerce Shopping Cart 1.3.7.1 |
1 <?php 2 /** 3 * set the HTTP GET parameters manually if search_engine_friendly_urls is enabled 4 * see {@link http://www.zen-cart.com/wiki/index.php/Developers_API_Tutorials#InitSystem wikitutorials} for more details. 5 * 6 * @package initSystem 7 * @copyright Copyright 2003-2005 Zen Cart Development Team 8 * @copyright Portions Copyright 2003 osCommerce 9 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0 10 * @version $Id: init_sefu.php 2753 2005-12-31 19:17:17Z wilt $ 11 */ 12 if (!defined('IS_ADMIN_FLAG')) { 13 die('Illegal Access'); 14 } 15 if (SEARCH_ENGINE_FRIENDLY_URLS == 'true') { 16 if (strlen($_SERVER['REQUEST_URI']) > 1) { 17 $GET_array = array(); 18 $PHP_SELF = $_SERVER['SCRIPT_NAME']; 19 $vars = explode('/', substr($_SERVER['REQUEST_URI'], 1)); 20 for ($i=0, $n=sizeof($vars); $i<$n; $i++) { 21 if (strpos($vars[$i], '[]')) { 22 $GET_array[substr($vars[$i], 0, -2)][] = $vars[$i+1]; 23 } else { 24 $_GET[$vars[$i]] = $vars[$i+1]; 25 } 26 $i++; 27 } 28 if (sizeof($GET_array) > 0) { 29 while (list($key, $value) = each($GET_array)) { 30 $_GET[$key] = $value; 31 } 32 } 33 } 34 } 35 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Mon Nov 26 16:45:43 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |