3 header(
'Cache-control: private');
4 error_reporting(E_ALL ^ E_STRICT);
5 ini_set(
'display_errors', 1);
10 require_once
'../system/classes/db.php';
11 require_once
'../system/classes/AdminLTE.php';
12 require_once
'../system/classes/alert.php';
13 require_once
'../system/classes/settings.php';
14 require_once
'../system/classes/language.php';
15 require_once
'../system/classes/backend.php';
16 require_once
'../system/classes/dashboard.php';
17 require_once
'../system/classes/user.php';
18 require_once
'../system/classes/page.php';
19 require_once
'../system/classes/menu.php';
20 require_once
'../system/classes/email.php';
21 require_once
'../system/classes/plugin.php';
22 require_once
'../system/classes/widget.php';
23 require_once
'../system/classes/template.php';
24 require_once
'../system/classes/controller.php';
25 require_once
'../system/classes/filemanager.php';
26 require_once
'../system/classes/sys.php';
38 $language->init(
$db,
"backend");
40 $lang = (array) $language->lang;
46 $user = new \YAWK\user(
$db);
52 $page = new \YAWK\page();
56 if (!isset($AdminLTE))
59 $AdminLTE = new \YAWK\BACKEND\AdminLTE(
$db);
61 echo $AdminLTE->drawHtmlHead();
64 \YAWK\backend::checkLogin(
$db);
67 if (isset($_SESSION[
'logged_in']) && ($_SESSION[
'logged_in'] ===
true))
70 if (isset($_SESSION[
'username']) && (isset($_SESSION[
'gid']) && (isset($_SESSION[
'uid']))))
73 $user->loadProperties(
$db, $_SESSION[
'username']);
77 echo $AdminLTE->drawHtmlBody();
79 echo $AdminLTE->drawHtmlLogo(
$db,
$lang);
81 echo $AdminLTE->drawHtmlNavbar();
83 echo $AdminLTE->drawHtmlNavbarRightMenu();
86 echo $AdminLTE->drawHtmlNavbarBackupIcon(
$lang);
89 echo $AdminLTE->drawHtmlNavbarPreviewIcon(
$lang);
92 if (\
YAWK\settings::getSetting(
$db,
"backendMessagesMenu") == 1)
94 echo $AdminLTE->drawHtmlNavbarMessagesMenu(
$db,
$lang);
98 if (\
YAWK\settings::getSetting(
$db,
"webmail_active") == 1)
100 echo $AdminLTE->drawHtmlNavbarWebmailMenu(
$db,
$lang);
104 if (\
YAWK\settings::getSetting(
$db,
"backendNotificationMenu") == 1)
106 echo $AdminLTE->drawHtmlNavbarNotificationsMenu(
$db, $user,
$lang);
110 echo $AdminLTE->drawHtmlNavbarUserAccountMenu(
$db, $user);
112 echo $AdminLTE->drawHtmlNavbarHeaderEnd();
114 echo $AdminLTE->drawHtmlLeftSidebar(
$db, $user,
$lang);
116 echo $AdminLTE->drawHtmlContentHeader(
$lang);
118 echo $AdminLTE->drawHtmlContentBreadcrumbs();
120 echo $AdminLTE->drawHtmlContent(
$db,
$lang, $user);
123 if (\
YAWK\settings::getSetting(
$db,
"backendFooter") == 1)
125 echo $AdminLTE->drawHtmlFooter(
$db);
129 echo $AdminLTE->drawHtmlRightSidebar(
$lang);
131 echo $AdminLTE->drawHtmlJSIncludes();
133 echo $AdminLTE->drawHtmlEnd(
$db);
138 \YAWK\alert::draw(
"warning",
"Warning :",
"It seems that you are not logged in correctly. Please try to re-login!",
"",
"8000");
145 echo
"<body style=\"background-color: #ecf0f5\">";
148 if (isset($_POST[
'resetPasswordRequest']) && ($_POST[
'resetPasswordRequest'] ==
"true"))
150 if ($user::sendResetEmail(
$db, $_POST[
'username'], $_POST[
'email'],
$lang) ==
true)
152 \YAWK\alert::draw(
"success",
"$lang[EMAIL_SENT]",
"$lang[PLEASE_CHECK_YOUR_INBOX]",
"", 2400);
161 if (isset(
$_GET[
'resetPassword']) && (!empty(
$_GET[
'resetPassword']) && (
$_GET[
'resetPassword'] ===
true)))
164 if (isset(
$_GET[
'token']) && (!empty(
$_GET[
'token']) && (is_string(
$_GET[
'token']))))
167 if ($user::checkResetToken(
$db,
$_GET[
'token']) ===
true)
173 echo
"<br><br></section></div>";
175 echo $AdminLTE->drawHtmlJSIncludes();
177 echo $AdminLTE->drawHtmlEnd(
$db);
188 echo \YAWK\backend::drawLoginBox(
$db,
$lang);
190 echo
"<br><br></section></div>";
193 echo $AdminLTE->drawHtmlJSIncludes();
196 echo $AdminLTE->drawHtmlEnd(
$db);
print $lang['FILEMAN_UPLOAD']
static draw($type, $title, $text, $redirect, $delay)
The language class - support multilingual backend.
This class serves methods to create backup from files.