Exemple #1
0
 protected function cleanPath()
 {
     $pathInfo = cleanInjection(requestUri());
     // ----------------------------------------------------------------------
     // URL YÖNLENDİRİLİYOR...
     $pathInfo = routeUri($pathInfo);
     if (strstr($pathInfo, getLang())) {
         $pathInfo = str_replace(getLang() . '/', '', $pathInfo);
     }
     return $pathInfo;
 }
function requestUri()
{
    $requestUri = server('currentPath') ? substr(server('currentPath'), 1) : currentUri();
    if (@$requestUri[strlen($requestUri) - 1] === '/') {
        $requestUri = substr($requestUri, 0, -1);
    }
    $requestUri = routeUri($requestUri);
    return str_replace(suffix(getLang()), '', cleanInjection($requestUri));
}
Exemple #3
0
 protected function _cleanPath()
 {
     $pathInfo = htmlspecialchars(requestUri(), ENT_QUOTES, "utf-8");
     // ----------------------------------------------------------------------
     // URL YÖNLENDİRİLİYOR...
     $pathInfo = routeUri($pathInfo);
     if (strstr($pathInfo, getLang())) {
         $pathInfo = str_replace(getLang() . '/', '', $pathInfo);
     }
     return $pathInfo;
 }