[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 源代码 pci_patch_13x_search.php

Zen Cart 源代码 pci_patch_13x_search.php




下载文件

文件名: pci_patch_13x_search.php
文件类型: PHP文件
文件大小: 855 Bytes
MD5: a87d886afeb20ced53ec02de0ab2ce5e

pci_patch_13x_search.php - 关闭高亮
  1. <?php
  2. /**
  3.  * PCI Patch for v1.3.x -- to aid in avoiding false-positives thrown by PCI scans
  4.  *
  5.  * @package initSystem
  6.  * @copyright Copyright 2003-2009 Zen Cart Development Team
  7.  * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
  8.  * @version $Id: pci_patch_13x_search.php 14869 2009-11-19 22:24:38Z drbyte $
  9.  */
  10. /**
  11.  *
  12.  * Please Note : This file should be placed in includes/extra_configures and will automatically load.
  13.  *
  14.  */
  15. if (isset($_GET['keyword']) && $_GET['keyword'] != '')
  16. {
  17.   $count =  substr_count($_GET['keyword'], '"');
  18.   if ($count == 1)
  19.   {
  20.     if(substr(stripslashes(trim($_GET['keyword'])), 0, 1) == '"')
  21.     {
  22.       $_GET['keyword'] .= '"';
  23.     }
  24.   }
  25.   $_GET['keyword'] = stripslashes($_GET['keyword']);
  26. }
  27. if (isset($_GET['sort']) && strlen($_GET['sort']) > 3) {
  28.   $_GET['sort'] = substr($_GET['sort'], 0, 3);
  29. }
  30.