}
// Getter for total fatal message count
-function getTotalFatalMessages () {
+function getTotalFatalErrors () {
global $FATAL;
// Init coun
// Is this URL set?
if (is_null($URL)) {
// Then abort here
- trigger_error(sprintf("Configuration entry %s is not set!", $configEntry);
+ trigger_error(sprintf("Configuration entry %s is not set!", $configEntry));
} // END - if
// Load the URL
} else {
// Generate table
$OUT = "<div align=\"".$align."\">\n";
- $OUT .= "<TABLE border=\"0\" cellspacing=\"0\" cellpadding=\"0\" class=\"admin_table dashed\">\n";
- $OUT .= "<TR>\n";
+ $OUT .= "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" class=\"admin_table dashed\">\n";
+ $OUT .= "<tr>\n";
if (ereg('Y', $display) || (empty($display))) {
- $OUT .= " <TD align=\"center\" class=\"admin_title bottom\"><div class=\"tiny\">"._YEARS."</strong></TD>\n";
+ $OUT .= " <td align=\"center\" class=\"admin_title bottom\"><div class=\"tiny\">"._YEARS."</strong></td>\n";
}
if (ereg("M", $display) || (empty($display))) {
- $OUT .= " <TD align=\"center\" class=\"admin_title bottom\"><div class=\"tiny\">"._MONTHS."</strong></TD>\n";
+ $OUT .= " <td align=\"center\" class=\"admin_title bottom\"><div class=\"tiny\">"._MONTHS."</strong></td>\n";
}
if (ereg("W", $display) || (empty($display))) {
- $OUT .= " <TD align=\"center\" class=\"admin_title bottom\"><div class=\"tiny\">"._WEEKS."</strong></TD>\n";
+ $OUT .= " <td align=\"center\" class=\"admin_title bottom\"><div class=\"tiny\">"._WEEKS."</strong></td>\n";
}
if (ereg("D", $display) || (empty($display))) {
- $OUT .= " <TD align=\"center\" class=\"admin_title bottom\"><div class=\"tiny\">"._DAYS."</strong></TD>\n";
+ $OUT .= " <td align=\"center\" class=\"admin_title bottom\"><div class=\"tiny\">"._DAYS."</strong></td>\n";
}
if (ereg("h", $display) || (empty($display))) {
- $OUT .= " <TD align=\"center\" class=\"admin_title bottom\"><div class=\"tiny\">"._HOURS."</strong></TD>\n";
+ $OUT .= " <td align=\"center\" class=\"admin_title bottom\"><div class=\"tiny\">"._HOURS."</strong></td>\n";
}
if (ereg("m", $display) || (empty($display))) {
- $OUT .= " <TD align=\"center\" class=\"admin_title bottom\"><div class=\"tiny\">"._MINUTES."</strong></TD>\n";
+ $OUT .= " <td align=\"center\" class=\"admin_title bottom\"><div class=\"tiny\">"._MINUTES."</strong></td>\n";
}
if (ereg("s", $display) || (empty($display))) {
- $OUT .= " <TD align=\"center\" class=\"admin_title bottom\"><div class=\"tiny\">"._SECONDS."</strong></TD>\n";
+ $OUT .= " <td align=\"center\" class=\"admin_title bottom\"><div class=\"tiny\">"._SECONDS."</strong></td>\n";
}
- $OUT .= "</TR>\n";
- $OUT .= "<TR>\n";
+ $OUT .= "</tr>\n";
+ $OUT .= "<tr>\n";
if (ereg('Y', $display) || (empty($display))) {
// Generate year selection
- $OUT .= " <TD align=\"center\"><select class=\"mini_select\" name=\"".$prefix."_ye\" size=\"1\">\n";
+ $OUT .= " <td align=\"center\"><select class=\"mini_select\" name=\"".$prefix."_ye\" size=\"1\">\n";
for ($idx = 0; $idx <= 10; $idx++) {
$OUT .= " <option class=\"mini_select\" value=\"".$idx."\"";
if ($idx == $Y) $OUT .= " selected default";
$OUT .= ">".$idx."</option>\n";
}
- $OUT .= " </select></TD>\n";
+ $OUT .= " </select></td>\n";
} else {
$OUT .= "<INPUT type=\"hidden\" name=\"".$prefix."_ye\" value=\"0\" />\n";
}
if (ereg("M", $display) || (empty($display))) {
// Generate month selection
- $OUT .= " <TD align=\"center\"><select class=\"mini_select\" name=\"".$prefix."_mo\" size=\"1\">\n";
+ $OUT .= " <td align=\"center\"><select class=\"mini_select\" name=\"".$prefix."_mo\" size=\"1\">\n";
for ($idx = 0; $idx <= 11; $idx++)
{
$OUT .= " <option class=\"mini_select\" value=\"".$idx."\"";
if ($idx == $M) $OUT .= " selected default";
$OUT .= ">".$idx."</option>\n";
}
- $OUT .= " </select></TD>\n";
+ $OUT .= " </select></td>\n";
} else {
$OUT .= "<INPUT type=\"hidden\" name=\"".$prefix."_mo\" value=\"0\" />\n";
}
if (ereg("W", $display) || (empty($display))) {
// Generate week selection
- $OUT .= " <TD align=\"center\"><select class=\"mini_select\" name=\"".$prefix."_we\" size=\"1\">\n";
+ $OUT .= " <td align=\"center\"><select class=\"mini_select\" name=\"".$prefix."_we\" size=\"1\">\n";
for ($idx = 0; $idx <= 4; $idx++) {
$OUT .= " <option class=\"mini_select\" value=\"".$idx."\"";
if ($idx == $W) $OUT .= " selected default";
$OUT .= ">".$idx."</option>\n";
}
- $OUT .= " </select></TD>\n";
+ $OUT .= " </select></td>\n";
} else {
$OUT .= "<INPUT type=\"hidden\" name=\"".$prefix."_we\" value=\"0\" />\n";
}
if (ereg("D", $display) || (empty($display))) {
// Generate day selection
- $OUT .= " <TD align=\"center\"><select class=\"mini_select\" name=\"".$prefix."_da\" size=\"1\">\n";
+ $OUT .= " <td align=\"center\"><select class=\"mini_select\" name=\"".$prefix."_da\" size=\"1\">\n";
for ($idx = 0; $idx <= 31; $idx++) {
$OUT .= " <option class=\"mini_select\" value=\"".$idx."\"";
if ($idx == $D) $OUT .= " selected default";
$OUT .= ">".$idx."</option>\n";
}
- $OUT .= " </select></TD>\n";
+ $OUT .= " </select></td>\n";
} else {
$OUT .= "<INPUT type=\"hidden\" name=\"".$prefix."_da\" value=\"0\">\n";
}
if (ereg("h", $display) || (empty($display))) {
// Generate hour selection
- $OUT .= " <TD align=\"center\"><select class=\"mini_select\" name=\"".$prefix."_ho\" size=\"1\">\n";
+ $OUT .= " <td align=\"center\"><select class=\"mini_select\" name=\"".$prefix."_ho\" size=\"1\">\n";
for ($idx = 0; $idx <= 23; $idx++) {
$OUT .= " <option class=\"mini_select\" value=\"".$idx."\"";
if ($idx == $h) $OUT .= " selected default";
$OUT .= ">".$idx."</option>\n";
}
- $OUT .= " </select></TD>\n";
+ $OUT .= " </select></td>\n";
} else {
$OUT .= "<INPUT type=\"hidden\" name=\"".$prefix."_ho\" value=\"0\">\n";
}
if (ereg("m", $display) || (empty($display))) {
// Generate minute selection
- $OUT .= " <TD align=\"center\"><select class=\"mini_select\" name=\"".$prefix."_mi\" size=\"1\">\n";
+ $OUT .= " <td align=\"center\"><select class=\"mini_select\" name=\"".$prefix."_mi\" size=\"1\">\n";
for ($idx = 0; $idx <= 59; $idx++) {
$OUT .= " <option class=\"mini_select\" value=\"".$idx."\"";
if ($idx == $m) $OUT .= " selected default";
$OUT .= ">".$idx."</option>\n";
}
- $OUT .= " </select></TD>\n";
+ $OUT .= " </select></td>\n";
} else {
$OUT .= "<INPUT type=\"hidden\" name=\"".$prefix."_mi\" value=\"0\">\n";
}
if (ereg("s", $display) || (empty($display))) {
// Generate second selection
- $OUT .= " <TD align=\"center\"><select class=\"mini_select\" name=\"".$prefix."_se\" size=\"1\">\n";
+ $OUT .= " <td align=\"center\"><select class=\"mini_select\" name=\"".$prefix."_se\" size=\"1\">\n";
for ($idx = 0; $idx <= 59; $idx++) {
$OUT .= " <option class=\"mini_select\" value=\"".$idx."\"";
if ($idx == $s) $OUT .= " selected default";
$OUT .= ">".$idx."</option>\n";
}
- $OUT .= " </select></TD>\n";
+ $OUT .= " </select></td>\n";
} else {
$OUT .= "<INPUT type=\"hidden\" name=\"".$prefix."_se\" value=\"0\">\n";
}
- $OUT .= "</TR>\n";
- $OUT .= "</TABLE>\n";
+ $OUT .= "</tr>\n";
+ $OUT .= "</table>\n";
$OUT .= "</div>\n";
// Return generated HTML code
}
$SEP = ""; $TOP = "";
if (!$show_form) {
$TOP = " top2";
- $SEP = "<TR><TD colspan=\"".$colspan."\" class=\"seperator\"> </TD></TR>";
+ $SEP = "<tr><td colspan=\"".$colspan."\" class=\"seperator\"> </td></tr>";
}
$NAV = "";
return $OUT;
}
// Function for backward-compatiblity
-function ADD_CATEGORY_TABLE ($MODE, $return=false) {
+function ADD_CATEGORY_table ($MODE, $return=false) {
// Load it from the register extension
- return REGISTER_ADD_CATEGORY_TABLE ($MODE, $return);
+ return REGISTER_ADD_CATEGORY_table ($MODE, $return);
}
// Generate an email link
function CREATE_EMAIL_LINK ($email, $table = "admins") {
$OUT = "";
// Is the session data set?
- if ((isSessionVariableSet('mxchange_'.$accessLevel.'_failtures')) && (isSessionVariableSet('mxchange_'.$accessLevel.'_last_fail'))) {
+ if ((isSessionVariableSet('mxchange_'.$accessLevel.'_failures')) && (isSessionVariableSet('mxchange_'.$accessLevel.'_last_fail'))) {
// Ignore zero values
- if (get_session('mxchange_'.$accessLevel.'_failtures') > 0) {
- // Non-guest has login failtures found, get both data and prepare it for template
+ if (get_session('mxchange_'.$accessLevel.'_failures') > 0) {
+ // Non-guest has login failures found, get both data and prepare it for template
//* DEBUG: */ print __FUNCTION__."(<font color=\"#0000aa\">".__LINE__."</font>):accessLevel={$accessLevel}<br />\n";
$content = array(
- 'login_failtures' => get_session('mxchange_'.$accessLevel.'_failtures'),
- 'last_failture' => MAKE_DATETIME(get_session('mxchange_'.$accessLevel.'_last_fail'), "2")
+ 'login_failures' => get_session('mxchange_'.$accessLevel.'_failures'),
+ 'last_failure' => MAKE_DATETIME(get_session('mxchange_'.$accessLevel.'_last_fail'), "2")
);
// Load template
- $OUT = LOAD_TEMPLATE("login_failtures", true, $content);
+ $OUT = LOAD_TEMPLATE("login_failures", true, $content);
} // END - if
// Reset session data
- set_session('mxchange_'.$accessLevel.'_failtures', "");
+ set_session('mxchange_'.$accessLevel.'_failures', "");
set_session('mxchange_'.$accessLevel.'_last_fail', "");
} // END - if