Security line in all includes changed
[mailer.git] / inc / extensions / ext-theme.php
index 8c4e31d2ff0602d39b0c9f01190cc67cad394262..471721f032b57efd61a8f15271aa1e26bf7a9574 100644 (file)
  ************************************************************************/
 
 // 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);
 }
 
 // Version number
-$EXT_VERSION = "0.0.6";
+$EXT_VERSION = "0.0.7";
 
 // Auto-set extension version
 if (empty($EXT_VER)) $EXT_VER = $EXT_VERSION;
 
 // Version history array (add more with , "0.1" and so on)
-$EXT_VER_HISTORY = array("0.0", "0.0.1", "0.0.2", "0.0.3", "0.0.4", "0.0.5", "0.0.6");
+$EXT_VER_HISTORY = array("0.0", "0.0.1", "0.0.2", "0.0.3", "0.0.4", "0.0.5", "0.0.6", "0.0.7");
 
 switch ($EXT_LOAD_MODE)
 {
@@ -101,6 +100,13 @@ case "update": // Update an extension
                // Update notes (these will be set as task text!)
                $UPDATE_NOTES = "Variablen-Handling skriptglobal geändert.";
                break;
+
+       case "0.0.7": // SQL queries for v0.0.7
+               $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_themes ADD theme_name VARCHAR(255) NOT NULL DEFAULT ''";
+
+               // Update notes (these will be set as task text!)
+               $UPDATE_NOTES = "Designname (von Menschen lesbar) hinzugefügt.";
+               break;
        }
        break;