Vergleich inc/functions.php - 1.2.1 - 1.2.2

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://www.mybboard.com
* License: http://www.mybboard.com/eula.html
*

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

 * $Id: functions.php 2277 2006-09-27 10:26:56Z chris $

 * $Id: functions.php 2459 2006-11-29 09:09:55Z chris $

 */

/**

 */

/**

Zeile 106Zeile 106
 */
function run_shutdown()
{

 */
function run_shutdown()
{

	global $db, $cache, $shutdown_functions, $done_shutdown;

	global $db, $cache, $plugins, $shutdown_functions, $done_shutdown;

	
if($done_shutdown == true)
{
return;
}

	
if($done_shutdown == true)
{
return;
}

 
	
// If our DB has been deconstructed already (bad PHP 5.2.0), reconstruct
if(!is_object($db))
{
require MYBB_ROOT."inc/config.php";
if(isset($config))
{
require_once MYBB_ROOT."inc/db_".$config['dbtype'].".php";
$db = new databaseEngine;
$db->connect($config['hostname'], $config['username'], $config['password']);
$db->select_db($config['database']);
}
}

// Cache object deconstructed? reconstruct
if(!is_object($cache))
{
require_once MYBB_ROOT."inc/class_datacache.php";
$cache = new datacache;
}

// And finaly.. we have the PHP developers to thank for this "hack" which fixes a problem THEY created
if(!is_object($plugins) && !defined("NO_PLUGINS"))
{
require_once MYBB_ROOT."inc/class_plugins.php";
$plugins = new pluginSystem;
$plugins->load();
}


// We have some shutdown queries needing to be run
if(is_array($db->shutdown_queries))


// We have some shutdown queries needing to be run
if(is_array($db->shutdown_queries))

Zeile 120Zeile 148
		foreach($db->shutdown_queries as $query)
{
$db->query($query);

		foreach($db->shutdown_queries as $query)
{
$db->query($query);

		}
}

		}
}


// Run any shutdown functions if we have them
if(is_array($shutdown_functions))


// Run any shutdown functions if we have them
if(is_array($shutdown_functions))

Zeile 142Zeile 170
function send_mail_queue($count=10)
{
global $db, $cache, $plugins;

function send_mail_queue($count=10)
{
global $db, $cache, $plugins;



	

	$plugins->run_hooks("send_mail_queue_start");

// Check to see if the mail queue has messages needing to be sent

	$plugins->run_hooks("send_mail_queue_start");

// Check to see if the mail queue has messages needing to be sent

Zeile 151Zeile 179
	{
// Lock the queue so no other messages can be sent whilst these are (for popular boards)
$cache->updatemailqueue(0, time());

	{
// Lock the queue so no other messages can be sent whilst these are (for popular boards)
$cache->updatemailqueue(0, time());





		// Fetch emails for this page view - and send them
$query = $db->simple_select(TABLE_PREFIX."mailqueue", "*", "", array("order_by" => "mid", "order_dir" => "asc", "limit_start" => 0, "limit" => $count));


		// Fetch emails for this page view - and send them
$query = $db->simple_select(TABLE_PREFIX."mailqueue", "*", "", array("order_by" => "mid", "order_dir" => "asc", "limit_start" => 0, "limit" => $count));


Zeile 161Zeile 189
		{
// Delete the message from the queue
$db->delete_query(TABLE_PREFIX."mailqueue", "mid='{$email['mid']}'");

		{
// Delete the message from the queue
$db->delete_query(TABLE_PREFIX."mailqueue", "mid='{$email['mid']}'");





			my_mail($email['mailto'], $email['subject'], $email['message'], $email['mailfrom'], "", $email['headers']);
}
// Update the mailqueue cache and remove the lock
$cache->updatemailqueue(time(), 0);

			my_mail($email['mailto'], $email['subject'], $email['message'], $email['mailfrom'], "", $email['headers']);
}
// Update the mailqueue cache and remove the lock
$cache->updatemailqueue(time(), 0);

	}

	}

	$plugins->run_hooks("send_mail_queue_end");
}


	$plugins->run_hooks("send_mail_queue_end");
}


