<?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)) {
$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',
<?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)) {
'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,
<?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)) {
$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',
<?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)) {
$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',
<?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)) {
$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',
<?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)) {
$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',
<?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)) {
$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',
<?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';
$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',
<?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)) {
$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',
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);
}
$to[] = $mailto;
}
}
-
+
$this->performConfig($to);
if (is_array($this->data['cat'])) {
$selected = array();
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) {
<?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)) {
$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',
<?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)) {
$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',
/* 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)) {
$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',
<?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)) {
'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,
***********/
+
+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)) {
$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',
<?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 dirname(__FILE__) . '/lang_en.inc.php';
-
+
class serendipity_event_statistics extends serendipity_event
{
var $title = PLUGIN_EVENT_STATISTICS_NAME;
$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',
$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');
$propbag->add('default', 'no');
break;
-
+
case 'banned_bots':
$propbag->add('type', 'string');
$propbag->add('name', PLUGIN_EVENT_STATISTICS_BANNED_HOSTS);
if (isset($hooks[$event])) {
switch($event) {
-
+
case 'frontend_configure':
if ($this->get_config('ext_vis_stat') == 'no') {
return;
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);
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':
?>
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);
<hr />
<?php serendipity_plugin_api::hook_event('event_additional_statistics', $eventData, array('maxitems' => $max_items)); ?>
</div>
-
+
<?php
if ($ext_vis_stat == 'yesBot') {
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())) . "'");
'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){
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);
$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;} ";
<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>
</table><br />
</dd>
</dl>
-
+
<dl>
<dt><strong>
- <?php
+ <?php
echo PLUGIN_EVENT_STATISTICS_EXT_TOPREFS;
?>
</strong></dt>
<hr />
<?php
} //end of function extendedVisitorStatistics()
-
-
+
+
function createTables() {
global $serendipity;
-
+
//create table xxxx_visitors
$q = "CREATE TABLE {$serendipity['dbPrefix']}visitors (
counter_id {AUTOINCREMENT} {PRIMARY},
count int(11) not null default '0'
)";
serendipity_db_schema_import($q);
-
+
$this->updateTables();
} //end of function createTables()
}
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 : */
<?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)) {
$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',
$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');
<?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)) {
$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',
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)) {
$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',
<?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)) {
$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',
<?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)) {
$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',
$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,
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)) {
$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',
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']])) {
<?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)) {
$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',
case 'utf-8':
$p = xml_parser_create(LANG_CHARSET);
break;
-
+
default:
$p = xml_parser_create('');
}
<?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)) {
$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',
<?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)) {
$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',
<?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)) {
$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',
<?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)) {
$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',
<?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)) {
$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',
// 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)) {
$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',
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));
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']))
<?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>
$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',
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 {
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);
} else {
return $string;
}
-
+
return $out;
-
+
case 'UTF-8':
default:
$out = utf8_decode($string);
/* 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)) {
$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',
<?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)) {
$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',