Exemplo n.º 1
0
                     $arrTemp = explode($v[0], $string);
                     if (empty($v[1])) {
                         $string = $arrTemp;
                     } else {
                         if (empty($v[2])) {
                             $string = $arrTemp[$v[1]];
                         } else {
                             $string = str_replace($v[2], $v[3], $arrTemp[$v[1]]);
                         }
                     }
                 }
             }
         }
         $arrListUrl = $string;
     } else {
         $arrListUrl = $objSnoopy->_striplinks($string);
         if ($arrListUrl && $arrGFetch[$_GET['id']]['list_host']) {
             foreach ($arrListUrl as $k => $v) {
                 if ($v[0] == '/') {
                     $arrListUrl[$k] = $arrGFetch[$_GET['id']]['list_host'] . $v;
                 } else {
                     $arrListUrl[$k] = $arrGFetch[$_GET['id']]['list_host'] . '/' . $v;
                 }
             }
         }
     }
 } else {
     $arrListUrl = array($_GET['url']);
 }
 //查找链接屏蔽码,如果找到直接过滤
 if (!empty($arrListUrl)) {