Convention applied
[mailer.git] / birthday_confirm.php
index 24c46fcc56a945922d8907ba713932cf565b98a0..7d4068456c462d8c7e5361e42f581518ac754046 100644 (file)
@@ -67,7 +67,7 @@ FROM `{!_MYSQL_PREFIX!}_user_birthday` AS b
 INNER JOIN `{!_MYSQL_PREFIX!}_user_data` AS d
 ON b.userid=d.userid
 WHERE b.userid=%s AND b.chk_value='%s' LIMIT 1",
- array($uid, $chk), __FILE__, __LINE__);
      array($uid, $chk), __FILE__, __LINE__);
        //* DEBUG: */ echo "uid=".$uid.",chk=".$chk." (".strlen($chk).'/'.strlen(REQUEST_GET('check')).'/'.SQL_NUMROWS($result).")<br />\n";
 
        // Prepare content
@@ -96,7 +96,7 @@ WHERE b.userid=%s AND b.chk_value='%s' LIMIT 1",
 
                        // Remove entry from table
                        SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM `{!_MYSQL_PREFIX!}_user_birthday` WHERE userid=%s AND chk_value='%s' LIMIT 1",
-                               array($uid, $chk), __FILE__, __LINE__);
+                       array($uid, $chk), __FILE__, __LINE__);
 
                        // "Translate" some data
                        $data['gender'] = translateGender($data['gender']);
@@ -120,7 +120,7 @@ WHERE b.userid=%s AND b.chk_value='%s' LIMIT 1",
        $GLOBALS['module'] = 'birthday_confirm';
 
        // Include header
-       loadInclude('inc/header.php');
+       loadIncludeOnce('inc/header.php');
 
        // Load birthday header template (for your banners, e.g.?)
        $content['header'] =  LOAD_TEMPLATE('birthday_header', true);
@@ -132,7 +132,7 @@ WHERE b.userid=%s AND b.chk_value='%s' LIMIT 1",
        LOAD_TEMPLATE('birthday_confirm', false, $content);
 
        // Include footer
-       loadInclude('inc/footer.php');
+       loadIncludeOnce('inc/footer.php');
 } else {
        // You have to install first!
        redirectToUrl('install.php');