fetch_all_data(); $addonids = $vers = array(); foreach($pluginarray as $row) { if(ispluginkey($row['identifier'])) { $addonids[] = $row['identifier'].'.plugin'; $vers[$row['identifier'].'.plugin'] = $row['version']; } } $checkresult = dunserialize(cloudaddons_upgradecheck($addonids)); savecache('addoncheck_plugin', $checkresult); $newversion = 0; foreach($checkresult as $addonid => $value) { list(, $newver, $sysver) = explode(':', $value); if($sysver && $sysver > $vers[$addonid] || $newver) { $newversion++; } } include template('common/header_ajax'); if($newversion) { $lang = lang('forum/misc'); echo '
'.$lang['patch_close'].''; echo '

'.$lang['plugin_title'].'

'; echo '
'.lang('forum/misc', 'plugin_memo', array('number' => $newversion)).'
'; echo ''; echo '
'; } include template('common/footer_ajax'); exit; } elseif($_GET['action'] == 'ipnotice') { require_once libfile('function/misc'); include template('common/header_ajax'); if($_G['cookie']['lip'] && $_G['cookie']['lip'] != ',' && $_G['uid'] && $_G['setting']['disableipnotice'] != 1) { $status = C::t('common_member_status')->fetch($_G['uid']); $lip = explode(',', $_G['cookie']['lip']); $lastipConvert = convertip($lip[0]); $lastipDate = dgmdate($lip[1]); $nowipConvert = convertip($status['lastip']); $lastipConvert = process_ipnotice($lastipConvert); $nowipConvert = process_ipnotice($nowipConvert); if($lastipConvert != $nowipConvert && stripos($lastipConvert, $nowipConvert) == false && stripos($nowipConvert, $lastipConvert) == false) { $lang = lang('forum/misc'); include template('common/ipnotice'); } } include template('common/footer_ajax'); exit; } ?>