sefu.php

来自「this the oscommerce 3.0 aplha 4」· PHP 代码 · 共 60 行

PHP
60
字号
<?php/*  $Id: sefu.php 1498 2007-03-29 14:04:50Z hpdl $  osCommerce, Open Source E-Commerce Solutions  http://www.oscommerce.com  Copyright (c) 2007 osCommerce  This program is free software; you can redistribute it and/or modify  it under the terms of the GNU General Public License v2 (1991)  as published by the Free Software Foundation.*/  class osC_Services_sefu {    function start() {      if (isset($_SERVER['ORIG_PATH_INFO'])) {        if (isset($_SERVER['PATH_INFO']) && empty($_SERVER['PATH_INFO'])) {          $_SERVER['PATH_INFO'] = $_SERVER['ORIG_PATH_INFO'];        }      }      if (isset($_SERVER['PATH_INFO']) && (strlen($_SERVER['PATH_INFO']) > 1)) {        $parameters = explode('/', substr($_SERVER['PATH_INFO'], 1));        $_GET = array();        $GET_array = array();        foreach ($parameters as $parameter) {          $param_array = explode(',', $parameter, 2);          if (!isset($param_array[1])) {            $param_array[1] = '';          }          if (strpos($param_array[0], '[]') !== false) {            $GET_array[substr($param_array[0], 0, -2)][] = $param_array[1];          } else {            $_GET[$param_array[0]] = $param_array[1];          }          $i++;        }        if (sizeof($GET_array) > 0) {          foreach ($GET_array as $key => $value) {            $_GET[$key] = $value;          }        }      }      return true;    }    function stop() {      return true;    }  }?>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?