]> git.mjollnir.org Git - s9y.git/commitdiff
Fix plugins, too
authorgarvinhicking <garvinhicking>
Fri, 1 Dec 2006 09:07:52 +0000 (09:07 +0000)
committergarvinhicking <garvinhicking>
Fri, 1 Dec 2006 09:07:52 +0000 (09:07 +0000)
31 files changed:
plugins/serendipity_event_bbcode/serendipity_event_bbcode.php
plugins/serendipity_event_browsercompatibility/serendipity_event_browsercompatibility.php
plugins/serendipity_event_contentrewrite/serendipity_event_contentrewrite.php
plugins/serendipity_event_creativecommons/serendipity_event_creativecommons.php
plugins/serendipity_event_emoticate/serendipity_event_emoticate.php
plugins/serendipity_event_entryproperties/serendipity_event_entryproperties.php
plugins/serendipity_event_karma/serendipity_event_karma.php
plugins/serendipity_event_livesearch/serendipity_event_livesearch.php
plugins/serendipity_event_mailer/serendipity_event_mailer.php
plugins/serendipity_event_nl2br/serendipity_event_nl2br.php
plugins/serendipity_event_s9ymarkup/serendipity_event_s9ymarkup.php
plugins/serendipity_event_searchhighlight/serendipity_event_searchhighlight.php
plugins/serendipity_event_spamblock/serendipity_event_spamblock.php
plugins/serendipity_event_spartacus/serendipity_event_spartacus.php
plugins/serendipity_event_statistics/serendipity_event_statistics.php
plugins/serendipity_event_statistics/serendipity_plugin_statistics.php
plugins/serendipity_event_templatechooser/serendipity_event_templatechooser.php
plugins/serendipity_event_textile/serendipity_event_textile.php
plugins/serendipity_event_textwiki/serendipity_event_textwiki.php
plugins/serendipity_event_trackexits/serendipity_event_trackexits.php
plugins/serendipity_event_weblogping/serendipity_event_weblogping.php
plugins/serendipity_event_xhtmlcleanup/serendipity_event_xhtmlcleanup.php
plugins/serendipity_plugin_comments/serendipity_plugin_comments.php
plugins/serendipity_plugin_creativecommons/serendipity_plugin_creativecommons.php
plugins/serendipity_plugin_entrylinks/serendipity_plugin_entrylinks.php
plugins/serendipity_plugin_eventwrapper/serendipity_plugin_eventwrapper.php
plugins/serendipity_plugin_history/serendipity_plugin_history.php
plugins/serendipity_plugin_recententries/serendipity_plugin_recententries.php
plugins/serendipity_plugin_remoterss/serendipity_plugin_remoterss.php
plugins/serendipity_plugin_shoutbox/serendipity_plugin_shoutbox.php
plugins/serendipity_plugin_templatedropdown/serendipity_plugin_templatedropdown.php

index c8a7cf903c63b353e97e30927b312e53712d70f2..9dcc0ac12fcbb513a2dd82990e7c67d96d98921c 100644 (file)
@@ -1,5 +1,10 @@
 <?php # $Id$
 
