includes/framework/config.class.php
public function getUrlRacine()
    {
        $protocol = empty($_SERVER["HTTPS"])?"http":"https";
        if (isset($_SERVER["SERVER_NAME"])) {
            $dirname=dirname($_SERVER["PHP_SELF"]);
            if (basename($dirname)=="script") {
                $dirname = dirname($dirname);
            }
        } else {
            $dirname="";
        }
        $url =$protocol."://".$this->getNomServeur().
        $dirname;
        if ($dirname!="/") {
            $url.="/";
        }
        return $url;
    }
public function getUrlRacine()
    {
        $protocol = empty($_SERVER["HTTPS"])?"http":"https";
        if (isset($_SERVER["SERVER_NAME"])) {
            $dirname=dirname($_SERVER["PHP_SELF"]);
            if (basename($dirname)=="script") {
                $dirname = dirname($dirname);
            }
        } else {
            $dirname="";
        }
        $url =$protocol."://".$this->getNomServeur().
        $dirname;
        if ($dirname!="/") {
            $url.="/";
        }
        return $url;
    }
public function getUrlRacine ( ) { $ protocol = empty ( $ _SERVER [ "HTTPS" ] ) ? "http" : "https" ; if ( isset ( $ _SERVER [ "SERVER_NAME" ] ) ) { $ dirname = dirname ( $ _SERVER [ "PHP_SELF" ] ) ; if ( basename ( $ dirname ) == "script" ) { $ dirname = dirname ( $ dirname ) ; } } else { $ dirname = "" ; } $ url = $ protocol . "://" . $ this -> getNomServeur ( ) . $ dirname ; if ( $ dirname != "/" ) { $ url .= "/" ; } return $ url ; }
Renvoit la racine de l'URL

@return string
Renvoit la racine de l URL