我也是不行也,请帮帮忙
Parse error: parse error, unexpected T_ELSEIF in /bbs/topicadmin.php on line 175
是这行 elseif($action == 'xm_highlight' && $allowhighlight) {
我把原本的topicadmin放回去时,显示[对不起,您没有权限使用此项管理功能。]
修改过的是
- $digest_mark > 0 ? '+' : '')."$digest_mark WHERE uid='$thread[authorid]'");
- }
- }
- }
- modlog();
- showmessage('admin_succeed', "forumdisplay.php?fid=$fid&page=$page");
- }else{
- showmessage('admin_nopermission', NULL, 'HALTED');
- }
- }
- //=====八种自定义参数标题醒目+任意颜色高亮==start==By www.5466.ik8.com==============
- elseif($action == 'xm_highlight' && $allowhighlight) {
- if(!submitcheck('xm_highlightsubmit')) {
- $xm_hl_string=explode(',',$thread['xm_hl']);
- for($i = 1; $i <=10; $i++) {
- $xu_check[$i] =$i==$xm_hl_string[0] ? 'checked' : NULL;
- }
- if($xm_hl_string[0]){
- switch($xm_hl_string[0]){
- case 1: $xm_id_11=$xm_hl_string[1];$xm_id_12=$xm_hl_string[2];$xm_id_13=$xm_hl_string[3];$xm_id_14=$xm_hl_string[4];
- break;
- case 2:
- $xm_id_21=$xm_hl_string[1];$xm_id_22=$xm_hl_string[2];$xm_id_23=$xm_hl_string[3];$xm_id_24=$xm_hl_string[4];
- break;
- case 3:
- $xm_id_31=$xm_hl_string[1];$xm_id_32=$xm_hl_string[2];$xm_id_33=$xm_hl_string[3];$xm_id_34=$xm_hl_string[4];
- break;
- case 4:
- $xm_id_41=$xm_hl_string[1];$xm_id_42=$xm_hl_string[2];$xm_id_43=$xm_hl_string[3];$xm_id_44=$xm_hl_string[4];
- break;
- case 5:
- $xm_id_51=$xm_hl_string[1];$xm_id_52=$xm_hl_string[2];
- break;
- case 6:
- $xm_id_61=$xm_hl_string[1];$xm_id_62=$xm_hl_string[2];$xm_id_63=$xm_hl_string[3];
- break;
- case 7:
- $xm_id_71=$xm_hl_string[1];$xm_id_72=$xm_hl_string[2];$xm_id_73=$xm_hl_string[3];
- break;
- case 8:
- $xm_id_81=$xm_hl_string[1];$xm_id_82=$xm_hl_string[2];$xm_id_83=$xm_hl_string[3];
- break;
- case 9:
- $xm_id_91=$xm_hl_string[1];$xm_id_92=$xm_hl_string[2];
- break;
- default: break;
- }
- }
- include template('topicadmin_xm_highlight');
- } else {
- $xm_hl_str = '';
- if($xm_hl_id==1){$xm_hl_str=$xm_hl_id.','.$font_color.','.$font_size.','.$font_style.','.$font_underline;
- }
- else if($xm_hl_id==2){$xm_hl_str=$xm_hl_id.','.$text_color1.','.$text_color2.','.$speed_1.','.$pause_1;
- }
- else if($xm_hl_id==3){ $xm_hl_str=$xm_hl_id.','.$textoffset1.','.$textoffset2.','.$speed_2.','.$pause_2;
- }
- else if($xm_hl_id==4){ $xm_hl_str=$xm_hl_id.','.$textcolor.','.$textsize1.','.$speed_3.','.$pause_3;
- }
- else if($xm_hl_id==5){ $xm_hl_str=$xm_hl_id.','.$sider_color.','.$text_color;
- }
- else if($xm_hl_id==6){ $xm_hl_str=$xm_hl_id.','.$start_color.','.$start_n.','.$end_color;
- }
- else if($xm_hl_id==7){ $xm_hl_str=$xm_hl_id.','.$glow_color1.','.$glow_pow.','.$glow_color2;
- }
- else if($xm_hl_id==8){ $xm_hl_str=$xm_hl_id.','.$shadow_color1.','.$shadow_view.','.$shadow_color2;
- }
- else if($xm_hl_id==9){ $xm_hl_str=$xm_hl_id.','.$bg_color.','.$face_color;
- }
- else if($xm_hl_id==10){ $xm_hl_str=$xm_hl_id;
- }
- else if($xm_hl_id==11){ $xm_hl_str='';
- }
- else showmessage('undefined_action');
- if(strlen($xm_hl_str)>25){ $xm_hl_str=substr($xm_hl_str,0, 25);}
- $db->query("UPDATE $table_threads SET xm_hl='$xm_hl_str' WHERE tid='$tid'");
- modlog();
- showmessage('admin_succeed', "forumdisplay.php?fid=$fid&page=$fpage");
- }
- }
- //=====八种自定义参数标题醒目+任意颜色高亮==end==By lu5266=====================
- elseif($action == 'delpost' && $allowdelpost) {
- if(!is_array($delete) || !count($delete)) {
- showmessage('admin_delpost_invalid');
- }
- if(!submitcheck('delpostsubmit')) {
- $query = $db->query("SELECT COUNT(*) FROM $table_posts WHERE tid='$tid'");
- if(count($delete) < $db->result($query, 0)) {
- $deleteid = '';
- foreach($delete as $id) {
- $deleteid .= '<input type="hidden" name="delete[]" value="'.$id.'">';
- }
- include template('topicadmin_delpost');
- } else {
- header("Location: {$boardurl}topicadmin.php?action=delete&fid=$fid&tid=$tid&page=$page&fpage=$fpage");
- }
- } else {
复制代码
[ 本帖最后由 GTO014 于 2005-11-2 18:48 编辑 ] |