40 if (empty($this->backendSkin)){
41 $this->backendSkin =
"skin-blue";
45 if (empty($this->backendLayout)){
46 $this->backendSkin =
"sidebar-mini";
53 <script src=\"../system/engines/pace/pace.min.js\"></script>
55 <link rel=\"stylesheet\" href=\"../system/engines/pace/pace-minimal.css\">";
59 $this->paceLoader .=
"
61 .pace .pace-progress {
62 ".$paceLoaderColor.
"";
63 $this->paceLoader .=
"
70 $this->paceLoader =
'';
82 <meta charset=\"utf-8\">
83 <meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\">
84 <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">
85 <title>YaWK CMS AdminLTE 2 | Startseite</title>
86 <!-- Tell the browser to be responsive to screen width -->
87 <meta content=\"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no\" name=\"viewport\">
89 <link rel=\"shortcut icon\" type=\"image/x-icon\" href=\"favicon.ico\">
90 <!-- apple touch icon -->
91 <link rel=\"apple-touch-icon\" sizes=\"180x180\" href=\"apple-touch-icon.png\">
92 <!-- windows tiles -->
93 <meta name=\"msapplication-TileColor\" content=\"#ff6600\">
94 <meta name=\"msapplication-TileImage\" content=\"mstile-144x144.png\">
96 <script type=\"text/javascript\" src=\"../system/engines/jquery/jquery-3.6.4.min.js\"></script>
100 <!-- Bootstrap 3.3.5 -->
101 <link rel=\"stylesheet\" href=\"../system/engines/bootstrap3/dist/css/bootstrap.min.css\">
103 <link rel=\"stylesheet\" href=\"../system/engines/animateCSS/animate.min.css\">
104 <!-- Font Awesome -->
105 <link rel=\"stylesheet\" href=\"../system/engines/font-awesome/css/font-awesome.min.css\">
107 <link rel=\"stylesheet\" href=\"../system/engines/AdminLTE/css/AdminLTE.min.css\">
108 <!-- AdminLTE Skins. We have chosen the skin-blue for this starter
109 page. However, you can choose any other skin. Make sure you
110 apply the skin class to the body tag so the changes take effect.
112 <!-- AdminLTE custom backend skin -->
113 <link rel=\"stylesheet\" href=\"../system/engines/AdminLTE/css/skins/$this->backendSkin.min.css\">
115 <!-- include custom css -->
116 <link rel=\"stylesheet\" href=\"../system/engines/AdminLTE/css/skins/custom.css\">
118 <!-- moment.js (used by datetimepicker) -->
119 <script type=\"text/javascript\" src=\"../system/engines/jquery/moment.min.js\"></script>
121 <!-- jQuery 3.0.0 -->
122 <!-- <script type=\"text/javascript\" src=\"../system/engines/jquery/jquery-3.0.0.min.js\"></script> -->
125 <script src=\"../system/engines/jquery/notify/bootstrap-notify.min.js\"></script>
128 <link rel=\"apple-touch-icon\" sizes=\"180x180\" href=\"apple-touch-icon.png\">
129 <link rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"favicon-32x32.png\">
130 <link rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"favicon-16x16.png\">
132 <!-- <link rel=\"manifest\" href=\"site.webmanifest\"> -->
133 <link rel=\"mask-icon\" href=\"safari-pinned-tab.svg\" color=\"#000000\">
134 <meta name=\"msapplication-TileColor\" content=\"#000000\">
135 <meta name=\"theme-color\" content=\"#ffffff\">
137 <!-- inject bootstrap 4 light + dark buttons -->
141 background-color: #f8f9fa;
142 border-color: #f8f9fa;
147 background-color: #e2e6ea;
148 border-color: #dae0e5;
151 .btn-light:focus, .btn-light.focus {
152 box-shadow: 0 0 0 0.2rem rgba(248, 249, 250, 0.5);
155 .btn-light.disabled, .btn-light:disabled {
157 background-color: #f8f9fa;
158 border-color: #f8f9fa;
161 .btn-light:not(:disabled):not(.disabled):active, .btn-light:not(:disabled):not(.disabled).active,
162 .show > .btn-light.dropdown-toggle {
164 background-color: #dae0e5;
165 border-color: #d3d9df;
168 .btn-light:not(:disabled):not(.disabled):active:focus, .btn-light:not(:disabled):not(.disabled).active:focus,
169 .show > .btn-light.dropdown-toggle:focus {
170 box-shadow: 0 0 0 0.2rem rgba(248, 249, 250, 0.5);
175 background-color: #343a40;
176 border-color: #343a40;
181 background-color: #23272b;
182 border-color: #1d2124;
185 .btn-dark:focus, .btn-dark.focus {
187 box-shadow: 0 0 0 0.2rem rgba(52, 58, 64, 0.5);
190 .btn-dark.disabled, .btn-dark:disabled {
192 background-color: #343a40;
193 border-color: #343a40;
196 .btn-dark:not(:disabled):not(.disabled):active, .btn-dark:not(:disabled):not(.disabled).active,
197 .show > .btn-dark.dropdown-toggle {
199 background-color: #1d2124;
200 border-color: #171a1d;
203 .btn-dark:not(:disabled):not(.disabled):active:focus, .btn-dark:not(:disabled):not(.disabled).active:focus,
204 .show > .btn-dark.dropdown-toggle:focus {
205 box-shadow: 0 0 0 0.2rem rgba(52, 58, 64, 0.5);
212 <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
213 <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
215 <script src=\"https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js\"></script>
216 <script src=\"https://oss.maxcdn.com/respond/1.4.2/respond.min.js\"></script>
222 Apply one or more of the following classes to get the
224 |---------------------------------------------------------|
225 | SKINS | skin-blue |
231 |---------------------------------------------------------|
232 |LAYOUT OPTIONS | fixed |
235 | | sidebar-collapse |
237 |---------------------------------------------------------|
248 <body class=\"hold-transition $this->backendSkin $this->backendLayout\">
249 <div class=\"wrapper\">
251 <header class=\"main-header\">";
263 if ($this->backendLayout ==
"layout-top-nav"){
269 $chars = (strlen(
$host));
272 $logoText =
"<small class=\"h4\">$host</small>";
274 else if ($chars >= 25)
276 $logoText =
"<small class=\"h5\">$host</small>";
285 <a href=\"../index.html\" class=\"logo\" title=\"$lang[GOTO_WEBSITE]\" target=\"_blank\">
286 <!-- mini logo for sidebar mini 50x50 pixels -->
287 <span class=\"logo-mini\"><b class=\"fa fa-globe\"></b></span>
288 <!-- logo for regular state and mobile devices -->
289 <span class=\"logo-lg\">$logoText</span>
299 if ($this->backendLayout ==
"layout-top-nav"){
301 <nav class=\"navbar navbar-static-top\" role=\"navigation\">
302 <div class=\"container\">
303 <div class=\"navbar-header\">
304 <a href=\"../../index2.html\" class=\"navbar-brand\"><b>Admin</b>LTE</a>
305 <button type=\"button\" class=\"navbar-toggle collapsed\" data-toggle=\"collapse\" data-target=\"#navbar-collapse\">
306 <i class=\"fa fa-bars\"></i>
311 echo
"<!-- Header Navbar -->
312 <nav class=\"navbar navbar-static-top\" role=\"navigation\">
313 <!-- Sidebar toggle button-->
314 <a href=\"#\" id=\"sidebarToggle\" class=\"sidebar-toggle\" data-toggle=\"offcanvas\" role=\"button\">
315 <span class=\"sr-only\">Toggle navigation</span>
327 echo
"<!-- Navbar Right Menu -->
328 <div class=\"navbar-custom-menu\">
329 <ul class=\"nav navbar-nav\">";
341 if (isset(
$_GET[
'page']) && (!empty(
$_GET[
'page']) && (
$_GET[
'page'] ===
"settings-backup")))
343 $selected =
' class="active"';
345 else { $selected =
''; }
347 <!-- preview eye icon -->
348 <a href=\"index.php?page=settings-backup\" title=\"$lang[BACKUP]\">
349 <i class=\"fa fa-hdd-o\"></i>
363 if (isset(
$_GET[
'alias']) && (!empty(
$_GET[
'alias'])))
365 $history =
"&alias=$_GET[alias]";
368 else if (isset(
$_GET[
'plugin']) && (!empty(
$_GET[
'plugin']) && (
$_GET[
'plugin'] ===
"userpage")))
370 $history =
"&alias=welcome";
373 else if (isset(
$_GET[
'plugin']) && (!empty(
$_GET[
'plugin'])))
375 $history =
"&alias=$_GET[plugin]";
383 if (isset(
$_GET[
'page']) && (!empty(
$_GET[
'page']) && (
$_GET[
'page'] ===
"frontend-preview")))
385 $selected =
' class="active"';
387 else { $selected =
''; }
389 <!-- preview eye icon -->
390 <a href=\"index.php?page=frontend-preview".$history.
"\" title=\"$lang[QUICK_PREVIEW]\">
391 <i class=\"fa fa-eye\"></i>
405 $i = \YAWK\user::countNewMessages(
$db, $_SESSION[
'uid']);
408 $msg =
$lang[
'CHAT'];
409 $unread =
$lang[
'UNREAD_SINGULAR'];
410 $label =
"<span id=\"messaging-label\" class=\"label label-primary animated swing\">$i</span>";
411 $animated =
"animated tada";
415 $msg =
$lang[
'CHATS'];
416 $unread =
$lang[
'UNREAD_PLURAL'];
417 $label =
"<span id=\"messaging-label\" class=\"label label-primary animated swing\">$i</span>";
418 $animated =
"animated tada";
428 $newMessages = \YAWK\user::getNewMessages(
$db, $_SESSION[
'uid']);
431 <!-- Messages: style can be found in dropdown.less-->
432 <li class=\"dropdown messages-menu\">
433 <!-- Menu toggle button -->
434 <a href=\"#\" class=\"dropdown-toggle\" data-toggle=\"dropdown\">
435 <i class=\"fa fa-comment-o $animated\"></i>
438 <ul class=\"dropdown-menu\">
439 <li class=\"header\">$lang[SYSLOG_YOU_HAVE] <span id=\"messagesCounterMenu\">$i</span> $unread $msg</li>
441 <!-- inner menu: contains the messages -->
442 <ul class=\"menu\">";
444 foreach ($newMessages as $message)
447 $from = \YAWK\user::getUserNameFromID(
$db, $message[
'fromUID']);
452 $preview = $message[
'msg_body'];
453 $preview = substr($preview, -80);
454 $message = substr($message[
'msg_body'], -30);
458 echo
"<li><!-- start message -->
459 <a href=\"index.php?plugin=messages&pluginpage=mailbox&msg_id=".$msg_id.
"\" title=\"$preview\">
460 <div class=\"pull-left\">
463 <!-- <img src=\"../media/images/users/admin.jpg\" class=\"img-circle\" alt=\"User Image\"> -->
465 <!-- Message title and timestamp -->
468 <small><i class=\"fa fa-clock-o\"></i> $timeago </small>
473 </li><!-- end message -->";
477 echo
"</ul><!-- /.menu -->
479 <li class=\"footer\"><a href=\"index.php?plugin=messages&pluginpage=mailbox\">See All Messages</a></li>
481 </li><!-- /.messages-menu -->";
510 if (function_exists(
'imap_open'))
514 $emails = @imap_search(
$imap,
'UNSEEN');
518 \YAWK\sys::setSyslog(
$db, 4, 2,
"Imap Extension not activated. Try apt-get install php[x]-imap or ask your server admin.", 0, 0, 0, 0);
528 $i = count ($emails);
534 $msg =
$lang[
'EMAIL'];
535 $unread =
$lang[
'UNREAD_SINGULAR'];
536 $label =
"<span id=\"envelope-label\" class=\"label label-success animated swing\">$i</span>";
537 $animated =
"animated tada";
541 $msg =
$lang[
'EMAILS'];
542 $unread =
$lang[
'UNREAD_PLURAL'];
543 $label =
"<span id=\"envelope-label\" class=\"label label-success animated swing\">$i</span>";
544 $animated =
"animated tada";
558 <!-- Messages: style can be found in dropdown.less-->
559 <li class=\"dropdown messages-menu\">
560 <!-- Menu toggle button -->
561 <a href=\"#\" class=\"dropdown-toggle\" data-toggle=\"dropdown\">
562 <i class=\"fa fa-envelope-o $animated\"></i>
565 <ul class=\"dropdown-menu\">
566 <li class=\"header\">$lang[SYSLOG_YOU_HAVE] <span id=\"emailCounterMenu\">$i</span> $unread $msg</li>
568 <!-- inner menu: contains the messages -->
569 <ul class=\"menu\">";
576 foreach($emails as $email_number) {
578 $overview = @imap_fetch_overview(
$imap,$email_number,0);
584 $overview[0]->subject;
595 <a href=\"index.php?page=webmail-message&folder=inbox&msgno=".$email_number.
"\">
596 <b><small>".utf8_decode(imap_utf8($overview[0]->from)).
"</small></b><br>
597 ".$overview[0]->subject.
"<br>";
599 echo
"<small><i class=\"fa fa-clock-o\"></i> ".$timeAgo.
"</small>
606 echo
"</ul><!-- /.menu -->
608 <li class=\"footer\"><a href=\"index.php?page=webmail\">$lang[WEBMAIL_SHOW]</a></li>
610 </li><!-- /.messages-menu -->";
625 $i_syslog = \YAWK\user::countNotifications(
$db);
626 $i_notifications = \YAWK\user::countMyNotifications(
$db, $_SESSION[
'uid']);
627 $i_total = $i_syslog + $i_notifications;
628 $notifications = \YAWK\user::getAllNotifications(
$db);
629 $my_notifications = \YAWK\user::getMyNotifications(
$db, $_SESSION[
'uid']);
634 $label =
"<span id=\"bell-label\" class=\"label label-warning animated tada\">$i_total</span>";
636 $notification =
$lang[
'SYSLOG_NOTIFICATIONS'];
643 $notification =
$lang[
'SYSLOG_NOTIFICATIONS'];
645 if ($i_total ===
'1')
647 $notification =
$lang[
'SYSLOG_NOTIFICATION'];
649 echo
"<script type=\"text/javascript\">
653 <!-- Notifications Menu -->
654 <li id=\"notification-dropdown\" class=\"dropdown notifications-menu\">
655 <!-- Menu toggle button -->
656 <a href=\"#\" class=\"dropdown-toggle\" data-toggle=\"dropdown\">
657 <i class=\"fa fa-bell-o animated $bell\"></i>
660 <ul id=\"notification-dropdownlink\" class=\"dropdown-menu\">
661 <li id=\"notification-header\" class=\"header\">$lang[SYSLOG_YOU_HAVE] <span id=\"notificationsMenuCounter\">$i_total</span> $notification <small><small>(<a href=\"#\" id=\"dismiss\" data-uid=\"$_SESSION[uid]\" title=\"$lang[SYSLOG_DISMISS_ALL]\">$lang[SYSLOG_MARK_AS_READ]</a>)</small></small></li>
663 <!-- Inner Menu: contains the notifications -->
664 <ul id=\"notification-menu\" class=\"menu\">";
665 if (isset($my_notifications) && is_array($my_notifications))
668 foreach ($my_notifications as $my_note)
678 if ($my_note[
'msg_id'] == 1)
680 $UID = $my_note[
'fromUID'];
684 if ($my_note[
'msg_id'] == 2 || $my_note[
'msg_id'] == 3)
686 $UID = $my_note[
'fromUID'];
690 if ($my_note[
'msg_id'] == 4)
692 if ($my_note[
'toUID'] == $_SESSION[
'uid'])
694 $UID = $my_note[
'fromUID'];
697 elseif ($my_note[
'fromUID'] == $_SESSION[
'uid'])
699 $UID = $my_note[
'toUID'];
704 if ($my_note[
'msg_id'] == 5 || $my_note[
'msg_id'] == 6)
706 $UID = $my_note[
'fromUID'];
710 if ($getUsername ==
'1')
713 $my_msg = str_replace(
'#username#',
$username,$my_note[
'message']);
717 $my_msg = $my_note[
'message'];
721 echo
"<li><!-- start notification -->
722 <a href=\"index.php?page=friendslist\" id=\"labelNotification\" title=\"\">
723 <div class=\"pull-left\">
724 <i id=\"label-".$i.
"\" class=\"$my_note[icon] $my_note[type]\"></i> <small><i>$my_msg</i><br>
727 <small class=\"pull-right\"><br><i class=\"fa fa-clock-o\"></i> $timeAgo </small></small>
731 </li><!-- end notification -->";
735 if (isset($notifications) && is_array($notifications))
737 foreach ($notifications as $note)
741 echo
"<li id=\"note-$note[log_id]\"><a href=\"index.php?page=syslog#$note[log_id]\" title=\"\">
742 <div class=\"pull-left\">
744 <i class=\"$note[icon] $note[type]\"></i> <small>$note[message]<br>
747 <small class=\"pull-right\"><br><br><i class=\"fa fa-clock-o\"></i> $timeAgo</small></small>
749 <!-- Message title and timestamp -->
757 <li class=\"footer\"><a id=\"syslogLink\" data-uid=\"$_SESSION[uid]\" href=\"index.php?page=syslog\">$lang[SYSLOG_VIEW]</a></li>
773 if (isset($user->job) && (!empty($user->job)))
775 $currentuser_job =
"<i>$user->job</i>";
779 $currentuser_job =
'';
781 if (isset($user->date_created) && (!empty($user->date_created)))
785 $currentuser_created =
"Member since $member_since[month] $member_since[year]";
789 $currentuser_created =
'';
791 if (isset($user->gid) && (!empty($user->gid)))
793 $currentuser_group = \YAWK\user::getGroupNameFromID(
$db, $user->gid);
797 $currentuser_group =
'';
800 <!-- User Account Menu -->
801 <li class=\"dropdown user user-menu\">
802 <!-- Menu Toggle Button -->
803 <a href=\"#\" class=\"dropdown-toggle\" data-toggle=\"dropdown\">
804 <!-- The user image in the navbar-->
805 $currentuser_navbar_image
806 <!-- <img src=\"../media/images/users/admin.jpg\" class=\"user-image\" alt=\"User Image\"> -->
807 <!-- hidden-xs hides the username on small devices so only the image appears. -->
808 <span class=\"hidden-xs\">$currentuser</span>
810 <ul class=\"dropdown-menu\">
811 <!-- The user image in the menu -->
812 <li class=\"user-header\">
815 <b><a class=\"menuLink\" href=\"index.php?page=user-edit&user=$user->username\">$currentuser</a></b>
816 <small>$currentuser_job</small>
817 <small>$currentuser_group $currentuser_created</small>
821 <li class=\"user-body\">
822 <div class=\"col-xs-4 text-center\">
823 <a href=\"index.php?page=list-follower\" style=\"display: block;\">"; echo \YAWK\user::countMyFollowers(
$db, $user->id); echo
" Followers</a>
825 <div class=\"col-xs-4 text-center\">
826 <a href=\"#\" style=\"display: block;\">"; echo $user->likes; echo
"<br>Likes</a>
828 <div class=\"col-xs-4 text-center\">
829 <a href=\"index.php?page=friendslist\" style=\"display: block;\">"; echo \YAWK\user::countMyFriends(
$db, $user->id); echo
" Friends</a>
833 <li class=\"user-footer\">
834 <div class=\"pull-left\">
835 <a href=\"index.php?page=user-edit&user=$user->username\" class=\"btn btn-light\" title=\"edit $user->username profile\">Profile</a>
837 <div class=\"pull-right\">
838 <a href=\"index.php?page=logout\" class=\"btn btn-danger\"><i class=\"fa fa-power-off\"></i> Sign out</a>
852 <!-- Control Sidebar Toggle Button -->
854 <a href=\"#\" data-toggle=\"control-sidebar\"><i class=\"fa fa-gears\"></i></a>
874 echo
"<!-- Left side column. contains the logo and sidebar -->
875 <aside class=\"main-sidebar\">
877 <!-- sidebar: style can be found in sidebar.less -->
878 <section class=\"sidebar\">
880 <!-- Sidebar user panel (optional) -->
881 <div class=\"user-panel\">
882 <div class=\"pull-left image\">
885 <div class=\"pull-left info\">
886 <p><a href=\"index.php?page=user-edit&user=$user->username\" class=\"menuLink\">$currentuser</a></p>
888 <a href=\"index.php?page=userlist\"><i class=\"fa fa-circle text-success\"></i> Online</a>
892 <!-- search form (Optional) -->
893 <form action=\"index.php?page=search\" method=\"post\" class=\"sidebar-form\">
894 <div class=\"input-group\">
895 <input type=\"text\" name=\"searchString\" class=\"form-control\" placeholder=\"$lang[SEARCH_DOTDOTDOT]\">
896 <input type=\"hidden\" name=\"all\" value=\"true\">
897 <span class=\"input-group-btn\">
898 <button type=\"submit\" name=\"search\" id=\"search-btn\" class=\"btn btn-flat\"><i class=\"fa fa-search\"></i></button>
902 <!-- /.search form -->
904 <!-- Sidebar Menu -->
905 <ul class=\"sidebar-menu\" data-widget=\"tree\">
906 <li class=\"header\">$lang[MAIN_NAVIGATION]</li>
907 <!-- Optionally, you can add icons to the links -->
908 <li ";echo (!isset(
$_GET[
'page'])) && (!isset(
$_GET[
'plugin'])) ?
"class='active'" :
""; echo
">
909 <a href=\"index.php\"><i class=\"fa fa-dashboard\"></i> <span>$lang[DASHBOARD]</span></a>
913 if (isset(
$_GET[
'page']) && (strpos(
$_GET[
'page'],
'page') !==
false))
914 { $activeClass =
" class=\"active\""; }
915 else { $activeClass =
''; }
916 echo
"<li$activeClass>
918 <i class=\"fa fa-file-word-o\"></i>
919 <span>$lang[PAGES]</span>
920 <span class=\"pull-right-container\">
921 <i class=\"fa fa-angle-left pull-right\"></i>
924 <ul class=\"treeview-menu\">
925 <li ";echo (isset(
$_GET[
'page']) &&
$_GET[
'page'] ==
'pages') ?
"class=\"active\"" :
""; echo
">
926 <a href=\"index.php?page=pages\" title=\"add or edit a static .html page\"><i class=\"fa fa-file-word-o\"></i> <span>$lang[OVERVIEW]</span></a>
928 <li ";echo (isset(
$_GET[
'page']) &&
$_GET[
'page'] ==
'page-new') ?
"class='active'" :
""; echo
">
929 <a href=\"index.php?page=page-new\" title=\"add or edit a static .html page\"><i class=\"fa fa-plus\"></i> <span>$lang[PAGE_ADD]</span></a>
934 if (isset(
$_GET[
'page']) && (strpos(
$_GET[
'page'],
'menu') !==
false))
935 { $activeClass =
" class=\"active\""; }
936 else { $activeClass =
''; }
937 echo
"<li$activeClass>
939 <i class=\"fa fa-bars\"></i>
940 <span>$lang[MENUS]</span>
941 <span class=\"pull-right-container\">
942 <i class=\"fa fa-angle-left pull-right\"></i>
945 <ul class=\"treeview-menu\">
946 <li ";echo (isset(
$_GET[
'page']) &&
$_GET[
'page'] ==
'menus') ?
"class=\"active\"" :
""; echo
">
947 <a href=\"index.php?page=menus\" title=\"view menus and entries\"><i class=\"fa fa-bars\"></i> <span>$lang[OVERVIEW]</span></a>
949 <li ";echo (isset(
$_GET[
'page']) &&
$_GET[
'page'] ==
'menu-new') ?
"class='active'" :
""; echo
">
950 <a href=\"index.php?page=menu-new\" title=\"add or edit menu entries\"><i class=\"fa fa-plus\"></i> <span>$lang[MENU_ADD]</span></a>
955 if (isset(
$_GET[
'page']) && (strpos(
$_GET[
'page'],
'user') !==
false))
956 { $activeClass =
" class=\"active\""; }
957 else { $activeClass =
''; }
958 echo
"<li$activeClass>
960 <i class=\"fa fa-user\"></i>
961 <span>$lang[USERS]</span>
962 <span class=\"pull-right-container\">
963 <i class=\"fa fa-angle-left pull-right\"></i></span>
965 <ul class=\"treeview-menu\">
966 <li ";echo (isset(
$_GET[
'page']) &&
$_GET[
'page'] ==
'users') ?
"class=\"active\"" :
""; echo
">
967 <a href=\"index.php?page=users\" title=\"show all users\"><i class=\"fa fa-user\"></i> <span>$lang[USERS]</span></a>
969 <li ";echo (isset(
$_GET[
'page']) &&
$_GET[
'page'] ==
'user-new') ?
"class='active'" :
""; echo
">
970 <a href=\"index.php?page=user-new\" title=\"add a new user\"><i class=\"fa fa-plus\"></i> <span>$lang[USER_ADD]</span></a>
975 if (isset(
$_GET[
'page']) && (strpos(
$_GET[
'page'],
'plugin') !==
false))
976 { $activeClass =
" class=\"active\""; }
977 else { $activeClass =
''; }
978 echo
"<li$activeClass>
980 <i class=\"fa fa-plug\"></i>
981 <span>$lang[PLUGINS]</span>
982 <span class=\"pull-right-container\">
983 <i class=\"fa fa-angle-left pull-right\"></i>
986 <ul class=\"treeview-menu\">
987 <li ";echo (isset(
$_GET[
'page']) &&
$_GET[
'page'] ==
'plugins') ?
"class=\"active\"" :
""; echo
">
988 <a href=\"index.php?page=plugins\" title=\"show plugins\"><i class=\"fa fa-plug\"></i> <span>$lang[PLUGINS]</span></a>
990 <li ";echo (isset(
$_GET[
'page']) &&
$_GET[
'page'] ==
'plugins-manage') ?
"class='active'" :
""; echo
">
991 <a href=\"index.php?page=plugins-manage\" title=\"manage plugins\"><i class=\"fa fa-wrench\"></i> <span>$lang[PLUGINS_MANAGE]</span></a>
996 if (isset(
$_GET[
'page']) && (strpos(
$_GET[
'page'],
'widget') !==
false))
997 { $activeClass =
" class=\"active\""; }
998 else { $activeClass =
''; }
999 echo
"<li$activeClass>
1001 <i class=\"fa fa-tags\"></i>
1002 <span>$lang[WIDGETS]</span>
1003 <span class=\"pull-right-container\">
1004 <i class=\"fa fa-angle-left pull-right\"></i>
1007 <ul class=\"treeview-menu\">
1008 <li ";echo (isset(
$_GET[
'page']) &&
$_GET[
'page'] ==
'widgets') ?
"class=\"active\"" :
""; echo
">
1009 <a href=\"index.php?page=widgets\" title=\"show widgets\"><i class=\"fa fa-tags\"></i> <span>$lang[WIDGETS]</span></a>
1011 <li ";echo (isset(
$_GET[
'page']) &&
$_GET[
'page'] ==
'widget-new') ?
"class='active'" :
""; echo
">
1012 <a href=\"index.php?page=widget-new\" title=\"add widget\"><i class=\"fa fa-plus\"></i> <span>$lang[WIDGET_ADD]</span></a>
1017 if (isset(
$_GET[
'page']) && (strpos(
$_GET[
'page'],
'filemanager') !==
false))
1018 { $activeClass =
" class=\"active\""; }
1019 else { $activeClass =
''; }
1020 echo
"<li$activeClass>
1022 <i class=\"fa fa-folder-open\"></i>
1023 <span>$lang[FILEMANAGER]</span>
1024 <span class=\"pull-right-container\">
1025 <i class=\"fa fa-angle-left pull-right\"></i>
1028 <ul class=\"treeview-menu\">
1029 <li ";echo (isset(
$_GET[
'page']) &&
$_GET[
'page'] ==
'filemanager') ?
"class=\"active\"" :
""; echo
">
1030 <a href=\"index.php?page=filemanager\" title=\"show files\"><i class=\"fa fa-folder-open-o\"></i> <span>$lang[FILEMANAGER]</span></a>
1032 <li ";echo (isset(
$_GET[
'page']) &&
$_GET[
'page'] ==
'filemanager-upload') ?
"class='active'" :
""; echo
">
1033 <a href=\"index.php?page=filemanager-upload\" title=\"upload files\"><i class=\"fa fa-plus\"></i> <span>$lang[UPLOAD]</span></a>
1038 if (isset(
$_GET[
'page']) && (strpos(
$_GET[
'page'],
'template') !==
false))
1039 { $activeClass =
" class=\"active\""; }
1040 else { $activeClass =
''; }
1042 echo
"<li$activeClass>
1044 <i class=\"fa fa-paint-brush\"></i>
1045 <span>$lang[DESIGN]</span>
1046 <span class=\"pull-right-container\">
1047 <i class=\"fa fa-angle-left pull-right\"></i>
1050 <ul class=\"treeview-menu\">
1051 <li ";echo (isset(
$_GET[
'page']) &&
$_GET[
'page'] ==
'template-overview') ?
"class=\"active\"" :
""; echo
">
1052 <a href=\"index.php?page=template-overview\"><i class=\"fa fa-cube\"></i> $lang[TPL]</a>
1054 <li ";echo (isset(
$_GET[
'page']) &&
$_GET[
'page'] ==
'template-positions') ?
"class=\"active\"" :
""; echo
">
1055 <a href=\"index.php?page=template-positions\"><i class=\"fa fa-sitemap\"></i> $lang[POSITIONS]</a>
1057 <li ";echo (isset(
$_GET[
'page']) &&
$_GET[
'page'] ==
'template-redesign') ?
"class=\"active\"" :
""; echo
">
1058 <a href=\"index.php?page=template-redesign\"><i class=\"fa fa-paint-brush\"></i>$lang[DESIGN]</a>
1060 <li ";echo (isset(
$_GET[
'page']) &&
$_GET[
'page'] ==
'template-typography') ?
"class=\"active\"" :
""; echo
">
1061 <a href=\"index.php?page=template-typography\"><i class=\"fa fa-text-height\"></i> $lang[TYPOGRAPHY]</a>
1063 <li ";echo (isset(
$_GET[
'page']) &&
$_GET[
'page'] ==
'template-customcss') ?
"class=\"active\"" :
""; echo
">
1064 <a href=\"index.php?page=template-customcss\"><i class=\"fa fa-css3\"></i> $lang[CUSTOM_CSS]</a>
1066 <li ";echo (isset(
$_GET[
'page']) &&
$_GET[
'page'] ==
'template-customjs') ?
"class=\"active\"" :
""; echo
">
1067 <a href=\"index.php?page=template-customjs\"><i class=\"fa fa-code\"></i> $lang[CUSTOM_JS]</a>
1069 <li ";echo (isset(
$_GET[
'page']) &&
$_GET[
'page'] ==
'template-preview') ?
"class=\"active\"" :
""; echo
">
1070 <a href=\"index.php?page=template-preview\"><i class=\"fa fa-eye\"></i> $lang[PREVIEW]</a>
1072 <li ";echo (isset(
$_GET[
'page']) &&
$_GET[
'page'] ==
'template-assets') ?
"class=\"active\"" :
""; echo
">
1073 <a href=\"index.php?page=template-assets\"><i class=\"fa fa-puzzle-piece\"></i> $lang[ASSETS]</a>
1079 if (isset(
$_GET[
'page']) && (strpos(
$_GET[
'page'],
'stats') !==
false))
1080 { $activeClass =
" class=\"active\""; }
1081 else { $activeClass =
''; }
1082 echo
"<li$activeClass>
1084 <i class=\"fa fa-line-chart\"></i>
1085 <span>$lang[STATS]</span>
1086 <span class=\"pull-right-container\">
1087 <i class=\"fa fa-angle-left pull-right\"></i>
1090 <ul class=\"treeview-menu\">
1091 <li ";echo (isset(
$_GET[
'page']) &&
$_GET[
'page'] ==
'stats') ?
"class=\"active\"" :
""; echo
">
1092 <a href=\"index.php?page=stats\" title=\"statistics\"><i class=\"fa fa-line-chart\"></i> <span>$lang[STATS]</span></a>
1094 <li ";echo (isset(
$_GET[
'page']) &&
$_GET[
'page'] ==
'stats-24h') ?
"class='active'" :
""; echo
">
1095 <a href=\"index.php?page=stats&interval=24&period=HOUR\" title=\"last 24 hours\"><i class=\"fa fa-clock-o\"></i> <span>$lang[LAST24H]</span></a>
1100 if (isset(
$_GET[
'page']) && (strpos(
$_GET[
'page'],
'help') !==
false))
1101 { $activeClass =
" class=\"active\""; }
1102 else { $activeClass =
''; }
1103 echo
"<li$activeClass>
1105 <i class=\"fa fa-question-circle\"></i>
1106 <span>$lang[HELP]</span>
1107 <span class=\"pull-right-container\">
1108 <i class=\"fa fa-angle-left pull-right\"></i>
1111 <ul class=\"treeview-menu\">
1112 <li ";echo (isset(
$_GET[
'page']) &&
$_GET[
'page'] ==
'help') ?
"class='active'" :
""; echo
">
1113 <a href=\"index.php?page=help\" title=\"help\"><i class=\"fa fa-question-circle-o\"></i> <span>$lang[HELP_USER_MANUAL]</span></a>
1115 <li ";echo (isset(
$_GET[
'page']) &&
$_GET[
'page'] ==
'help-apigen') ?
"class=\"active\"" :
""; echo
">
1116 <a href=\"index.php?page=help-apigen\" title=\"API Documentation\"><i class=\"fa fa-question-circle-o\"></i> <span>$lang[HELP_APIGEN]</span></a>
1118 <li ";echo (isset(
$_GET[
'page']) &&
$_GET[
'page'] ==
'help-support') ?
"class=\"active\"" :
""; echo
">
1119 <a href=\"index.php?page=help-support\" title=\"Support\"><i class=\"fa fa-life-saver\"></i> <span>$lang[HELP_SUPPORT]</span></a>
1124 if (isset(
$_GET[
'page']) && (strpos(
$_GET[
'page'],
'settings') !==
false))
1125 { $activeClass =
" class=\"active\""; }
1126 else { $activeClass =
''; }
1131 <i class=\"fa fa-gear\"></i>
1132 <span>$lang[SETTINGS]</span>
1133 <span class=\"pull-right-container\">
1134 <i class=\"fa fa-angle-left pull-right\"></i>
1137 <ul class=\"treeview-menu\">
1138 <li ";echo (isset(
$_GET[
'page']) &&
$_GET[
'page'] ==
'settings-frontend') ?
"class=\"active\"" :
""; echo
">
1139 <a href=\"index.php?page=settings-frontend\"><i class=\"fa fa-globe\"></i> $lang[FRONTEND]</a>
1141 <li ";echo (isset(
$_GET[
'page']) &&
$_GET[
'page'] ==
'settings-backend') ?
"class=\"active\"" :
""; echo
">
1142 <a href=\"index.php?page=settings-backend\"><i class=\"fa fa-sign-in\"></i> $lang[BACKEND]</a>
1144 <li ";echo (isset(
$_GET[
'page']) &&
$_GET[
'page'] ==
'settings-system') ?
"class=\"active\"" :
""; echo
">
1145 <a href=\"index.php?page=settings-system\"><i class=\"fa fa-gears\"></i> $lang[SYSTEM]</a>
1147 <li ";echo (isset(
$_GET[
'page']) &&
$_GET[
'page'] ==
'settings-openai') ?
"class=\"active\"" :
""; echo
">
1148 <a href=\"index.php?page=settings-openai\"><i class=\"fa fa-key\"></i> $lang[API_KEYS]</a>
1150 <li ";echo (isset(
$_GET[
'page']) &&
$_GET[
'page'] ==
'settings-webmail') ?
"class=\"active\"" :
""; echo
">
1151 <a href=\"index.php?page=settings-webmail\"><i class=\"fa fa-envelope-o\"></i> $lang[WEBMAIL]</a>
1153 <li ";echo (isset(
$_GET[
'page']) &&
$_GET[
'page'] ==
'settings-robots') ?
"class=\"active\"" :
""; echo
">
1154 <a href=\"index.php?page=settings-robots\"><i class=\"fa fa-android\"></i> $lang[ROBOTS_TXT]</a></li>
1156 <li ";echo (isset(
$_GET[
'page']) &&
$_GET[
'page'] ==
'settings-language') ?
"class=\"active\"" :
""; echo
">
1157 <a href=\"index.php?page=settings-language\"><i class=\"fa fa-language\"></i> $lang[LANGUAGES]</a>
1159 <li ";echo (isset(
$_GET[
'page']) &&
$_GET[
'page'] ==
'settings-assets') ?
"class=\"active\"" :
""; echo
">
1160 <a href=\"index.php?page=settings-assets\"><i class=\"fa fa-puzzle-piece\"></i> $lang[ASSETS]</a>
1162 <li ";echo (isset(
$_GET[
'page']) &&
$_GET[
'page'] ==
'settings-fonts') ?
"class=\"active\"" :
""; echo
">
1163 <a href=\"index.php?page=settings-fonts\"><i class=\"fa fa-font\"></i> $lang[FONTS]</a>
1165 <li ";echo (isset(
$_GET[
'page']) &&
$_GET[
'page'] ==
'settings-database') ?
"class=\"active\"" :
""; echo
">
1166 <a href=\"index.php?page=settings-database\"><i class=\"fa fa-database\"></i> $lang[DATABASE]</a>
1168 <li ";echo (isset(
$_GET[
'page']) &&
$_GET[
'page'] ==
'settings-backup') ?
"class=\"active\"" :
""; echo
">
1169 <a href=\"index.php?page=settings-backup\"><i class=\"fa fa-hdd-o\"></i> $lang[BACKUP]</a>
1171 <li ";echo (isset(
$_GET[
'page']) &&
$_GET[
'page'] ==
'settings-update') ?
"class=\"active\"" :
""; echo
">
1172 <a href=\"index.php?page=settings-update\"><i class=\"fa fa-code-fork\"></i> $lang[UPDATE]</a>
1174 <li ";echo (isset(
$_GET[
'page']) &&
$_GET[
'page'] ==
'settings-systeminfo') ?
"class=\"active\"" :
""; echo
">
1175 <a href=\"index.php?page=settings-systeminfo\"><i class=\"fa fa-info-circle\"></i> $lang[SYSTEM] $lang[INFO]</a></li>
1179 </ul><!-- /.sidebar-menu -->
1215 if (isset(
$_GET[
'q']) && (!empty(
$_GET[
'q'])))
1217 alert::draw(
"success",
"Suchfeld",
"Begriff: $_GET[q]",
"", 2000);
1220 if(isset(
$_GET[
'page']))
1222 $node =
"includes/".$_GET[
'page'].
"";
1223 $filename =
"includes/".$_GET[
'page'].
".php";
1236 else if(isset(
$_GET[
'plugin']) && (!isset(
$_GET[
'pluginpage'])))
1239 $plugin_name =
"../system/plugins/$plugin/admin/$plugin";
1243 else if (isset(
$_GET[
'plugin']) && (isset(
$_GET[
'pluginpage'])))
1246 $pluginPage =
$_GET[
'pluginpage'];
1247 $plugin_name =
"../system/plugins/$plugin/admin/$pluginPage";
1251 else if (isset(
$_GET[
'pluginid']))
1254 $plugin_name =
"../system/plugins/$plugin/admin/$plugin";
1258 else if (!isset(
$_GET[
'page']))
1261 <!-- Content Wrapper. Contains page content -->
1262 <div class=\"content-wrapper\" id=\"content-FX\">
1263 <!-- Content Header (Page header) -->
1264 <section class=\"content-header\">";
1267 echo \YAWK\backend::getTitle(
$lang[
'DASHBOARD'], $dashboard_subtext);
1269 echo
"<ol class=\"breadcrumb\">
1270 <li><a href=\"index.php\" title=\"$lang[DASHBOARD]\"><i class=\"fa fa-dashboard\"></i> $lang[DASHBOARD]</a></li>
1271 <li class=\"active\"><a href=\"index.php\"> $lang[OVERVIEW]</a></li>
1275 <!-- Main content -->
1276 <section class=\"content\">";
1291 echo
"</section><!-- /.content -->";
1305 if (isset($valueLeft) && (!empty($valueLeft)))
1307 $leftValue = $valueLeft;
1309 else { $leftValue =
''; }
1311 if (isset($valueRight) && (!empty($valueRight)))
1313 $rightValue = $valueRight;
1315 else { $rightValue =
''; }
1318 if ($copyright ===
"1")
1321 $leftValue =
"<strong>Copyright © ".date(
"Y").
" <a href=\"https://github.com/YaWK/yawk-cms\" target=\"_blank\">YaWK CMS</a> </strong><small> All rights reserved. </small>";
1327 <!-- Main Footer -->
1328 <footer class=\"main-footer\">
1329 <!-- To the right -->
1330 <div class=\"pull-right hidden-xs\">
1331 <small>$rightValue</small>
1333 <!-- Default to the left -->
1346 <!-- Control Sidebar -->
1347 <aside class=\"control-sidebar control-sidebar-dark\">
1348 <!-- Create the tabs -->
1349 <ul class=\"nav nav-tabs nav-justified control-sidebar-tabs\">
1350 <li class=\"active\"><a href=\"#control-sidebar-home-tab\" data-toggle=\"tab\"><i class=\"fa fa-hdd-o\"></i></a></li>
1351 <li><a href=\"#control-sidebar-settings-tab\" data-toggle=\"tab\"><i class=\"fa fa-gears\"></i></a></li>
1354 <div class=\"tab-content\">
1355 <!-- Home tab content -->
1356 <div class=\"tab-pane active\" id=\"control-sidebar-home-tab\">
1358 <h3 class=\"control-sidebar-heading\">$ lang[BACKUP]</h3>
1359 <ul class=\"control-sidebar-menu\">
1362 <i class=\"menu-icon fa fa-hdd-o\"></i>
1363 <div class=\"menu-info\">
1364 <h4 class=\"control-sidebar-subheading\">Quick Backup</h4>
1365 <p> Refresh database backup</p>
1371 <i class=\"menu-icon fa fa-hdd-o\"></i>
1372 <div class=\"menu-info\">
1373 <h4 class=\"control-sidebar-subheading\">Complete Backup</h4>
1374 <p> Including media folder</p>
1378 </ul><!-- /.control-sidebar-menu -->
1380 <h3 class=\"control-sidebar-heading\">Zeiterfassung</h3>
1381 <ul class=\"control-sidebar-menu\">
1383 <a href=\"javascript::;\">
1384 <h4 class=\"control-sidebar-subheading\">
1385 Custom Template Design
1386 <span class=\"label label-danger pull-right\">70%</span>
1388 <div class=\"progress progress-xxs\">
1389 <div class=\"progress-bar progress-bar-danger\" style=\"width: 20%\"></div>
1393 </ul><!-- /.control-sidebar-menu -->
1395 </div><!-- /.tab-pane -->
1396 <!-- Stats tab content -->
1397 <div class=\"tab-pane\" id=\"control-sidebar-stats-tab\">Stats Tab Content</div><!-- /.tab-pane -->
1398 <!-- Settings tab content -->
1399 <div class=\"tab-pane\" id=\"control-sidebar-settings-tab\">
1401 <form method=\"post\">
1402 <h3 class=\"control-sidebar-heading\">General Settings</h3>
1403 <div class=\"form-group\">
1404 <label class=\"control-sidebar-subheading\">
1406 <input type=\"checkbox\" class=\"pull-right\" checked>
1409 Some information about this general settings option
1411 </div><!-- /.form-group -- >
1413 </div><!-- /.tab-pane -->
1415 </aside><!-- /.control-sidebar -->
1416 <!-- Add the sidebar's background. This div must be placed
1417 immediately after the control sidebar -->
1418 <div class=\"control-sidebar-bg\"></div>
1419 </div><!-- ./wrapper -->";
1429 <!-- REQUIRED JS SCRIPTS -->
1430 <!-- color picker -->
1431 <script type=\"text/javascript\" src=\"../system/engines/jquery/jscolor/jscolor.js\"></script>
1432 <!-- Bootstrap 3.3.5 -->
1433 <script type=\"text/javascript\" src=\"../system/engines/bootstrap3/dist/js/bootstrap.min.js\"></script>
1435 <script type=\"text/javascript\" src=\"../system/engines/jquery/jquery.dataTables.min.js\"></script>
1436 <!-- AdminLTE App -->
1437 <script type=\"text/javascript\" src=\"../system/engines/AdminLTE/js/app.min.js\"></script>
1438 <!-- YaWK Backend JS Functions -->
1439 <script type=\"text/javascript\" src=\"js/yawk-backend.js\"></script>";
1473 <div class=\"box box-default\">
1474 <div class=\"box-header with-border\">
1475 <h3 class=\"box-title\">$header</h3>
1477 <div class=\"box-tools pull-right\">
1478 <button type=\"button\" class=\"btn btn-box-tool\" data-widget=\"collapse\"><i class=\"fa fa-minus\"></i>
1481 <!-- /.box-tools -->
1483 <!-- /.box-header -->
1484 <div class=\"box-body\" style=\"display: block;\">
print $lang['FILEMAN_UPLOAD']
Backend class serves a few useful functions for the admin backend.
drawHtmlContentClose()
End Content.
drawHtmlNavbarHeaderEnd()
End Navbar.
drawHtmlContent($db, $lang, $user)
output the html content - depending on whether it's a plugin or a static admin page
drawHtmlNavbar()
Draw the navbar (top)
drawHtmlNavbarMessagesMenu($db, $lang)
Messages Menu: the small icon in the right corner of top navigation. This is a facebook-like messagin...
drawHtmlNavbarPreviewIcon($lang)
Draw preview page icon on navbar top beside other notification icons.
drawHtmlLeftSidebar($db, $user, $lang)
Left sidebar navigation.
drawHtmlEnd($db)
SetUp Backend FX and end html body.
drawHtmlNavbarUserAccountMenu($db, $user)
Show your user account details. Counts your friends and connections, let you log out.
drawHtmlFooter($db)
Draw a Footer on every backend page.
drawHtmlNavbarWebmailMenu($db, $lang)
Webmail Menu: small envelope icon in the right corner of top navigation. This is a preview of your em...
drawHtmlContentBreadcrumbs()
HTML Content Header Breadcrumbs (manually written in \includes)
static drawCollapsableBox($header, $content)
draw a simple collapse box
drawHtmlHead()
Draw the HTML Header. Loads all .css and .js files.
drawHtmlNavbarBackupIcon($lang)
Draw backup icon on navbar top beside preview icon.
drawHtmlBody()
Draw body and header Tag.
drawHtmlLogo($db, $lang)
Draw logo in the top left corner.
drawHtmlNavbarRightMenu()
Draw right navbar.
drawHtmlJSIncludes()
Include needed JS files.
drawHtmlNavbarNotificationsMenu($db, $user, $lang)
Draw navbar notification. This tells you whats going on in your project.
drawHtmlRightSidebar($lang)
Draw right, collapsable sidebar.
__construct($db)
AdminLTE constructor.
$backendSkin
Admin LTE Template Class.
drawHtmlContentHeader($lang)
HTML Content Header (manually written in \includes)
Throws a fancy Bootstrap Alert (success, info, warning or danger)
static draw($type, $title, $text, $redirect, $delay)
static getFullUsername($user)
Clever function to return the username. Expects the user object as param to work correctly.
static getFX($db, $time, $type)
Include Javascript FX to apply on #content-FX DOM element.
The controller function returns filtered filename as string (or null).
static filterfilename($db, $lang, $filename)
Main filter controller: checks GET params and lead to corresponding actions.
static getNameById($db, $pluginId)
get requested plugin name for given plugin ID
Settings class: get and set YaWK system settings.
static getSetting($db, $property)
Get and return value for property from settings database.
static getValueSettingsArray($db, $property)
Returns an array containing property as key and values corresponding to this property where p like $p...
static splitDate($date)
split a date to month, day, year and time
static time_ago($userdate, $lang)
how many time is been gone since given date
static getUserImage($location, $user, $cssClass, $w, $h)
return and output user image
static getCurrentUserName($lang)
return current username