// Copy back tmp file and delete tmp :-)
@copy($tmp, $file);
@unlink($tmp);
- define ('_FATAL', false);
+ define('_FATAL', false);
}
elseif (!$found)
{
OUTPUT_HTML("<STRONG>CHANGE:</STRONG> 404!");
- define ('_FATAL', true);
+ define('_FATAL', true);
}
else
{
OUTPUT_HTML("<STRONG>TMP:</STRONG> UNDONE!");
- define ('_FATAL', true);
+ define('_FATAL', true);
}
}
}
//
function ADMIN_DO_ACTION($wht)
{
- global $menuDesription, $menuTitle, $_CONFIG, $cacheArray, $link, $DATA;
+ global $menuDesription, $menuTitle, $_CONFIG, $cacheArray, $link, $DATA, $DEPTH;
//* DEBUG: */ echo __LINE__."*".$wht."/".$GLOBALS['module']."/".$GLOBALS['action']."/".$GLOBALS['what']."*<br />\n";
if (EXT_IS_ACTIVE("cache"))
{
$menuDesription[$menu] = $descr;
}
$OUT .= "<TR>
- <TD class=\"admin_menu\" colspan=\"2\">
- <NOBR> <STRONG>·</STRONG> ";
- if (($menu == $act) && (empty($wht)))
+ <TD class=\"admin_menu\" colspan=\"2\">
+ <NOBR> <STRONG>·</STRONG> ";
+ if (($menu == $act) && (empty($wht)))
{
$OUT .= "<STRONG>";
}
$OUT .= "[ <A href=\"".URL."/modules.php?module=admin&action=".$menu."\">";
}
$OUT .= $title;
- if (($menu == $act) && (empty($wht)))
+ if (($menu == $act) && (empty($wht)))
{
$OUT .= "</STRONG>";
}
$menuDesription = array();
$menuTitle = array(); $SUB = true;
$OUT .= "<TR>
- <TD width=\"10\" class=\"seperator\"> </TD>
- <TD class=\"admin_menu\">
- <TABLE border=\"0\" cellspacing=\"0\" cellpadding=\"0\" class=\"admin_menu_sub\">\n";
- while (list($wht_sub, $title_what, $desc_what) = SQL_FETCHROW($result_what))
+ <TD width=\"10\" class=\"seperator\"> </TD>
+ <TD class=\"admin_menu\">
+ <TABLE border=\"0\" cellspacing=\"0\" cellpadding=\"0\" class=\"admin_menu_sub\">\n";
+ while (list($wht_sub, $title_what, $desc_what) = SQL_FETCHROW($result_what))
{
// Filename
$INC = sprintf(PATH."inc/modules/admin/what-%s.php", $wht_sub);
$menuTitle[$wht_sub] = $title_what;
$menuDesription[$wht_sub] = $desc_what;
$OUT .= "<TR>
- <TD class=\"admin_menu\" colspan=\"2\">
- <NOBR> <STRONG>--></STRONG> ";
+ <TD class=\"admin_menu\" colspan=\"2\">
+ <NOBR> <STRONG>--></STRONG> ";
if ($readable)
{
if ($wht == $wht_sub)
// Free memory
SQL_FREERESULT($result_what);
$OUT .= " </TABLE>
- </TD>
+ </TD>
</TR>\n";
}
$OUT .= "<TR><TD height=\"7\" colspan=\"2\"></TD></TR>\n";
// Remeber options in constant
define('_MEMBER_SELECTION', $OUT);
- if (!$return)
- {
+ if (!$return) {
// Display selection box
define('__LANG_VALUE', GET_LANGUAGE());
}
}
//
-function ADMIN_MENU_SELECTION($MODE, $default="", $defid="")
-{
+function ADMIN_MENU_SELECTION($MODE, $default="", $defid="") {
$wht = "what != ''";
if ($MODE == "action") $wht = "what='' AND action !='login'";
$result = SQL_QUERY_ESC("SELECT %s, title FROM "._MYSQL_PREFIX."_admin_menu WHERE ".$wht." ORDER BY sort",
$OUT = "<SELECT name=\"".$MODE."_menu";
if ((!empty($defid)) || ($defid == "0")) $OUT .= "[".$defid."]";
$OUT .= "\" size=\"1\" class=\"admin_select\">
- <OPTION value=\"\">".SELECT_NONE."</OPTION>\n";
+ <OPTION value=\"\">".SELECT_NONE."</OPTION>\n";
while (list($menu, $title) = SQL_FETCHROW($result))
{
$OUT .= " <OPTION value=\"".$menu."\"";