check_upgrade(); dsetcookie('checkupgrade', 1, 60*60*24); } exit; }elseif($_GET['action'] == 'checkappupgrade') { header('Content-Type: text/javascript'); if($_G['uid'] && $_G['member']['adminid'] == 1) { $dzz_upgrade_app = new dzz_upgrade_app(); $dzz_upgrade_app->check_upgrade(); dsetcookie('checkappupgrade', 1, 3600); } exit; } elseif($_GET['action'] == 'upgradenotice') { $html=''; $list = array(); if($_G['member']['adminid'] == 1) { $notelist=''; $dbversion = helper_dbtool::dbversion(); //系统升级信息 foreach($_G['setting']['upgrade'] as $type => $upgrade) { if(version_compare($upgrade['phpversion'], PHP_VERSION) > 0 || version_compare($upgrade['mysqlversion'], $dbversion) > 0) { $list[$type]['note']= lang('require_allocation_attain').' php v'.PHP_VERSION.'MYSQL v'.$dbversion; } $list[$type]['icon']='dzz/images/default/notice_system.png'; $list[$type]['official']='admin.php?mod=system&op=systemupgrade'; $list[$type]['title']='DzzOffice '.$upgrade['latestversion'].''; $list[$type]['appurl']= 'admin.php?mod=system&op=systemupgrade'; //&operation='.$type.'&version='.$upgrade['latestversion'].'&locale='.$locale.'&charset='.$charset.'&release='.$upgrade['latestrelease']; } //查询所有待更新的应用 $app_need_upgrade_list = DB::fetch_all("SELECT * FROM " . DB::table('app_market') . " WHERE 1 and upgrade_version!='' and available>0 "); foreach($app_need_upgrade_list as $type => $upgrade) { $upgrade['upgrade_version']=unserialize($upgrade['upgrade_version']); $list[$type]['icon']=$_G['setting']['attachurl'].$upgrade['appico']; $list[$type]['official']='admin.php?mod=appmarket&op=appupgrade'; $list[$type]['title']=$upgrade['appname'].' '.$upgrade['upgrade_version']['version'].''; $list[$type]['appurl']= replace_canshu($upgrade['appurl']); } if($list){ $html='
';
if($value['note']){
$html.= ' '.$value['note'].' ';
}
$html.= ' |