Vergleich misc.php - 1.2.0 - 1.2.13

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 3Zeile 3
 * MyBB 1.2
* Copyright � 2006 MyBB Group, All Rights Reserved
*

 * MyBB 1.2
* Copyright � 2006 MyBB Group, All Rights Reserved
*

 * Website: http://www.mybboard.com
* License: http://www.mybboard.com/eula.html

 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/eula.html

 *

 *

 * $Id: misc.php 2163 2006-08-30 05:53:05Z chris $

 * $Id: misc.php 3595 2008-01-09 00:10:57Z Tikitiki $

 */

define("IN_MYBB", 1);

 */

define("IN_MYBB", 1);

Zeile 42Zeile 42
		if($mybb->user['uid'] != 0)
{
$db->update_query(TABLE_PREFIX."users", array('lastvisit' => time()), "uid='".$mybb->user['uid']."'");

		if($mybb->user['uid'] != 0)
{
$db->update_query(TABLE_PREFIX."users", array('lastvisit' => time()), "uid='".$mybb->user['uid']."'");

			require_once MYBB_ROOT."/inc/functions_user.php";

			require_once MYBB_ROOT."inc/functions_user.php";

			update_pm_count('', 2);
}
else

			update_pm_count('', 2);
}
else

Zeile 61Zeile 61

if($mybb->input['fid'])
{


if($mybb->input['fid'])
{

		my_setcookie("forumpass[".intval($mybb->input['fid'])."]", '');

		my_unsetcookie("forumpass[".intval($mybb->input['fid'])."]");

		redirect("index.php", $lang->redirect_forumpasscleared);
}
}

		redirect("index.php", $lang->redirect_forumpasscleared);
}
}

Zeile 89Zeile 89
			$forum['rulestitle'] = sprintf($lang->forum_rules, $forum['name']);
}


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


		require_once MYBB_ROOT."/inc/class_parser.php";

		require_once MYBB_ROOT."inc/class_parser.php";

		$parser = new postParser();
$parser_options = array(
"allow_html" => 'yes',

		$parser = new postParser();
$parser_options = array(
"allow_html" => 'yes',

Zeile 331Zeile 331
			$poster['username'] = $poster['postusername'];
}
$poster_name = format_name($poster['username'], $poster['usergroup'], $poster['displaygroup']);

			$poster['username'] = $poster['postusername'];
}
$poster_name = format_name($poster['username'], $poster['usergroup'], $poster['displaygroup']);

		$profile_link = build_profile_link($poster_name, $poster['uid'], '_blank');





		if($poster['uid'])
{
$onclick = "opener.location.href='".get_profile_link($poster['uid'])."'; return false;";
}
$profile_link = build_profile_link($poster_name, $poster['uid'], '_blank', $onclick);

		$numposts += $poster['posts'];
eval("\$whoposted .= \"".$templates->get("misc_whoposted_poster")."\";");
$altbg = alt_trow();

		$numposts += $poster['posts'];
eval("\$whoposted .= \"".$templates->get("misc_whoposted_poster")."\";");
$altbg = alt_trow();

