Пример #1
0
 public function check()
 {
     $discuz_upgrade = new discuz_upgrade();
     if ($discuz_upgrade->check_upgrade()) {
         $return = array('status' => 1, 'type' => 'header', 'lang' => lang('optimizer', 'optimizer_upgrade_need_optimizer'));
     } else {
         $return = array('status' => 0, 'type' => 'none', 'lang' => lang('optimizer', 'optimizer_upgrade_no_need'));
     }
     return $return;
 }
Пример #2
0
	if($_G['setting']['showpatchnotice'] == 1) {
		$notice = $discuz_patch->fetch_patch_notice();
		if($notice['data']) {
			$shownotice = '<div class="notice"><a href="'.$basescript.'?action=patch" id="notice">'.($notice['fixed'] ? $lang['patch_fix_complete'] : $lang['patch_fix_rigth_now']).'</a></div>';
		}
	}
	if(!isset($_G['cookie']['checkpatch'])) {
		$discuz_patch->check_patch();
	}
}
if($_G['uid'] && $_G['member']['allowadmincp'] == 1 && !$shownotice && $_G['setting']['upgrade']) {
	$shownotice = '<div class="notice"><a href="'.$basescript.'?action=upgrade" id="notice">'.$lang['upgrade_right_now'].'</a></div>';
}
if($_G['uid'] && $_G['member']['allowadmincp'] == 1 && !isset($_G['cookie']['checkupgrade'])) {
	$discuz_upgrade = new discuz_upgrade();
	if($discuz_upgrade->check_upgrade()) {
		if(empty($shownotice)) {
			$shownotice = '<div class="notice"><a href="'.$basescript.'?action=upgrade" id="notice">'.$lang['upgrade_right_now'].'</a></div>';
		}
	}
	dsetcookie('checkupgrade', 1, 7200);
}

/*vot*/	$rtl_suffix = RTLSUFFIX;
echo <<<EOT
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml" dir="{$_G[langdir]}"><head>
<meta http-equiv="Content-Type" content="text/html; charset=$charset">
<title>$title</title>
<meta content="Comsenz Inc." name="Copyright" />
<link rel="stylesheet" href="static/image/admincp/admincp{$rtl_suffix}.css?{$_G[style][verhash]}" type="text/css" media="all" />