}
// Add desciption as navigation point
ADD_DESCR("admin", basename(__FILE__));
-OUTPUT_HTML("</FONT><br />");
-
-OPEN_TABLE("100%", "admin_content admin_content_align", "");
// Check if the admin has entered title and what-php file name...
if ((empty($_POST['title'])) && (isset($_POST['ok'])))
// Remove double eintries
$prev = ""; $dmy = $menus; $dmy2 = $titles; $dmy3 = $below;
- foreach ($menus as $key=>$value)
+ foreach ($menus as $key => $value)
{
if ($value == $prev)
{
}
$menus = $dmy; $titles = $dmy2; $below = $dmy3;
// Load sub menus :)
- foreach ($menus as $key_main=>$value_main)
+ foreach ($menus as $key_main => $value_main)
{
$result = SQL_QUERY_ESC("SELECT what, title, sort FROM "._MYSQL_PREFIX."_member_menu WHERE action='%s' AND what != '' ORDER BY sort",
array($value_main), __FILE__, __LINE__);
// Remove double eintries
$prev = ""; $dmy = $menus[$value_main]; $dmy2 = $titles[$value_main]; $dmy3 = $below[$value_main];
- foreach ($menus[$value_main] as $key=>$value)
+ foreach ($menus[$value_main] as $key => $value)
{
if ($value == $prev)
{
$OUT = "<SELECT class=\"admin_select\" name=\"sort\" size=\"1\">
<OPTION value=\"\">".IS_FIRST_MENU."</OPTION>";
- foreach ($below as $key=>$m)
+ foreach ($below as $key => $m)
{
if (is_array($m))
{
- foreach ($m as $key2=>$m2)
+ foreach ($m as $key2 => $m2)
{
$OUT .= " <OPTION value=\"".$m2."\">".$titles[$key][$key2];
- foreach ($menus as $k=>$v)
+ foreach ($menus as $k => $v)
{
if (($v == $key) && (!is_array($v)))
{
LOAD_TEMPLATE("admin_settings_saved", false, SETTINGS_NOT_SAVED);
}
-CLOSE_TABLE();
//
?>