Zeile 190Zeile 218
	else
{
$contents = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n".$contents;

	else
{
$contents = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n".$contents;

	}

	}

	if($lang->settings['rtl'] == 1)
{
$contents = str_replace("<html", "<html dir=\"rtl\"", $contents);

	if($lang->settings['rtl'] == 1)
{
$contents = str_replace("<html", "<html dir=\"rtl\"", $contents);

Zeile 230Zeile 258
	}

if(!$offset && $offset != '0')

	}

if(!$offset && $offset != '0')

	{

	{

		if($mybb->user['uid'] != 0 && array_key_exists("timezone", $mybb->user))
{
$offset = $mybb->user['timezone'];
$dstcorrection = $mybb->user['dst'];

		if($mybb->user['uid'] != 0 && array_key_exists("timezone", $mybb->user))
{
$offset = $mybb->user['timezone'];
$dstcorrection = $mybb->user['dst'];

		}

		}

		elseif(defined("IN_ADMINCP"))
{
$offset = $mybbadmin['timezone'];
$dstcorrection = $mybbadmin['dst'];

		elseif(defined("IN_ADMINCP"))
{
$offset = $mybbadmin['timezone'];
$dstcorrection = $mybbadmin['dst'];

		}

		}

		else
{
$offset = $mybb->settings['timezoneoffset'];
$dstcorrection = $mybb->settings['dstcorrection'];

		else
{
$offset = $mybb->settings['timezoneoffset'];
$dstcorrection = $mybb->settings['dstcorrection'];

		}

		}

		// If DST correction is enabled, add an additional hour to the timezone.
if($dstcorrection == "yes")
{

		// If DST correction is enabled, add an additional hour to the timezone.
if($dstcorrection == "yes")
{

Zeile 255Zeile 283
				$offset = "+".$offset;
}
}

				$offset = "+".$offset;
}
}

	}

	}

	if($offset == "-")
{
$offset = 0;

	if($offset == "-")
{
$offset = 0;

Zeile 269Zeile 297
		if($todaysdate == $date)
{
$date = $lang->today;

		if($todaysdate == $date)
{
$date = $lang->today;

		}

		}

		elseif($yesterdaysdate == $date)
{
$date = $lang->yesterday;
}

		elseif($yesterdaysdate == $date)
{
$date = $lang->yesterday;
}

	}

	}

	
$plugins->run_hooks_by_ref("my_date", $date);


	
$plugins->run_hooks_by_ref("my_date", $date);


