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
plugins
serendipity_event_bbcode
serendipity_event_browsercompatibility
serendipity_event_contentrewrite
serendipity_event_creativecommons
serendipity_event_emoticate
serendipity_event_entryproperties
serendipity_event_karma
serendipity_event_livesearch
serendipity_event_mailer
serendipity_event_nl2br
serendipity_event_s9ymarkup
serendipity_event_searchhighlight
serendipity_event_spamblock
serendipity_event_spartacus
serendipity_event_statistics
serendipity_event_templatechooser
serendipity_event_textile
serendipity_event_textwiki
serendipity_event_trackexits

@ -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.3');
$propbag->add('version', '1.4');
$propbag->add('requirements', array(
'serendipity' => '0.8',
'smarty' => '2.6.7',