mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-21 05:44:07 -07:00
UI update
This commit is contained in:
parent
0f7110b0e7
commit
527e4a9a62
139 changed files with 2046 additions and 124 deletions
|
@ -13,10 +13,15 @@ if ((!isset($_SESSION['user'])) && (!defined('NO_AUTH_REQUIRED'))) {
|
|||
$_SESSION['request_uri'] = $_SERVER['REQUEST_URI'];
|
||||
header("Location: /login/");
|
||||
exit;
|
||||
|
||||
}
|
||||
|
||||
if (isset($_SESSION['user'])) {
|
||||
require_once($_SERVER['DOCUMENT_ROOT'].'/inc/i18n/'.$_SESSION['language'].'.php');
|
||||
if(!isset($_SESSION['token'])){
|
||||
$token = uniqid(mt_rand(), true);
|
||||
$_SESSION['token'] = $token;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -277,7 +282,7 @@ function display_error_block() {
|
|||
});
|
||||
</script>
|
||||
<div id="dialog-message" title="">
|
||||
<p>'. $_SESSION['error_msg'] .'</p>
|
||||
<p>'. htmlentities($_SESSION['error_msg']) .'</p>
|
||||
</div>
|
||||
</div>'."\n";
|
||||
unset($_SESSION['error_msg']);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue