Update index.php
parent
ad6703ca40
commit
dafd3624c1
|
@ -28,6 +28,7 @@ function main($path)
|
||||||
global $exts;
|
global $exts;
|
||||||
global $constStr;
|
global $constStr;
|
||||||
config_oauth();
|
config_oauth();
|
||||||
|
if (!isset($_SERVER['base_path'])) $_SERVER['base_path'] = '/';
|
||||||
if ($_SERVER['base_path']=='') $_SERVER['base_path'] = '/';
|
if ($_SERVER['base_path']=='') $_SERVER['base_path'] = '/';
|
||||||
$_SERVER['list_path'] = getListpath($_SERVER['HTTP_HOST']);
|
$_SERVER['list_path'] = getListpath($_SERVER['HTTP_HOST']);
|
||||||
if ($_SERVER['list_path']=='') $_SERVER['list_path'] = '/';
|
if ($_SERVER['list_path']=='') $_SERVER['list_path'] = '/';
|
||||||
|
@ -59,7 +60,7 @@ function main($path)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (getConfig('admin')!='')
|
if (getConfig('admin')!='')
|
||||||
if ($_COOKIE['admin']==md5(getConfig('admin')) || $_POST['password1']==getConfig('admin') ) {
|
if ( $_COOKIE['admin']==md5(getConfig('admin')) || $_POST['password1']==getConfig('admin') ) {
|
||||||
$_SERVER['admin']=1;
|
$_SERVER['admin']=1;
|
||||||
$_SERVER['needUpdate'] = needUpdate();
|
$_SERVER['needUpdate'] = needUpdate();
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue