fix to be working in 6.0.x

This commit is contained in:
Uwe Steinmann 2020-03-13 12:18:01 +01:00
parent c6cd1b6900
commit 626d9d69c8
2 changed files with 16 additions and 9 deletions

View File

@ -24,20 +24,24 @@ require_once("inc/inc.LogInit.php");
require_once("inc/inc.Language.php");
require_once("inc/inc.Init.php");
require_once("inc/inc.Extension.php");
require_once("inc/inc.DBInit.php");
require_once("inc/inc.ClassAccessOperation.php");
require_once("inc/inc.ClassUI.php");
include $settings->_rootDir . "languages/" . $settings->_language . "/lang.inc";
$tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
$view = UI::factory($theme, $tmp[1]);
$accessop = new SeedDMS_AccessOperation($dms, $user, $settings);
if (isset($_REQUEST["referuri"]) && strlen($_REQUEST["referuri"])>0) {
$referrer = $_REQUEST["referuri"];
} else {
$referrer = '';
}
$tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
$view = UI::factory($theme, $tmp[1], array('referrer'=>$referrer));
if($view) {
$view->setParam('accessobject', $accessop);
$view->setParam('referrer', $referrer);
$view($_GET);
exit;
}
?>

View File

@ -24,20 +24,23 @@ require_once("inc/inc.LogInit.php");
require_once("inc/inc.Language.php");
require_once("inc/inc.Init.php");
require_once("inc/inc.Extension.php");
require_once("inc/inc.DBInit.php");
require_once("inc/inc.ClassAccessOperation.php");
require_once("inc/inc.ClassUI.php");
include $settings->_rootDir . "languages/" . $settings->_language . "/lang.inc";
$tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
$view = UI::factory($theme, $tmp[1]);
$accessop = new SeedDMS_AccessOperation($dms, $user, $settings);
if (isset($_REQUEST["referuri"]) && strlen($_REQUEST["referuri"])>0) {
$referrer = $_REQUEST["referuri"];
} else {
$referrer = '';
}
$tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
$view = UI::factory($theme, $tmp[1], array('referrer'=>$referrer));
if($view) {
$view->setParam('accessobject', $accessop);
$view->setParam('referrer', $referrer);
$view($_GET);
exit;
}
?>