[phpBB Debug] PHP Warning: in file [ROOT]/includes/crs/crs_misc_functions.php on line 37: mime_content_type(): Empty filename or path
[phpBB Debug] PHP Warning: in file [ROOT]/includes/crs/crs_misc_functions.php on line 37: mime_content_type(): Empty filename or path
Zen Cart 源代码 init_sefu.php

Zen Cart 源代码 init_sefu.php




下载文件

文件名: init_sefu.php
文件类型: PHP文件
文件大小: 1.15 KiB
MD5: 2f632a8732363d8968c1a1bd650c80f4

init_sefu.php - 关闭高亮
  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. ?>


cron