Vergleich admin/adminfunctions.php - 1.2.9 - 1.2.12

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

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

 * $Id: adminfunctions.php 3156 2007-06-24 12:49:57Z CraKteR $

 * $Id: adminfunctions.php 3311 2007-09-13 13:55:27Z chris $

 */

$cssselectors = array(

 */

$cssselectors = array(

Zeile 385Zeile 385
	}
echo "</select>\n</td>\n</tr>\n";
}

	}
echo "</select>\n</td>\n</tr>\n";
}

function makedateselect($title, $name, $day, $month, $year)
{
$dname = $name."[day]";
$mname = $name."[month]";
$yname = $name."[year]";

for($i = 1; $i <= 31; $i++)
{
if($day == $i)
{
$daylist .= "<option value=\"$i\" selected>$i</option>\n";
}
else
{
$daylist .= "<option value=\"$i\">$i</option>\n";
}
}

$monthsel[$month] = "selected";
$monthlist .= "<option value=\"\">------------</option>";
$monthlist .= "<option value=\"01\" $monthsel[01]>January</option>\n";
$monthlist .= "<option value=\"02\" $monthsel[02]>February</option>\n";
$monthlist .= "<option value=\"03\" $monthsel[03]>March</option>\n";
$monthlist .= "<option value=\"04\" $monthsel[04]>April</option>\n";
$monthlist .= "<option value=\"05\" $monthsel[05]>May</option>\n";
$monthlist .= "<option value=\"06\" $monthsel[06]>June</option>\n";
$monthlist .= "<option value=\"07\" $monthsel[07]>July</option>\n";
$monthlist .= "<option value=\"08\" $monthsel[08]>August</option>\n";
$monthlist .= "<option value=\"09\" $monthsel[09]>September</option>\n";
$monthlist .= "<option value=\"10\" $monthsel[10]>October</option>\n";
$monthlist .= "<option value=\"11\" $monthsel[11]>November</option>\n";
$monthlist .= "<option value=\"12\" $monthsel[12]>December</option>\n";
$dateselect = "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr>\n";
$dateselect .= "<td><b><small>Day</small></b><br />\n<select name=\"$dname\"><option value=\"\">--</option>\n$daylist</select></td>\n";
$dateselect .= "<td><b><small>Month</small></b><br />\n<select name=\"$mname\">$monthlist</select></td>\n";
$dateselect .= "<td><b><small>Year</small></b><br />\n<input name=\"$yname\" value=\"$year\" size=\"4\"></td>\n";
$dateselect .= "</tr></table>";

$bgcolor = getaltbg();

 




	echo "<tr>\n<td class=\"$bgcolor\" valign=\"top\" width=\"40%\">$title</td>\n<td class=\"$bgcolor\" valign=\"top\">$dateselect</tr>\n";
}

 
function makebuttoncode($name, $value, $type="submit", $onclick="", $nameid="name")
{
if($onclick != '')

function makebuttoncode($name, $value, $type="submit", $onclick="", $nameid="name")
{
if($onclick != '')

Zeile 520Zeile 479
	}
$submit = makebuttoncode($lang->save_changes, $lang->save_changes, "submit");
tablesubheader("<div style=\"float: right;\">$submit</div><div>$revert</div>", "", 2, "left");

	}
$submit = makebuttoncode($lang->save_changes, $lang->save_changes, "submit");
tablesubheader("<div style=\"float: right;\">$submit</div><div>$revert</div>", "", 2, "left");

	endtable();
}

	endtable();
}


function makecsslinkedit($selector, $type, $name, $css, $highlight=1)


function makecsslinkedit($selector, $type, $name, $css, $highlight=1)

