Add validation when change the url without a workspace but with a session active
This commit is contained in:
@@ -30,6 +30,10 @@ if (isset ($_POST['form']['USER_ENV'])) {
|
||||
die ();
|
||||
}
|
||||
|
||||
@session_destroy();
|
||||
session_start();
|
||||
session_regenerate_id();
|
||||
|
||||
//Required classes for dbArray work
|
||||
require_once ("propel/Propel.php");
|
||||
require_once ("creole/Creole.php");
|
||||
|
||||
@@ -265,15 +265,15 @@ class SkinEngine
|
||||
'IE=6' => '(MSIE 6\.[0-9]+)'
|
||||
);
|
||||
|
||||
foreach ($iexplores as $browser => $pattern) {
|
||||
foreach ($iexplores as $browser => $pattern) {
|
||||
if (preg_match('/'.$pattern.'/', $_SERVER['HTTP_USER_AGENT'])) {
|
||||
$doctype = '';
|
||||
$meta = '<meta http-equiv="X-UA-Compatible" content="'. $browser .'"/>';
|
||||
}
|
||||
}
|
||||
}
|
||||
// end verify
|
||||
|
||||
$template->assign('meta', $meta);
|
||||
$template->assign('meta', $meta);
|
||||
$template->assign('doctype', $doctype);
|
||||
echo $template->getOutputContent();
|
||||
}
|
||||
@@ -598,7 +598,9 @@ class SkinEngine
|
||||
$header = '';
|
||||
|
||||
if (isset($oHeadPublisher)) {
|
||||
$oHeadPublisher->title = isset($_SESSION['USR_USERNAME']) ? '(' . $_SESSION['USR_USERNAME'] . ' ' . G::LoadTranslation('ID_IN') . ' ' . SYS_SYS . ')' : '';
|
||||
if (defined('SYS_SYS')) {
|
||||
$oHeadPublisher->title = isset($_SESSION['USR_USERNAME']) ? '(' . $_SESSION['USR_USERNAME'] . ' ' . G::LoadTranslation('ID_IN') . ' ' . SYS_SYS . ')' : '';
|
||||
}
|
||||
$header = $oHeadPublisher->printHeader();
|
||||
$header .= $oHeadPublisher->getExtJsStylesheets($this->cssFileName);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user