includes/paths.php
changeset 280 7b984f924dcd
parent 264 e17cc42d77cf
child 285 e72bf2c24875
equal deleted inserted replaced
279:b6faa6d6ade2 280:7b984f924dcd
   493         $loc = str_replace(' ', '_', $loc);
   493         $loc = str_replace(' ', '_', $loc);
   494         $loc = str_replace('+', '_', $loc);
   494         $loc = str_replace('+', '_', $loc);
   495         header('Location: '.$loc);
   495         header('Location: '.$loc);
   496         exit;
   496         exit;
   497       }
   497       }
   498       if( !( substr($pi[1], 0, strlen($this->nslist['Special'])) == $this->nslist['Special'] ) )
   498       unset($pi[0]);
   499       {
   499       $pi[1] = implode('/', $pi);
   500         unset($pi[0]);
       
   501         $pi[1] = implode('/', $pi);
       
   502       }
       
   503       $ret = $pi[1];
   500       $ret = $pi[1];
   504     }
   501     }
   505     else
   502     else
   506     {
   503     {
   507       $k = array_keys($_GET);
   504       $k = array_keys($_GET);
   516             $ret = explode('/', $ret);
   513             $ret = explode('/', $ret);
   517             $ret = $ret[0];
   514             $ret = $ret[0];
   518           }
   515           }
   519           break;
   516           break;
   520         }
   517         }
       
   518       }
       
   519     }
       
   520     
       
   521     if ( isset($ret) )
       
   522     {
       
   523       if ( substr($ret, 0, ( strlen($this->nslist['Special']) )) == $this->nslist['Special'] && strstr($ret, '/') )
       
   524       {
       
   525         list ( $ret ) = explode('/', $ret);
   521       }
   526       }
   522     }
   527     }
   523     
   528     
   524     return ( isset($ret) ) ? $ret : false;
   529     return ( isset($ret) ) ? $ret : false;
   525   }
   530   }