X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fsponsor%2Fwelcome.php;h=96799a7f2017d2f22149a11484a97a13b6275e7a;hb=095f5ab59b539834d2c67e5d409d01820e10d8be;hp=e4b71d0530732833b419d6c4741306d499e472d9;hpb=c6017cf76200e2a5e68bd1984fa2d31f0e3be9d8;p=mailer.git diff --git a/inc/modules/sponsor/welcome.php b/inc/modules/sponsor/welcome.php index e4b71d0530..96799a7f20 100644 --- a/inc/modules/sponsor/welcome.php +++ b/inc/modules/sponsor/welcome.php @@ -10,14 +10,9 @@ * -------------------------------------------------------------------- * * Kurzbeschreibung : Willkommensseite des Sponsorenbereiches * * -------------------------------------------------------------------- * - * $Revision:: $ * - * $Date:: $ * - * $Tag:: 0.2.1-FINAL $ * - * $Author:: $ * - * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * Copyright (c) 2009 - 2011 by Mailer Developer Team * - * For more information visit: http://www.mxchange.org * + * 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 * * it under the terms of the GNU General Public License as published by * @@ -37,7 +32,7 @@ // Some security stuff... if (!defined('__SECURITY')) { - die(); + exit(); } elseif (!isExtensionActive('sponsor')) { displayMessage('{%pipe,generateExtensionInactiveNotInstalledMessage=sponsor%}'); return; @@ -48,25 +43,29 @@ if (!defined('__SECURITY')) { } // Load some data -$result = SQL_QUERY_ESC("SELECT - `id`, `gender`, `surname`, `family`, (`points_amount` - `points_used`) AS `points` +$result = sqlQueryEscaped('SELECT + `id`, + `gender`, + `surname`, + `family`, + (`points_amount` - `points_used`) AS `points` FROM `{?_MYSQL_PREFIX?}_sponsor_data` WHERE `id`=%s -LIMIT 1", +LIMIT 1', array( bigintval(getSession('sponsor_id')) ), __FILE__, __LINE__); // Fetch data -$content = SQL_FETCHARRAY($result); +$content = sqlFetchArray($result); // Free memory -SQL_FREERESULT($result); +sqlFreeResult($result); // Load main template -$GLOBALS['sponsor_output'] = loadTemplate('sponsor_welcome', true, $content); +$GLOBALS['sponsor_output'] = loadTemplate('sponsor_welcome', TRUE, $content); // [EOF] ?>