mirror of
https://github.com/kleeja-official/kleeja.git
synced 2025-12-16 04:59:42 +01:00
fixes
This commit is contained in:
@@ -125,9 +125,8 @@ $(function () {
|
|||||||
});
|
});
|
||||||
|
|
||||||
function check_msg_and_reports(){
|
function check_msg_and_reports(){
|
||||||
$.ajax({
|
$.ajax({url: './?check_msgs=1', cache: false})
|
||||||
url: './?check_msgs=1',
|
.done(function (data) {
|
||||||
success: function (data) {
|
|
||||||
if (data.indexOf("::") !== -1) {
|
if (data.indexOf("::") !== -1) {
|
||||||
var nums = data.split("::");
|
var nums = data.split("::");
|
||||||
if (nums[0] !== 0) {
|
if (nums[0] !== 0) {
|
||||||
@@ -138,8 +137,15 @@ function check_msg_and_reports(){
|
|||||||
$('.bubble_reports').html(nums[1]).css('display', 'inline');
|
$('.bubble_reports').html(nums[1]).css('display', 'inline');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
})
|
||||||
});
|
.fail(function(hxr, status, error) {
|
||||||
|
if(confirm('{lang.SESSION_ENDED}')) {
|
||||||
|
location.reload();
|
||||||
|
} else {
|
||||||
|
location.href = '{config.siteurl}';
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
setTimeout(check_msg_and_reports, 240000);
|
setTimeout(check_msg_and_reports, 240000);
|
||||||
}
|
}
|
||||||
@@ -223,5 +229,7 @@ function get_kleeja_link(link) {
|
|||||||
location.href = link;
|
location.href = link;
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
{extra_admin_footer_code}
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -40,12 +40,10 @@
|
|||||||
|
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
<!--//
|
|
||||||
var STYLE_PATH_ADMIN = '{STYLE_PATH_ADMIN}';
|
var STYLE_PATH_ADMIN = '{STYLE_PATH_ADMIN}';
|
||||||
var go_to = '{go_to}';
|
var go_to = '{go_to}';
|
||||||
//-->
|
|
||||||
</script>
|
</script>
|
||||||
|
{extra_admin_header_code}
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body class="fixed-nav sticky-footer bg-{admin_theme_color}" id="page-top">
|
<body class="fixed-nav sticky-footer bg-{admin_theme_color}" id="page-top">
|
||||||
|
|||||||
@@ -416,8 +416,8 @@
|
|||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: "https://api.github.com/repos/awssat/kleeja/contributors",
|
url: "https://api.github.com/repos/awssat/kleeja/contributors",
|
||||||
dataType: 'json',
|
dataType: 'json'})
|
||||||
success: function (data) {
|
.done(function (data) {
|
||||||
var template = $('#ghTemplate')[0].outerHTML;
|
var template = $('#ghTemplate')[0].outerHTML;
|
||||||
$.each(data, function (i, item) {
|
$.each(data, function (i, item) {
|
||||||
$("#gtresults").append(template.replace('%id%', item['id']).replace('%login%', item['login']).replace(
|
$("#gtresults").append(template.replace('%id%', item['id']).replace('%login%', item['login']).replace(
|
||||||
@@ -426,8 +426,7 @@
|
|||||||
'contributions']).replace('%htmlUrl%', item['html_url']));
|
'contributions']).replace('%htmlUrl%', item['html_url']));
|
||||||
$('#gt' + item['id']).removeAttr('style');
|
$('#gt' + item['id']).removeAttr('style');
|
||||||
});
|
});
|
||||||
}
|
});
|
||||||
});
|
|
||||||
}, 400);
|
}, 400);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -130,8 +130,16 @@ if(
|
|||||||
|
|
||||||
|
|
||||||
//prevent indexing this page by bots
|
//prevent indexing this page by bots
|
||||||
header('HTTP/1.1 503 Service Temporarily Unavailable');
|
header('HTTP/1.0 401 Unauthorized');
|
||||||
echo $tpl->display("admin_login");
|
if (ig('_ajax_') || ig('check_msgs'))
|
||||||
|
{
|
||||||
|
echo_ajax(401, 'Unauthorized');
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
echo $tpl->display('admin_login');
|
||||||
|
}
|
||||||
|
|
||||||
$SQL->close();
|
$SQL->close();
|
||||||
exit;
|
exit;
|
||||||
}#end login
|
}#end login
|
||||||
@@ -419,6 +427,8 @@ if(isset($go_menu))
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//add extra html to header or footer
|
||||||
|
$extra_admin_header_code = $extra_admin_footer_code = '';
|
||||||
|
|
||||||
is_array($plugin_run_result = Plugins::getInstance()->run('end_admin_page', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
|
is_array($plugin_run_result = Plugins::getInstance()->run('end_admin_page', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
|
||||||
|
|
||||||
|
|||||||
@@ -261,5 +261,6 @@ return array(
|
|||||||
'UPLOAD_LOCAL_PC' => 'رفع من جهازك',
|
'UPLOAD_LOCAL_PC' => 'رفع من جهازك',
|
||||||
'NO_ZIP_ARCHIVE' => 'يبدو أن ZipArchive ليس متوفراً علي خادمك، قم بتثبيته فهو من المتطلبات.',
|
'NO_ZIP_ARCHIVE' => 'يبدو أن ZipArchive ليس متوفراً علي خادمك، قم بتثبيته فهو من المتطلبات.',
|
||||||
'EXTRACT_ZIP_FAILED' => 'صادفتنا مشكلة أثناء فك الأرشيف! تأكد من أنه ملف zip صالح، وأن مجلد "%s" قابل للكتابة.',
|
'EXTRACT_ZIP_FAILED' => 'صادفتنا مشكلة أثناء فك الأرشيف! تأكد من أنه ملف zip صالح، وأن مجلد "%s" قابل للكتابة.',
|
||||||
'NO_PROBLEM_AFTER_ZIP' => 'لقد تم فك الملف بنجاح وهو جاهز للتفعيل.',
|
'NO_PROBLEM_AFTER_ZIP' => 'لقد تم فك الملف بنجاح وهو جاهز للتفعيل.',
|
||||||
|
'SESSION_ENDED' => 'انتهت الجلسة، هل تريد تسجل الدخول من جديد؟',
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -260,4 +260,5 @@ return array(
|
|||||||
'NO_ZIP_ARCHIVE' => 'ZipArchive is not installed on your server, it\'s required.',
|
'NO_ZIP_ARCHIVE' => 'ZipArchive is not installed on your server, it\'s required.',
|
||||||
'EXTRACT_ZIP_FAILED' => 'We encounter a problem while extracting this archive file, make sure it\'s a valid zip file, and that "%s" folder is writable',
|
'EXTRACT_ZIP_FAILED' => 'We encounter a problem while extracting this archive file, make sure it\'s a valid zip file, and that "%s" folder is writable',
|
||||||
'NO_PROBLEM_AFTER_ZIP' => 'The file has been extracted successfully and it\'s ready to be enabled',
|
'NO_PROBLEM_AFTER_ZIP' => 'The file has been extracted successfully and it\'s ready to be enabled',
|
||||||
|
'SESSION_ENDED' => 'Session has ended, do you want to login again?',
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user