X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fadmin-inc.php;h=a18dd7f49fd303d62e333915e71fa9cd4fae2377;hp=33c542893c305d77b6dd990bd0bba841591b2f18;hb=61621983cc6d7195fcc7eab29b5f6080ff283b34;hpb=e5848e7e22dffe36ea207111a3a4ed1f7d5a8639 diff --git a/inc/modules/admin/admin-inc.php b/inc/modules/admin/admin-inc.php index 33c542893c..a18dd7f49f 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 - 2016 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,6 +135,8 @@ function ifAdminLoginDataIsValid ($adminLogin, $adminPassword) { // Only be executed on cookie checking function ifAdminCookiesAreValid ($adminLogin, $passHash) { + //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'adminLogin=' . $adminLogin . ',passHash=' . $passHash . ' - CALLED!'); + // First of all, no admin login is found $ret = '404'; @@ -161,7 +163,7 @@ function ifAdminCookiesAreValid ($adminLogin, $passHash) { } // END - if // Return status - //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'ret='.$ret); + //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'ret=' . $ret . ' - EXIT!'); return $ret; } @@ -280,7 +282,7 @@ ORDER BY `id` DESC", __FUNCTION__, __LINE__); // Are there entries? - if (!ifSqlHasZeroNums($result_main)) { + if (!ifSqlHasZeroNumRows($result_main)) { $OUT .= '