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

 * $Id: adminfunctions.php 2454 2006-11-28 17:30:16Z CraKteR $

 */

$cssselectors = array(

 */

$cssselectors = array(

Zeile 116Zeile 116
	echo "<tr><td class=\"hoptobuttons\">";
if(!is_array($links))
{

	echo "<tr><td class=\"hoptobuttons\">";
if(!is_array($links))
{

		$links[] = $links;

		$links = array($links);

	}
foreach($links as $key => $val)
{

	}
foreach($links as $key => $val)
{

Zeile 369Zeile 369
	}
if(!is_array($options))
{

	}
if(!is_array($options))
{

		$options[] = $options;

		$options = array($options);

	}
foreach($options as $value => $label)
{

	}
foreach($options as $value => $label)
{

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

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

Zeile 933Zeile 934
	echo "<ul>\n";
echo $navoptions;
echo "</ul>\n</td>\n";

	echo "<ul>\n";
echo $navoptions;
echo "</ul>\n</td>\n";

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

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

	echo "<br />\n";

$navoptions = "";

	echo "<br />\n";

$navoptions = "";

}

}



function endnav()



function endnav()

Zeile 951Zeile 952
{
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 961Zeile 962
	{
echo $navselects;
echo "<hr>";

	{
echo $navselects;
echo "<hr>";

	}

	}

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

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

Zeile 970Zeile 971
{
if(!is_array($values))
{

{
if(!is_array($values))
{

		$values[] = $values;
}
foreach($values as $action => $title)
{

		$values = array($values);
}
foreach($values as $action => $title)
{

		$options .= "<option value=\"$action\">$title</option>\n";
}
$buttononchange = "";
if($onchange)
{

		$options .= "<option value=\"$action\">$title</option>\n";
}
$buttononchange = "";
if($onchange)
{

	  $buttononchange = " onclick=\"{$onchange} this.form.submit(); return false;\"";
$onchange .= " ";
}

	  	$buttononchange = " onclick=\"{$onchange} this.form.submit(); return false;\"";
$onchange .= " ";
}

	return "<select name=\"$name\" onchange=\"{$onchange}this.form.submit();\">\n$options</select>\n&nbsp;\n<input type=\"submit\" value=\"Go\"$buttononchange />\n";
}


	return "<select name=\"$name\" onchange=\"{$onchange}this.form.submit();\">\n$options</select>\n&nbsp;\n<input type=\"submit\" value=\"Go\"$buttononchange />\n";
}


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 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 2367
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;