Vergleich misc.php - 1.4.1 - 1.4.14

  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 4081 2008-08-08 01:47:02Z Tikitiki $

 * $Id: misc.php 4276 2008-11-23 03:01:33Z Tikitiki $

 */

define("IN_MYBB", 1);

 */

define("IN_MYBB", 1);

Zeile 185Zeile 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 214Zeile 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 236Zeile 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 251Zeile 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 266Zeile 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 280Zeile 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 302Zeile 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 417Zeile 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 477Zeile 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 592Zeile 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 611Zeile 616
				$limit = 100;
}
if(!$add)

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

			{

			{

				$url .= "?";
}
else

				$url .= "?";
}
else

Zeile 625Zeile 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 650Zeile 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');