This commit is contained in:
Abdulrahman
2018-01-09 16:21:15 +03:00
parent 759e748c1e
commit 827f9516b4
7 changed files with 32 additions and 30 deletions

2
.gitignore vendored
View File

@@ -4,11 +4,13 @@ plugins/*.php
config.php
uploads/*
!uploads/index.html
!uploads/.htaccess
!uploads/php.ini
!uploads/thumbs
uploads/thumbs/*
!uploads/thumbs/index.html
!uploads/thumbs/php.ini
!uploads/thumbs/.htaccess
.DS_Store
*/.DS_Store
*/*/.DS_Store

View File

@@ -23,7 +23,9 @@ if($current_smt == 'general'):
//get data from kleeja database
$b_url = empty($_SERVER['SERVER_NAME']) ? $config['siteurl'] : $_SERVER['SERVER_NAME'];
$b_data = fetch_remote_file('http://www.kleeja.com/check_vers/?i=' . urlencode($b_url) . '&v=' . KLEEJA_VERSION, false, 6);
$b_data = fetch_remote_file('https://raw.githubusercontent.com/awssat/kleeja/master/includes/version.php', false, 6);
if ($b_data === false && !ig('show_msg'))
{
@@ -32,12 +34,20 @@ if ($b_data === false && !ig('show_msg'))
}
else
{
//
// there is a file that we brought it !
//
$b_data = @explode('|', $b_data);
preg_match_all('/define\(\'KLEEJA_VERSION\',\s{1,4}\'([^\']+)\'\);/', $b_data, $matches, PREG_SET_ORDER, 0);
$version_data = trim(htmlspecialchars($b_data[0]));
if (empty($matches[0][1]))
{
$text = $lang['ERROR_CHECK_VER'];
$error = true;
}
}
if(!$error)
{
$version_data = trim(htmlspecialchars($matches[1]));
if (version_compare(strtolower(KLEEJA_VERSION), strtolower($version_data), '<'))
{
@@ -77,8 +87,7 @@ else
$data = array(
'version_number' => $version_data,
'last_check' => time(),
'msg_appeared' => ig('show_msg') ? true : false,
'copyrights' => !empty($b_data[1]) && strpos($b_data[1], 'yes') !== false ? true : false,
'msg_appeared' => ig('show_msg') ? true : false
);
$data = serialize($data);

View File

@@ -308,11 +308,7 @@ class kleeja_style
global $config;
$this->vars = &$GLOBALS;
$k = '<div sty' . 'le="font-size:12px;di' . 'spl' . 'ay:bl' . 'oc' . 'k !im' . 'po' . 'rt' . 'ant;' . 'backgrou' . 'nd:#ECE' . 'CE' . 'C !im' . 'po' . 'rt' .
'ant;margin:5p' . 'x; padding:2px 3px; position:fi' . 'xed;bottom' . ':0;left:1%' . ';z-index:9' . '9999;text' . '-align:center;">P' .
'owe' . 'red b' . 'y <a style="di' . 'spl' . 'ay:in' . 'li' . 'ne !im' . 'po' . 'rt' . 'ant;' . 'color:#6' .
'66 !im' . 'po' . 'rt' . 'ant;" href="ht' . 'tps:' . '/' . '/ww' . 'w.' . 'kl' . 'ee' . 'ja' . '.c' . 'om/" onclic' . 'k="windo' . 'w.op' . 'en(this.h' .
'ref,' . '\'_b' . 'lank\');retur' . 'n false;" title' . '="K' . 'lee' . 'ja">K' . 'lee' . 'ja</a></div>' . "\n";
//is there ?
if (!file_exists(PATH . 'cache/tpl_' . $this->re_name_tpl($template_name, $style_path) . '.php') || !$this->caching)
{
@@ -324,21 +320,6 @@ class kleeja_style
$page = ob_get_contents();
ob_end_clean();
if ($template_name == strip_tags('<!--it-->he<!--Is-->ad<!--Queen-->er'))
{
$v = @unserialize($config['new_version']);
if ((int)$v[strip_tags('co<!--it-->py<!--made-->ri<!--for-->gh<!--you-->ts<!--yub-->')] == /*kleeja is sweety*/
0/*SO, be sweety*/)
{
$t = strip_tags('<!--y-->b<!--o-->o<!--n-->d<!--b-->y');
$page = preg_replace('/<' . $t . '[^>]*>/', '<' . $t . ">\n" . $k, $page, -1, $c);
if (!$c)
{
$page .= $k;
}
}
}
return $page;
}

View File

@@ -16,7 +16,7 @@ if (!defined('IN_COMMON'))
define('KLEEJA_VERSION', '2.2');
define('KLEEJA_VERSION', '2.3');
define('KLEEJA_DB_VERSION', '9');

View File

@@ -15,6 +15,10 @@
</div>
<div style="font-size:12px;display:block !important;background:#ECECEC !important;margin:5px; padding:2px 3px; position:fixed;bottom:0;left:1%;z-index:99999;text-align:center;">
Powered by <a style="display:inline !important;color:#666 !important;" href="https://www.kleeja.com/" onclick="window.open(this.href,'_blank');return false;" title ="Kleeja">Kleeja</a>
</div>
<IF NAME="page_stats">
<!-- footer stats -->
<div class="text-muted">

View File

@@ -36,6 +36,12 @@
</div>
<!-- @end-footer -->
<div style="font-size:12px;display:block !important;background:#ECECEC !important;margin:5px; padding:2px 3px; position:fixed;bottom:0;left:1%;z-index:99999;text-align:center;">
Powered by
<a style="display:inline !important;color:#666 !important;" href="https://www.kleeja.com/" onclick="window.open(this.href,'_blank');return false;"
title="Kleeja">Kleeja</a>
</div>
<script type="text/javascript" src="{STYLE_PATH}jquery.js"></script>
<!-- don't ever delete this -->

View File

@@ -82,4 +82,4 @@
</ul>
</div>
<div class="dot clr"></div>
</div><!-- @end-menu-right -->
</div><!-- @end-menu-right -->