Vergleich misc.php - 1.4.0 - 1.4.11

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 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 4276 2008-11-23 03:01:33Z Tikitiki $

 */

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 184Zeile 185
				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']);

Zeile 213Zeile 219
		while($section = $db->fetch_array($query))
{
if($section['usetranslation'] == 1)

		while($section = $db->fetch_array($query))
{
if($section['usetranslation'] == 1)

			{

			{

				$langnamevar = "s".$section['sid']."_name";
$langdescvar = "s".$section['sid']."_desc";
if($lang->$langnamevar)

				$langnamevar = "s".$section['sid']."_name";
$langdescvar = "s".$section['sid']."_desc";
if($lang->$langnamevar)

Zeile 235Zeile 241
					$scollapse[$section['sid']] = '';
}
elseif($mybb->input['action'] == "collapse")

					$scollapse[$section['sid']] = '';
}
elseif($mybb->input['action'] == "collapse")

				{

				{

					my_setcookie("fcollapse[{$section['sid']}]", "y");
$scollapse[$section['sid']] = "y";
}
foreach($helpdocs[$section['sid']] as $key => $bit)
{
foreach($bit as $key => $helpdoc)

					my_setcookie("fcollapse[{$section['sid']}]", "y");
$scollapse[$section['sid']] = "y";
}
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 250Zeile 256
								$langnamevar = "d".$helpdoc['hid'].'_name';
$langdescvar = "d".$helpdoc['hid'].'_desc';
if($lang->$langnamevar)

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

								{

								{

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

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

Zeile 265Zeile 271
					$expdisplay = '';
$sname = "sid_".$section['sid']."_c";
if($collapsed[$sname] == "display: show;")

					$expdisplay = '';
$sname = "sid_".$section['sid']."_c";
if($collapsed[$sname] == "display: show;")

					{

					{

						$expcolimage = "collapse_collapsed.gif";
$expdisplay = "display: none;";
}

						$expcolimage = "collapse_collapsed.gif";
$expdisplay = "display: none;";
}

Zeile 279Zeile 285
		}

$plugins->run_hooks("misc_help_section_end");

		}

$plugins->run_hooks("misc_help_section_end");





		eval("\$help = \"".$templates->get("misc_help")."\";");
output_page($help);
}

		eval("\$help = \"".$templates->get("misc_help")."\";");
output_page($help);
}

Zeile 301Zeile 307
			foreach($namesarray as $key => $buddyid)
{
if($buddyid == $mybb->input['removebuddy'])

			foreach($namesarray as $key => $buddyid)
{
if($buddyid == $mybb->input['removebuddy'])

				{

				{

					unset($namesarray[$key]);
}
}

					unset($namesarray[$key]);
}
}

Zeile 328Zeile 334
			if($mybb->user['receivepms'] != 0 && $buddy['receivepms'] != 0 && $buddy['canusepms'] != 0)
{
eval("\$send_pm = \"".$templates->get("misc_buddypopup_user_sendpm")."\";");

			if($mybb->user['receivepms'] != 0 && $buddy['receivepms'] != 0 && $buddy['canusepms'] != 0)
{
eval("\$send_pm = \"".$templates->get("misc_buddypopup_user_sendpm")."\";");

			}

			}

			else
{
$send_pm = '';

			else
{
$send_pm = '';

Zeile 349Zeile 355
					require_once MYBB_ROOT."inc/functions_image.php";
list($width, $height) = explode("|", $buddy['avatardimensions']);
$scaled_dimensions = scale_image($width, $height, 44, 44);

					require_once MYBB_ROOT."inc/functions_image.php";
list($width, $height) = explode("|", $buddy['avatardimensions']);
$scaled_dimensions = scale_image($width, $height, 44, 44);

				}

				}

				else
{
$scaled_dimensions = array(
"width" => 44,
"height" => 44
);

				else
{
$scaled_dimensions = array(
"width" => 44,
"height" => 44
);

				}
}
else
{

				}
}
else
{

				$buddy['avatar'] = $theme['imgdir'] . "/default_avatar.gif";
$scaled_dimensions = array(
"width" => 44,

				$buddy['avatar'] = $theme['imgdir'] . "/default_avatar.gif";
$scaled_dimensions = array(
"width" => 44,

Zeile 404Zeile 410
	
// 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)
{
error_no_permission();

	if($forumpermissions['canview'] != 1 || $forumpermissions['canviewthreads'] != 1)
{
error_no_permission();

Zeile 416Zeile 422
	if($mybb->input['sort'] != 'username')
{
$sortsql = ' ORDER BY posts DESC';

	if($mybb->input['sort'] != 'username')
{
$sortsql = ' ORDER BY posts DESC';

	}
else
{

	}
else
{

		$sortsql = ' ORDER BY p.username ASC';
}
$query = $db->query("

		$sortsql = ' ORDER BY p.username ASC';
}
$query = $db->query("

Zeile 454Zeile 460
	$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 476Zeile 482
			}
}
if($e == 2)

			}
}
if($e == 2)

		{
$smilies .= "<td colspan=\"2\" class=\"$class\">&nbsp;</td>";
}

		{
$smilies .= "<td colspan=\"2\" class=\"$class\">&nbsp;</td>";
}

		eval("\$smiliespage = \"".$templates->get("misc_smilies_popup")."\";");
output_page($smiliespage);
}

		eval("\$smiliespage = \"".$templates->get("misc_smilies_popup")."\";");
output_page($smiliespage);
}

Zeile 591Zeile 597

// If the version is not RSS2.0, set the type to Atom1.0.
if($version != "rss2.0")


// If the version is not RSS2.0, set the type to Atom1.0.
if($version != "rss2.0")

		{
if(!$add)
{
$url .= "?";
}

		{
if(!$add)
{
$url .= "?";
}

			else
{
$url .= "&";

			else
{
$url .= "&";

Zeile 610Zeile 616
				$limit = 100;
}
if(!$add)

				$limit = 100;
}
if(!$add)

			{

			{

				$url .= "?";
}
else

				$url .= "?";
}
else

Zeile 624Zeile 630
		}
$limit = intval($_POST['limit']);
eval("\$feedurl = \"".$templates->get("misc_syndication_feedurl")."\";");

		}
$limit = intval($_POST['limit']);
eval("\$feedurl = \"".$templates->get("misc_syndication_feedurl")."\";");

	}

	}

	unset($GLOBALS['forumcache']);
if(!$limit || !is_numeric($limit))
{

	unset($GLOBALS['forumcache']);
if(!$limit || !is_numeric($limit))
{

Zeile 649Zeile 655
	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');