Zeile 346Zeile 350
	{ // make small popup list of smilies
$editor = htmlspecialchars($mybb->input['editor']);
$e = 1;

	{ // make small popup list of smilies
$editor = htmlspecialchars($mybb->input['editor']);
$e = 1;

		$class = "trow1";

		$class = "trow1";

		$smilies = "<tr>";
$query = $db->simple_select(TABLE_PREFIX."smilies", "*", "", array('order_by' => 'disporder'));
while($smilie = $db->fetch_array($query))
{

		$smilies = "<tr>";
$query = $db->simple_select(TABLE_PREFIX."smilies", "*", "", array('order_by' => 'disporder'));
while($smilie = $db->fetch_array($query))
{

			$smiliefind = $smilie['find'];
$smilie['find'] = $db->escape_string($smilie['find']);

			$smilie['insert'] = addslashes($smilie['find']);
$smilie['find'] = htmlspecialchars_uni($smilie['find']);

			eval("\$smilies .= \"".$templates->get("misc_smilies_popup_smilie")."\";");
if($e == 2)

			eval("\$smilies .= \"".$templates->get("misc_smilies_popup_smilie")."\";");
if($e == 2)

			{

			{

				$smilies .= "</tr><tr>";
$e = 1;
$class = alt_trow();

				$smilies .= "</tr><tr>";
$e = 1;
$class = alt_trow();

Zeile 379Zeile 383
		$query = $db->simple_select(TABLE_PREFIX."smilies", "*", "", array('order_by' => 'disporder'));
while($smilie = $db->fetch_array($query))
{

		$query = $db->simple_select(TABLE_PREFIX."smilies", "*", "", array('order_by' => 'disporder'));
while($smilie = $db->fetch_array($query))
{

 
			$smilie['find'] = htmlspecialchars_uni($smilie['find']);

			eval("\$smilies .= \"".$templates->get("misc_smilies_smilie")."\";");
$class = alt_trow();
}

			eval("\$smilies .= \"".$templates->get("misc_smilies_smilie")."\";");
$class = alt_trow();
}

Zeile 388Zeile 393
}
elseif($mybb->input['action'] == "imcenter")
{

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

	if(!$mybb->input['imtype'])

	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 = intval($mybb->input['uid']);
$query = $db->simple_select(TABLE_PREFIX."users", "*", "uid='".$uid."'", array('limit' => 1));
$user = $db->fetch_array($query);


$uid = $mybb->input['uid'];
$user = get_user($uid);


if(!$user['username'])
{


if(!$user['username'])
{

Zeile 409Zeile 414
	$navigationbar = $navsep = '';
if($user['aim'])
{

	$navigationbar = $navsep = '';
if($user['aim'])
{

		$navigationbar .= "<a href=\"misc.php?action=imcenter&imtype=aim&uid=$uid\">$lang->aol_im</a>";

		$navigationbar .= "<a href=\"misc.php?action=imcenter&amp;imtype=aim&amp;uid=$uid\">$lang->aol_im</a>";

		$navsep = ' - ';
}
if($user['icq'])
{

		$navsep = ' - ';
}
if($user['icq'])
{

		$navigationbar .= "$navsep<a href=\"misc.php?action=imcenter&imtype=icq&uid=$uid\">$lang->icq</a>";

		$navigationbar .= "$navsep<a href=\"misc.php?action=imcenter&amp;imtype=icq&amp;uid=$uid\">$lang->icq</a>";

		$navsep = ' - ';
}
if($user['msn'])
{

		$navsep = ' - ';
}
if($user['msn'])
{

		$navigationbar .= "$navsep<a href=\"misc.php?action=imcenter&imtype=msn&uid=$uid\">$lang->msn</a>";

		$navigationbar .= "$navsep<a href=\"misc.php?action=imcenter&amp;imtype=msn&amp;uid=$uid\">$lang->msn</a>";

		$navsep = ' - ';
}
if($user['yahoo'])
{

		$navsep = ' - ';
}
if($user['yahoo'])
{

		$navigationbar .= "$navsep<a href=\"misc.php?action=imcenter&imtype=yahoo&uid=$uid\">$lang->yahoo_im</a>";

		$navigationbar .= "$navsep<a href=\"misc.php?action=imcenter&amp;imtype=yahoo&amp;uid=$uid\">$lang->yahoo_im</a>";

	}
$lang->msn_address_is = sprintf($lang->msn_address_is, $user['username']);
$lang->send_y_message = sprintf($lang->send_y_message, $user['username']);
$lang->view_y_profile = sprintf($lang->view_y_profile, $user['username']);

	}
$lang->msn_address_is = sprintf($lang->msn_address_is, $user['username']);
$lang->send_y_message = sprintf($lang->send_y_message, $user['username']);
$lang->view_y_profile = sprintf($lang->view_y_profile, $user['username']);

 
	$lang->send_icq_message = sprintf($lang->send_icq_message, $user['username']);


	$imtemplate = "misc_imcenter_".$mybb->input['imtype'];
eval("\$imcenter = \"".$templates->get($imtemplate)."\";");
output_page($imcenter);

	$imtemplate = "misc_imcenter_".$mybb->input['imtype'];
eval("\$imcenter = \"".$templates->get($imtemplate)."\";");
output_page($imcenter);