mirror of
https://github.com/e107inc/e107.git
synced 2025-08-19 04:41:53 +02:00
Issue #2818 Moved core database update check to ajax.
This commit is contained in:
@@ -35,6 +35,24 @@ if(ADMIN && defset('e_ADMIN_UI') && varset($_POST['mode']) == 'sef' && !empty($_
|
||||
exit;
|
||||
}
|
||||
|
||||
if(ADMIN && e_AJAX_REQUEST && varset($_GET['mode']) == 'core' && ($_GET['type'] == 'update'))
|
||||
{
|
||||
|
||||
require_once(e_ADMIN.'update_routines.php');
|
||||
|
||||
e107::getSession()->set('core-update-checked',false);
|
||||
|
||||
$status = (update_check() === true) ? true : false;
|
||||
|
||||
e107::getSession()->set('core-update-status',$status);
|
||||
|
||||
echo json_encode($status);
|
||||
|
||||
exit;
|
||||
|
||||
}
|
||||
|
||||
|
||||
if(ADMIN && e_AJAX_REQUEST && varset($_GET['mode']) == 'core' && ($_GET['type'] == 'feed'))
|
||||
{
|
||||
|
||||
|
Reference in New Issue
Block a user