Vergleich admin/adminfunctions.php - 1.2.0 - 1.2.1

  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: adminfunctions.php 2164 2006-08-30 06:17:49Z chris $

 * $Id: adminfunctions.php 2263 2006-09-26 09:24:25Z chris $

 */

$cssselectors = array(

 */

$cssselectors = array(

Zeile 879Zeile 879
function cpfooter($showversion=1)
{
global $mybb, $db, $maintimer, $lang;

function cpfooter($showversion=1)
{
global $mybb, $db, $maintimer, $lang;

 


	echo "<div align=\"center\">\n<br />\n<br />\n";
$totaltime = $maintimer->stop();
$lang->footer_stats = sprintf($lang->footer_stats, $totaltime, $db->query_count);
if(!$showversion)

	echo "<div align=\"center\">\n<br />\n<br />\n";
$totaltime = $maintimer->stop();
$lang->footer_stats = sprintf($lang->footer_stats, $totaltime, $db->query_count);
if(!$showversion)

	{

	{

		$mybbversion = "";

		$mybbversion = "";

	}

	}

	else
{
$mybbversion = $mybb->version;

	else
{
$mybbversion = $mybb->version;

Zeile 896Zeile 897
}

function getaltbg()

}

function getaltbg()

{

{

	global $bgcolor;
if($bgcolor == "altbg1")

	global $bgcolor;
if($bgcolor == "altbg1")

	{

	{

		$bgcolor = "altbg2";
}
else

		$bgcolor = "altbg2";
}
else

Zeile 907Zeile 908
		$bgcolor = "altbg1";
}
return $bgcolor;

		$bgcolor = "altbg1";
}
return $bgcolor;

}

}

function startnav()

function startnav()

{
echo "<table cellpadding=\"1\" cellspacing=\"0\" border=\"0\" align=\"center\" width=\"100%\" class=\"lnavbordercolor\">\n";
echo "<tr>\n<td>\n";
echo "<table cellpadding=\"6\" cellspacing=\"0\" border=\"0\" width=\"100%\">\n";
}

{
echo "<table cellpadding=\"1\" cellspacing=\"0\" border=\"0\" align=\"center\" width=\"100%\" class=\"lnavbordercolor\">\n";
echo "<tr>\n<td>\n";
echo "<table cellpadding=\"6\" cellspacing=\"0\" border=\"0\" width=\"100%\">\n";
}

function makenavoption($name, $url)
{
global $navoptions;

function makenavoption($name, $url)
{
global $navoptions;

Zeile 945Zeile 946
{
echo "</table>\n";
echo "</td>\n</tr>\n</table>\n";

{
echo "</table>\n";
echo "</td>\n</tr>\n</table>\n";

	echo "<br />\n";
}
function makenavgroup($name="")
{

	echo "<br />\n";
}
function makenavgroup($name="")
{

	global $noframes, $navoptions, $navselects;
if($noframes)

	global $noframes, $navoptions, $navselects;
if($noframes)

	{

	{

		echo "<td>\n<select onchange=\"navJump(this.options[this.selectedIndex].value, this.form)\">\n";
echo "<option value=\"\">$name</option>\n<option value=\"\">&nbsp;</option>\n";
echo $navselects;

		echo "<td>\n<select onchange=\"navJump(this.options[this.selectedIndex].value, this.form)\">\n";
echo "<option value=\"\">$name</option>\n<option value=\"\">&nbsp;</option>\n";
echo $navselects;

Zeile 964Zeile 965
	}
$navselects = "";
$navoptions = "";

	}
$navselects = "";
$navoptions = "";

}


}


function makehopper($name, $values, $onchange="")
{
if(!is_array($values))

function makehopper($name, $values, $onchange="")
{
if(!is_array($values))

Zeile 1000Zeile 1001
function forumselect($name, $selected="",$fid="0",$depth="", $shownone="1", $extra="", $extra2="")
{
global $db, $forumselect, $lang, $cforumcache;

function forumselect($name, $selected="",$fid="0",$depth="", $shownone="1", $extra="", $extra2="")
{
global $db, $forumselect, $lang, $cforumcache;





	if(!is_array($cforumcache))
{
$options = array(

	if(!is_array($cforumcache))
{
$options = array(

Zeile 1017Zeile 1018
	if(!$fid)
{
$forumselect .= "<select name=\"$name\">";

	if(!$fid)
{
$forumselect .= "<select name=\"$name\">";

		if($extra)

		if($extra)

		{
$selected1 = '';
if($selected == -1)

		{
$selected1 = '';
if($selected == -1)

Zeile 1060Zeile 1061
	if(is_array($cforumcache['pid'][$fid]))
{
foreach($cforumcache['pid'][$fid] as $forum)

	if(is_array($cforumcache['pid'][$fid]))
{
foreach($cforumcache['pid'][$fid] as $forum)

		{

		{

			forumselect($name, $selected, $forum[fid], $depth, $shownone, $extra, $extra2);
}
}

			forumselect($name, $selected, $forum[fid], $depth, $shownone, $extra, $extra2);
}
}

Zeile 1102Zeile 1103
		if($extra)
{
$selected1 = '';

		if($extra)
{
$selected1 = '';

			if($selected == -1)





			if(!is_array($selected)) 
{
$selected = array($selected);
}
if(in_array(-1, $selected))

			{
$selected1 = ' checked="checked"';
}

			{
$selected1 = ' checked="checked"';
}

Zeile 1114Zeile 1119
	{
$startforum = $cforumcache['fid'][$fid];
$forumchecklist .= "$depth<input type=\"checkbox\" name=\"{$name}[]\" value=\"$startforum[fid]\"";

	{
$startforum = $cforumcache['fid'][$fid];
$forumchecklist .= "$depth<input type=\"checkbox\" name=\"{$name}[]\" value=\"$startforum[fid]\"";

		if($selected == $startforum['fid'] || (is_array($selected) && in_array($forum['fid'], $selected)))

		if(in_array($startforum['fid'], $selected) || (is_array($selected) && in_array($forum['fid'], $selected)))

		{
$forumchecklist .= ' checked="checked"';
}

		{
$forumchecklist .= ' checked="checked"';
}

Zeile 1433Zeile 1438
		{
$inheritcheck = "";
$inheritclass = "";

		{
$inheritcheck = "";
$inheritclass = "";

		}

		}

		else
{
$inheritcheck = " checked=\"checked\"";

		else
{
$inheritcheck = " checked=\"checked\"";

Zeile 1988Zeile 1993
				{
echo "<option value=\"default\">- $lang->set_as_default</option>";
}

				{
echo "<option value=\"default\">- $lang->set_as_default</option>";
}

 
				echo "<option value=\"\" style=\"font-weight: bold;\">$lang->theme_style</option>";
echo "<option value=\"edit\" selected>- $lang->edit_theme_style</option>\n";


			}

			}

			echo "<option value=\"\" style=\"font-weight: bold;\">$lang->theme_style</option>";
echo "<option value=\"edit\" selected>- $lang->edit_theme_style</option>\n";

 
			echo "<option value=\"\" style=\"font-weight: bold;\">$lang->other_options</option>\n";
echo "<option value=\"download\">- $lang->export_theme</option>\n";
echo "</select>&nbsp;<input type=\"button\" onclick=\"theme_hop($theme[tid]);\" value=\"$lang->go\" /></td>\n";

			echo "<option value=\"\" style=\"font-weight: bold;\">$lang->other_options</option>\n";
echo "<option value=\"download\">- $lang->export_theme</option>\n";
echo "</select>&nbsp;<input type=\"button\" onclick=\"theme_hop($theme[tid]);\" value=\"$lang->go\" /></td>\n";

Zeile 2362Zeile 2368
function is_super_admin($uid)
{
global $config;

function is_super_admin($uid)
{
global $config;

 
	$config['super_admins'] = str_replace(" ", "", $config['super_admins']);

	if(strpos(",{$config['super_admins']},", ",{$uid},") === false)
{
return false;

	if(strpos(",{$config['super_admins']},", ",{$uid},") === false)
{
return false;