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 5641 2011-10-26 09:36:44Z Tomm $
| * $Id: misc.php 5821 2012-05-02 15:40:38Z Tomm $
|
*/
define("IN_MYBB", 1);
| */
define("IN_MYBB", 1);
|
Zeile 100 | Zeile 100 |
---|
{ $plugins->run_hooks("misc_clearpass");
|
{ $plugins->run_hooks("misc_clearpass");
|
verify_post_check($mybb->input['my_post_key']);
if($mybb->input['fid']) {
| if($mybb->input['fid']) { if(!verify_post_check($mybb->input['my_post_key'])) { error($lang->invalid_post_code); }
|
my_unsetcookie("forumpass[".intval($mybb->input['fid'])."]"); redirect("index.php", $lang->redirect_forumpasscleared); }
| my_unsetcookie("forumpass[".intval($mybb->input['fid'])."]"); redirect("index.php", $lang->redirect_forumpasscleared); }
|
Zeile 114 | 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']);
$forum = get_forum($fid); if(!$forum || $forum['type'] != "f" || $forum['rules'] == '') { error($lang->error_invalidforum); }
|
$forumpermissions = forum_permissions($forum['fid']);
|
$forumpermissions = forum_permissions($forum['fid']);
|
if($forum['type'] != "f" || $forum['rules'] == '') { error($lang->error_invalidforum); }
| |
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']);
|
Zeile 152 | Zeile 156 |
---|
eval("\$rules = \"".$templates->get("misc_rules_forum")."\";"); output_page($rules);
|
eval("\$rules = \"".$templates->get("misc_rules_forum")."\";"); output_page($rules);
|
}
}
| }
}
|
elseif($mybb->input['action'] == "help") { $lang->load("helpdocs");
| elseif($mybb->input['action'] == "help") { $lang->load("helpdocs");
|
Zeile 256 | Zeile 260 |
---|
foreach($helpdocs[$section['sid']] as $key => $bit) { foreach($bit as $key => $helpdoc)
|
foreach($helpdocs[$section['sid']] as $key => $bit) { foreach($bit as $key => $helpdoc)
|
{
| {
|
if($helpdoc['enabled'] != 0) { if($helpdoc['usetranslation'] == 1)
| if($helpdoc['enabled'] != 0) { if($helpdoc['usetranslation'] == 1)
|
Zeile 306 | Zeile 310 |
---|
{ error_no_permission(); }
|
{ error_no_permission(); }
|
| |
if($mybb->input['removebuddy'] && verify_post_check($mybb->input['my_post_key'])) { $buddies = $mybb->user['buddylist'];
| if($mybb->input['removebuddy'] && verify_post_check($mybb->input['my_post_key'])) { $buddies = $mybb->user['buddylist'];
|