X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fadmin-inc.php;h=6eee1eddf6e93996b89532899bfbb5c77fb54678;hp=d7e17155c614f4926264d3ba6f5282178509a2c9;hb=49acdb7a7adbcf25a8e8683b5581bfcec72b23bd;hpb=0ab2e7a1001f1ccdb1b7c09dd0114b9c80f0df98;ds=sidebyside diff --git a/inc/modules/admin/admin-inc.php b/inc/modules/admin/admin-inc.php index d7e17155c6..6eee1eddf6 100644 --- a/inc/modules/admin/admin-inc.php +++ b/inc/modules/admin/admin-inc.php @@ -16,7 +16,7 @@ * $Author:: $ * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * Copyright (c) 2009 - 2013 by Mailer Developer Team * + * Copyright (c) 2009 - 2015 by Mailer Developer Team * * For more information visit: http://mxchange.org * * * * This program is free software; you can redistribute it and/or modify * @@ -53,7 +53,7 @@ function addAdminAccount ($adminLogin, $passHash, $adminEmail, $accessLevel = 'd array($adminLogin), __FUNCTION__, __LINE__); // Is the entry there? - if (ifSqlHasZeroNums($result)) { + if (ifSqlHasZeroNumRows($result)) { // Is ext-admins installed and version at least 0.3.0? if (isExtensionInstalledAndNewer('admins', '0.3.0')) { // Ok, let's create the admin login @@ -135,7 +135,7 @@ function ifAdminLoginDataIsValid ($adminLogin, $adminPassword) { // Only be executed on cookie checking function ifAdminCookiesAreValid ($adminLogin, $passHash) { - /* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'adminLogin=' . $adminLogin . ',passHash=' . $passHash . ' - CALLED!'); + //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'adminLogin=' . $adminLogin . ',passHash=' . $passHash . ' - CALLED!'); // First of all, no admin login is found $ret = '404'; @@ -147,7 +147,7 @@ function ifAdminCookiesAreValid ($adminLogin, $passHash) { if ($adminHash != '-1') { // Now, we need to encode the password in the same way the one is encoded in database $testHash = encodeHashForCookie($adminHash); - /* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'adminLogin=' . $adminLogin . ',passHash='.$passHash.',adminHash='.$adminHash.',testHash='.$testHash); + //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'adminLogin=' . $adminLogin . ',passHash='.$passHash.',adminHash='.$adminHash.',testHash='.$testHash); // If they both match, the login data is valid if ($testHash != $passHash) { @@ -163,7 +163,7 @@ function ifAdminCookiesAreValid ($adminLogin, $passHash) { } // END - if // Return status - /* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'ret=' . $ret . ' - EXIT!'); + //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'ret=' . $ret . ' - EXIT!'); return $ret; } @@ -282,7 +282,7 @@ ORDER BY `id` DESC", __FUNCTION__, __LINE__); // Are there entries? - if (!ifSqlHasZeroNums($result_main)) { + if (!ifSqlHasZeroNumRows($result_main)) { $OUT .= '