fixing old urls (/<type>-<id>) and redirect on home page on logon page

(until 1.0.0)
This commit is contained in:
2014-06-15 20:49:34 +02:00
parent b62d5df15c
commit 1a52a183e0
5 changed files with 32 additions and 10 deletions

View File

@@ -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