Vergleich misc.php - 1.6.3 - 1.6.6

  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 5440 2011-04-15 10:18:35Z Tomm $

 * $Id: misc.php 5641 2011-10-26 09:36:44Z 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'])
{

Zeile 114Zeile 116

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


$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'] == '')

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

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

		{

		{

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

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

Zeile 128Zeile 130
		if(!$forum['rulestitle'])
{
$forum['rulestitle'] = $lang->sprintf($lang->forum_rules, $forum['name']);

		if(!$forum['rulestitle'])
{
$forum['rulestitle'] = $lang->sprintf($lang->forum_rules, $forum['name']);

		}

		}


require_once MYBB_ROOT."inc/class_parser.php";
$parser = new postParser();


require_once MYBB_ROOT."inc/class_parser.php";
$parser = new postParser();

Zeile 183Zeile 185
				if($lang->$langnamevar)
{
$helpdoc['name'] = $lang->$langnamevar;

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

				}
if($lang->$langdescvar)
{

				}
if($lang->$langdescvar)
{

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

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

Zeile 304Zeile 306
	{
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 326Zeile 329
	if($mybb->user['buddylist'] != "")
{
$timecut = TIME_NOW - $mybb->settings['wolcutoff'];

	if($mybb->user['buddylist'] != "")
{
$timecut = TIME_NOW - $mybb->settings['wolcutoff'];

		$query = $db->query("
SELECT u.*, g.canusepms
FROM ".TABLE_PREFIX."users u
LEFT JOIN ".TABLE_PREFIX."usergroups g ON (g.gid=u.usergroup)
WHERE u.uid IN ({$mybb->user['buddylist']})
ORDER BY u.lastactive
");

		$query = $db->simple_select("users", "*", "uid IN ({$mybb->user['buddylist']})", array('order_by' => 'lastactive'));







		while($buddy = $db->fetch_array($query))
{
$buddy_name = format_name($buddy['username'], $buddy['usergroup'], $buddy['displaygroup']);
$profile_link = build_profile_link($buddy_name, $buddy['uid'], '_blank', 'if(window.opener) { window.opener.location = this.href; return false; }');

		while($buddy = $db->fetch_array($query))
{
$buddy_name = format_name($buddy['username'], $buddy['usergroup'], $buddy['displaygroup']);
$profile_link = build_profile_link($buddy_name, $buddy['uid'], '_blank', 'if(window.opener) { window.opener.location = this.href; return false; }');

			if($mybb->user['receivepms'] != 0 && $buddy['receivepms'] != 0 && $buddy['canusepms'] != 0)



if($mybb->user['receivepms'] != 0 && $buddy['receivepms'] != 0 && $groupscache[$buddy['usergroup']]['canusepms'] != 0)

			{
eval("\$send_pm = \"".$templates->get("misc_buddypopup_user_sendpm")."\";");
}

			{
eval("\$send_pm = \"".$templates->get("misc_buddypopup_user_sendpm")."\";");
}

Zeile 356Zeile 355

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