1
0

Make plugins bail out if called directly

This commit is contained in:
Garvin Hicking
2006-12-01 08:58:47 +00:00
parent 1c71f7032d
commit 9b67bdd517
20 changed files with 225 additions and 125 deletions

View 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,