Example #1
0
 function url2uri($url, $urlCurrent)
 {
     $path = parent::url2uri($url, $urlCurrent);
     if (!isset($path)) {
         $urlDir = $this->urlDir($urlCurrent);
         $path1 = $this->getPath($url);
         $path2 = ltrim(parse_url($urlDir, PHP_URL_PATH), '/');
         $arr2 = explode('/', rtrim($path2, '/'));
         $path = '../';
         foreach ($arr2 as $v) {
             $path .= '../';
         }
         $path .= $path1;
     }
     return $path;
 }
Example #2
0
 function cbCurlInfo($info)
 {
     echo "\n";
     parent::cbCurlInfo($info);
     echo "\n";
 }