Zeile 309Zeile 337
	if($_SERVER['SERVER_NAME'])
{
$http_host = $_SERVER['SERVER_NAME'];

	if($_SERVER['SERVER_NAME'])
{
$http_host = $_SERVER['SERVER_NAME'];

	}

	}

	else if($_SERVER['HTTP_HOST'])
{
$http_host = $_SERVER['HTTP_HOST'];

	else if($_SERVER['HTTP_HOST'])
{
$http_host = $_SERVER['HTTP_HOST'];

Zeile 427Zeile 455
	if(!$error)
{
$error = $lang->unknown_error;

	if(!$error)
{
$error = $lang->unknown_error;

	}

	}

	if(!$title)
{
$title = $mybb->settings['bbname'];

	if(!$title)
{
$title = $mybb->settings['bbname'];

Zeile 801Zeile 829
	{
return $groupperms;
}

	{
return $groupperms;
}

 
	// The fix here for better working inheritance was provided by tinywizard - http://windizupdate.com/
// Many thanks.
foreach($fpermfields as $perm)
{
$forumpermissions[$perm] = "no";
}


	foreach($groups as $gid)
{
if($gid && $groupscache[$gid])
{

	foreach($groups as $gid)
{
if($gid && $groupscache[$gid])
{

			if(!is_array($fpermcache[$fid][$gid]))

			if(is_array($fpermcache[$fid][$gid]))

			{

			{

				continue;

				$p = $fpermcache[$fid][$gid];

			}

			}

			foreach($fpermcache[$fid][$gid] as $perm => $access)






			else
{
$p = $groupperms;
}

if($p == NULL)

			{

			{

				if($perm == "fid" || $perm == "gid" || $perm == "pid")

				foreach($forumpermissions as $k => $v)

				{

				{

					continue;

					$forumpermissions[$k] = 'yes';        // no inherited group, assume one has access

				}

				}

				$permission = $forumpermissions[$perm];
if((is_numeric($access) && $access > $permission) || ($access == "yes" && $permission == "no") || !$permission)



			}
else
{
foreach($p as $perm => $access)

				{

				{

					$forumpermissions[$perm] = $access;




					if(isset($forumpermissions[$perm]) && $access == 'yes')
{
$forumpermissions[$perm] = $access;
}

				}
}
}

				}
}
}

	}
if(!isset($forumpermissions))
{
$forumpermissions = $groupperms;

 
	}
return $forumpermissions;
}

	}
return $forumpermissions;
}

Zeile 837Zeile 878
 * @param string The plain text password for the forum
*/
function check_forum_password($fid, $password="")

 * @param string The plain text password for the forum
*/
function check_forum_password($fid, $password="")

{

{

	global $mybb, $header, $footer, $headerinclude, $theme, $templates, $lang;
$showform = 1;


	global $mybb, $header, $footer, $headerinclude, $theme, $templates, $lang;
$showform = 1;


Zeile 944Zeile 985
	else
{
if(!$fid)

	else
{
if(!$fid)

		{

		{

			$query = $db->simple_select(TABLE_PREFIX.'moderators', 'mid', "uid={$uid}", array('limit' => 1));
$modcheck = $db->fetch_array($query);
if($modcheck['mid'])

			$query = $db->simple_select(TABLE_PREFIX.'moderators', 'mid', "uid={$uid}", array('limit' => 1));
$modcheck = $db->fetch_array($query);
if($modcheck['mid'])

Zeile 1020Zeile 1061
	return $posticons;
}


	return $posticons;
}


 
/**
* MyBB setcookie() wrapper.
*
* @param string The cookie identifier.
* @param string The cookie value.
* @param int The timestamp of the expiry date.
* @param boolean True if setting a HttpOnly cookie (supported by IE, Opera 9, Konqueror)
*/

function my_setcookie($name, $value="", $expires="", $httponly=false)
{

function my_setcookie($name, $value="", $expires="", $httponly=false)
{

	global $mybb, $sent_header;
if($sent_header || headers_sent())
{
return false;
}

	global $mybb;






if(!$mybb->settings['cookiepath'])
{


if(!$mybb->settings['cookiepath'])
{

Zeile 1083Zeile 1128
 */
function my_unsetcookie($name)
{

 */
function my_unsetcookie($name)
{

	global $mybb, $sent_header;

if($sent_header)
{
return false;
}

$expires = time()-3600;

	global $mybb;
$expires = -3600;
my_setcookie($name, "", $expires);
}









	my_setcookie($name, "", $expires);
}

/**

/**




 * Get the contents from a serialised cookie array.
*
* @param string The cookie identifier.

 * Get the contents from a serialised cookie array.
*
* @param string The cookie identifier.

Zeile 1127Zeile 1165
 * @param string The value to set the cookie to.
*/
function my_set_array_cookie($name, $id, $value)

 * @param string The value to set the cookie to.
*/
function my_set_array_cookie($name, $id, $value)

{

{

	$cookie = $_COOKIE['mybb'];
$newcookie = unserialize($cookie[$name]);
$newcookie[$id] = $value;

	$cookie = $_COOKIE['mybb'];
$newcookie = unserialize($cookie[$name]);
$newcookie[$id] = $value;

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

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

	}

	}

	$returnload = trim($serverload[0]);
if(!$returnload)
{

	$returnload = trim($serverload[0]);
if(!$returnload)
{

Zeile 1238Zeile 1276
function update_thread_count($tid)
{
global $db, $cache;

function update_thread_count($tid)
{
global $db, $cache;

	$query = $db->query("

	$query = $db->query("

		SELECT COUNT(*) AS replies
FROM ".TABLE_PREFIX."posts
WHERE tid='$tid'

		SELECT COUNT(*) AS replies
FROM ".TABLE_PREFIX."posts
WHERE tid='$tid'

Zeile 1297Zeile 1335
	update_thread_attachment_count($tid);
$db->query("
UPDATE ".TABLE_PREFIX."threads

	update_thread_attachment_count($tid);
$db->query("
UPDATE ".TABLE_PREFIX."threads

		SET username='".$firstpost['username']."', uid='".intval($firstpost['uid'])."', lastpost='".$lastpost['dateline']."', lastposter='".$lastpost['username']."', lastposteruid='".intval($lastpost['uid'])."', replies='$treplies', unapprovedposts='$nounposts'

		SET username='".$firstpost['username']."', uid='".intval($firstpost['uid'])."', lastpost='".intval($lastpost['dateline'])."', lastposter='".$lastpost['username']."', lastposteruid='".intval($lastpost['uid'])."', replies='$treplies', unapprovedposts='$nounposts'

		WHERE tid='$tid'
");
}

		WHERE tid='$tid'
");
}

Zeile 1387Zeile 1425
			if($forum['active'] != "no")
{
$jumpfcache[$forum['pid']][$forum['disporder']][$forum['fid']] = $forum;

			if($forum['active'] != "no")
{
$jumpfcache[$forum['pid']][$forum['disporder']][$forum['fid']] = $forum;

			}
}

			}
}

	}
if(!is_array($permissioncache))
{
$permissioncache = forum_permissions();

	}
if(!is_array($permissioncache))
{
$permissioncache = forum_permissions();

	}

	}

	if(is_array($jumpfcache[$pid]))
{
foreach($jumpfcache[$pid] as $main)

	if(is_array($jumpfcache[$pid]))
{
foreach($jumpfcache[$pid] as $main)

Zeile 1416Zeile 1454
						$forumjumpbits .= build_forum_jump($forum['fid'], $selitem, 0, $newdepth, $showextras);
}
}

						$forumjumpbits .= build_forum_jump($forum['fid'], $selitem, 0, $newdepth, $showextras);
}
}

			}

			}

		}
}
if($addselect)

		}
}
if($addselect)

Zeile 1426Zeile 1464
			if(!$selitem)
{
$selitem = "default";

			if(!$selitem)
{
$selitem = "default";

			}

			}

			$jumpsel[$selitem] = "selected";
}
if($showextras == 0)

			$jumpsel[$selitem] = "selected";
}
if($showextras == 0)

Zeile 1505Zeile 1543

/**
* Build the javascript based MyCode inserter


/**
* Build the javascript based MyCode inserter

 *

 *

 * @return string The MyCode inserter
*/
function build_mycode_inserter()

 * @return string The MyCode inserter
*/
function build_mycode_inserter()

Zeile 1583Zeile 1621

/**
* Build the javascript clickable smilie inserter


/**
* Build the javascript clickable smilie inserter

 *

 *

 * @return string The clickable smilies list
*/
function build_clickable_smilies()

 * @return string The clickable smilies list
*/
function build_clickable_smilies()

Zeile 1702Zeile 1740
				$gzdata .= pack("V", $crc);
$gzdata .= pack("V", $size);
$contents = $gzdata;

				$gzdata .= pack("V", $crc);
$gzdata .= pack("V", $size);
$contents = $gzdata;

			}
}
}

			}
}
}

	return $contents;
}


	return $contents;
}


