Changeset 1259
- Timestamp:
- 2007/01/22 10:51:10 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
temp/test-xoops.ec-cube.net/html/modules/newbb/response.php
r1258 r1259 31 31 32 32 include "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 }48 33 // this page uses smarty template 49 34 // this must be set before including main header.php 50 35 $xoopsOption['template_main_path'] = XOOPS_ROOT_PATH . '/modules/newbb/templates/newbb_response.html'; 51 36 include XOOPS_ROOT_PATH."/header.php"; 37 38 /* 39 $forum = intval($_GET['forum']); 40 if ( $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; 45 if ( !$result = $xoopsDB->query($sql) ) { 46 redirect_header("index.php", 2, _MD_ERRORCONNECT); 47 exit(); 48 } 49 if ( !$forumdata = $xoopsDB->fetchArray($result) ) { 50 redirect_header("index.php", 2, _MD_ERROREXIST); 51 exit(); 52 } 53 */ 54 52 55 53 56 /*
Note: See TracChangeset
for help on using the changeset viewer.