Rewritten all THEME_FOO variables to GLOBALS
[mailer.git] / theme / desert / theme.php
index 375f88918ab912e29593d197070c975ec218a64c..55aaa018369b9922d001e2ccff8391d27a3921ce 100644 (file)
  * -------------------------------------------------------------------- *
  * Kurzbeschreibung  :                                                  *
  * -------------------------------------------------------------------- *
- *                                                                      *
+ * $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                  *
@@ -32,8 +37,7 @@
  ************************************************************************/
 
 // Some security stuff...
-if (ereg(basename(__FILE__), $_SERVER['PHP_SELF']))
-{
+if (!defined('__SECURITY')) {
        $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
        require($INC);
 }
@@ -42,24 +46,24 @@ if (ereg(basename(__FILE__), $_SERVER['PHP_SELF']))
 // Theme definitions
 //
 // The name of your theme
-$THEME_NAME = "Desert-Storm";
+$GLOBALS['theme_data']['name'] = "Desert-Storm";
 
 // Only your name please!
-$THEME_AUTHOR = "Roland Häder";
+$GLOBALS['theme_data']['author'] = "Roland Häder";
 
 // Your email address
-$THEME_EMAIL = "webmaster@mxchange.org";
+$GLOBALS['theme_data']['email'] = "webmaster@mxchange.org";
 
 // URL where you have uploaded it
-$THEME_URL = "http://www.mxchange.org";
+$GLOBALS['theme_data']['url'] = "http://www.mxchange.org";
 
 // Version number
-$THEME_VERSION = "0.0.1";
+$GLOBALS['theme_data']['version'] = "0.0.1";
 
 // Switch mode
-if (empty($THEME_MODE)) $THEME_MODE = "load";
+if (empty($GLOBALS['theme_mode'])) $GLOBALS['theme_mode'] = "load";
 
-switch ($THEME_MODE)
+switch ($GLOBALS['theme_mode'])
 {
 case "test": // Do stuff while testing the theme: The admin clicked on "Import"
        break;