+if (IN_serendipity !== true) {
+    die ("Don't hack!");
+}
+
+
 // Probe for a language include with constants. Still include defines later on, if some constants were missing
 $probelang = dirname(__FILE__) . '/' . $serendipity['charset'] . 'lang_' . $serendipity['lang'] . '.inc.php';
 if (file_exists($probelang)) {
@@ -19,7 +24,7 @@ class serendipity_event_bbcode extends serendipity_event
         $propbag->add('description',   PLUGIN_EVENT_BBCODE_DESC);
         $propbag->add('stackable',     false);
         $propbag->add('author',        'Jez Hancock, Garvin Hicking');
-        $propbag->add('version',       '2.01');
+        $propbag->add('version',       '2.02');
         $propbag->add('requirements',  array(
             'serendipity' => '0.8',
             'smarty'      => '2.6.7',
index 47a512ba72b336ac519d85d7b548882538286eb4..456e011deb72041653d3ce1924a5225dca6ac45b 100644 (file)
@@ -1,5 +1,10 @@
 <?php # $Id$
 
+
+if (IN_serendipity !== true) {
+    die ("Don't hack!");
+}
+
 // Probe for a language include with constants. Still include defines later on, if some constants were missing
 $probelang = dirname(__FILE__) . '/' . $serendipity['charset'] . 'lang_' . $serendipity['lang'] . '.inc.php';
 if (file_exists($probelang)) {
@@ -25,7 +30,7 @@ class serendipity_event_browsercompatibility extends serendipity_event
             'smarty'      => '2.6.7',
             'php'         => '4.1.0'
         ));
-        $propbag->add('version',       '1.0');
+        $propbag->add('version',       '1.1');
         $propbag->add('event_hooks',    array(
             'css' => true,
             'css_backend' => true,
index 9db6f4cab5cb95d48a0738c087bb277d92b724b0..4392fb357386929950da0ac53cb8924e44332b95 100644 (file)
@@ -1,5 +1,10 @@
 <?php # $Id$
 
+
+if (IN_serendipity !== true) {
+    die ("Don't hack!");
+}
+
 // Probe for a language include with constants. Still include defines later on, if some constants were missing
 $probelang = dirname(__FILE__) . '/' . $serendipity['charset'] . 'lang_' . $serendipity['lang'] . '.inc.php';
 if (file_exists($probelang)) {
@@ -29,7 +34,7 @@ class serendipity_event_contentrewrite extends serendipity_event
         $propbag->add('description',   PLUGIN_EVENT_CONTENTREWRITE_DESCRIPTION);
         $propbag->add('stackable',     true);
         $propbag->add('author',        'Garvin Hicking');
-        $propbag->add('version',       '1.1');
+        $propbag->add('version',       '1.2');
         $propbag->add('requirements',  array(
             'serendipity' => '0.8',
             'smarty'      => '2.6.7',
index 257db0ae309b69ea07310874ed291b9dcacfcded..729ff9a53a7c4fd7334d816b9f7e337b8b51e605 100644 (file)
@@ -1,5 +1,10 @@
 <?php # $Id$
 
+
+if (IN_serendipity !== true) {
+    die ("Don't hack!");
+}
+
 // Probe for a language include with constants. Still include defines later on, if some constants were missing
 $probelang = dirname(__FILE__) . '/' . $serendipity['charset'] . 'lang_' . $serendipity['lang'] . '.inc.php';
 if (file_exists($probelang)) {
@@ -18,7 +23,7 @@ class serendipity_event_creativecommons extends serendipity_event {
         $propbag->add('description',   PLUGIN_CREATIVECOMMONS_DESC);
         $propbag->add('stackable',     false);
         $propbag->add('author',        'Evan Nemerson');
-        $propbag->add('version',       '1.0');
+        $propbag->add('version',       '1.1');
         $propbag->add('requirements',  array(
             'serendipity' => '0.8',
             'smarty'      => '2.6.7',
index 80d1b4ace241456b0d959013c2ba2549f309d362..2855642e469e6d5d770424e6d553d8018311913b 100644 (file)
@@ -1,5 +1,10 @@
 <?php # $Id$
 
+
+if (IN_serendipity !== true) {
+    die ("Don't hack!");
+}
+
 // Probe for a language include with constants. Still include defines later on, if some constants were missing
 $probelang = dirname(__FILE__) . '/' . $serendipity['charset'] . 'lang_' . $serendipity['lang'] . '.inc.php';
 if (file_exists($probelang)) {
@@ -20,7 +25,7 @@ class serendipity_event_emoticate extends serendipity_event
         $propbag->add('description',   PLUGIN_EVENT_EMOTICATE_DESC);
         $propbag->add('stackable',     false);
         $propbag->add('author',        'Serendipity Team');
-        $propbag->add('version',       '1.2');
+        $propbag->add('version',       '1.3');
         $propbag->add('requirements',  array(
             'serendipity' => '0.8',
             'smarty'      => '2.6.7',
index 83687c100f7a37e5b0590707ad8421d9bf5885f3..a7ddfe1536ac4d804e768fdde09f308089d9f92c 100644 (file)
@@ -1,5 +1,10 @@
 <?php # $Id$
 
+
+if (IN_serendipity !== true) {
+    die ("Don't hack!");
+}
+
 // Probe for a language include with constants. Still include defines later on, if some constants were missing
 $probelang = dirname(__FILE__) . '/' . $serendipity['charset'] . 'lang_' . $serendipity['lang'] . '.inc.php';
 if (file_exists($probelang)) {
@@ -21,7 +26,7 @@ class serendipity_event_entryproperties extends serendipity_event
         $propbag->add('description',   PLUGIN_EVENT_ENTRYPROPERTIES_DESC);
         $propbag->add('stackable',     false);
         $propbag->add('author',        'Garvin Hicking');
-        $propbag->add('version',       '1.8');
+        $propbag->add('version',       '1.9');
         $propbag->add('requirements',  array(
             'serendipity' => '0.8',
             'smarty'      => '2.6.7',
index 11a5dd1d9af0410e52d959938d8eec8ef4ef79a5..75071ab6dbb1c8cdf8ac882a96729cb7efc59442 100644 (file)
@@ -1,5 +1,10 @@
 <?php # $Id$
 
+
+if (IN_serendipity !== true) {
+    die ("Don't hack!");
+}
+
 // Probe for a language include with constants. Still include defines later on, if some constants were missing
 $probelang = dirname(__FILE__) . '/' . $serendipity['charset'] . 'lang_' . $serendipity['lang'] . '.inc.php';
 if (file_exists($probelang)) {
@@ -26,7 +31,7 @@ class serendipity_event_karma extends serendipity_event
         $propbag->add('description',   PLUGIN_KARMA_BLAHBLAH);
         $propbag->add('stackable',     false);
         $propbag->add('author',        'Garvin Hicking');
-        $propbag->add('version',       '1.8');
+        $propbag->add('version',       '1.9');
         $propbag->add('requirements',  array(
             'serendipity' => '0.8',
             'smarty'      => '2.6.7',
index f866e9c5a03868f54ba2d189e11c594f157305b5..0f623619db250309e7592ad90673511e7201ac9a 100644 (file)
@@ -1,10 +1,15 @@
 <?php # $Id$
 
+
+if (IN_serendipity !== true) {
+    die ("Don't hack!");
+}
+
 // Probe for a language include with constants. Still include defines later on, if some constants were missing
 $probelang = dirname(__FILE__) . '/' . $serendipity['charset'] . 'lang_' . $serendipity['lang'] . '.inc.php';
 if (file_exists($probelang)) {
     include $probelang;
-} 
+}
 
 include dirname(__FILE__) . '/lang_en.inc.php';
 
@@ -20,7 +25,7 @@ class serendipity_event_livesearch extends serendipity_event
         $propbag->add('description',   PLUGIN_EVENT_LIVESEARCH_DESC);
         $propbag->add('stackable',     false);
         $propbag->add('author',        'Christian Stocker, Garvin Hicking');
-        $propbag->add('version',       '1.3');
+        $propbag->add('version',       '1.4');
         $propbag->add('requirements',  array(
             'serendipity' => '0.8',
             'smarty'      => '2.6.7',
index d4972996976e099ccd650982cc9333a30282a6e2..992453aeeb26665823468199ab07ee4844d1bb33 100644 (file)
@@ -1,5 +1,10 @@
 <?php # $Id$
 
+
+if (IN_serendipity !== true) {
+    die ("Don't hack!");
+}
+
 // Probe for a language include with constants. Still include defines later on, if some constants were missing
 $probelang = dirname(__FILE__) . '/' . $serendipity['charset'] . 'lang_' . $serendipity['lang'] . '.inc.php';
 if (file_exists($probelang)) {
@@ -21,7 +26,7 @@ class serendipity_event_mailer extends serendipity_event
         $propbag->add('description',   PLUGIN_EVENT_MAILER_DESC);
         $propbag->add('stackable',     false);
         $propbag->add('author',        'Sebastian Nohn, Kristian Koehntopp, Garvin Hicking');
-        $propbag->add('version',       '1.43');
+        $propbag->add('version',       '1.44');
         $propbag->add('requirements',  array(
             'serendipity' => '0.8',
             'smarty'      => '2.6.7',
@@ -46,12 +51,12 @@ class serendipity_event_mailer extends serendipity_event
         if (!is_array($this->data['categories'])) {
             return false;
         }
-        
+
         foreach($this->data['categories'] AS $cat) {
             $conf[] = 'category_' . $cat['categoryid'];
             $this->data['cat'][$cat['categoryid']] = $cat;
         }
-        
+
         if (is_object($bag)) {
             $bag->add('configuration', $conf);
         }
@@ -144,7 +149,7 @@ class serendipity_event_mailer extends serendipity_event
                                 $to[] = $mailto;
                             }
                         }
-                        
+
                         $this->performConfig($to);
                         if (is_array($this->data['cat'])) {
                             $selected = array();
@@ -156,7 +161,7 @@ class serendipity_event_mailer extends serendipity_event
 
                             foreach($this->data['cat'] AS $cid => $cat) {
                                 $mailto = trim($this->get_config('category_' . $cid));
-                                
+
                                 if (!empty($mailto) && isset($selected[$cid])) {
                                     $tos = explode(' ', $mailto);
                                     foreach($tos AS $mailtopart) {
index 60db21e4aa6bf3330e14e8f6332a1067331dd21a..349d73cda3b96889901375c95d47d06f2ed0ff85 100644 (file)
@@ -1,5 +1,10 @@
 <?php # $Id$
 
+
+if (IN_serendipity !== true) {
+    die ("Don't hack!");
+}
+
 // Probe for a language include with constants. Still include defines later on, if some constants were missing
 $probelang = dirname(__FILE__) . '/' . $serendipity['charset'] . 'lang_' . $serendipity['lang'] . '.inc.php';
 if (file_exists($probelang)) {
@@ -20,7 +25,7 @@ class serendipity_event_nl2br extends serendipity_event
         $propbag->add('description',   PLUGIN_EVENT_NL2BR_DESC);
         $propbag->add('stackable',     false);
         $propbag->add('author',        'Serendipity Team');
-        $propbag->add('version',       '1.3');
+        $propbag->add('version',       '1.4');
         $propbag->add('requirements',  array(
             'serendipity' => '0.8',
             'smarty'      => '2.6.7',
index 971d414cdd04e51ebb376c1bdef88e2b2f0987b9..26ec59a5abb71665ec82e5d3860c06313c23dac5 100644 (file)
@@ -1,5 +1,10 @@
 <?php # $Id$
 
+
+if (IN_serendipity !== true) {
+    die ("Don't hack!");
+}
+
 // Probe for a language include with constants. Still include defines later on, if some constants were missing
 $probelang = dirname(__FILE__) . '/' . $serendipity['charset'] . 'lang_' . $serendipity['lang'] . '.inc.php';
 if (file_exists($probelang)) {
@@ -20,7 +25,7 @@ class serendipity_event_s9ymarkup extends serendipity_event
         $propbag->add('description',   PLUGIN_EVENT_S9YMARKUP_DESC);
         $propbag->add('stackable',     false);
         $propbag->add('author',        'Serendipity Team');
-        $propbag->add('version',       '1.1');
+        $propbag->add('version',       '1.2');
         $propbag->add('requirements',  array(
             'serendipity' => '0.8',
             'smarty'      => '2.6.7',
index 5adb101606f9c53564b84a76ba4f0484c13ec3ea..d770f143f2751e248e1d71907e1834aa2e847749 100644 (file)
@@ -4,6 +4,11 @@
 /*  Authored by Tom Sommer, 2004  */
 /**********************************/
 
+
+if (IN_serendipity !== true) {
+    die ("Don't hack!");
+}
+
 // Probe for a language include with constants. Still include defines later on, if some constants were missing
 $probelang = dirname(__FILE__) . '/' . $serendipity['charset'] . 'lang_' . $serendipity['lang'] . '.inc.php';
 if (file_exists($probelang)) {
@@ -24,7 +29,7 @@ class serendipity_event_searchhighlight extends serendipity_event
         $propbag->add('description',   PLUGIN_EVENT_SEARCHHIGHLIGHT_DESC);
         $propbag->add('stackable',     false);
         $propbag->add('author',        'Tom Sommer');
-        $propbag->add('version',       '1.1');
+        $propbag->add('version',       '1.2');
         $propbag->add('requirements',  array(
             'serendipity' => '0.8',
             'smarty'      => '2.6.7',
index 6f859b63900028e8a12be35ab3fc9d58bcadca91..0ab1788c58145574fccba8d9805422e31399c63a 100644 (file)
@@ -1,5 +1,10 @@
 <?php # $Id$
 
+
+if (IN_serendipity !== true) {
+    die ("Don't hack!");
+}
+
 // Probe for a language include with constants. Still include defines later on, if some constants were missing
 $probelang = dirname(__FILE__) . '/' . $serendipity['charset'] . 'lang_' . $serendipity['lang'] . '.inc.php';
 if (file_exists($probelang)) {
@@ -34,7 +39,7 @@ var $filter_defaults;
             'smarty'      => '2.6.7',
             'php'         => '4.1.0'
         ));
-        $propbag->add('version',       '1.51');
+        $propbag->add('version',       '1.52');
         $propbag->add('event_hooks',    array(
             'frontend_saveComment' => true,
             'external_plugin'      => true,
index 96be9fc5c733899a530b762549823a77429aaed2..75eed4e72ccfc0e7faac293dc3ad87ff757c1f52 100644 (file)
@@ -8,6 +8,11 @@
 
  ***********/
 
+
+if (IN_serendipity !== true) {
+    die ("Don't hack!");
+}
+
 // Probe for a language include with constants. Still include defines later on, if some constants were missing
 $probelang = dirname(__FILE__) . '/' . $serendipity['charset'] . 'lang_' . $serendipity['lang'] . '.inc.php';
 if (file_exists($probelang)) {
@@ -34,7 +39,7 @@ class serendipity_event_spartacus extends serendipity_event
         $propbag->add('description',   PLUGIN_EVENT_SPARTACUS_DESC);
         $propbag->add('stackable',     false);
         $propbag->add('author',        'Garvin Hicking');
-        $propbag->add('version',       '2.8');
+        $propbag->add('version',       '2.9');
         $propbag->add('requirements',  array(
             'serendipity' => '0.9',
             'smarty'      => '2.6.7',
index 69a8703c8b1d658881a068fff6474022fbc897d6..1aa1d02bf958e66c7a3b820d2142cb176a3c5f26 100644 (file)
@@ -1,5 +1,10 @@
 <?php # $Id$
 
+
+if (IN_serendipity !== true) {
+    die ("Don't hack!");
+}
+
 // Probe for a language include with constants. Still include defines later on, if some constants were missing
 $probelang = dirname(__FILE__) . '/' . $serendipity['charset'] . 'lang_' . $serendipity['lang'] . '.inc.php';
 if (file_exists($probelang)) {
@@ -7,7 +12,7 @@ if (file_exists($probelang)) {
 }
 
 include dirname(__FILE__) . '/lang_en.inc.php';
-        
+
 class serendipity_event_statistics extends serendipity_event
 {
     var $title = PLUGIN_EVENT_STATISTICS_NAME;
@@ -20,7 +25,7 @@ class serendipity_event_statistics extends serendipity_event
         $propbag->add('description',   PLUGIN_EVENT_STATISTICS_DESC);
         $propbag->add('stackable',     false);
         $propbag->add('author',        'Garvin Hicking, Fredrik Sandberg');
-        $propbag->add('version',       '1.24');
+        $propbag->add('version',       '1.25');
         $propbag->add('requirements',  array(
             'serendipity' => '0.8',
             'smarty'      => '2.6.7',
@@ -45,8 +50,8 @@ class serendipity_event_statistics extends serendipity_event
                 $propbag->add('description', PLUGIN_EVENT_STATISTICS_MAX_ITEMS_DESC);
                 $propbag->add('default', 20);
                 break;
-                
-             
+
+
             case 'ext_vis_stat':
                 $select = array('no' => PLUGIN_EVENT_STATISTICS_EXT_OPT1, 'yesBot' => PLUGIN_EVENT_STATISTICS_EXT_OPT2, 'yesTop' => PLUGIN_EVENT_STATISTICS_EXT_OPT3);
                 $propbag->add('type',        'select');
@@ -56,7 +61,7 @@ class serendipity_event_statistics extends serendipity_event
                 $propbag->add('default', 'no');
 
                 break;
-                
+
            case 'banned_bots':
                 $propbag->add('type', 'string');
                 $propbag->add('name', PLUGIN_EVENT_STATISTICS_BANNED_HOSTS);
@@ -79,7 +84,7 @@ class serendipity_event_statistics extends serendipity_event
 
         if (isset($hooks[$event])) {
             switch($event) {
-            
+
                 case 'frontend_configure':
                     if ($this->get_config('ext_vis_stat') == 'no') {
                         return;
@@ -93,11 +98,11 @@ class serendipity_event_statistics extends serendipity_event
                     if ($this->get_config('db_indices_created', 'false') !== '1') {
                         $this->updateTables();
                     }
-                    
+
                     //Unique visitors are beeing registered and counted here. Calling function below.
                     $sessionChecker = serendipity_db_query("SELECT count(sessID) FROM {$serendipity['dbPrefix']}visitors WHERE '".serendipity_db_escape_string(session_id())."' = sessID GROUP BY sessID", true);
                     if (!is_array($sessionChecker) || (is_array($sessionChecker)) && ($sessionChecker[0] == 0)) {
-                        
+
                         // avoiding banned browsers
                         $banned_bots = $this->get_config('banned_bots');
                         $tmp_array = explode('|', $banned_bots);
@@ -106,15 +111,15 @@ class serendipity_event_statistics extends serendipity_event
                             if (trim($tmp_array[$i]) == trim($_SERVER['HTTP_USER_AGENT'])){
                                 $found = 'yes';
                             }
-                        } 
-                        if ($found == 'no'){ 
+                        }
+                        if ($found == 'no'){
                             $this->countVisitor();
                         }
                     } else {
                         // Update visitor timestamp
                         $this->updateVisitor();
                     }
-                    
+
                 break;
                 case 'backend_sidebar_entries':
 ?>
@@ -130,12 +135,12 @@ class serendipity_event_statistics extends serendipity_event
                     if (!$max_items || !is_numeric($max_items) || $max_items < 1) {
                         $max_items = 20;
                     }
-                    
+
                     if ($ext_vis_stat == 'yesTop') {
                         $this->extendedVisitorStatistics($max_items);
                     }
 
-                    
+
                     $first_entry    = serendipity_db_query("SELECT timestamp FROM {$serendipity['dbPrefix']}entries ORDER BY timestamp ASC limit 1", true);
                     $last_entry     = serendipity_db_query("SELECT timestamp FROM {$serendipity['dbPrefix']}entries ORDER BY timestamp DESC limit 1", true);
                     $total_count    = serendipity_db_query("SELECT count(id) FROM {$serendipity['dbPrefix']}entries", true);
@@ -454,7 +459,7 @@ class serendipity_event_statistics extends serendipity_event
     <hr />
     <?php serendipity_plugin_api::hook_event('event_additional_statistics', $eventData, array('maxitems' => $max_items)); ?>
     </div>
-    
+
     <?php
 
                     if ($ext_vis_stat == 'yesBot') {
@@ -472,13 +477,13 @@ class serendipity_event_statistics extends serendipity_event
             return false;
         }
     }
-    
+
     function updateVisitor() {
         global $serendipity;
 
         $time = date('H:i');
         $day  = date('Y-m-d');
-        return serendipity_db_query("UPDATE {$serendipity['dbPrefix']}visitors 
+        return serendipity_db_query("UPDATE {$serendipity['dbPrefix']}visitors
                                         SET time = '$time',
                                             day  = '$day'
                                       WHERE sessID = '" . serendipity_db_escape_string(strip_tags(session_id())) . "'");
@@ -496,25 +501,25 @@ class serendipity_event_statistics extends serendipity_event
             'browser'=> strip_tags($_SERVER['HTTP_USER_AGENT']),
             'ip'     => strip_tags($_SERVER['REMOTE_ADDR'])
         );
-                
+
         serendipity_db_insert('visitors', $values);
-                   
+
         // updating the referrer-table
         if (strlen($referer) >= 1) {
 
             //retrieving the referrer base URL
-            $temp_array = explode('?', $referer); 
-            $urlA = $temp_array[0]; 
-    
+            $temp_array = explode('?', $referer);
+            $urlA = $temp_array[0];
+
             //removing "http://" & trailing subdirectories
             $temp_array3 = explode('//', $urlA);
             $urlB = $temp_array3[1];
             $temp_array4 = explode('/', $urlB);
             $urlB = $temp_array4[0];
-    
+
             //removing www
             $urlC = serendipity_db_escape_string(str_replace('www.', '', $urlB));
-            
+
             //updating db
             $q = serendipity_db_query("SELECT count(refs) FROM {$serendipity['dbPrefix']}refs WHERE refs = '$urlC' GROUP BY refs", true);
             if (!is_array($q) || $q[0] >= 1){
@@ -523,14 +528,14 @@ class serendipity_event_statistics extends serendipity_event
                 serendipity_db_query("INSERT INTO {$serendipity['dbPrefix']}refs (refs, count) VALUES ('$urlC', 1)");
             }
         }
-            
+
     } //end of function countVisitor
-    
-    
+
+
     function extendedVisitorStatistics($max_items){
-        
+
         global $serendipity;
-        
+
         // ---------------QUERIES for Viewing statistics ----------------------------------------------
         $day = date('Y-m-d');
         $visitors_count_today = serendipity_db_query("SELECT count(counter_id) FROM {$serendipity['dbPrefix']}visitors WHERE day = '".$day."'", true);
@@ -538,7 +543,7 @@ class serendipity_event_statistics extends serendipity_event
         $visitors_count = serendipity_db_query("SELECT count(counter_id) FROM {$serendipity['dbPrefix']}visitors", true);
         $visitors_latest = serendipity_db_query("SELECT counter_id, day, time, ref, browser, ip FROM {$serendipity['dbPrefix']}visitors ORDER BY counter_id DESC LIMIT ".$max_items."");
         $top_refs = serendipity_db_query("SELECT refs, count FROM {$serendipity['dbPrefix']}refs ORDER BY count DESC LIMIT ".$max_items."");
-                            
+
         // ---------------STYLES for Viewing statistics ----------------------------------------------
         echo "<style type='text/css'>";
         echo ".colVis {text-align: center; width:600px; font-size: 10px; background-color:#dddddd;} ";
@@ -553,20 +558,20 @@ class serendipity_event_statistics extends serendipity_event
         <div style="margin: 5px; padding: 5px">
         <dl>
             <dt><?php echo PLUGIN_EVENT_STATISTICS_EXT_VISSINCE." ".$visitors_count_firstday[0].".<br /><br /><br />\n"?></dt>
-        
+
             <dt><strong><?php echo PLUGIN_EVENT_STATISTICS_EXT_VISITORS; ?></strong></dt>
                 <dd>
                     <div class="colVis">
-                    <?php 
+                    <?php
                     echo PLUGIN_EVENT_STATISTICS_EXT_VISTODAY.": <strong>".$visitors_count_today[0]."</strong><br />\n";
                     echo PLUGIN_EVENT_STATISTICS_EXT_VISTOTAL.": <strong>".$visitors_count[0]."</strong><br />\n";
                     ?>
                     </div>
                 </dd>
         </dl>
-                    
+
         <dl>
-        
+
         <dt><strong><?php echo PLUGIN_EVENT_STATISTICS_EXT_VISLATEST;?></strong></dt>
             <dd>
                 <table>
@@ -594,10 +599,10 @@ class serendipity_event_statistics extends serendipity_event
                 </table><br />
             </dd>
         </dl>
-                        
+
         <dl>
         <dt><strong>
-        <?php 
+        <?php
         echo PLUGIN_EVENT_STATISTICS_EXT_TOPREFS;
         ?>
         </strong></dt>
@@ -620,11 +625,11 @@ class serendipity_event_statistics extends serendipity_event
         <hr />
     <?php
     } //end of function extendedVisitorStatistics()
-    
-    
+
+
     function createTables() {
         global $serendipity;
-        
+
         //create table xxxx_visitors
         $q   = "CREATE TABLE {$serendipity['dbPrefix']}visitors (
             counter_id {AUTOINCREMENT} {PRIMARY},
@@ -645,7 +650,7 @@ class serendipity_event_statistics extends serendipity_event
             count int(11) not null default '0'
         )";
         serendipity_db_schema_import($q);
-        
+
         $this->updateTables();
     } //end of function createTables()
 
@@ -662,29 +667,29 @@ class serendipity_event_statistics extends serendipity_event
     }
 
     function dropTables() {
-        
+
         global $serendipity;
-        
+
         // Drop tables
         $q   = "DROP TABLE ".$serendipity['dbPrefix']."visitors";
         $sql = serendipity_db_schema_import($q);
         $q   = "DROP TABLE ".$serendipity['dbPrefix']."refs";
         $sql = serendipity_db_schema_import($q);
-        
+
     } //end of function dropTables
-    
+
     function install(){
-        
+
         $this->createTables();
-        
+
     }
-    
+
     function uninstall(){
-        
+
         $this->dropTables();
-        
+
     }
-    
+
 }
 
 /* vim: set sts=4 ts=4 expandtab : */
index ccc6cf9230afa05fb4fe8ea058600c7891383466..d1756ce3441e4355635bba04574fb22fe300455e 100644 (file)
@@ -1,5 +1,10 @@
 <?php # $Id: serendipity_plugin_comments.php 691 2005-11-13 06:58:40Z elf2000 $
 
+
+if (IN_serendipity !== true) {
+    die ("Don't hack!");
+}
+
 // Probe for a language include with constants. Still include defines later on, if some constants were missing
 $probelang = dirname(__FILE__) . '/' . $serendipity['charset'] . 'lang_' . $serendipity['lang'] . '.inc.php';
 if (file_exists($probelang)) {
@@ -22,7 +27,7 @@ class serendipity_plugin_statistics extends serendipity_plugin
         $propbag->add('description',   PLUGIN_EVENT_STATISTICS_NAME);
         $propbag->add('stackable',     true);
         $propbag->add('author',        'Garvin Hicking');
-        $propbag->add('version',       '1.0');
+        $propbag->add('version',       '1.1');
         $propbag->add('requirements',  array(
             'serendipity' => '0.8',
             'smarty'      => '2.6.7',
@@ -150,10 +155,10 @@ class serendipity_plugin_statistics extends serendipity_plugin
         $title       = $this->get_config('title', $this->title);
         $cachetime   = $this->get_config('cachetimeout', 60) * 60; // turn to seconds
         $cachef      = $serendipity['serendipityPath'] . 'templates_c/statistics_cache.html';
-        
+
         if (!file_exists($cachef) || filesize($cachef) == 0 || filemtime($cachef) < (time() - $cachetime)) {
             // Create statistics
-            
+
             $content = '';
             if (serendipity_db_bool($this->get_config('show_lastentry'))) {
                 $res = serendipity_db_query("SELECT timestamp FROM {$serendipity['dbPrefix']}entries WHERE isdraft = 'false' AND timestamp <= " . time() . " ORDER BY timestamp DESC LIMIT 1", true, 'assoc');
index 3ab1cd216142cce4c85e3b6ab37b75a1dd85cf60..1dddc9770d57654d9b66b7cacafdf4f8a9e941bd 100644 (file)
@@ -1,5 +1,10 @@
 <?php # $Id$
 
+
+if (IN_serendipity !== true) {
+    die ("Don't hack!");
+}
+
 // Probe for a language include with constants. Still include defines later on, if some constants were missing
 $probelang = dirname(__FILE__) . '/' . $serendipity['charset'] . 'lang_' . $serendipity['lang'] . '.inc.php';
 if (file_exists($probelang)) {
@@ -21,7 +26,7 @@ class serendipity_event_templatechooser extends serendipity_event
         $propbag->add('description', PLUGIN_EVENT_TEMPLATECHOOSER_DESC);
         $propbag->add('stackable',   false);
         $propbag->add('author',      'Evan Nemerson');
-        $propbag->add('version',     '1.3');
+        $propbag->add('version',     '1.4');
         $propbag->add('requirements',  array(
             'serendipity' => '0.8',
             'smarty'      => '2.6.7',
index cfe470eeb15e8ef6d27b623b986d1460cba178c0..9ab0887bba50af6162e475c873ac3b63d49b5eba 100644 (file)
@@ -2,6 +2,11 @@
 
 require_once S9Y_INCLUDE_PATH . 'plugins/serendipity_event_textile/textile.php';
 
+
+if (IN_serendipity !== true) {
+    die ("Don't hack!");
+}
+
 // Probe for a language include with constants. Still include defines later on, if some constants were missing
 $probelang = dirname(__FILE__) . '/' . $serendipity['charset'] . 'lang_' . $serendipity['lang'] . '.inc.php';
 if (file_exists($probelang)) {
@@ -22,7 +27,7 @@ class serendipity_event_textile extends serendipity_event
         $propbag->add('description',   PLUGIN_EVENT_TEXTILE_DESC);
         $propbag->add('stackable',     false);
         $propbag->add('author',        'Serendipity Team');
-        $propbag->add('version',       '1.1');
+        $propbag->add('version',       '1.2');
         $propbag->add('requirements',  array(
             'serendipity' => '0.8',
             'smarty'      => '2.6.7',
index 1d9f3f228d5fb4edbe57de43f1d4be8e9c594749..505fef615075f8f1d88d116373f0f90c4463cea3 100644 (file)
@@ -1,5 +1,10 @@
 <?php # $Id$
 
+
+if (IN_serendipity !== true) {
+    die ("Don't hack!");
+}
+
 // Probe for a language include with constants. Still include defines later on, if some constants were missing
 $probelang = dirname(__FILE__) . '/' . $serendipity['charset'] . 'lang_' . $serendipity['lang'] . '.inc.php';
 if (file_exists($probelang)) {
@@ -461,7 +466,7 @@ class serendipity_event_textwiki extends serendipity_event
         $propbag->add('description',   PLUGIN_EVENT_TEXTWIKI_DESC);
         $propbag->add('stackable',     false);
         $propbag->add('author',        'Tobias Schlitt');
-        $propbag->add('version',       '1.2');
+        $propbag->add('version',       '1.3');
         $propbag->add('requirements',  array(
             'serendipity' => '0.8',
             'smarty'      => '2.6.7',
index 14b05f3f45d9ea79f3eb1872cd65bee734034907..2e126d5d6e670b51968fc00b5f18bcbb752ca805 100644 (file)
@@ -1,5 +1,10 @@
 <?php # $Id$
 
+
+if (IN_serendipity !== true) {
+    die ("Don't hack!");
+}
+
 // Probe for a language include with constants. Still include defines later on, if some constants were missing
 $probelang = dirname(__FILE__) . '/' . $serendipity['charset'] . 'lang_' . $serendipity['lang'] . '.inc.php';
 if (file_exists($probelang)) {
@@ -21,7 +26,7 @@ class serendipity_event_trackexits extends serendipity_event
         $propbag->add('description',   PLUGIN_EVENT_TRACKBACK_DESC);
         $propbag->add('stackable',     false);
         $propbag->add('author',        'Serendipity Team');
-        $propbag->add('version',       '1.5');
+        $propbag->add('version',       '1.6');
         $propbag->add('requirements',  array(
             'serendipity' => '0.8',
             'smarty'      => '2.6.7',
@@ -189,7 +194,7 @@ class serendipity_event_trackexits extends serendipity_event
         $is_out   = (stristr($buffer[0], 'onmouseout=')  !== false ? true : false);
 
         $link     = '<a%shref="%sexit.php?url%s=%s%s" ' . (!$is_title ? 'title="%s" ' : '%s') . (!$is_over ? ' onmouseover="window.status=\'%s\';return true;" ' : '%s') . (!$is_out ? 'onmouseout="window.status=\'\';return true;"' : '') . '%s>';
-        
+
         if (is_array($this->links) && !empty($this->links[$url])) {
             return sprintf(
                 $link,
index e1bc3c41a8c3067c3b264f9fd418c7e49853256c..3a3ed53932ee2b5f81c5207181616cf20edb4d53 100644 (file)
@@ -2,6 +2,11 @@
 
 require_once S9Y_PEAR_PATH . 'HTTP/Request.php';
 
+
+if (IN_serendipity !== true) {
+    die ("Don't hack!");
+}
+
 // Probe for a language include with constants. Still include defines later on, if some constants were missing
 $probelang = dirname(__FILE__) . '/' . $serendipity['charset'] . 'lang_' . $serendipity['lang'] . '.inc.php';
 if (file_exists($probelang)) {
@@ -22,7 +27,7 @@ class serendipity_event_weblogping extends serendipity_event
         $propbag->add('description',   PLUGIN_EVENT_WEBLOGPING_DESC);
         $propbag->add('stackable',     false);
         $propbag->add('author',        'Serendipity Team');
-        $propbag->add('version',       '1.02');
+        $propbag->add('version',       '1.03');
         $propbag->add('requirements',  array(
             'serendipity' => '0.8',
             'smarty'      => '2.6.7',
@@ -144,7 +149,7 @@ class serendipity_event_weblogping extends serendipity_event
                     if (!class_exists('XML_RPC_Base')) {
                         include_once(S9Y_PEAR_PATH . "XML/RPC.php");
                     }
-                                                                
+
                     // First cycle through list of services to remove superseding services which may have been checked
                     foreach ($this->services as $index => $service) {
                         if (!empty($service['supersedes']) && isset($serendipity['POST']['announce_entries_' . $service['name']])) {
index e9c1dd116641280f6b57b963dbb6d8391f17bb5b..9d0b42c759af9bbae4a4fae64f86bfc68fcd4514 100644 (file)
@@ -1,5 +1,10 @@
 <?php # $Id$
 
+
+if (IN_serendipity !== true) {
+    die ("Don't hack!");
+}
+
 // Probe for a language include with constants. Still include defines later on, if some constants were missing
 $probelang = dirname(__FILE__) . '/' . $serendipity['charset'] . 'lang_' . $serendipity['lang'] . '.inc.php';
 if (file_exists($probelang)) {
@@ -32,7 +37,7 @@ class serendipity_event_xhtmlcleanup extends serendipity_event
         $propbag->add('description',   PLUGIN_EVENT_XHTMLCLEANUP_DESC);
         $propbag->add('stackable',     false);
         $propbag->add('author',        'Garvin Hicking');
-        $propbag->add('version',       '1.4');
+        $propbag->add('version',       '1.5');
         $propbag->add('requirements',  array(
             'serendipity' => '0.8',
             'smarty'      => '2.6.7',
@@ -189,7 +194,7 @@ class serendipity_event_xhtmlcleanup extends serendipity_event
             case 'utf-8':
                 $p = xml_parser_create(LANG_CHARSET);
                 break;
-            
+
             default:
                 $p = xml_parser_create('');
         }
index 03c6808e1dd1421e838ef3429558a94969614641..d42da43ddca05f6e824c393c019b94f4ab09caf0 100644 (file)
@@ -1,5 +1,10 @@
 <?php # $Id$
 
+
+if (IN_serendipity !== true) {
+    die ("Don't hack!");
+}
+
 // Probe for a language include with constants. Still include defines later on, if some constants were missing
 $probelang = dirname(__FILE__) . '/' . $serendipity['charset'] . 'lang_' . $serendipity['lang'] . '.inc.php';
 if (file_exists($probelang)) {
@@ -22,7 +27,7 @@ class serendipity_plugin_comments extends serendipity_plugin
         $propbag->add('description',   PLUGIN_COMMENTS_BLAHBLAH);
         $propbag->add('stackable',     true);
         $propbag->add('author',        'Garvin Hicking/Tadashi Jokagi/Judebert');
-        $propbag->add('version',       '1.8');
+        $propbag->add('version',       '1.9');
         $propbag->add('requirements',  array(
             'serendipity' => '0.8',
             'smarty'      => '2.6.7',
index 09d31973879496ebd2bacce78b3ce3b97fdc44da..33acb40a5e592313b4f7ab4730c3c7931e403ccb 100644 (file)
@@ -1,5 +1,10 @@
 <?php # $Id$
 
+if (IN_serendipity !== true) {
+    die ("Don't hack!");
+}
+
+
 // Probe for a language include with constants. Still include defines later on, if some constants were missing
 $probelang = dirname(__FILE__) . '/' . $serendipity['charset'] . 'lang_' . $serendipity['lang'] . '.inc.php';
 if (file_exists($probelang)) {
@@ -19,7 +24,7 @@ class serendipity_plugin_creativecommons extends serendipity_plugin {
         $propbag->add('description',   PLUGIN_SIDEBAR_CREATIVECOMMONS_DESC);
         $propbag->add('stackable',     true);
         $propbag->add('author',        'Evan Nemerson');
-        $propbag->add('version',       '1.0');
+        $propbag->add('version',       '1.1');
         $propbag->add('requirements',  array(
             'serendipity' => '0.8',
             'smarty'      => '2.6.7',
index f619c826ce44ea785a419873d95e682f763b1b64..df1594ca3034945cc3310526f595ec60212128d2 100644 (file)
@@ -1,5 +1,10 @@
 <?php # $Id$
 
+
+if (IN_serendipity !== true) {
+    die ("Don't hack!");
+}
+
 // Probe for a language include with constants. Still include defines later on, if some constants were missing
 $probelang = dirname(__FILE__) . '/' . $serendipity['charset'] . 'lang_' . $serendipity['lang'] . '.inc.php';
 if (file_exists($probelang)) {
@@ -22,7 +27,7 @@ class serendipity_plugin_entrylinks extends serendipity_plugin
         $propbag->add('description',   PLUGIN_ENTRYLINKS_BLAHBLAH);
         $propbag->add('stackable',     false);
         $propbag->add('author',        'Garvin Hicking');
-        $propbag->add('version',       '1.01');
+        $propbag->add('version',       '1.02');
         $propbag->add('requirements',  array(
             'serendipity' => '0.8',
             'smarty'      => '2.6.7',
index 891ad24e149772db61867acef7a3a7b9268676f7..a6ac4b347149b5421131799d1feda19dc2020d15 100644 (file)
@@ -1,5 +1,10 @@
 <?php # $Id$
 
+
+if (IN_serendipity !== true) {
+    die ("Don't hack!");
+}
+
 // Probe for a language include with constants. Still include defines later on, if some constants were missing
 $probelang = dirname(__FILE__) . '/' . $serendipity['charset'] . 'lang_' . $serendipity['lang'] . '.inc.php';
 if (file_exists($probelang)) {
@@ -20,7 +25,7 @@ var $rewrite_from, $rewrite_to;
         $propbag->add('description',   PLUGIN_EVENT_WRAPPER_DESC);
         $propbag->add('stackable',     true);
         $propbag->add('author',        'Garvin Hicking');
-        $propbag->add('version',       '1.0');
+        $propbag->add('version',       '1.1');
         $propbag->add('requirements',  array(
             'serendipity' => '0.8',
             'smarty'      => '2.6.7',
index db7cc974a4b44b8eeddf6a8280c1a447340c04ff..4c155d7c343b55a65710c2a8cba2903990c868cf 100644 (file)
@@ -1,5 +1,10 @@
 <?php # $Id$
 
+
+if (IN_serendipity !== true) {
+    die ("Don't hack!");
+}
+
 // Probe for a language include with constants. Still include defines later on, if some constants were missing
 $probelang = dirname(__FILE__) . '/' . $serendipity['charset'] . 'lang_' . $serendipity['lang'] . '.inc.php';
 if (file_exists($probelang)) {
@@ -22,7 +27,7 @@ class serendipity_plugin_history extends serendipity_plugin
         $propbag->add('description',   PLUGIN_HISTORY_DESC);
         $propbag->add('stackable',     true);
         $propbag->add('author',        'Jannis Hermanns');
-        $propbag->add('version',       '1.1');
+        $propbag->add('version',       '1.2');
         $propbag->add('requirements',  array(
             'serendipity' => '0.8',
             'smarty'      => '2.6.7',
index 3aaca7882ce3d7639005264170ba48a3428281e5..6212fac8a206ceb80462af9cabdd9db62524d4fd 100644 (file)
@@ -2,6 +2,11 @@
 
 // Contributed by Christian Machmeier <cm@redsplash.de>
 
+
+if (IN_serendipity !== true) {
+    die ("Don't hack!");
+}
+
 // Probe for a language include with constants. Still include defines later on, if some constants were missing
 $probelang = dirname(__FILE__) . '/' . $serendipity['charset'] . 'lang_' . $serendipity['lang'] . '.inc.php';
 if (file_exists($probelang)) {
@@ -20,7 +25,7 @@ class serendipity_plugin_recententries extends serendipity_plugin {
         $propbag->add('description',   PLUGIN_RECENTENTRIES_BLAHBLAH);
         $propbag->add('stackable',     true);
         $propbag->add('author',        'Christian Machmeier');
-        $propbag->add('version',       '1.5');
+        $propbag->add('version',       '1.6');
         $propbag->add('requirements',  array(
             'serendipity' => '0.8',
             'smarty'      => '2.6.7',
@@ -114,14 +119,14 @@ class serendipity_plugin_recententries extends serendipity_plugin {
         if ($category != 'none') {
             $sql_join = 'LEFT OUTER JOIN ' . $serendipity['dbPrefix'] . 'entrycat AS ec ON id = ec.entryid
                          LEFT OUTER JOIN ' . $serendipity['dbPrefix'] . 'category AS c  ON ec.categoryid = c.categoryid';
-                         
+
             $sql_categories = array();
             if (is_numeric($category)) {
                 $sql_categories[] = $category;
             } else {
                 $sql_categories = explode('^', $category);
             }
-            
+
             $category_parts = array();
             foreach($sql_categories AS $sql_category) {
                 $category_parts[] = "\n" . implode(' AND ', serendipity_fetchCategoryRange($sql_category));
@@ -170,7 +175,7 @@ class serendipity_plugin_recententries extends serendipity_plugin {
                 if (empty($entry['title'])) {
                     $entry['title'] = '#' . $entry['id'];
                 }
-                
+
                 echo '<a href="' . $entryLink . '" title="' . htmlspecialchars($entry['title']) . '">' . $entry['title'] . '</a><br />'
                      . '<div class="serendipitySideBarDate">'
                      . htmlspecialchars(serendipity_strftime($dateformat, $entry['timestamp']))
index efd028fc58a84cedb5b60954044d2bc7bea9f945..4c4ec1653acae724b1ef74f3b497d3536348b894 100644 (file)
@@ -1,5 +1,10 @@
 <?php # $Id$
 
+if (IN_serendipity !== true) {
+    die ("Don't hack!");
+}
+
+
 // Contributed by Udo Gerhards <udo@babyblaue-seiten.de>
 // OPML Contributed by Richard Thomas Harrison <rich@mibnet.plus.com>
 
@@ -255,7 +260,7 @@ class serendipity_plugin_remoterss extends serendipity_plugin {
         $propbag->add('description',   PLUGIN_REMOTERSS_BLAHBLAH);
         $propbag->add('stackable',     true);
         $propbag->add('author',        'Udo Gerhards, Richard Thomas Harrison');
-        $propbag->add('version',       '1.5');
+        $propbag->add('version',       '1.6');
         $propbag->add('requirements',  array(
             'serendipity' => '0.8',
             'smarty'      => '2.6.7',
@@ -377,7 +382,7 @@ class serendipity_plugin_remoterss extends serendipity_plugin {
         return true;
         require_once S9Y_PEAR_PATH . 'HTTP/Request.php';
         $req = &new HTTP_Request($uri);
-        
+
         if (PEAR::isError($req->sendRequest()) || !preg_match('@^[23]..@', $req->getResponseCode())) {
             return false;
         } else {
@@ -387,11 +392,11 @@ class serendipity_plugin_remoterss extends serendipity_plugin {
 
     function debug($msg) {
         static $debug = false;
-        
+
         if ($debug === false) {
             return false;
         }
-        
+
         $fp = fopen('rss.log', 'a');
         fwrite($fp, '[' . date('Y-m-d H:i') . '] ' . $msg . "\n");
         fclose($fp);
@@ -589,9 +594,9 @@ class serendipity_plugin_remoterss extends serendipity_plugin {
                 } else {
                     return $string;
                 }
-                
+
                 return $out;
-            
+
             case 'UTF-8':
             default:
                 $out = utf8_decode($string);
index de40ce3e7273f578d8822e6656f04f57efb50cca..5c28a4d9c797d6d0071d07b1347dc40d49e55b65 100644 (file)
@@ -2,6 +2,11 @@
 
 /* Contributed by Matthias Lange (http://blog.dinnri.de/ml/) */
 
+
+if (IN_serendipity !== true) {
+    die ("Don't hack!");
+}
+
 // Probe for a language include with constants. Still include defines later on, if some constants were missing
 $probelang = dirname(__FILE__) . '/' . $serendipity['charset'] . 'lang_' . $serendipity['lang'] . '.inc.php';
 if (file_exists($probelang)) {
@@ -22,7 +27,7 @@ class serendipity_plugin_shoutbox extends serendipity_plugin
         $propbag->add('description',   PLUGIN_SHOUTBOX_BLAHBLAH);
         $propbag->add('stackable',     false);
         $propbag->add('author',        'Matthias Lange');
-        $propbag->add('version',       '1.01');
+        $propbag->add('version',       '1.02');
         $propbag->add('requirements',  array(
             'serendipity' => '0.8',
             'smarty'      => '2.6.7',
index 21d043c82012928457ad3cb5dfca8d7d9646b386..a010e2e05d3458f8c985e20fd101d9af8f8e1748 100644 (file)
@@ -1,5 +1,10 @@
 <?php # $Id$
 
+
+if (IN_serendipity !== true) {
+    die ("Don't hack!");
+}
+
 // Probe for a language include with constants. Still include defines later on, if some constants were missing
 $probelang = dirname(__FILE__) . '/' . $serendipity['charset'] . 'lang_' . $serendipity['lang'] . '.inc.php';
 if (file_exists($probelang)) {
@@ -19,7 +24,7 @@ class serendipity_plugin_templatedropdown extends serendipity_plugin {
         $propbag->add('description',   PLUGIN_TEMPLATEDROPDOWN_DESC);
         $propbag->add('stackable',     false);
         $propbag->add('author',        'Evan Nemerson');
-        $propbag->add('version',       '1.0');
+        $propbag->add('version',       '1.1');
         $propbag->add('requirements',  array(
             'serendipity' => '0.8',
             'smarty'      => '2.6.7',