From 419bb07697e65bd0ddcfbcc451611e1259fa7d6b Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Fri, 5 Jul 2002 23:52:14 +0000 Subject: Initial commit ... neither do anything, just wanted to add something :D git-svn-id: file:///svn/phpbb/trunk@2652 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/admin/admin_permissions.php | 130 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 130 insertions(+) create mode 100644 phpBB/admin/admin_permissions.php (limited to 'phpBB/admin/admin_permissions.php') diff --git a/phpBB/admin/admin_permissions.php b/phpBB/admin/admin_permissions.php new file mode 100644 index 0000000000..7dfa0b597e --- /dev/null +++ b/phpBB/admin/admin_permissions.php @@ -0,0 +1,130 @@ +get_acl_admin('forums') ) + { + return; + } + + $filename = basename(__FILE__); + $module['Forums']['Permissions'] = $filename . $SID . '&mode=forums'; + $module['General']['Set_Administrators'] = $filename . $SID . '&mode=admins'; + + return; +} + +define('IN_PHPBB', 1); +// +// Include files +// +$phpbb_root_path = '../'; +require($phpbb_root_path . 'extension.inc'); +require('pagestart.' . $phpEx); + +// +// Do we have forum admin permissions? +// +if ( !$acl->get_acl_admin('forums') ) +{ + message_die(MESSAGE, $lang['No_admin']); +} + +// +// Define some vars +// +if ( isset($HTTP_GET_VARS['f']) || isset($HTTP_POST_VARS['f']) ) +{ + $forum_id = ( isset($HTTP_POST_VARS['f']) ) ? intval($HTTP_POST_VARS['f']) : intval($HTTP_GET_VARS['f']); + + $forum_sql = " WHERE forum_id = $forum_id"; +} +else +{ + unset($forum_id); + $forum_sql = ''; +} + +// +// Start program proper +// + +// +// Get required information, either all forums if +// no id was specified or just the requsted if it +// was +// +if ( !empty($forum_id) ) +{ + // + // Output the selection table if no forum id was + // specified + // + $template->set_filenames(array( + "body" => "admin/auth_select_body.tpl") + ); + + $select_list = ''; +} +else +{ + $sql = "SELECT forum_id, forum_name + FROM " . FORUMS_TABLE . " + ORDER BY cat_id ASC, forum_order ASC"; + $result = $db->sql_query($sql); + + $select_list = ''; + while ( $row = $db->sql_fetchrow($result) ) + { + $select_list .= ''; + } + $db->sql_freeresult($result); + + page_header($lang['Forums']); + +?> + +

+ +

+ +
"> + + + + + + +
    
+ + \ No newline at end of file -- cgit v1.2.1