X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Flibs%2Ftheme_functions.php;h=ff9e5e3497297cb6348b51c708204abd1b3f3da5;hb=e1d636846bafc8ae71855595a2a2843463025e26;hp=f8fd66dbd5a1fc2a764fd40bc186fd5963f128fe;hpb=4001187f22197f55e5a1f211fc8defcc180f7c32;p=mailer.git diff --git a/inc/libs/theme_functions.php b/inc/libs/theme_functions.php index f8fd66dbd5..ff9e5e3497 100644 --- a/inc/libs/theme_functions.php +++ b/inc/libs/theme_functions.php @@ -10,7 +10,12 @@ * -------------------------------------------------------------------- * * Kurzbeschreibung : Themen-Manager * * -------------------------------------------------------------------- * - * * + * $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 * @@ -33,12 +38,12 @@ // 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); } // Create a selection box with installed and activated themes -function THEME_SELECTION_BOX ($mod, $act, $wht, $result) { +function generateThemeSelectionBox ($mod, $act, $wht, $result) { // Construction URL $formAction = "{!URL!}/modules.php?module=".$mod; if (!empty($act)) $formAction .= "&action=".$act; @@ -54,11 +59,11 @@ function THEME_SELECTION_BOX ($mod, $act, $wht, $result) { while ($content = SQL_FETCHARRAY($result)) { // Load it's theme.php file $INC = sprintf("theme/%s/theme.php", SQL_ESCAPE($content['theme_path'])); - if (INCLUDE_READABLE($INC)) { + if (isIncludeReadable($INC)) { // And save all data in array - LOAD_INC($INC); + loadInclude($INC); $themesArray['theme_unix'][] = $content['theme_path']; - $themesArray['theme_name'][] = $THEME_NAME; + $themesArray['theme_name'][] = $GLOBALS['theme_data']['name']; } // END - if } // END - while @@ -66,10 +71,10 @@ function THEME_SELECTION_BOX ($mod, $act, $wht, $result) { array_pk_sort($themesArray, array("theme_name")); // Construct selection form for the box template - $OUT = ""; + $OUT = ''; foreach ($themesArray['theme_unix'] as $key => $theme) { $OUT .= "