|
|
@@ -172,7 +172,7 @@ jQuery(document).bind('keyup', 'alt+shift+`', function(){
|
|
|
}
|
|
|
|
|
|
public static function dol() {
|
|
|
- $version = file_get_contents(APP_PATH_ROOT . '/VERSION');
|
|
|
+ $version = (file_exists(APP_PATH_ROOT . '/VERSION'))? file_get_contents(APP_PATH_ROOT . '/VERSION') : null;
|
|
|
if ($version) {
|
|
|
echo '<div style="border-top:1px solid #ddd;margin-top:10px;padding:0 30px;font-size:xx-small;color:#888;">version: '.$version.'</div>';
|
|
|
}
|
|
|
@@ -180,7 +180,9 @@ jQuery(document).bind('keyup', 'alt+shift+`', function(){
|
|
|
}
|
|
|
|
|
|
public static function menu() {
|
|
|
- if (User::logged() && User::hasAccess('menu')) {
|
|
|
+ if (!User::logged()) return;
|
|
|
+
|
|
|
+ if (User::hasAccess('menu')) {
|
|
|
Lib::loadClass('ProcesMenu');
|
|
|
|
|
|
$procesMenu = ProcesMenu::getInstance();
|
|
|
@@ -193,15 +195,7 @@ jQuery(document).bind('keyup', 'alt+shift+`', function(){
|
|
|
|
|
|
}
|
|
|
else {
|
|
|
- ?>
|
|
|
- <div class="container">
|
|
|
- <div class="alert alert-error" style="font-size:14px;">
|
|
|
- <strong>Brak niezbędnych uprawnień</strong>
|
|
|
- <a class="pull-right btn btn-primary btn-mini" href="index.php?LOGIN=LOGOUT">Wyloguj</a>
|
|
|
- <br><br>Wykonaj <a href="procesy5.php?task=CRM_TESTY">testy</a>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <?php
|
|
|
+ SE_Layout::loadTemplate('menuLevel6');
|
|
|
}
|
|
|
}
|
|
|
|