Vergleich misc.php - 1.6.6 - 1.6.7

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 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 5714 2011-12-08 16:07:00Z Tomm $

 */

define("IN_MYBB", 1);

 */

define("IN_MYBB", 1);

Zeile 99Zeile 99
elseif($mybb->input['action'] == "clearpass")
{
$plugins->run_hooks("misc_clearpass");

elseif($mybb->input['action'] == "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 113Zeile 116
	if($mybb->input['fid'])
{
$plugins->run_hooks("misc_rules_start");

	if($mybb->input['fid'])
{
$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']);

if($forum['type'] != "f" || $forum['rules'] == '')

		$query = $db->simple_select("forums", "*", "fid='".intval($mybb->input['fid'])."' AND active!=0");
$forum = $db->fetch_array($query);

$forumpermissions = forum_permissions($forum['fid']);

if($forum['type'] != "f" || $forum['rules'] == '')

		{

		{

			error($lang->error_invalidforum);
}
if($forumpermissions['canview'] != 1)
{
error_no_permission();

			error($lang->error_invalidforum);
}
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 143Zeile 146
		);

$forum['rules'] = $parser->parse_message($forum['rules'], $parser_options);

		);

$forum['rules'] = $parser->parse_message($forum['rules'], $parser_options);





		// Make navigation
build_forum_breadcrumb($mybb->input['fid']);
add_breadcrumb($forum['rulestitle']);

		// Make navigation
build_forum_breadcrumb($mybb->input['fid']);
add_breadcrumb($forum['rulestitle']);

Zeile 152Zeile 155

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")


}
elseif($mybb->input['action'] == "help")

Zeile 178Zeile 181
			$plugins->run_hooks("misc_help_helpdoc_start");

if($helpdoc['usetranslation'] == 1)

			$plugins->run_hooks("misc_help_helpdoc_start");

if($helpdoc['usetranslation'] == 1)

			{

			{

				$langnamevar = "d".$helpdoc['hid']."_name";
$langdescvar = "d".$helpdoc['hid']."_desc";
$langdocvar = "d".$helpdoc['hid']."_document";
if($lang->$langnamevar)

				$langnamevar = "d".$helpdoc['hid']."_name";
$langdescvar = "d".$helpdoc['hid']."_desc";
$langdocvar = "d".$helpdoc['hid']."_document";
if($lang->$langnamevar)

				{

				{

					$helpdoc['name'] = $lang->$langnamevar;
}
if($lang->$langdescvar)
{
$helpdoc['description'] = $lang->$langdescvar;

					$helpdoc['name'] = $lang->$langnamevar;
}
if($lang->$langdescvar)
{
$helpdoc['description'] = $lang->$langdescvar;

				}

				}

				if($lang->$langdocvar)
{
$helpdoc['document'] = $lang->$langdocvar;

				if($lang->$langdocvar)
{
$helpdoc['document'] = $lang->$langdocvar;

Zeile 201Zeile 204
				}
}
add_breadcrumb($helpdoc['name']);

				}
}
add_breadcrumb($helpdoc['name']);


$plugins->run_hooks("misc_help_helpdoc_end");



$plugins->run_hooks("misc_help_helpdoc_end");


			eval("\$helppage = \"".$templates->get("misc_help_helpdoc")."\";");
output_page($helppage);
}

			eval("\$helppage = \"".$templates->get("misc_help_helpdoc")."\";");
output_page($helppage);
}

Zeile 306Zeile 309
	{
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'];