本帖最后由 ljbetter 于 2009-12-31 00:17 编辑
我用的是UC1.5+SS7.5+DZ7.2+UCH2.0的组合
全部数据备份恢复正常,但SS搬家后,访问首页头部多出来一长串代码,然后才是LOGO和内容等,但内容页没有此问题。
多出来的代码:- { global $_SGLOBAL; if(!@include_once(S_ROOT.'./data/system/group.cache.php')) { include_once(S_ROOT.'./function/cache.func.php'); updategroupcache(); } $needfind = false; if($gid && !empty($_SGLOBAL['grouparr'][$gid])) { $group = $_SGLOBAL['grouparr'][$gid]; if($gid == 2) { $needfind = true; } elseif($group['system'] == 0) { if($group['exphigher']<$experience || $group['explower']>$experience) { $needfind = true; } } } else { $needfind = true; } if($needfind) { $query = $_SGLOBAL['db']->query("SELECT groupid FROM ".tname('usergroups')." WHERE explower<='$experience' AND system='0' ORDER BY explower DESC LIMIT 1"); $gid = $_SGLOBAL['db']->result($query, 0); } return $gid; } //检查是否操作创始人 function ckfounder($uid) { global $_SC; $founders = empty($_SC['founder'])?array():explode(',', $_SC['founder']); return in_array($uid, $founders); } function forumselect() { global $_SGLOBAL, $selectfid; if(empty($_SGLOBAL['bbsforumarr'])) { return ; } $forumlist = ''; foreach($_SGLOBAL['bbsforumarr'] as $forum) { if($forum['type'] == 'group') { $forumlist .= ''; $visible[$forum['fid']] = true; } elseif($forum['type'] == 'forum' && isset($visible[$forum['fup']])) { $forumlist .= ' > '.$forum['name'].''; $visible[$forum['fid']] = true; } elseif($forum['type'] == 'sub' && isset($visible[$forum['fup']])) { $forumlist .= ' > '.$forum['name'].''; } } $forumlist .= ''; $forumlist = str_replace('', '', $forumlist); return $forumlist; } function getuids($itemids=array(), $table='spaceitems', $field='uid', $itemfield='itemid') { global $_SGLOBAL; $uids = array(); if(!empty($itemids)) { $itemsqlstr = simplode($itemids); $query = $_SGLOBAL['db']->query('SELECT '.$field.' FROM '.tname($table).' WHERE '.$itemfield.' IN ('.$itemsqlstr.')'); while($value = $_SGLOBAL['db']->fetch_array($query)) { $uids[] = $value[$field]; } } return $uids; } function formatcomment($comment, $repeatids = array(), $style=0) { global $_SCONFIG, $lang; include_once(S_ROOT.'./function/misc.func.php'); $searcharr = $replacearr = array(); $comment['message'] = snl2br($comment['message']); if(empty($comment['author'])) $comment['author'] = 'Guest'; $comment['hideauthor'] = (!empty($comment['hideauthor']) && !empty($_SCONFIG['commanonymous'])) ? 1 : 0; $comment['hideip'] = (!empty($comment['hideip']) && !empty($_SCONFIG['commhideip'])) ? 1 : 0; $comment['hidelocation'] = (!empty($comment['hidelocation']) && !empty($_SCONFIG['commhidelocation'])) ? 1 : 0; $comment['iplocation'] = str_replace(array('-', ' '), '', convertip($comment['ip'])); $comment['ip'] = preg_replace("/^(\d{1,3})\.(\d{1,3})\.\d{1,3}\.\d{1,3}$/", "\$1.\$2.*.*", $comment['ip']); $_SCONFIG['commfloornum'] = intval($_SCONFIG['commfloornum']); $comment['floornum'] = intval($comment['floornum']); if(!$style) { if(!empty($_SCONFIG['commfloornum'])) { //削楼功能 if($_SCONFIG['commfloornum'] < $comment['floornum']) { $cutfloor = $comment['floornum'] - $_SCONFIG['commfloornum']; $searchstr = "/\
- 49) { $elevatordetail = <<
- $lang[comment_elevator]$lang[comment_floor_hide]
- [{$lang['comment_floor_up']}] [{$lang['comment_floor_down']}] $lang[comment_floor_total]{$comment['floornum']}$lang[comment_floor_total_2]
-
- EOF; $searcharr[] = '
- $lang[comment_floor_repeat] [{$lang['comment_floor_view_repeat']}]
- "; $searcharr[] = 'class="old"'; $searcharr[] = 'class="old_title"'; $searcharr[] = 'class="detail"'; $searcharr[] = 'class="floor_op"'; $searcharr[] = '_1" class="hideold"'; $searcharr[] = '_tip" class="hideold"'; $searcharr[] = '_1_title" class="hideelement"'; $searcharr[] = '_1_detail" class="hideelement"'; $searcharr[] = '
- ".$comment['message']; } $comment['message'] = str_replace($searcharr, $replacearr, $comment['message']); } else { preg_match_all ("/\
- (.+)?\<\/div\>/is", $comment['message'], $currentmessage, PREG_SET_ORDER); if(!empty($currentmessage)) $comment['message'] = $currentmessage[0][0]; $comment['message'] = preg_replace("/\
- \\<\/div\>/is", '',$comment['message']); } return $comment; } ?>
复制代码 老大快帮忙啊,谢谢 |