************************************************************************/
// Some security stuff...
-if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) {
+if ((!defined('__SECURITY')) || (!IS_ADMIN())) {
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
require($INC);
}
if (($response[3] != "[EOF]") && ($ONLINE['version'] == FULL_VERSION)) {
// We have found new patches (newer than FULL_VERSION)
- $max = str_replace("\n", "", $response[sizeof($response) - 2]); $TOTAL_SIZE = "0";
+ $max = str_replace("\n", "", $response[sizeof($response) - 2]); $TOTAL_SIZE = 0;
// Maximum of available pacthes extracted (above). Now we can get all informations
for ($idx = 0; $idx < $max; $idx++) {
// Load template
LOAD_TEMPLATE("admin_update_download");
+/*
+ * DEACTIVATED ON 09/11/2008,02:47 AM
+ *
} elseif (sizeof($PATCHES['fname']) > 0) {
// Some patches are available
$OUT = ""; $SW = "2";
// Load main template
LOAD_TEMPLATE("admin_patches");
+*/
} else {
// You have the latest version!
LOAD_TEMPLATE("admin_settings_saved", false, NO_UPDATES_AVAILABLE);