{
global $lang;

{
global $lang;

	echo "<fieldset>\n";
echo "<legend>".$name."</legend>\n";
echo "<table width=\"100%\">\n";

	echo "<fieldset>\n";
echo "<legend>".$name."</legend>\n";
echo "<table width=\"100%\">\n";

Zeile 553Zeile 512
	echo "<table width=\"100%\">\n";
echo "<tr>\n<td>".$lang->background."</td>\n<td><input type=\"text\" name=\"css[editor_control_bar][background]\" value=\"".htmlspecialchars_uni($css['editor_control_bar']['background'])."\" size=\"25\" class=\"inputbox\"/></td>\n</tr>\n";
echo "<tr>\n<td>".$lang->border."</td>\n<td><input type=\"text\" name=\"css[editor_control_bar][border]\" value=\"".htmlspecialchars_uni($css['editor_control_bar']['border'])."\" size=\"25\" class=\"inputbox\"/></td>\n</tr>\n";

	echo "<table width=\"100%\">\n";
echo "<tr>\n<td>".$lang->background."</td>\n<td><input type=\"text\" name=\"css[editor_control_bar][background]\" value=\"".htmlspecialchars_uni($css['editor_control_bar']['background'])."\" size=\"25\" class=\"inputbox\"/></td>\n</tr>\n";
echo "<tr>\n<td>".$lang->border."</td>\n<td><input type=\"text\" name=\"css[editor_control_bar][border]\" value=\"".htmlspecialchars_uni($css['editor_control_bar']['border'])."\" size=\"25\" class=\"inputbox\"/></td>\n</tr>\n";

	echo "</table>\n";

	echo "</table>\n";

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

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

Zeile 680Zeile 639
	echo "<table width=\"100%\">\n";
echo "<tr>\n<td>".$lang->background."</td>\n<td><input type=\"text\" name=\"css[trow_reputation_neutral][background]\" value=\"".htmlspecialchars_uni($css['trow_reputation_neutral']['background'])."\" size=\"25\" class=\"inputbox\"/></td>\n</tr>\n";
echo "<tr>\n<td>".$lang->font_color."</td>\n<td><input type=\"text\" name=\"css[trow_reputation_neutral][color]\" value=\"".htmlspecialchars_uni($css['trow_reputation_neutral']['color'])."\" size=\"25\" class=\"inputbox\"/></td>\n</tr>\n";

	echo "<table width=\"100%\">\n";
echo "<tr>\n<td>".$lang->background."</td>\n<td><input type=\"text\" name=\"css[trow_reputation_neutral][background]\" value=\"".htmlspecialchars_uni($css['trow_reputation_neutral']['background'])."\" size=\"25\" class=\"inputbox\"/></td>\n</tr>\n";
echo "<tr>\n<td>".$lang->font_color."</td>\n<td><input type=\"text\" name=\"css[trow_reputation_neutral][color]\" value=\"".htmlspecialchars_uni($css['trow_reputation_neutral']['color'])."\" size=\"25\" class=\"inputbox\"/></td>\n</tr>\n";

	echo "</table>\n";

	echo "</table>\n";

	echo "</td>\n";
echo "<td class=\"altbg1\" width=\"33%\" valign=\"top\">\n";
echo "<table width=\"100%\">\n";

	echo "</td>\n";
echo "<td class=\"altbg1\" width=\"33%\" valign=\"top\">\n";
echo "<table width=\"100%\">\n";

Zeile 711Zeile 670
		if($c == 2)
{
$c = 1;

		if($c == 2)
{
$c = 1;

			echo "<tr>\n";

			echo "<tr>\n";

			echo $header_buffer;
echo "</tr>\n";
echo "<tr>\n";

			echo $header_buffer;
echo "</tr>\n";
echo "<tr>\n";

Zeile 719Zeile 678
			echo "</tr>";
$header_buffer = "";
$content_buffer = "";

			echo "</tr>";
$header_buffer = "";
$content_buffer = "";

		}

		}

		else
{
$c++;

		else
{
$c++;

		}

		}

		$langvar = "form_elements_".$element;
$name = $lang->$langvar;
if($css[$element]['inherited'] != $tid && $css[$element]['inherited'] != 1)

		$langvar = "form_elements_".$element;
$name = $lang->$langvar;
if($css[$element]['inherited'] != $tid && $css[$element]['inherited'] != 1)

		{

		{

			$inheritid = $css[$element]['inherited'];
$inheritedfrom = $tcache[$inheritid]['name'];
$highlight = "highlight3";
$name .= "(".$lang->inherited_from." ".$inheritedfrom.")";
}
elseif($css[$element]['inherited'] == 1)

			$inheritid = $css[$element]['inherited'];
$inheritedfrom = $tcache[$inheritid]['name'];
$highlight = "highlight3";
$name .= "(".$lang->inherited_from." ".$inheritedfrom.")";
}
elseif($css[$element]['inherited'] == 1)

		{
}

		{
}

		else
{
$highlight = "highlight2";

		else
{
$highlight = "highlight2";

Zeile 743Zeile 702
			$revert = "<input type=\"checkbox\" name=\"revert_css[$element]\" value=\"1\" id=\"revert_css_$element\" /> <label for=\"revert_css_$element\">".$lang->revert_customizations."</label>";
}
$header_buffer .= "<td class=\"subheader\" align=\"center\">".$name."</td>\n";

			$revert = "<input type=\"checkbox\" name=\"revert_css[$element]\" value=\"1\" id=\"revert_css_$element\" /> <label for=\"revert_css_$element\">".$lang->revert_customizations."</label>";
}
$header_buffer .= "<td class=\"subheader\" align=\"center\">".$name."</td>\n";





		$content_buffer .= "<td class=\"altbg1\" width=\"50%\" valign=\"top\">\n";
$content_buffer .= "<table width=\"100%\">\n";
$content_buffer .= "<tr>\n<td>".$lang->background."</td>\n<td><input type=\"text\" name=\"css[$element][background]\" value=\"".htmlspecialchars_uni($css[$element]['background'])."\" size=\"25\" class=\"$highlight\"/></td>\n</tr>\n";

		$content_buffer .= "<td class=\"altbg1\" width=\"50%\" valign=\"top\">\n";
$content_buffer .= "<table width=\"100%\">\n";
$content_buffer .= "<tr>\n<td>".$lang->background."</td>\n<td><input type=\"text\" name=\"css[$element][background]\" value=\"".htmlspecialchars_uni($css[$element]['background'])."\" size=\"25\" class=\"$highlight\"/></td>\n</tr>\n";

Zeile 767Zeile 726
	$submit = makebuttoncode($lang->save_changes, $lang->save_changes, "submit");
tablesubheader("<div style=\"float: right;\">$submit</div>", "", 2, "left");
endtable();

	$submit = makebuttoncode($lang->save_changes, $lang->save_changes, "submit");
tablesubheader("<div style=\"float: right;\">$submit</div>", "", 2, "left");
endtable();

}

}

