Update functions.php
This commit is contained in:
@@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
function getpath()
|
function getpath()
|
||||||
{
|
{
|
||||||
|
$_SERVER['base_path'] = substr($_SERVER['SCRIPT_NAME'], 0, -10);
|
||||||
|
if ($_SERVER['base_path']=='') $_SERVER['base_path'] = '/';
|
||||||
$p = strpos($_SERVER['REQUEST_URI'],'?');
|
$p = strpos($_SERVER['REQUEST_URI'],'?');
|
||||||
if ($p>0) $path = substr($_SERVER['REQUEST_URI'], 0, $p);
|
if ($p>0) $path = substr($_SERVER['REQUEST_URI'], 0, $p);
|
||||||
else $path = $_SERVER['REQUEST_URI'];
|
else $path = $_SERVER['REQUEST_URI'];
|
||||||
|
|||||||
Reference in New Issue
Block a user