Zeile 1722Zeile 1760
	if($data['fid'] == '')
{
$fid = 0;

	if($data['fid'] == '')
{
$fid = 0;

	}
else
{

	}
else
{

		$fid = $data['fid'];
unset($data['fid']);
}
if($data['tid'] == '')

		$fid = $data['fid'];
unset($data['fid']);
}
if($data['tid'] == '')

	{

	{

		$tid = 0;
}
else

		$tid = 0;
}
else

Zeile 1742Zeile 1780
	if(is_array($data))
{
$data = serialize($data);

	if(is_array($data))
{
$data = serialize($data);

	}

$time = time();

	}

$time = time();


$sql_array = array(
"uid" => $mybb->user['uid'],


$sql_array = array(
"uid" => $mybb->user['uid'],

Zeile 1781Zeile 1819
	else if($reputation > 0)
{
$display_reputation .= "reputation_positive";

	else if($reputation > 0)
{
$display_reputation .= "reputation_positive";

	}
else
{

	}
else
{

		$display_reputation .= "reputation_neutral";
}
$display_reputation .= "\">{$reputation}</strong>";

		$display_reputation .= "reputation_neutral";
}
$display_reputation .= "\">{$reputation}</strong>";

Zeile 1860Zeile 1898
		$size = $size . " " . $lang->size_bytes;
}
return $size;

		$size = $size . " " . $lang->size_bytes;
}
return $size;

}

/**

}

/**

 * Get the attachment icon for a specific file extension
*
* @param string The file extension
* @return string The attachment icon

 * Get the attachment icon for a specific file extension
*
* @param string The file extension
* @return string The attachment icon

 */

 */