function endtable()
{
echo "</table>\n";

function endtable()
{
echo "</table>\n";

Zeile 775Zeile 734
	echo "<br />\n";
}
function endform($submit="", $reset="")

	echo "<br />\n";
}
function endform($submit="", $reset="")

{

{

	if($submit || $reset)
{
echo "<div align=\"center\">\n<div class=\"formbuttons\">\n";

	if($submit || $reset)
{
echo "<div align=\"center\">\n<div class=\"formbuttons\">\n";

Zeile 903Zeile 862
	if($bgcolor == "altbg1")
{
$bgcolor = "altbg2";

	if($bgcolor == "altbg1")
{
$bgcolor = "altbg2";

	}

	}

	else
{
$bgcolor = "altbg1";

	else
{
$bgcolor = "altbg1";

	}

	}

	return $bgcolor;
}
function startnav()

	return $bgcolor;
}
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 935Zeile 894
	echo "<ul>\n";
echo $navoptions;
echo "</ul>\n</td>\n";

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

 
	echo "</tr>\n";

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

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

Zeile 1187Zeile 1147
	if($get_gid && !$get_uid)
{
// A group only

	if($get_gid && !$get_uid)
{
// A group only

		
$options = array(
"order_by" => "uid",

		
$options = array(
"order_by" => "uid",

			"order_dir" => "ASC",
"limit" => "1"
);

			"order_dir" => "ASC",
"limit" => "1"
);

Zeile 1270Zeile 1230
function logadmin()
{
global $mybbadmin, $db, $mybb;

function logadmin()
{
global $mybbadmin, $db, $mybb;

	$scriptname = basename($_SERVER['PHP_SELF']);

	$scriptname = basename($_SERVER['SCRIPT_NAME']);

	$qstring = explode("&", $_SERVER['QUERY_STRING']);
$sep = '';
foreach($qstring as $key => $value)

	$qstring = explode("&", $_SERVER['QUERY_STRING']);
$sep = '';
foreach($qstring as $key => $value)

Zeile 2461Zeile 2421
		}
}
return $navigation;

		}
}
return $navigation;

 
}

function fetch_iconv_encoding($mysql_encoding)
{
$mysql_encoding = explode("_", $mysql_encoding);
switch($mysql_encoding[0])
{
case "utf8":
return "utf-8";
break;
case "latin1":
return "iso-8859-1";
break;
default:
return $mysql_encoding[0];
}

}
?>

}
?>