Vergleich inc/functions.php - 1.02 - 1.14

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 13Zeile 13
   technical support
*/


   technical support
*/


$mybboard['internalver'] = "1.02";
$mybboard['vercode'] = "100.09";

$mybboard['internalver'] = "1.1.4";
$mybboard['vercode'] = "114";


//
// Outputs the contents of a page rendering variables


//
// Outputs the contents of a page rendering variables

Zeile 37Zeile 37
		$serverload = serverload();
if(strstr(getenv("REQUEST_URI"), "?"))
{

		$serverload = serverload();
if(strstr(getenv("REQUEST_URI"), "?"))
{

			$debuglink = getenv("REQUEST_URI") . "&debug=1";

			$debuglink = htmlspecialchars(getenv("REQUEST_URI")) . "&debug=1";

		}
else
{

		}
else
{

			$debuglink = getenv("REQUEST_URI") . "?debug=1";

			$debuglink = htmlspecialchars(getenv("REQUEST_URI")) . "?debug=1";

		}
if($mybb->settings['gzipoutput'] != "no")
{

		}
if($mybb->settings['gzipoutput'] != "no")
{

Zeile 323Zeile 323
	{
$url = str_replace("#", "&#", $url);
$url = str_replace("&", "&", $url);

	{
$url = str_replace("#", "&#", $url);
$url = str_replace("&", "&", $url);

 
		$url = str_replace(array("\n","\r",";"), "", $url);

		header("Location: $url");
}
exit;

		header("Location: $url");
}
exit;

Zeile 744Zeile 745
//
function getposticons()
{

//
function getposticons()
{

	global $db, $icon, $settings, $theme, $templates, $lang;
$listed = 0;
$query = $db->query("SELECT * FROM ".TABLE_PREFIX."icons ORDER BY name DESC");
while($dbicon = $db->fetch_array($query))
{
if($icon == $dbicon['iid'])
{

    global $mybb, $db, $icon, $settings, $theme, $templates, $lang;
$listed = 0;
$query = $db->query("SELECT * FROM ".TABLE_PREFIX."icons ORDER BY name DESC");
while($dbicon = $db->fetch_array($query))
{
if($mybb->input['icon'] == $dbicon['iid'])
{

			$iconlist .= "<input type=\"radio\" name=\"icon\" value=\"".$dbicon['iid']."\" checked> <img src=\"".$dbicon['path']."\" alt=\"".$dbicon['name']."\">";

			$iconlist .= "<input type=\"radio\" name=\"icon\" value=\"".$dbicon['iid']."\" checked> <img src=\"".$dbicon['path']."\" alt=\"".$dbicon['name']."\">";

		}

		}

		else
{
$iconlist .= "<input type=\"radio\" name=\"icon\" value=\"".$dbicon['iid']."\"> <img src=\"".$dbicon['path']."\" alt=\"".$dbicon['name']."\">";

		else
{
$iconlist .= "<input type=\"radio\" name=\"icon\" value=\"".$dbicon['iid']."\"> <img src=\"".$dbicon['path']."\" alt=\"".$dbicon['name']."\">";

Zeile 762Zeile 763
		{
$iconlist .= "<br />";
$listed = 0;

		{
$iconlist .= "<br />";
$listed = 0;

		}
}

		}
}

	eval("\$posticons = \"".$templates->get("posticons")."\";");
return $posticons;
}


	eval("\$posticons = \"".$templates->get("posticons")."\";");
return $posticons;
}


//

//

// MyBB setcookie() wrapper
//
function mysetcookie($name, $value="", $expires="")

// MyBB setcookie() wrapper
//
function mysetcookie($name, $value="", $expires="")

{
global $mybb;
if(!$mybb->settings['cookiepath'])
{
$mybb->settings['cookiepath'] = "/";

{
global $mybb;
if(!$mybb->settings['cookiepath'])
{
$mybb->settings['cookiepath'] = "/";

	}
if($expires == -1)
{
$expires = 0;

	}
if($expires == -1)
{
$expires = 0;

	}

	}

	else

	else

	{
if($mybb->user['rememberme'] == "no")
{
$expires = "";
}
else
{
$expires = time() + (60*60*24*365); // Make the cookie expire in a years time
}

	{
if($mybb->user['rememberme'] == "no")
{
$expires = 0;
}
else
{
$expires = time() + (60*60*24*365); // Make the cookie expire in a years time
}

	}
if($mybb->settings['cookiedomain'])
{
setcookie($name, $value, $expires, $mybb->settings['cookiepath'], $mybb->settings['cookiedomain']);

	}
if($mybb->settings['cookiedomain'])
{
setcookie($name, $value, $expires, $mybb->settings['cookiepath'], $mybb->settings['cookiedomain']);

	}
else

	}
else

	{
setcookie($name, $value, $expires, $mybb->settings['cookiepath']);
}

	{
setcookie($name, $value, $expires, $mybb->settings['cookiepath']);
}

Zeile 810Zeile 811
	if(!$mybb->settings['cookiepath'])
{
$mybb->settings['cookiepath'] = "/";

	if(!$mybb->settings['cookiepath'])
{
$mybb->settings['cookiepath'] = "/";

	}


	}


	if($mybb->settings['cookiedomain'])

	if($mybb->settings['cookiedomain'])

	{

	{

		@setcookie($name, "", $expires, $mybb->settings['cookiepath'], $mybb->settings['cookiedomain']);
}
else

		@setcookie($name, "", $expires, $mybb->settings['cookiepath'], $mybb->settings['cookiedomain']);
}
else

Zeile 823Zeile 824
}

function mygetarraycookie($name, $id)

}

function mygetarraycookie($name, $id)

{

{

	// Many minutes were used to perfect this function
// With the wonderful debugging help of Matt Light
global $_COOKIE, $test;

	// Many minutes were used to perfect this function
// With the wonderful debugging help of Matt Light
global $_COOKIE, $test;

Zeile 832Zeile 833
	if($cookie[$id])
{
return $cookie[$id];

	if($cookie[$id])
{
return $cookie[$id];

	}

	}

	else
{
return 0;

	else
{
return 0;

	}

	}

}

function mysetarraycookie($name, $id, $value) {

}

function mysetarraycookie($name, $id, $value) {

Zeile 862Zeile 863
		$serverload = explode(" ", $load);
$serverload[0] = round($serverload[0], 4);
if(!$serverload)

		$serverload = explode(" ", $load);
$serverload[0] = round($serverload[0], 4);
if(!$serverload)

		{

		{

			$load = @exec("uptime");
$load = split("load averages?: ", $load);
$serverload = explode(",", $load[1]);

			$load = @exec("uptime");
$load = split("load averages?: ", $load);
$serverload = explode(",", $load[1]);

Zeile 1282Zeile 1283
		$numimages = 1;
}
for($i=1;$i<=$numimages;$i++)

		$numimages = 1;
}
for($i=1;$i<=$numimages;$i++)

	{

	{

		$rep .= "<img src=\"".$theme['imgdir']."/$img\" alt=\"$alt\" />";
}
return $rep;

		$rep .= "<img src=\"".$theme['imgdir']."/$img\" alt=\"$alt\" />";
}
return $rep;

Zeile 1394Zeile 1395
		$pwverified = 1;
if($forum['password'] != "")
{

		$pwverified = 1;
if($forum['password'] != "")
{

			if($forumpass[$forum['fid']] != md5($mybbuser['uid'].$forum['password']))

			if($_COOKIE['forumpass'][$forum['fid']] != md5($mybbuser['uid'].$forum['password']))

			{
$pwverified = 0;
}

			{
$pwverified = 0;
}

Zeile 1493Zeile 1494
					if($pforumcache[$fid][$forumnav['pid']]['type'] == "f")
{
$navbits[$navsize]['url'] = $archiveurl."/index.php/forum-".$forumnav['fid'].".html";

					if($pforumcache[$fid][$forumnav['pid']]['type'] == "f")
{
$navbits[$navsize]['url'] = $archiveurl."/index.php/forum-".$forumnav['fid'].".html";

					}

					}

					else
{
$navbits[$navsize]['url'] = $archiveurl."/index.php";

					else
{
$navbits[$navsize]['url'] = $archiveurl."/index.php";

Zeile 1530Zeile 1531
	if(strstr(getenv("REQUEST_URI"), "?"))
{
$debuglink = getenv("REQUEST_URI") . "&debug=1";

	if(strstr(getenv("REQUEST_URI"), "?"))
{
$debuglink = getenv("REQUEST_URI") . "&debug=1";

	}
else
{

	}
else
{

		$debuglink = getenv("REQUEST_URI") . "?debug=1";
}
if($mybb->settings['gzipoutput'] != "no")

		$debuglink = getenv("REQUEST_URI") . "?debug=1";
}
if($mybb->settings['gzipoutput'] != "no")

Zeile 1598Zeile 1599
}

function pageheaders() {

}

function pageheaders() {

	global $settings;

	global $mybb;

	if($mybb->settings['nocacheheaders'] == "yes" && $mybb->settings['standardheaders'] != "yes")
{
header("Expires: Sat, 1 Jan 2000 01:00:00 GMT");

	if($mybb->settings['nocacheheaders'] == "yes" && $mybb->settings['standardheaders'] != "yes")
{
header("Expires: Sat, 1 Jan 2000 01:00:00 GMT");