function get_attachment_icon($ext)
{
global $cache, $attachtypes;

function get_attachment_icon($ext)
{
global $cache, $attachtypes;

Zeile 1882Zeile 1920
		return "<img src=\"".$attachtypes[$ext]['icon']."\" border=\"0\" alt=\".$ext File\" />";
}
else

		return "<img src=\"".$attachtypes[$ext]['icon']."\" border=\"0\" alt=\".$ext File\" />";
}
else

	{

	{

		return "<img src=\"images/attachtypes/unknown.gif\" border=\"0\" alt=\".$ext File\" />";
}
}

		return "<img src=\"images/attachtypes/unknown.gif\" border=\"0\" alt=\".$ext File\" />";
}
}

Zeile 1901Zeile 1939
	if(!$permissions)
{
$permissions = $mybb->usergroup;

	if(!$permissions)
{
$permissions = $mybb->usergroup;

	}

	}

	if(!is_array($forum_cache))
{
cache_forums();

	if(!is_array($forum_cache))
{
cache_forums();

Zeile 1926Zeile 1964
			if($_COOKIE['forumpass'][$forum['fid']] != md5($mybb->user['uid'].$forum['password']))
{
$pwverified = 0;

			if($_COOKIE['forumpass'][$forum['fid']] != md5($mybb->user['uid'].$forum['password']))
{
$pwverified = 0;

			}

			}

		}
if($perms['canview'] == "no" || $pwverified == 0)
{

		}
if($perms['canview'] == "no" || $pwverified == 0)
{

Zeile 1941Zeile 1979
}
/**
* Fixes mktime() for dates earlier than 1970

}
/**
* Fixes mktime() for dates earlier than 1970

 *

 *

 * @param string The date format to use
* @param int The year of the date
* @return string The correct date format

 * @param string The date format to use
* @param int The year of the date
* @return string The correct date format

Zeile 2019Zeile 2057
		if(!is_array($forum_cache))
{
cache_forums();

		if(!is_array($forum_cache))
{
cache_forums();

		}

		}

		foreach($forum_cache as $key => $val)
{
$pforumcache[$val['fid']][$val['pid']] = $val;

		foreach($forum_cache as $key => $val)
{
$pforumcache[$val['fid']][$val['pid']] = $val;

		}

		}

	}
if(is_array($pforumcache[$fid]))
{

	}
if(is_array($pforumcache[$fid]))
{

Zeile 2057Zeile 2095
		}
}
return 1;

		}
}
return 1;

}

/**

}

/**

 * Resets the breadcrumb navigation to the first item, and clears the rest
*/
function reset_breadcrumb()

 * Resets the breadcrumb navigation to the first item, and clears the rest
*/
function reset_breadcrumb()

Zeile 2177Zeile 2215
	{
$memory_usage = memory_get_usage();
$memory_limit = @ini_get("memory_limit");

	{
$memory_usage = memory_get_usage();
$memory_limit = @ini_get("memory_limit");

		echo "<tr>\n";

		echo "<tr>\n";

		echo "<td bgcolor=\"#EFEFEF\" width=\"25%\"><b><font face=\"Tahoma\" size=\"2\">Memory Usage:</font></b></td>\n";
echo "<td bgcolor=\"#FEFEFE\" width=\"25%\"><font face=\"Tahoma\" size=\"2\">".get_friendly_size($memory_usage)." ({$memory_usage} bytes)</font></td>\n";
echo "<td bgcolor=\"#EFEFEF\" width=\"25%\"><b><font face=\"Tahoma\" size=\"2\">Memory Limit:</font></b></td>\n";

		echo "<td bgcolor=\"#EFEFEF\" width=\"25%\"><b><font face=\"Tahoma\" size=\"2\">Memory Usage:</font></b></td>\n";
echo "<td bgcolor=\"#FEFEFE\" width=\"25%\"><font face=\"Tahoma\" size=\"2\">".get_friendly_size($memory_usage)." ({$memory_usage} bytes)</font></td>\n";
echo "<td bgcolor=\"#EFEFEF\" width=\"25%\"><b><font face=\"Tahoma\" size=\"2\">Memory Limit:</font></b></td>\n";

Zeile 2256Zeile 2294
			}
break;
case "post":

			}
break;
case "post":

			$db->update_query(TABLE_PREFIX."reportedposts", array('reportstatus' => 1), "pid='$id' AND reportstatus='0'");

			$db->update_query(TABLE_PREFIX."reportedposts", array('reportstatus' => 1), "pid='$id' AND reportstatus='0'");

			break;
case "threads":
if(is_array($id))

			break;
case "threads":
if(is_array($id))

Zeile 2334Zeile 2372
		$nicetime['weeks'] = "1 ".$lang->week;
}
elseif($weeks > 1)

		$nicetime['weeks'] = "1 ".$lang->week;
}
elseif($weeks > 1)

	{

	{

		$nicetime['weeks'] = $weeks." ".$lang->weeks;
}

if($days == 1)

		$nicetime['weeks'] = $weeks." ".$lang->weeks;
}

