X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Flibs%2Ftheme_functions.php;h=44363a8c7cc42d1f8ebb72afc8e975ae7d4d5f09;hp=d7a320da346b101b213b91bddb99d82169cf77b3;hb=f928ad2bed60fa256d0641eaf6d2c027a2944688;hpb=414570c5081d337bb6c28dcf521bd8bca02f69e7 diff --git a/inc/libs/theme_functions.php b/inc/libs/theme_functions.php index d7a320da34..44363a8c7c 100644 --- a/inc/libs/theme_functions.php +++ b/inc/libs/theme_functions.php @@ -10,10 +10,10 @@ * -------------------------------------------------------------------- * * Kurzbeschreibung : Themen-Manager * * -------------------------------------------------------------------- * - * $Revision:: 856 $ * - * $Date:: 2009-03-06 20:24:32 +0100 (Fr, 06. Mär 2009) $ * + * $Revision:: $ * + * $Date:: $ * * $Tag:: 0.2.1-FINAL $ * - * $Author:: stelzi $ * + * $Author:: $ * * Needs to be in all Files and every File needs "svn propset * * svn:keywords Date Revision" (autoprobset!) at least!!!!!! * * -------------------------------------------------------------------- * @@ -38,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; @@ -59,22 +59,22 @@ 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 // Sort whole array by title - array_pk_sort($themesArray, array("theme_name")); + array_pk_sort($themesArray, array('theme_name')); // Construct selection form for the box template - $OUT = ""; + $OUT = ''; foreach ($themesArray['theme_unix'] as $key => $theme) { $OUT .= "