X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Flibs%2Fadmins_functions.php;h=8e8eb553cdc6a6b5c9ab30cb99a778649df2e73f;hp=291df0192379c3469342e5661b0e6b45b84a4f04;hb=e01fcf1ca8ddeb72af76465df3ef72301a1cdae7;hpb=4001187f22197f55e5a1f211fc8defcc180f7c32 diff --git a/inc/libs/admins_functions.php b/inc/libs/admins_functions.php index 291df01923..8e8eb553cd 100644 --- a/inc/libs/admins_functions.php +++ b/inc/libs/admins_functions.php @@ -10,7 +10,12 @@ * -------------------------------------------------------------------- * * Kurzbeschreibung : Funktionen fuer die admins-Erweiterung * * -------------------------------------------------------------------- * - * * + * $Revision:: 856 $ * + * $Date:: 2009-03-06 20:24:32 +0100 (Fr, 06. March 2009) $ * + * $Tag:: 0.2.1-FINAL $ * + * $Author:: stelzi $ * + * Needs to be in all Files and every File needs "svn propset * + * svn:keywords Date Revision" (autoprobset!) at least!!!!!! * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2008 by Roland Haeder * * For more information visit: http://www.mxchange.org * @@ -130,16 +135,14 @@ function ADMINS_CHECK_ACL($act, $wht) { // Create email link to admins's account function ADMINS_CREATE_EMAIL_LINK ($email, $mod="admin") { - $locked = " AND `status`='CONFIRMED'"; - if (IS_ADMIN()) $locked = ""; if (strpos("@", $email) > 0) { // Create email link $result = SQL_QUERY_ESC("SELECT id FROM `{!_MYSQL_PREFIX!}_admins` -WHERE email='%s'".$locked." LIMIT 1", - array($email), __FUNCTION__, __LINE__); +WHERE email='%s' LIMIT 1", + array($email), __FUNCTION__, __LINE__); - // Is there an entry? + // Is there an entry? if (SQL_NUMROWS($result) == 1) { // Load userid list($uid) = SQL_FETCHROW($result); @@ -150,7 +153,7 @@ WHERE email='%s'".$locked." LIMIT 1", // Free memory SQL_FREERESULT($result); - } elseif (bigintval($email) > 0) { + } elseif ((is_int($email)) && ($email > 0)) { // Direct ID given $email = "{!URL!}/modules.php?module=".$mod."&what=admins_contct&admin=".bigintval($email); }