if($days == 1)

	{

	{

		$nicetime['days'] = "1 ".$lang->day;
}
elseif($days > 1)

		$nicetime['days'] = "1 ".$lang->day;
}
elseif($days > 1)

Zeile 2354Zeile 2392
	elseif($hours > 1)
{
$nicetime['hours'] = $hours." ".$lang->hours;

	elseif($hours > 1)
{
$nicetime['hours'] = $hours." ".$lang->hours;

	}

	}


if($minutes == 1)
{
$nicetime['minutes'] = "1 ".$lang->minute;


if($minutes == 1)
{
$nicetime['minutes'] = "1 ".$lang->minute;

	}

	}

	elseif($minutes > 1)
{
$nicetime['minutes'] = $minutes." ".$lang->minutes;

	elseif($minutes > 1)
{
$nicetime['minutes'] = $minutes." ".$lang->minutes;

Zeile 2374Zeile 2412
		$nicetime['seconds'] = $seconds." ".$lang->seconds;
}
if(is_array($nicetime))

		$nicetime['seconds'] = $seconds." ".$lang->seconds;
}
if(is_array($nicetime))

	{

	{

		return implode(", ", $nicetime);

		return implode(", ", $nicetime);

	}
}


	}
}


/**
* Select an alternating row colour based on the previous call to this function
*

/**
* Select an alternating row colour based on the previous call to this function
*

Zeile 2391Zeile 2429
	if($alttrow == "trow1" && !$reset)
{
$trow = "trow2";

	if($alttrow == "trow1" && !$reset)
{
$trow = "trow2";

	}

	}

	else
{
$trow = "trow1";

	else
{
$trow = "trow1";

	}

	}

	$alttrow = $trow;
return $trow;
}

	$alttrow = $trow;
return $trow;
}

Zeile 2409Zeile 2447
function join_usergroup($uid, $joingroup)
{
global $db;

function join_usergroup($uid, $joingroup)
{
global $db;

	if($uid == $mybb->user['uid'])
{
$user = $mybb->user;
}
else

	if($uid == $mybb->user['uid'])
{
$user = $mybb->user;
}
else

	{
$query = $db->query("
SELECT additionalgroups, usergroup

	{
$query = $db->query("
SELECT additionalgroups, usergroup

Zeile 2531Zeile 2569
			$location = $_ENV['PHP_SELF'];
}
else

			$location = $_ENV['PHP_SELF'];
}
else

		{

		{

			$location = $_SERVER['PHP_SELF'];
}
if(isset($_SERVER['QUERY_STRING']))

			$location = $_SERVER['PHP_SELF'];
}
if(isset($_SERVER['QUERY_STRING']))

Zeile 2649Zeile 2687
	}
return $themeselect;
}

	}
return $themeselect;
}



 

/**
* Custom function for htmlspecialchars which takes in to account unicode


/**
* Custom function for htmlspecialchars which takes in to account unicode

Zeile 3179Zeile 3216
			$inactive[] = $fid;
foreach($forum_cache as $fid1 => $forum1)
{

			$inactive[] = $fid;
foreach($forum_cache as $fid1 => $forum1)
{

				if(strpos(",".$forum1['parentlist'].",", ",".$fid.",") !== false)

				if(strpos(",".$forum1['parentlist'].",", ",".$fid.",") !== false && !in_array($fid1, $inactive))

				{

				{

					$inactive[] = $fid;

					$inactive[] = $fid1;

				}
}
}

				}
}
}