Zeile 6 | Zeile 6 |
---|
* Website: http://mybb.com * License: http://mybb.com/about/license *
|
* Website: http://mybb.com * License: http://mybb.com/about/license *
|
* $Id: misc.php 5714 2011-12-08 16:07:00Z Tomm $
| * $Id$
|
*/
define("IN_MYBB", 1);
| */
define("IN_MYBB", 1);
|
Zeile 117 | Zeile 117 |
---|
{ $plugins->run_hooks("misc_rules_start");
|
{ $plugins->run_hooks("misc_rules_start");
|
$query = $db->simple_select("forums", "*", "fid='".intval($mybb->input['fid'])."' AND active!=0"); $forum = $db->fetch_array($query);
| $fid = intval($mybb->input['fid']);
|
|
|
$forumpermissions = forum_permissions($forum['fid']);
if($forum['type'] != "f" || $forum['rules'] == '') {
| $forum = get_forum($fid); if(!$forum || $forum['type'] != "f" || $forum['rules'] == '') {
|
error($lang->error_invalidforum);
|
error($lang->error_invalidforum);
|
}
| }
$forumpermissions = forum_permissions($forum['fid']);
|
if($forumpermissions['canview'] != 1) { error_no_permission(); }
|
if($forumpermissions['canview'] != 1) { error_no_permission(); }
|
|
|
if(!$forum['rulestitle']) { $forum['rulestitle'] = $lang->sprintf($lang->forum_rules, $forum['name']);
| if(!$forum['rulestitle']) { $forum['rulestitle'] = $lang->sprintf($lang->forum_rules, $forum['name']);
|