Zeile 6 | Zeile 6 |
---|
* Website: http://www.mybboard.net * License: http://www.mybboard.net/about/license *
|
* Website: http://www.mybboard.net * License: http://www.mybboard.net/about/license *
|
* $Id: misc.php 3901 2008-06-10 04:41:52Z Tikitiki $
| * $Id: misc.php 5379 2011-02-21 11:06:42Z Tomm $
|
*/
define("IN_MYBB", 1);
|
*/
define("IN_MYBB", 1);
|
| define('THIS_SCRIPT', 'misc.php');
|
$templatelist = "redirect_markallread,redirect_markforumread"; $templatelist .= ",misc_buddypopup,misc_buddypopup_user_online,misc_buddypopup_user_offline,misc_buddypopup_user_sendpm";
| $templatelist = "redirect_markallread,redirect_markforumread"; $templatelist .= ",misc_buddypopup,misc_buddypopup_user_online,misc_buddypopup_user_offline,misc_buddypopup_user_sendpm";
|
Zeile 48 | Zeile 49 |
---|
} if($mybb->input['action'] == "markread") {
|
} if($mybb->input['action'] == "markread") {
|
| if($mybb->user['uid'] && verify_post_check($mybb->input['my_post_key'], true) !== true) { // Protect our user's unread forums from CSRF error($lang->invalid_post_code); }
|
if($mybb->input['fid']) { $mybb->input['fid'] = intval($mybb->input['fid']);
| if($mybb->input['fid']) { $mybb->input['fid'] = intval($mybb->input['fid']);
|
Zeile 184 | Zeile 191 |
---|
if($lang->$langdocvar) { $helpdoc['document'] = $lang->$langdocvar;
|
if($lang->$langdocvar) { $helpdoc['document'] = $lang->$langdocvar;
|
| if($langdocvar == "d3_document") { $helpdoc['document'] = $lang->sprintf($helpdoc['document'], $mybb->user['logoutkey']); }
|
} } add_breadcrumb($helpdoc['name']);
|
} } add_breadcrumb($helpdoc['name']);
|
|
|
$plugins->run_hooks("misc_help_helpdoc_end");
eval("\$helppage = \"".$templates->get("misc_help_helpdoc")."\";"); output_page($helppage);
|
$plugins->run_hooks("misc_help_helpdoc_end");
eval("\$helppage = \"".$templates->get("misc_help_helpdoc")."\";"); output_page($helppage);
|
}
| }
|
else { error($lang->error_invalidhelpdoc);
|
else { error($lang->error_invalidhelpdoc);
|
} } else {
| } } else {
|
$plugins->run_hooks("misc_help_section_start");
$query = $db->simple_select("helpdocs", "*", "", array('order_by' => 'sid, disporder'));
| $plugins->run_hooks("misc_help_section_start");
$query = $db->simple_select("helpdocs", "*", "", array('order_by' => 'sid, disporder'));
|
Zeile 454 | Zeile 466 |
---|
$smilies = ''; if($mybb->input['popup']) { // make small popup list of smilies
|
$smilies = ''; if($mybb->input['popup']) { // make small popup list of smilies
|
$editor = htmlspecialchars($mybb->input['editor']);
| $editor = addslashes(htmlentities($mybb->input['editor']));
|
$e = 1; $class = "trow1"; $smilies = "<tr>";
| $e = 1; $class = "trow1"; $smilies = "<tr>";
|
Zeile 500 | Zeile 512 |
---|
elseif($mybb->input['action'] == "imcenter") { if($mybb->input['imtype'] != "aim" && $mybb->input['imtype'] != "icq" && $mybb->input['imtype'] != "msn" && $mybb->input['imtype'] != "yahoo")
|
elseif($mybb->input['action'] == "imcenter") { if($mybb->input['imtype'] != "aim" && $mybb->input['imtype'] != "icq" && $mybb->input['imtype'] != "msn" && $mybb->input['imtype'] != "yahoo")
|
{ error($lang->error_invalidimtype); }
| { error($lang->error_invalidimtype); }
|
$uid = $mybb->input['uid']; $user = get_user($uid);
| $uid = $mybb->input['uid']; $user = get_user($uid);
|
Zeile 649 | Zeile 661 |
---|
eval("\$syndication = \"".$templates->get("misc_syndication")."\";"); output_page($syndication); }
|
eval("\$syndication = \"".$templates->get("misc_syndication")."\";"); output_page($syndication); }
|
| |
if($mybb->input['action'] == "clearcookies") { $plugins->run_hooks("misc_clearcookies");
|
if($mybb->input['action'] == "clearcookies") { $plugins->run_hooks("misc_clearcookies");
|
| if($mybb->input['key'] != $mybb->user['logoutkey']) { error($lang->error_invalidkey); }
|
$remove_cookies = array('mybb', 'mybbuser', 'mybb[password]', 'mybb[lastvisit]', 'mybb[lastactive]', 'collapsed', 'mybb[forumread]', 'mybb[threadsread]', 'mybbadmin');
| $remove_cookies = array('mybb', 'mybbuser', 'mybb[password]', 'mybb[lastvisit]', 'mybb[lastactive]', 'collapsed', 'mybb[forumread]', 'mybb[threadsread]', 'mybbadmin');
|