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 5476 2011-06-24 14:49:59Z Tomm $
| * $Id$
|
*/
define("IN_MYBB", 1); define('THIS_SCRIPT', 'misc.php');
|
*/
define("IN_MYBB", 1); define('THIS_SCRIPT', 'misc.php');
|
$templatelist = "redirect_markallread,redirect_markforumread";
| $templatelist = "misc_rules_forum,misc_help_helpdoc,misc_whoposted_poster,misc_whoposted,misc_smilies_popup_smilie,misc_smilies_popup,misc_syndication_feedurl,misc_syndication";
|
$templatelist .= ",misc_buddypopup,misc_buddypopup_user_online,misc_buddypopup_user_offline,misc_buddypopup_user_sendpm";
|
$templatelist .= ",misc_buddypopup,misc_buddypopup_user_online,misc_buddypopup_user_offline,misc_buddypopup_user_sendpm";
|
$templatelist .= ",misc_smilies,misc_smilies_smilie,misc_help_section_bit,misc_help_section,misc_help";
| $templatelist .= ",misc_smilies,misc_smilies_smilie,misc_help_section_bit,misc_help_section,misc_help,forumdisplay_password_wrongpass,forumdisplay_password";
|
require_once "./global.php"; require_once MYBB_ROOT."inc/functions_post.php";
| require_once "./global.php"; require_once MYBB_ROOT."inc/functions_post.php";
|
Zeile 102 | Zeile 102 |
---|
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 112 | 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);
$forumpermissions = forum_permissions($forum['fid']);
| $fid = intval($mybb->input['fid']);
|
|
|
if($forum['type'] != "f" || $forum['rules'] == '') { error($lang->error_invalidforum); }
| $forum = get_forum($fid); if(!$forum || $forum['type'] != "f" || $forum['rules'] == '') { 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']);
|
Zeile 304 | Zeile 310 |
---|
{ error_no_permission(); }
|
{ error_no_permission(); }
|
if($mybb->input['removebuddy'])
| if($mybb->input['removebuddy'] && verify_post_check($mybb->input['my_post_key']))
|
{ $buddies = $mybb->user['buddylist']; $namesarray = explode(",",$buddies);
| { $buddies = $mybb->user['buddylist']; $namesarray = explode(",",$buddies);
|
Zeile 352 | Zeile 358 |
---|
if($buddy['avatar']) {
|
if($buddy['avatar']) {
|
| $buddy['avatar'] = htmlspecialchars_uni($buddy['avatar']);
|
if($buddy['avatardimensions']) { require_once MYBB_ROOT."inc/functions_image.php";
| if($buddy['avatardimensions']) { require_once MYBB_ROOT."inc/functions_image.php";
|
Zeile 416 | Zeile 423 |
---|
} // Make sure we are looking at a real thread here.
|
} // Make sure we are looking at a real thread here.
|
if(!$thread['tid'] || ($thread['visible'] == 0 && $ismod == false) || ($thread['visible'] > 1 && $ismod == true))
| if(!$thread || ($thread['visible'] != 1 && $ismod == false) || ($thread['visible'] > 1 && $ismod == true))
|
{ error($lang->error_invalidthread); }
| { error($lang->error_invalidthread); }
|
Zeile 430 | Zeile 437 |
---|
// Does the user have permission to view this thread? $forumpermissions = forum_permissions($forum['fid']);
|
// Does the user have permission to view this thread? $forumpermissions = forum_permissions($forum['fid']);
|
if($forumpermissions['canview'] != 1 || $forumpermissions['canviewthreads'] != 1)
| if($forumpermissions['canview'] == 0 || $forumpermissions['canviewthreads'] == 0 || ($forumpermissions['canonlyviewownthreads'] != 0 && $thread['uid'] != $mybb->user['uid']))
|
{ error_no_permission(); }
| { error_no_permission(); }
|
Zeile 479 | Zeile 486 |
---|
$smilies = ''; if($mybb->input['popup']) { // make small popup list of smilies
|
$smilies = ''; if($mybb->input['popup']) { // make small popup list of smilies
|
$editor = addslashes(htmlentities($mybb->input['editor']));
| $editor = preg_replace('#([^a-zA-Z0-9_-]+)#', '', $mybb->input['editor']);
|
$e = 1; $class = "trow1"; $smilies = "<tr>";
| $e = 1; $class = "trow1"; $smilies = "<tr>";
|
Zeile 661 | Zeile 668 |
---|
$atom1check = ''; $rss2check = "checked=\"checked\""; }
|
$atom1check = ''; $rss2check = "checked=\"checked\""; }
|
$forumselect = makesyndicateforums("", $blah);
| $forumselect = makesyndicateforums();
|
$plugins->run_hooks("misc_syndication_end");
| $plugins->run_hooks("misc_syndication_end");
|