\n";
- if (ereg('Y', $display) || (empty($display)))
- {
+
+ if (ereg('Y', $display) || (empty($display))) {
// Generate year selection
$OUT .= " | \n";
- }
- else
- {
+ } else {
$OUT .= "\n";
}
- if (ereg("M", $display) || (empty($display)))
- {
+
+ if (ereg("M", $display) || (empty($display))) {
// Generate month selection
$OUT .= " | \n";
- }
- else
- {
+ } else {
$OUT .= "\n";
}
- if (ereg("W", $display) || (empty($display)))
- {
+
+ if (ereg("W", $display) || (empty($display))) {
// Generate week selection
$OUT .= " | \n";
- }
- else
- {
+ } else {
$OUT .= "\n";
}
- if (ereg("D", $display) || (empty($display)))
- {
+
+ if (ereg("D", $display) || (empty($display))) {
// Generate day selection
$OUT .= " | \n";
- }
- else
- {
+ } else {
$OUT .= "\n";
}
- if (ereg("h", $display) || (empty($display)))
- {
+
+ if (ereg("h", $display) || (empty($display))) {
// Generate hour selection
$OUT .= " | \n";
- }
- else
- {
+ } else {
$OUT .= "\n";
}
- if (ereg("m", $display) || (empty($display)))
- {
+
+ if (ereg("m", $display) || (empty($display))) {
// Generate minute selection
$OUT .= " | \n";
- }
- else
- {
+ } else {
$OUT .= "\n";
}
- if (ereg("s", $display) || (empty($display)))
- {
+
+ if (ereg("s", $display) || (empty($display))) {
// Generate second selection
$OUT .= " | \n";
- }
- else
- {
+ } else {
$OUT .= "\n";
}
$OUT .= "
\n";
@@ -1500,7 +1479,8 @@ function CREATE_TIME_SELECTIONS($timestamp, $prefix="", $display="", $align="cen
}
//
function CREATE_TIMESTAMP_FROM_SELECTIONS($prefix, $POST) {
- $ret = "0";
+ $ret = 0;
+
// Do we have a leap year?
$SWITCH = 0;
$TEST = date('Y', time()) / 4;
@@ -2365,7 +2345,7 @@ function GET_DIR_AS_ARRAY ($baseDir, $prefix) {
}
// Load more reset scripts
function RESET_ADD_INCLUDES () {
- global $_CONFIG, $INC_POOL;
+ global $_CONFIG;
// Is the reset set or old sql_patches?
if ((!isBooleanConstantAndTrue('__DAILY_RESET')) || (GET_EXT_VERSION("sql_patches") < "0.4.5")) {
@@ -2374,7 +2354,7 @@ function RESET_ADD_INCLUDES () {
} // END - if
// Get more daily reset scripts
- $INC_POOL = array_merge($INC_POOL, GET_DIR_AS_ARRAY(PATH."inc/reset/", "reset_"));
+ $INC_POOL = GET_DIR_AS_ARRAY(PATH."inc/reset/", "reset_");
// Create current week mark
$currWeek = date("W", time());
@@ -2399,6 +2379,9 @@ function RESET_ADD_INCLUDES () {
// Update config
UPDATE_CONFIG("last_month", $currMonth);
} // END - if
+
+ // Return array
+ return $INC_POOL;
}
// Handle extra values
function HANDLE_EXTRA_VALUES ($filterFunction, $value, $extraValue) {