]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/sponsor/welcome.php
Fix for fatal error and naming convention applied
[mailer.git] / inc / modules / sponsor / welcome.php
index 38d37008dab41c0e79099ea49edd2a41cd532e5e..c0b55f1653f66d5b0041a9006e657a32df111460 100644 (file)
  * -------------------------------------------------------------------- *
  * Kurzbeschreibung  : Willkommensseite des Sponsorenbereiches          *
  * -------------------------------------------------------------------- *
- *                                                                      *
+ * $Revision::                                                        $ *
+ * $Date::                                                            $ *
+ * $Tag:: 0.2.1-FINAL                                                 $ *
+ * $Author::                                                          $ *
+ * 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                  *
 
 // Some security stuff...
 if (!defined('__SECURITY')) {
-       $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php";
+       $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php';
        require($INC);
-} elseif ((!EXT_IS_ACTIVE("sponsor"))
-       addFatalMessage(__FILE__, __LINE__, getMessage('EXTENSION_PROBLEM_EXT_INACTIVE'), "sponsor");
+} elseif (!EXT_IS_ACTIVE('sponsor')) {
+       addFatalMessage(__FILE__, __LINE__, sprintf(getMessage('EXTENSION_PROBLEM_EXT_INACTIVE'), 'sponsor'));
        return;
 } elseif (!IS_SPONSOR()) {
        // No sponsor!
@@ -46,18 +51,18 @@ if (!defined('__SECURITY')) {
 // Load some data
 $result = SQL_QUERY_ESC("SELECT gender, surname, family, (points_amount - points_used) AS points
 FROM `{!_MYSQL_PREFIX!}_sponsor_data`
-WHERE id='%s' AND password='%s' LIMIT 1",
- array(bigintval(get_session('sponsorid')), get_session('sponsorpass')), __FILE__, __LINE__);
+WHERE `id`='%s' AND password='%s' LIMIT 1",
+array(bigintval(getSession('sponsorid')), getSession('sponsorpass')), __FILE__, __LINE__);
 list($gender, $surname, $family, $points) = SQL_FETCHROW($result);
 
 // Free memory
 SQL_FREERESULT($result);
 
 // Prepare data for the template
-define('__GENDER'  , TRANSLATE_GENDER($gender));
+define('__GENDER'  , translateGender($gender));
 define('__SURNAME', $surname);
 define('__FAMILY' , $family);
-define('__POINTS' , TRANSLATE_COMMA($points));
+define('__POINTS' , translateComma($points));
 
 // Load main template
 $OUT = LOAD_TEMPLATE("sponsor_welcome", true);