Vergleich misc.php - 1.2.6 - 1.2.9

  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 2702 2007-02-04 10:48:18Z CraKteR $

 * $Id: misc.php 3086 2007-05-22 02:51:46Z dennis $

 */

define("IN_MYBB", 1);

 */

define("IN_MYBB", 1);

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

Zeile 389Zeile 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 410Zeile 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);