fetch('siteuniqueid'); if(empty($siteuniqueid) || strlen($siteuniqueid) < 16) { $chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz'; $siteuniqueid = 'DX'.$chars[date('y')%60].$chars[date('n')].$chars[date('j')].$chars[date('G')].$chars[date('i')].$chars[date('s')].substr(md5($_G['clientip'].$_G['username'].TIMESTAMP), 0, 4).random(4); C::t('common_setting')->update('siteuniqueid', $siteuniqueid); require_once libfile('function/cache'); updatecache('setting'); } if(submitcheck('notesubmit', 1)) { if(!empty($_GET['noteid']) && is_numeric($_GET['noteid'])) { C::t('common_adminnote')->delete($_GET['noteid'], ($isfounder ? '' : $_G['username'])); } if(!empty($_GET['newmessage'])) { $newaccess = 0; $_GET['newexpiration'] = TIMESTAMP + (intval($_GET['newexpiration']) > 0 ? intval($_GET['newexpiration']) : 30) * 86400; $_GET['newmessage'] = nl2br(dhtmlspecialchars($_GET['newmessage'])); $data = array( 'admin' => $_G['username'], 'access' => 0, 'adminid' => $_G['adminid'], 'dateline' => $_G['timestamp'], 'expiration' => $_GET['newexpiration'], 'message' => $_GET['newmessage'], ); C::t('common_adminnote')->insert($data); } } $serverinfo = PHP_OS.' / PHP v'.PHP_VERSION; $serverinfo .= @ini_get('safe_mode') ? ' Safe Mode' : NULL; $serversoft = $_SERVER['SERVER_SOFTWARE']; $dbversion = helper_dbtool::dbversion(); if(@ini_get('file_uploads')) { $fileupload = ini_get('upload_max_filesize'); } else { $fileupload = ''.$lang['no'].''; } $dbsize = helper_dbtool::dbsize(); $dbsize = $dbsize ? sizecount($dbsize) : $lang['unknown']; if(isset($_GET['attachsize'])) { $attachsize = C::t('forum_attachment_n')->get_total_filesize(); $attachsize = is_numeric($attachsize) ? sizecount($attachsize) : $lang['unknown']; } else { $attachsize = '[ '.$lang['detail'].' ]'; } $membersmod = C::t('common_member_validate')->count_by_status(0); $threadsdel = C::t('forum_thread')->count_by_displayorder(-1); $groupmod = C::t('forum_forum')->validate_level_num(); $modcount = array(); foreach(C::t('common_moderate')->count_group_idtype_by_status(0) as $value) { $modcount[$value['idtype']] = $value['count']; } $medalsmod = C::t('forum_medallog')->count_by_type(2); $threadsmod = $modcount['tid']; $postsmod = $modcount['pid']; $blogsmod = $modcount['blogid']; $doingsmod = $modcount['doid']; $picturesmod = $modcount['picid']; $sharesmod = $modcount['sid']; $commentsmod = $modcount['uid_cid'] + $modcount['blogid_cid'] + $modcount['sid_cid'] + $modcount['picid_cid']; $articlesmod = $modcount['aid']; $articlecommentsmod = $modcount['aid_cid']; $topiccommentsmod = $modcount['topicid_cid']; $verify = ''; foreach(C::t('common_member_verify_info')->group_by_verifytype_count() as $value) { if($value['num']) { if($value['verifytype']) { $verifyinfo = !empty($_G['setting']['verify'][$value['verifytype']]) ? $_G['setting']['verify'][$value['verifytype']] : array(); if($verifyinfo['available']) { $verify .= ''.cplang('home_mod_verify_prefix').$verifyinfo['title'].'('.$value['num'].')'; } } else { $verify .= ''.cplang('home_mod_verify_prefix').cplang('members_verify_profile').'('.$value['num'].')'; } } } cpheader(); shownav(); showsubmenu('home_welcome', array(), '', array('bbname' => $_G['setting']['bbname'])); $save_master = C::t('common_setting')->fetch_all(array('mastermobile', 'masterqq', 'masteremail')); $save_mastermobile = $save_master['mastermobile']; $save_mastermobile = !empty($save_mastermobile) ? authcode($save_mastermobile, 'DECODE', $_G['config']['security']['authkey']) : ''; $save_masterqq = $save_master['masterqq'] ? $save_master['masterqq'] : ''; $save_masteremail = $save_master['masteremail'] ? $save_master['masteremail'] : ''; $securityadvise = ''; if($isfounder) { $securityadvise = ''; $securityadvise .= !$_G['config']['admincp']['founder'] ? $lang['home_security_nofounder'] : ''; $securityadvise .= !$_G['config']['admincp']['checkip'] ? $lang['home_security_checkip'] : ''; $securityadvise .= $_G['config']['admincp']['runquery'] ? $lang['home_security_runquery'] : ''; if(!empty($_GET['securyservice'])) { $_GET['new_mastermobile'] = trim($_GET['new_mastermobile']); $_GET['new_masterqq'] = trim($_GET['new_masterqq']); $_GET['new_masteremail'] = trim($_GET['new_masteremail']); if(empty($_GET['new_mastermobile'])) { $save_mastermobile = $_GET['new_mastermobile']; } elseif(strlen($_GET['new_mastermobile']) == 11 && is_numeric($_GET['new_mastermobile']) && in_array(substr($_GET['new_mastermobile'], 0, 2), array('13', '15', '18'))) { $save_mastermobile = $_GET['new_mastermobile']; $_GET['new_mastermobile'] = authcode($_GET['new_mastermobile'], 'ENCODE', $_G['config']['security']['authkey']); } else { $_GET['new_mastermobile'] = $save_master['mastermobile']; } if(empty($_GET['new_masterqq']) || is_numeric($_GET['new_masterqq'])) { $save_masterqq = $_GET['new_masterqq']; } else { $_GET['new_masterqq'] = $save_masterqq; } if(empty($_GET['new_masteremail']) || (strlen($_GET['new_masteremail']) > 6 && preg_match("/^[\w\-\.]+@[\w\-\.]+(\.\w+)+$/", $_GET['new_masteremail']))) { $save_masteremail = $_GET['new_masteremail']; } else { $_GET['new_masteremail'] = $save_masteremail; } C::t('common_setting')->update_batch(array('mastermobile' => $_GET['new_mastermobile'], 'masterqq' => $_GET['new_masterqq'], 'masteremail' => $_GET['new_masteremail'])); } $view_mastermobile = !empty($save_mastermobile) ? substr($save_mastermobile, 0 , 3).'*****'.substr($save_mastermobile, -3) : ''; } if($securityadvise) { showtableheader('home_security_tips', '', '', 0); showtablerow('', 'class="tipsblock"', '
'. ($membersmod ? ''.cplang('home_mod_members').'('.$membersmod.')' : ''). ($threadsmod ? ''.cplang('home_mod_threads').'('.$threadsmod.')' : ''). ($postsmod ? ''.cplang('home_mod_posts').'('.$postsmod.')' : ''). ($medalsmod ? ''.cplang('home_mod_medals').'('.$medalsmod.')' : ''). ($groupmod ? ''.cplang('group_mod_wait').'('.$groupmod.')' : ''). ($blogsmod ? ''.cplang('home_mod_blogs').'('.$blogsmod.')' : ''). ($picturesmod ? ''.cplang('home_mod_pictures').'('.$picturesmod.')' : ''). ($doingsmod ? ''.cplang('home_mod_doings').'('.$doingsmod.')' : ''). ($sharesmod ? ''.cplang('home_mod_shares').'('.$sharesmod.')' : ''). ($commentsmod ? ''.cplang('home_mod_comments').'('.$commentsmod.')' : ''). ($articlesmod ? ''.cplang('home_mod_articles').'('.$articlesmod.')' : ''). ($articlecommentsmod ? ''.cplang('home_mod_articlecomments').'('.$articlecommentsmod.')' : ''). ($topiccommentsmod ? ''.cplang('home_mod_topiccomments').'('.$topiccommentsmod.')' : ''). ($threadsdel ? ''.cplang('home_del_threads').'('.$threadsdel.')' : ''). $verify. '
' ); } showtablefooter(); if(isfounder()) { $filecheck = C::t('common_cache')->fetch('checktools_filecheck_result'); if($filecheck) { list($modifiedfiles, $deletedfiles, $unknownfiles, $doubt) = unserialize($filecheck['cachevalue']); $filecheckresult = "$lang[filecheck_modify]: $modifiedfiles ". "$lang[filecheck_delete]: $deletedfiles ". "$lang[filecheck_unknown]: $unknownfiles ". "$lang[filecheck_doubt]: $doubt ". $lang['filecheck_last_homecheck'].': '.dgmdate($filecheck['dateline'], 'u').' ['.$lang['filecheck_view_list'].']'; } else { $filecheckresult = ''; } showtableheader($lang['nav_filecheck'].' ['.$lang['filecheck_check_now'].']', 'nobottom fixpadding'); echo '