This commit is contained in:
Abdulrahman
2019-05-26 21:31:18 +03:00
parent c09e812534
commit 96f00b9e0d
7 changed files with 15 additions and 7 deletions

View File

@@ -232,6 +232,8 @@ function get_kleeja_link(link) {
}
</script>
<IF ISSET="extra_admin_footer_code">
{extra_admin_footer_code}
</IF>
</body>
</html>

View File

@@ -43,7 +43,9 @@
var STYLE_PATH_ADMIN = '{STYLE_PATH_ADMIN}';
var go_to = '{go_to}';
</script>
<IF ISSET="extra_admin_header_code">
{extra_admin_header_code}
</IF>
</head>
<body class="fixed-nav sticky-footer bg-{admin_theme_color}" id="page-top">
@@ -75,7 +77,7 @@
<LOOP NAME="adm_extensions_menu">
<li class="nav-item ({{current}}?activex:)" id="menu_item{{i}}" data-toggle="tooltip" data-placement="right" title="{{title}}">
<a class="first-level nav-link<IF LOOP="current"><IF NAME="go_menu_html"> nav-link-collapse</IF></IF>" title="{{title}}" href="{{link}}"<IF LOOP="confirm"> onclick="return confirm_form();"</IF>>
<a class="first-level nav-link<IF LOOP="current"><IF ISSET="go_menu_html"> nav-link-collapse</IF></IF>" title="{{title}}" href="{{link}}"<IF LOOP="confirm"> onclick="return confirm_form();"</IF>>
<i class="fa fa-fw fa-{{icon}}"></i> {{title}} {{bubble}}
</a>
<IF ISSET="go_menu_html">

View File

@@ -254,7 +254,7 @@
</IF>
<IF NAME="GE_INFO">
<IF ISSET="GE_INFO">
<script type="text/javascript">
setTimeout(function() {
$('.infoexts').fadeOut('fast');

View File

@@ -818,7 +818,7 @@ case 'group_data':
$gdata = $d_groups[$req_group]['data'];
$query = [
'SELECT' => 'c.name, c.option',
'SELECT' => 'c.name, c.option, c.value',
'FROM' => "{$dbprefix}config c",
'WHERE' => "c.type='groups'",
'ORDER BY' => 'c.display_order ASC'
@@ -852,6 +852,8 @@ case 'group_data':
if ($row['name'] == 'language')
{
$lngfiles = '';
//get languages
if ($dh = @opendir(PATH . 'lang'))
{

View File

@@ -40,6 +40,9 @@ if ($case && in_array($case, ['clearc', 'sync_files', 'sync_images', 'sync_users
}
}
$text = '';
switch ($case):
default:
@@ -73,7 +76,6 @@ case 'tables':
$query = 'SHOW TABLE STATUS';
$result = $SQL->query($query);
$text = '';
while ($row=$SQL->fetch_array($result))
{

View File

@@ -1156,7 +1156,7 @@ function klj_clean_old($table, $for = 'all')
$query = [
'SELECT' => 'f.id, f.time',
'DELETE' => "`{$dbprefix}" . $table . '` f',
'FROM' => "`{$dbprefix}" . $table . '` f',
'ORDER BY' => 'f.id ASC',
'LIMIT' => '30',
];

View File

@@ -98,7 +98,7 @@ class KleejaDatabase
//loggin -> close connection
kleeja_log('[Closing connection] : ' . kleeja_get_page());
if(! $this->connect_id)
if(! is_resource($this->connect_id))
{
return true;
}
@@ -225,7 +225,7 @@ class KleejaDatabase
{
$sql = '';
if (isset($query['SELECT']))
if (isset($query['SELECT']) && isset($query['FROM']))
{
$sql = 'SELECT ' . $query['SELECT'] . ' FROM ' . $query['FROM'];