]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/what-themes.php
Updated copyright year.
[mailer.git] / inc / modules / member / what-themes.php
index 3e5d37b154d0ea50daea5a29a1dd9895d14a210c..762b64dc6f85956ee23775aee58113aba5c6fc20 100644 (file)
@@ -16,7 +16,7 @@
  * $Author::                                                          $ *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009 - 2012 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 *
@@ -52,14 +52,14 @@ if ((!isExtensionActive('theme')) && (!isAdmin())) {
 
 if (isPostRequestElementSet('member_theme')) {
        // Save theme to member's profile
-       SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_user_data` SET `curr_theme`='%s' WHERE `userid`=%s LIMIT 1",
+       sqlQueryEscaped("UPDATE `{?_MYSQL_PREFIX?}_user_data` SET `curr_theme`='%s' WHERE `userid`=%s LIMIT 1",
                array(
                        postRequestElement('member_theme'),
                        getMemberId()
                ), __FILE__, __LINE__);
 
        // Set new theme for guests
-       $newTheme = SQL_ESCAPE(postRequestElement('member_theme'));
+       $newTheme = sqlEscapeString(postRequestElement('member_theme'));
 
        // Change to new theme
        setMailerTheme($newTheme);
@@ -79,7 +79,7 @@ $themes = array(
 );
 
 // Read directory "themes"
-$includes = getArrayFromDirectory('theme/', '', false, true, array('css', 'images'));
+$includes = getArrayFromDirectory('theme/', '', FALSE, TRUE, array('css', 'images'));
 
 // Walk through all entries and add it
 foreach ($includes as $inc) {
@@ -127,20 +127,20 @@ foreach ($themes['theme_unix'] as $key => $unix) {
        );
 
        // Load row template
-       $OUT .= loadTemplate('member_themes_row', true, $content);
+       $OUT .= loadTemplate('member_themes_row', TRUE, $content);
 } // END - foreach
 
 if (empty($OUT)) {
        // No themes found???
        $OUT = '<tr>
   <td colspan="5" class="bottom" height="80">
-    ' . displayMessage('{--MEMBER_NO_THEMES_FOUND--}', true) . '
+    ' . displayMessage('{--MEMBER_NO_THEMES_FOUND--}', TRUE) . '
   </td>
 </tr>';
 } // END - if
 
 // Load template
-loadTemplate('member_themes', false, $OUT);
+loadTemplate('member_themes', FALSE, $OUT);
 
 // [EOF]
 ?>