Changeset 1259


Ignore:
Timestamp:
2007/01/22 10:51:10 (17 years ago)
Author:
kakinaka
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • temp/test-xoops.ec-cube.net/html/modules/newbb/response.php

    r1258 r1259  
    3131 
    3232include "header.php"; 
    33  
    34 $forum = intval($_GET['forum']); 
    35 if ( $forum < 1 ) { 
    36     redirect_header("index.php", 2, _MD_ERRORFORUM); 
    37     exit(); 
    38 } 
    39 $sql = 'SELECT forum_type, forum_name, forum_access, allow_html, allow_sig, posts_per_page, hot_threshold, topics_per_page FROM '.$xoopsDB->prefix('bb_forums').' WHERE forum_id = '.$forum; 
    40 if ( !$result = $xoopsDB->query($sql) ) { 
    41     redirect_header("index.php", 2, _MD_ERRORCONNECT); 
    42     exit(); 
    43 } 
    44 if ( !$forumdata = $xoopsDB->fetchArray($result) ) { 
    45     redirect_header("index.php", 2, _MD_ERROREXIST); 
    46     exit(); 
    47 } 
    4833// this page uses smarty template 
    4934// this must be set before including main header.php 
    5035$xoopsOption['template_main_path'] = XOOPS_ROOT_PATH . '/modules/newbb/templates/newbb_response.html'; 
    5136include XOOPS_ROOT_PATH."/header.php"; 
     37 
     38/* 
     39$forum = intval($_GET['forum']); 
     40if ( $forum < 1 ) { 
     41    redirect_header("index.php", 2, _MD_ERRORFORUM); 
     42    exit(); 
     43} 
     44$sql = 'SELECT forum_type, forum_name, forum_access, allow_html, allow_sig, posts_per_page, hot_threshold, topics_per_page FROM '.$xoopsDB->prefix('bb_forums').' WHERE forum_id = '.$forum; 
     45if ( !$result = $xoopsDB->query($sql) ) { 
     46    redirect_header("index.php", 2, _MD_ERRORCONNECT); 
     47    exit(); 
     48} 
     49if ( !$forumdata = $xoopsDB->fetchArray($result) ) { 
     50    redirect_header("index.php", 2, _MD_ERROREXIST); 
     51    exit(); 
     52} 
     53*/ 
     54 
    5255 
    5356/* 
Note: See TracChangeset for help on using the changeset viewer.