X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Flibs%2Ftheme_functions.php;h=9d97d505c302a67c1daaf87fe5d906d79f121f1f;hb=d0db163274524c1ac548146db60d4543abcec4a9;hp=ed45abc62e3bfd0996a296399d7d2d29ab2a80fe;hpb=7cb246c51e8634735aaf24e546bcbc46c5ce3833;p=mailer.git diff --git a/inc/libs/theme_functions.php b/inc/libs/theme_functions.php index ed45abc62e..9d97d505c3 100644 --- a/inc/libs/theme_functions.php +++ b/inc/libs/theme_functions.php @@ -4,7 +4,7 @@ * =================== Last change: 12/13/2004 * * * * -------------------------------------------------------------------- * - * File : theme-manager.php * + * File : theme manager.php * * -------------------------------------------------------------------- * * Short description : Theme manager * * -------------------------------------------------------------------- * @@ -18,6 +18,7 @@ * svn:keywords Date Revision" (autoprobset!) at least!!!!!! * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * + * Copyright (c) 2009, 2010 by Mailer Developer Team * * For more information visit: http://www.mxchange.org * * * * This program is free software; you can redistribute it and/or modify * @@ -48,8 +49,9 @@ function generateThemeSelectionBox () { $mod = getModule(); // Construction URL - $formAction = "{?URL?}/modules.php?module=" . $mod; + $formAction = "{%url=modules.php?module=" . $mod; if (!empty($what)) $formAction .= "&what=" . $what; + $formAction = '%}'; // Initialize array $themesArray = array( @@ -239,17 +241,17 @@ function getActualTheme () { // Fix it to default $ret = 'default'; } // END - if - } elseif ((!isInstalled()) && ((isInstalling()) || (getOutputMode() == true)) && ((isGetRequestElementSet('theme')) || (isPostRequestElementSet('theme')))) { + } elseif ((!isInstalled()) && ((isInstalling()) || (getOutputMode() == true)) && ((isGetRequestParameterSet('theme')) || (isPostRequestParameterSet('theme')))) { // Prepare filename for checking - $themeFile = sprintf("theme/%s/theme.php", getRequestElement('theme')); + $themeFile = sprintf("theme/%s/theme.php", getRequestParameter('theme')); // Installation mode active - if ((isGetRequestElementSet('theme')) && (isIncludeReadable($theme))) { + if ((isGetRequestParameterSet('theme')) && (isIncludeReadable($theme))) { // Set cookie from URL data - setTheme(getRequestElement('theme')); - } elseif (isIncludeReadable(sprintf("theme/%s/theme.php", secureString(postRequestElement('theme'))))) { + setTheme(getRequestParameter('theme')); + } elseif (isIncludeReadable(sprintf("theme/%s/theme.php", secureString(postRequestParameter('theme'))))) { // Set cookie from posted data - setTheme(secureString(postRequestElement('theme'))); + setTheme(secureString(postRequestParameter('theme'))); } // Set return value @@ -306,9 +308,9 @@ function getThemeId ($name) { // Filter for generic handling of theme change function FILTER_HANDLE_THEME_CHANGE () { // Check if new theme is selcted - if ((isPostRequestElementSet('new_theme')) && (postRequestElement('new_theme') != getCurrentTheme())) { + if ((isPostRequestParameterSet('new_theme')) && (postRequestParameter('new_theme') != getCurrentTheme())) { // Set new theme for guests - $newTheme = postRequestElement('new_theme'); + $newTheme = postRequestParameter('new_theme'); // Change to new theme setTheme($newTheme);