1); $statsnav = array(); $statsnav[0] = array('cloud_stats_summary', 'cloud&operation=stats&anchor=summary', $current['summary']); $statsnav[1] = array('cloud_stats_setting', 'cloud&operation=stats&anchor=base', $current['base']); if(!$_G['inajax']) { cpheader(); } if($_GET['anchor'] == 'base') { if(!submitcheck('settingsubmit')) { shownav('navcloud', 'cloud_stats'); showsubmenu('cloud_stats', $statsnav); showtips('cloud_stats_tips'); showformheader('cloud&edit=yes'); showhiddenfields(array('operation' => $operation)); showtableheader(); $myicon = C::t('common_setting')->fetch('cloud_staticon'); if ($myicon === false || in_array($myicon, array(5, 6, 7, 8))) { $myicon = 1; } $checkicon[$myicon] = ' checked'; $icons = ''; } } $icons .= '
'; for($i=1;$i<=11;$i++) { if ($i < 5) { $icons .= '  '; if ($i % 4 == 0) { $icons .= '
'; } } elseif ($i < 9) { continue; } elseif ($i < 11) { $icons .= '  '; } else { $icons .= '
'; showsetting('cloud_stats_icon_set', '', '', $icons); showsubmit('settingsubmit', 'submit'); showtablefooter(); showformfooter(); } else { $settingnew = $_GET['settingnew']; $settingnew['cloud_staticon'] = intval($settingnew['cloud_staticon']); C::t('common_setting')->update('cloud_staticon', $settingnew['cloud_staticon']); updatecache('setting'); cpmsg('setting_update_succeed', 'action=cloud&operation='.$operation.(!empty($_GET['anchor']) ? '&anchor='.$_GET['anchor'] : ''), 'succeed'); } } elseif($_GET['anchor'] == 'summary') { shownav('navcloud', 'cloud_stats'); showsubmenu('cloud_stats', $statsnav); $statsDomain = 'http://ta.qq.com'; $utilService = Cloud::loadClass('Service_Util'); $signUrl = $utilService->generateSiteSignUrl(array('v' => 2)); $utilService->redirect($statsDomain . '/statsSummary/?' . $signUrl); }