fixing old urls (/<type>-<id>) and redirect on home page on logon page
(until 1.0.0)
This commit is contained in:
@@ -206,7 +206,7 @@ if($bUserOk && $sAction!=Databap::EXT_ACCESS)
|
||||
//Loading a page
|
||||
else
|
||||
{
|
||||
$sResult = $oDatabap->getPage($sPage, $_GET);
|
||||
$sResult = $oDatabap->getPage($sPage, $oItemId, $_GET);
|
||||
}
|
||||
}
|
||||
//External Access with token
|
||||
@@ -241,6 +241,9 @@ else
|
||||
{
|
||||
//$oDatabap->setExpectedPage($_SERVER['REQUEST_URI']);
|
||||
$sResult = $oDatabap->getLogonPage($sToken=='');
|
||||
|
||||
//TODO delete in v1.0.0
|
||||
if($_SERVER['QUERY_STRING']!='') header('Location:'.$_GET['serv_name']);
|
||||
}
|
||||
|
||||
//clean unwanted error log
|
||||
|
||||
Reference in New Issue
Block a user