X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-updates.php;h=e6fd292ee9039ee4bde973f18e74c8577a9d404d;hp=6e1e23f8af06e604330ced5951a5d3d132303a66;hb=f7f6e55ee0d90558ad773ce6168767c0af816696;hpb=7d96ffc18679f7aeb05ce3ab091f200c4a18f144 diff --git a/inc/modules/admin/what-updates.php b/inc/modules/admin/what-updates.php index 6e1e23f8af..e6fd292ee9 100644 --- a/inc/modules/admin/what-updates.php +++ b/inc/modules/admin/what-updates.php @@ -32,7 +32,7 @@ ************************************************************************/ // 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); } @@ -85,7 +85,7 @@ if (empty($response[0]) && empty($response[1]) && empty($response[2]) && empty($ 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++) { @@ -132,6 +132,9 @@ if (empty($ONLINE['version'])) { // 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"; @@ -160,6 +163,7 @@ if (empty($ONLINE['version'])) { // Load main template LOAD_TEMPLATE("admin_patches"); +*/ } else { // You have the latest version! LOAD_TEMPLATE("admin_settings_saved", false, NO_UPDATES_AVAILABLE);