Compatibility fixes

This commit is contained in:
Grischa Brockhaus 2012-06-13 14:47:45 +02:00
parent e0be3b1c09
commit fc19cfc5d0
92 changed files with 209 additions and 206 deletions

View file

@ -15,7 +15,7 @@ class serendipity_event_mailcc extends serendipity_event
$propbag->add('description', '(Notice: Make sure that the all of your authors have the option to receiv comment notification emails activated, or else no mails will be created that can be CCed');
$propbag->add('stackable', false);
$propbag->add('author', 'Garvin Hicking');
$propbag->add('version', '1.0');
$propbag->add('version', '1.01');
$propbag->add('requirements', array('serendipity' => '0.8','smarty' => '2.6.7','php' => '4.1.0'
));
$propbag->add('groups', array('BACKEND_FEATURES'));
@ -39,7 +39,7 @@ class serendipity_event_mailcc extends serendipity_event
return true;
}
function event_hook($event, &$bag, &$eventData) {
function event_hook($event, &$bag, &$eventData, $addData = null) {
global $serendipity;
$hooks = &$bag->get('event_hooks');

View file

@ -24,7 +24,7 @@ class serendipity_event_smfmarkup extends serendipity_event
$propbag->add('description', 'SMF Markup');
$propbag->add('stackable', false);
$propbag->add('author', 'Garvin Hicking');
$propbag->add('version', '1.00');
$propbag->add('version', '1.01');
$propbag->add('requirements', array(
'serendipity' => '0.8',
'smarty' => '2.6.7',
@ -81,7 +81,7 @@ class serendipity_event_smfmarkup extends serendipity_event
serendipity_plugin_api::hook_event('backend_cache_entries', $this->title);
}
function uninstall() {
function uninstall(&$propbag) {
serendipity_plugin_api::hook_event('backend_cache_purge', $this->title);
serendipity_plugin_api::hook_event('backend_cache_entries', $this->title);
}
@ -116,7 +116,7 @@ class serendipity_event_smfmarkup extends serendipity_event
return $input;
}
function event_hook($event, &$bag, &$eventData) {
function event_hook($event, &$bag, &$eventData, $addData = null) {
global $serendipity;
$hooks = &$bag->get('event_hooks');

View file

@ -24,7 +24,7 @@ class serendipity_event_stalkerbuster extends serendipity_event {
$propbag->add('description', PLUGIN_STALKERBUSTER_DESC);
$propbag->add('stackable', true);
$propbag->add('author', 'Garvin Hicking');
$propbag->add('version', '1.0');
$propbag->add('version', '1.01');
$propbag->add('requirements', array(
'serendipity' => '0.8',
'smarty' => '2.6.7',
@ -61,7 +61,7 @@ class serendipity_event_stalkerbuster extends serendipity_event {
}
}
function event_hook($event, &$bag, &$eventData) {
function event_hook($event, &$bag, &$eventData, $addData = null) {
global $serendipity;
$hooks = &$bag->get('event_hooks');

View file

@ -72,7 +72,7 @@ class serendipity_event_aggregator extends serendipity_event {
'php' => '4.1.0'
));
$propbag->add('version', '0.29');
$propbag->add('version', '0.30');
$propbag->add('author', 'Evan Nemerson, Garvin Hicking, Kristian Koehntopp, Thomas Schulz, Claus Schmidt');
$propbag->add('stackable', false);
$propbag->add('event_hooks', array(
@ -1663,7 +1663,7 @@ class serendipity_event_aggregator extends serendipity_event {
return $content;
}
function event_hook($event, &$bag, &$eventData) {
function event_hook($event, &$bag, &$eventData, $addData = null) {
global $serendipity;
$hooks = &$bag->get('event_hooks');

View file

@ -28,7 +28,7 @@ class serendipity_event_amazonchooser extends serendipity_event
$propbag->add('description', PLUGIN_EVENT_AMAZONCHOOSER_DESC);
$propbag->add('stackable', false);
$propbag->add('author', 'Matthew Groeninger');
$propbag->add('version', '0.71');
$propbag->add('version', '0.72');
$propbag->add('requirements', array(
'serendipity' => '1.4',
'smarty' => '2.6.7',
@ -104,7 +104,7 @@ class serendipity_event_amazonchooser extends serendipity_event
}
function event_hook($event, &$bag, &$eventData) {
function event_hook($event, &$bag, &$eventData, $addData = null) {
global $serendipity;
$hooks = &$bag->get('event_hooks');

View file

@ -31,7 +31,7 @@ class serendipity_event_autotitle extends serendipity_event
$propbag->add('description', PLUGIN_EVENT_AUTOTITLE_DESC);
$propbag->add('stackable', false);
$propbag->add('author', 'Malte Paskuda');
$propbag->add('version', '0.1.9');
$propbag->add('version', '0.1.10');
$propbag->add('requirements', array(
'php' => '4.1.0'
));
@ -69,7 +69,7 @@ class serendipity_event_autotitle extends serendipity_event
serendipity_plugin_api::hook_event('backend_cache_entries', $this->title);
}
function uninstall() {
function uninstall(&$propbag) {
serendipity_plugin_api::hook_event('backend_cache_purge', $this->title);
serendipity_plugin_api::hook_event('backend_cache_entries', $this->title);
}
@ -97,7 +97,7 @@ class serendipity_event_autotitle extends serendipity_event
return true;
}
function event_hook($event, &$bag, &$eventData) {
function event_hook($event, &$bag, &$eventData, $addData = null) {
global $serendipity;
$hooks = &$bag->get('event_hooks');

View file

@ -23,7 +23,7 @@ class serendipity_event_autoupdate extends serendipity_event {
$propbag->add('description', PLUGIN_EVENT_AUTOUPDATE_DESC);
$propbag->add('stackable', false);
$propbag->add('author', 'onli');
$propbag->add('version', '0.2');
$propbag->add('version', '0.3');
$propbag->add('requirements', array(
'serendipity' => '0.8'
));
@ -43,7 +43,7 @@ class serendipity_event_autoupdate extends serendipity_event {
}*/
function event_hook($event, &$bag, &$eventData, $addData) {
function event_hook($event, &$bag, &$eventData, $addData = null) {
global $serendipity;
$hooks = &$bag->get('event_hooks');

View file

@ -34,7 +34,7 @@ class serendipity_event_backend extends serendipity_event {
'php' => '4.1.0'
));
$propbag->add('version', '0.5');
$propbag->add('version', '0.6');
$propbag->add('author', 'Alexander \'dma147\' Mieland, http://blog.linux-stats.org, dma147@linux-stats.org');
$propbag->add('stackable', false);
$propbag->add('event_hooks', array(
@ -68,7 +68,7 @@ class serendipity_event_backend extends serendipity_event {
$title = PLUGIN_BACKEND_TITLE;
}
function event_hook($event, &$bag, &$eventData) {
function event_hook($event, &$bag, &$eventData, $addData = null) {
global $serendipity;
$hooks = &$bag->get('event_hooks');

View file

@ -27,7 +27,7 @@ class serendipity_event_backendrss extends serendipity_event
$propbag->add('description', PLUGIN_EVENT_BACKENDRSS_DESC);
$propbag->add('stackable', true);
$propbag->add('author', 'Sebastian Nohn');
$propbag->add('version', '1.3');
$propbag->add('version', '1.4');
$propbag->add('requirements', array(
'serendipity' => '0.8',
'php' => '4.1.0'
@ -121,7 +121,7 @@ class serendipity_event_backendrss extends serendipity_event
$title = $this->title;
}
function event_hook($event, &$bag, &$eventData) {
function event_hook($event, &$bag, &$eventData, $addData = null) {
global $serendipity;
$hooks = &$bag->get('event_hooks');

View file

@ -38,7 +38,7 @@ class serendipity_event_backup extends serendipity_event {
'php' => '4.1.0'
));
$propbag->add('version', '0.11');
$propbag->add('version', '0.12');
$propbag->add('author', 'Alexander \'dma147\' Mieland, http://blog.linux-stats.org, dma147@linux-stats.org');
$propbag->add('stackable', false);
$propbag->add('event_hooks', array(
@ -170,8 +170,8 @@ class serendipity_event_backup extends serendipity_event {
function uninstall() {
global $serendipity;
function uninstall(&$propbag) {
global $serendipity;
serendipity_db_query("DROP TABLE {$serendipity['dbPrefix']}dma_sqlbackup");
serendipity_db_query("DROP TABLE {$serendipity['dbPrefix']}dma_htmlbackup");
@ -1394,7 +1394,7 @@ class serendipity_event_backup extends serendipity_event {
$this->setupDB();
}
function event_hook($event, &$bag, &$eventData) {
function event_hook($event, &$bag, &$eventData, $addData = null) {
global $serendipity;
$hooks = &$bag->get('event_hooks');

View file

@ -46,7 +46,7 @@ class serendipity_event_blogpdf extends serendipity_event
$propbag->add('stackable', false);
$propbag->add('author', 'Garvin Hicking, Olivier PLATHEY, Steven Wittens');
$propbag->add('license', 'GPL (Uses LGPL FPDF, HTML2PDF, UFPDF');
$propbag->add('version', '1.81');
$propbag->add('version', '1.82');
$propbag->add('requirements', array(
'serendipity' => '0.8',
'smarty' => '2.6.7',
@ -93,7 +93,7 @@ class serendipity_event_blogpdf extends serendipity_event
$title = $this->title;
}
function event_hook($event, &$bag, &$eventData) {
function event_hook($event, &$bag, &$eventData, $addData = null) {
global $serendipity;
$hooks = &$bag->get('event_hooks');

View file

@ -75,7 +75,7 @@ class serendipity_event_cachesimple extends serendipity_event
$propbag->add('description', PLUGIN_EVENT_CACHESIMPLE_DESC);
$propbag->add('stackable', false);
$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',
@ -203,7 +203,7 @@ class serendipity_event_cachesimple extends serendipity_event
return true;
}
function event_hook($event, &$bag, &$eventData) {
function event_hook($event, &$bag, &$eventData, $addData = null) {
global $serendipity;
$hooks = array();
@ -418,7 +418,7 @@ document.getElementById('serendipity_commentform_url').value = getCommentCooki
$this->cache->clean($this->cache_group);
}
function uninstall() {
function uninstall(&$propbag) {
global $serendipity;
@include_once 'Cache/Lite.php';

View file

@ -76,7 +76,7 @@ class serendipity_event_cal extends serendipity_event {
)
);
$propbag->add('author', 'Ian (Timbalu)');
$propbag->add('version', '1.66');
$propbag->add('version', '1.67');
$propbag->add('groups', array('FRONTEND_FEATURES', 'BACKEND_FEATURES'));
$propbag->add('requirements', array(
'serendipity' => '1.4',
@ -2375,7 +2375,7 @@ class serendipity_event_cal extends serendipity_event {
}
}
function uninstall() {
function uninstall(&$propbag) {
global $serendipity;
if(isset($serendipity['eventcaldroptable']) === true) {

View file

@ -30,7 +30,7 @@ class serendipity_event_commentedit extends serendipity_event
'serendipity' => '1.5',
'php' => '5.2.0'
));
$propbag->add('version', '0.2.2');
$propbag->add('version', '0.2.3');
$propbag->add('event_hooks', array(
'frontend_saveComment_finish' => true,
'fetchcomments' => true,
@ -82,7 +82,7 @@ class serendipity_event_commentedit extends serendipity_event
}
}
function event_hook($event, &$bag, &$eventData, $addData) {
function event_hook($event, &$bag, &$eventData, $addData = null) {
global $serendipity;
$hooks = &$bag->get('event_hooks');

View file

@ -33,7 +33,7 @@ class serendipity_event_cpgselector extends serendipity_event
$propbag->add('stackable', false);
$propbag->add('author', 'Matthew Maude (modified by Jim Davies)');
$propbag->add('version', '2.06');
$propbag->add('version', '2.07');
$propbag->add('requirements', array('serendipity' => '0.8'));
$propbag->add('configuration', array('server', 'database', 'prefix', 'user', 'password', 'path', 'button', 'usenormal', 'maxwidth', 'maxheight'));
@ -134,7 +134,7 @@ class serendipity_event_cpgselector extends serendipity_event
}
function event_hook($event, &$bag, &$eventData) {
function event_hook($event, &$bag, &$eventData, $addData = null) {
global $serendipity;
global $CPG;

View file

@ -22,7 +22,7 @@ class serendipity_event_cronjob extends serendipity_event {
$propbag->add('description', PLUGIN_EVENT_CRONJOB_DESC);
$propbag->add('stackable', false);
$propbag->add('author', 'Garvin Hicking');
$propbag->add('version', '0.6');
$propbag->add('version', '0.7');
$propbag->add('requirements', array(
'serendipity' => '0.8',
'php' => '4.1.0'
@ -122,7 +122,7 @@ class serendipity_event_cronjob extends serendipity_event {
$r = serendipity_db_query("INSERT INTO {$serendipity['dbPrefix']}cronjoblog (timestamp, type, reason) VALUES ($now, '$type', '" . serendipity_db_escape_string($msg) . "')");
}
function event_hook($event, &$bag, &$eventData) {
function event_hook($event, &$bag, &$eventData, $addData = null) {
global $serendipity;
$hooks = &$bag->get('event_hooks');

View file

@ -24,7 +24,7 @@ class serendipity_event_dbclean extends serendipity_event {
$propbag->add('description', PLUGIN_EVENT_DBCLEAN_DESC);
$propbag->add('stackable', false);
$propbag->add('author', 'Malte Paskuda');
$propbag->add('version', '0.2.3');
$propbag->add('version', '0.2.4');
$propbag->add('requirements', array(
'serendipity' => '0.8'
));
@ -47,7 +47,7 @@ class serendipity_event_dbclean extends serendipity_event {
}*/
function event_hook($event, &$bag, &$eventData) {
function event_hook($event, &$bag, &$eventData, $addData = null) {
global $serendipity;
$hooks = &$bag->get('event_hooks');

View file

@ -48,7 +48,7 @@ class serendipity_event_downloadmanager extends serendipity_event {
'php' => '5.0.0'
));
$propbag->add('version', '0.27');
$propbag->add('version', '0.28');
$propbag->add('author', 'Alexander \'dma147\' Mieland, Grischa Brockhaus, Ian (Timbalu)');
$propbag->add('stackable', false);
$propbag->add('event_hooks', array(
@ -414,7 +414,7 @@ class serendipity_event_downloadmanager extends serendipity_event {
}
function uninstall() {
function uninstall(&$propbag) {
global $serendipity;
serendipity_db_query("DROP TABLE {$serendipity['dbPrefix']}dma_downloadmanager_files");
@ -1708,7 +1708,7 @@ class serendipity_event_downloadmanager extends serendipity_event {
$this->setupDB();
}
function event_hook($event, &$bag, &$eventData) {
function event_hook($event, &$bag, &$eventData, $addData = null) {
global $serendipity;
$hooks = &$bag->get('event_hooks');

View file

@ -19,7 +19,7 @@ class serendipity_event_dpsyntaxhighlighter extends serendipity_event {
var $title = PLUGIN_EVENT_DPSYNTAXHIGHLIGHTER_NAME;
var $version = '2.1.364'; // helps to be easily able to upgrade on upstream upgrade
var $version = '2.1.365'; // helps to be easily able to upgrade on upstream upgrade
/* _get_directory_match support function:
* read files from $dir that match regexp $tomatch and store matches in
@ -91,7 +91,7 @@ class serendipity_event_dpsyntaxhighlighter extends serendipity_event {
return true;
}
function event_hook($event, &$bag, &$eventData) {
function event_hook($event, &$bag, &$eventData, $addData = null) {
global $serendipity;
static $regex = null;
static $sub = null;

View file

@ -25,7 +25,7 @@ class serendipity_event_email_bot_obfuscator extends serendipity_event
$propbag->add('description', PLUGIN_EVENT_EMAIL_BOT_OBFUSCATOR_DESC);
$propbag->add('stackable', false);
$propbag->add('author', 'Stephan Manske');
$propbag->add('version', '1.0');
$propbag->add('version', '1.01');
$propbag->add('requirements', array(
'serendipity' => '0.8',
'smarty' => '2.6.7',
@ -79,7 +79,7 @@ class serendipity_event_email_bot_obfuscator extends serendipity_event
serendipity_plugin_api::hook_event('backend_cache_entries', $this->title);
}
function uninstall() {
function uninstall(&$propbag) {
serendipity_plugin_api::hook_event('backend_cache_purge', $this->title);
serendipity_plugin_api::hook_event('backend_cache_entries', $this->title);
}
@ -197,7 +197,7 @@ function anti_email_spam ($text)
}
function event_hook($event, &$bag, &$eventData) {
function event_hook($event, &$bag, &$eventData, $addData = null) {
global $serendipity;
$hooks = &$bag->get('event_hooks');

View file

@ -30,7 +30,7 @@ class serendipity_event_emoticonchooser extends serendipity_event
'smarty' => '2.6.7',
'php' => '4.1.0'
));
$propbag->add('version', '1.7');
$propbag->add('version', '1.8');
$propbag->add('event_hooks', array(
'backend_entry_toolbar_extended' => true,
'backend_entry_toolbar_body' => true,
@ -75,7 +75,7 @@ class serendipity_event_emoticonchooser extends serendipity_event
}
function event_hook($event, &$bag, &$eventData) {
function event_hook($event, &$bag, &$eventData, $addData = null) {
global $serendipity;
if (!class_exists('serendipity_event_emoticate')) {

View file

@ -25,7 +25,7 @@ class serendipity_event_entrycheck extends serendipity_event
$propbag->add('description', PLUGIN_EVENT_ENTRYCHECK_DESC);
$propbag->add('stackable', false);
$propbag->add('author', 'Garvin Hicking, Gregor Voeltz');
$propbag->add('version', '1.15');
$propbag->add('version', '1.16');
$propbag->add('requirements', array(
'serendipity' => '0.8',
'smarty' => '2.6.7',
@ -137,7 +137,7 @@ class serendipity_event_entrycheck extends serendipity_event
}
}
function event_hook($event, &$bag, &$eventData, &$addData) {
function event_hook($event, &$bag, &$eventData, $addData = null) {
global $serendipity;
static $state, $locked;

View file

@ -24,7 +24,7 @@ class serendipity_event_externalauth extends serendipity_event
$propbag->add('description', PLUGIN_EVENT_EXTERNALAUTH_DESC);
$propbag->add('stackable', false);
$propbag->add('author', 'Garvin Hicking/Justin Alcorn');
$propbag->add('version', '1.22');
$propbag->add('version', '1.23');
$propbag->add('requirements', array(
'serendipity' => '0.8',
'smarty' => '2.6.7',
@ -249,7 +249,7 @@ class serendipity_event_externalauth extends serendipity_event
return true;
}
function event_hook($event, &$bag, &$eventData, &$addData) {
function event_hook($event, &$bag, &$eventData, $addData = null) {
global $serendipity;
$hooks = &$bag->get('event_hooks');

View file

@ -33,7 +33,7 @@ class serendipity_event_facebook extends serendipity_event {
'smarty' => '2.6.7',
'php' => '4.1.0'
));
$propbag->add('version', '0.3');
$propbag->add('version', '0.4');
$propbag->add('groups', array('FRONTEND_VIEWS'));
$propbag->add('event_hooks', array(
'frontend_display' => true,
@ -331,7 +331,7 @@ class serendipity_event_facebook extends serendipity_event {
}
}
function event_hook($event, &$bag, &$eventData, &$addData) {
function event_hook($event, &$bag, &$eventData, $addData = null) {
global $serendipity;
$hooks = &$bag->get('event_hooks');

View file

@ -31,7 +31,7 @@ class serendipity_event_fckeditor extends serendipity_event
$propbag->add('description', PLUGIN_EVENT_FCKEDITOR_DESC);
$propbag->add('stackable', false);
$propbag->add('author', 'Ziyad Saeed, Garvin Hicking');
$propbag->add('version', '0.6');
$propbag->add('version', '0.7');
$propbag->add('requirements', array(
'serendipity' => '0.9',
'smarty' => '2.6.7',
@ -66,7 +66,7 @@ class serendipity_event_fckeditor extends serendipity_event
$title = $this->title;
}
function event_hook($event, &$bag, &$eventData) {
function event_hook($event, &$bag, &$eventData, $addData = null) {
global $serendipity;
$hooks = &$bag->get('event_hooks');

View file

@ -26,7 +26,7 @@ class serendipity_event_filter_entries extends serendipity_event
$propbag->add('description', PLUGIN_EVENT_FILTER_ENTRIES_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',
@ -45,7 +45,7 @@ class serendipity_event_filter_entries extends serendipity_event
$title = $this->title;
}
function event_hook($event, &$bag, &$eventData) {
function event_hook($event, &$bag, &$eventData, $addData = null) {
global $serendipity;
$hooks = &$bag->get('event_hooks');

View file

@ -54,7 +54,7 @@ class serendipity_event_flattr extends serendipity_event {
'flattr_pop',
));
$propbag->add('author', 'Garvin Hicking, Joachim Breitner', 'Matthias Gutjahr');
$propbag->add('version', '1.9');
$propbag->add('version', '1.10');
$propbag->add('requirements', array(
'serendipity' => '0.7',
'smarty' => '2.6.7',
@ -223,7 +223,7 @@ class serendipity_event_flattr extends serendipity_event {
* @param mixed $addData
* @return bool
*/
function event_hook($event, &$bag, &$eventData, &$addData) {
function event_hook($event, &$bag, &$eventData, $addData = null) {
global $serendipity;
switch ($event) {

View file

@ -31,7 +31,7 @@ class serendipity_event_flickr extends serendipity_event
$propbag->add('stackable', false);
$propbag->add('license', 'GPL');
$propbag->add('author', 'Jay Bertrand');
$propbag->add('version', '0.3');
$propbag->add('version', '0.4');
$propbag->add('requirements', array(
'serendipity' => '0.9',
'smarty' => '2.6.7',
@ -73,7 +73,7 @@ class serendipity_event_flickr extends serendipity_event
}
// do the hook job
function event_hook($event, &$bag, &$eventData) {
function event_hook($event, &$bag, &$eventData, $addData = null) {
global $serendipity;
$hooks = &$bag->get('event_hooks');

View file

@ -23,7 +23,7 @@ class serendipity_event_forgotpassword extends serendipity_event
$propbag->add('description', PLUGIN_EVENT_FORGOTPASSWORD_DESC);
$propbag->add('stackable', false);
$propbag->add('author', 'Omid Mottaghi');
$propbag->add('version', '0.11');
$propbag->add('version', '0.12');
$propbag->add('requirements', array(
'serendipity' => '0.9.1',
'smarty' => '2.6.7',
@ -65,7 +65,7 @@ class serendipity_event_forgotpassword extends serendipity_event
return true;
}
function event_hook($event, &$bag, &$eventData) {
function event_hook($event, &$bag, &$eventData, $addData = null) {
global $serendipity;
$hooks = &$bag->get('event_hooks');
@ -262,8 +262,8 @@ class serendipity_event_forgotpassword extends serendipity_event
serendipity_db_schema_import($q);
}
function uninstall(){
global $serendipity;
function uninstall(&$propbag) {
global $serendipity;
// Drop tables
$q = "DROP TABLE ".$serendipity['dbPrefix']."forgotpassword";

View file

@ -53,7 +53,7 @@ class serendipity_event_forum extends serendipity_event {
'php' => '4.1.0'
));
$propbag->add('version', '0.34');
$propbag->add('version', '0.35');
$propbag->add('author', 'Alexander \'dma147\' Mieland, http://blog.linux-stats.org, dma147@linux-stats.org');
$propbag->add('stackable', false);
$propbag->add('event_hooks', array(
@ -733,7 +733,7 @@ class serendipity_event_forum extends serendipity_event {
function uninstall() {
function uninstall(&$propbag) {
global $serendipity;
serendipity_db_query("DROP TABLE {$serendipity['dbPrefix']}dma_forum_boards");
@ -2315,7 +2315,7 @@ class serendipity_event_forum extends serendipity_event {
}
}
function event_hook($event, &$bag, &$eventData, $addData) {
function event_hook($event, &$bag, &$eventData, $addData = null) {
global $serendipity;
static $phpbb_mirror = null;

View file

@ -70,7 +70,7 @@ class serendipity_event_freetag extends serendipity_event
'smarty' => '2.6.7',
'php' => '4.1.0'
));
$propbag->add('version', '3.39');
$propbag->add('version', '3.40');
$propbag->add('event_hooks', array(
'frontend_fetchentries' => true,
'frontend_fetchentry' => true,
@ -384,7 +384,7 @@ class serendipity_event_freetag extends serendipity_event
}
}
function makeURLTag($tag) {
static function makeURLTag($tag) {
return str_replace('.', '%FF', urlencode($tag));
}
@ -513,7 +513,7 @@ class serendipity_event_freetag extends serendipity_event
/* This method can be called statically.
Tags should be an array with the key being the tag name, and val being
the number of occurances. */
function displayTags($tags, $xml, $nl, $scaling, $maxSize = 200, $minSize = 100, $useFlash = false, $flashbgtrans = true, $flashtagcolor = 'ff6600', $flashbgcolor = 'ffffff', $flashwidth = 190, $flashspeed = 100)
static function displayTags($tags, $xml, $nl, $scaling, $maxSize = 200, $minSize = 100, $useFlash = false, $flashbgtrans = true, $flashtagcolor = 'ff6600', $flashbgcolor = 'ffffff', $flashwidth = 190, $flashspeed = 100, $cfg_taglink, $cfg_template, $xml_image = 'img/xml.gif')
{
global $serendipity;
@ -523,12 +523,12 @@ class serendipity_event_freetag extends serendipity_event
static $taglink = null;
if ($taglink == null) {
$taglink = $this->get_config('taglink');
$taglink = $cfg_taglink;
}
$template = $this->get_config('template');
$template = $cfg_template;
if (!$template) {
serendipity_event_freetag::renderTags($tags, $xml, $nl, $scaling, $maxSize, $minSize, $useFlash, $flashbgtrans, $flashtagcolor, $flashbgcolor, $flashwidth, $flashspeed, $taglink);
serendipity_event_freetag::renderTags($tags, $xml, $nl, $scaling, $maxSize, $minSize, $useFlash, $flashbgtrans, $flashtagcolor, $flashbgcolor, $flashwidth, $flashspeed, $taglink, $xml_image);
} else {
arsort($tags);
$tagsWithLinks = array();
@ -546,12 +546,12 @@ class serendipity_event_freetag extends serendipity_event
}
function renderTags($tags, $xml, $nl, $scaling, $maxSize, $minSize, $useFlash, $flashbgtrans, $flashtagcolor, $flashbgcolor, $flashwidth, $flashspeed, $taglink)
static function renderTags($tags, $xml, $nl, $scaling, $maxSize, $minSize, $useFlash, $flashbgtrans, $flashtagcolor, $flashbgcolor, $flashwidth, $flashspeed, $taglink, $xml_image = 'img/xml.gif')
{
global $serendipity;
$rsslink = $serendipity['serendipityHTTPPath'] . 'rss.php?serendipity%5Btag%5D=';
$xmlImg = serendipity_getTemplateFile($this->get_config('xml_image','img/xml.gif'));
$xmlImg = serendipity_getTemplateFile($xml_image);
$first = true;
$biggest = max($tags);
@ -1188,7 +1188,7 @@ class serendipity_event_freetag extends serendipity_event
$eventData = $this->addTags($entry, $tags, $eventData);
if ($show_related) {
$relatedEntries =& $this->getRelatedEntries($tags, $eventData[$entry]['id']);
$relatedEntries = $this->getRelatedEntries($tags, $eventData[$entry]['id']);
$eventData = $this->addRelatedEntries($entry, $manyEntries, $relatedEntries, $eventData);
}
}
@ -1327,7 +1327,8 @@ class serendipity_event_freetag extends serendipity_event
serendipity_db_bool($this->get_config('use_flash')),
serendipity_db_bool($this->get_config('flash_bg_trans', true)),
$this->get_config('flash_tag_color', 'ff6600'), $this->get_config('flash_bg_color', 'ffffff'),
$this->get_config('flash_width', 600), $this->get_config('flash_speed', 100));
$this->get_config('flash_width', 600), $this->get_config('flash_speed', 100),
$this->get_config('taglink'), $this->get_config('template'), $this->get_config('xml_image','img/xml.gif'));
$tagout = ob_get_contents();
ob_end_clean();
$serendipity['smarty']->assign('freetag_displayTags', $tagout);

View file

@ -32,7 +32,7 @@ class serendipity_plugin_freetag extends serendipity_plugin
'smarty' => '2.6.7',
'php' => '4.1.0'
));
$propbag->add('version', '3.01');
$propbag->add('version', '3.02');
$propbag->add('groups', array('FRONTEND_ENTRY_RELATED'));
$propbag->add('configuration', array('title', 'show_xml','xml_image', 'show_newline', 'taglink', 'scale_tag', 'max_tags', 'min_percent', 'max_percent', 'use_flash', 'flash_tag_color', 'flash_bg_trans', 'flash_bg_color', 'flash_width', 'flash_speed', 'treshold_tag_count', 'order_by', 'template'));
$this->dependencies = array('serendipity_event_freetag' => 'keep');
@ -222,7 +222,8 @@ class serendipity_plugin_freetag extends serendipity_plugin
serendipity_db_bool($this->get_config('use_flash')),
serendipity_db_bool($this->get_config('flash_bg_trans', true)),
$this->get_config('flash_tag_color', 'ff6600'), $this->get_config('flash_bg_color', 'ffffff'),
$this->get_config('flash_width', 190), $this->get_config('flash_speed', 100));
$this->get_config('flash_width', 190), $this->get_config('flash_speed', 100),
$this->get_config('taglink'), $this->get_config('template'), $this->get_config('xml_image','img/xml.gif'));
}
function cleanup() {

View file

@ -66,7 +66,7 @@ class serendipity_event_galleryimage extends serendipity_event
$propbag->add('description', PLUGIN_EVENT_GALLERYIMAGE_DESC);
$propbag->add('stackable', false);
$propbag->add('author', 'Rob Antonishen, Alexander Mieland');
$propbag->add('version', '1.10');
$propbag->add('version', '1.11');
$propbag->add('requirements', array(
'serendipity' => '0.8',
'smarty' => '2.6.7',
@ -185,7 +185,7 @@ class serendipity_event_galleryimage extends serendipity_event
serendipity_plugin_api::hook_event('backend_cache_entries', $this->title);
}
function uninstall() {
function uninstall(&$propbag) {
serendipity_plugin_api::hook_event('backend_cache_purge', $this->title);
serendipity_plugin_api::hook_event('backend_cache_entries', $this->title);
}
@ -288,7 +288,7 @@ class serendipity_event_galleryimage extends serendipity_event
}
}
function event_hook($event, &$bag, &$eventData) {
function event_hook($event, &$bag, &$eventData, $addData = null) {
global $serendipity;
$hooks = &$bag->get('event_hooks');

View file

@ -1,5 +1,5 @@
<?php
// Actual version of both plugins
@define('PLUGIN_EVENT_GEOTAG_VERSION', '1.29');
@define('PLUGIN_EVENT_GEOTAG_VERSION', '1.30');
@define('PLUGIN_EVENT_GEOTAG_AUTHOR', 'Zoran Kovacevic, Grischa Brockhaus, Matthias Gutjahr');

View file

@ -297,7 +297,7 @@ class serendipity_event_geotag extends serendipity_event
$title = $this->title;
}
function event_hook($event, &$bag, &$eventData, &$addData = null) {
function event_hook($event, &$bag, &$eventData, $addData = null) {
global $serendipity;
$hooks = &$bag->get('event_hooks');

View file

@ -32,7 +32,7 @@ class serendipity_event_geourl extends serendipity_event {
$propbag->add('event_hooks', array('frontend_header' => true));
$propbag->add('configuration', array('lat', 'long'));
$propbag->add('description', PLUGIN_EVENT_GEOURL_DESC);
$propbag->add('version', '1.3');
$propbag->add('version', '1.4');
$propbag->add('groups', array('BACKEND_METAINFORMATION'));
}
@ -60,7 +60,7 @@ class serendipity_event_geourl extends serendipity_event {
}
function event_hook($event, &$bag, &$eventData) {
function event_hook($event, &$bag, &$eventData, $addData = null) {
global $serendipity;
$hooks = &$bag->get('event_hooks');

View file

@ -80,7 +80,7 @@ class serendipity_event_geshi extends serendipity_event
'smarty' => '2.6.7',
'php' => '4.1.0'
));
$propbag->add('version', '0.8');
$propbag->add('version', '0.9');
$propbag->add('event_hooks', array('frontend_display' => true, 'frontend_comment' => true));
$propbag->add('groups', array('MARKUP'));
@ -146,7 +146,7 @@ class serendipity_event_geshi extends serendipity_event
return $input;
}
function event_hook($event, &$bag, &$eventData) {
function event_hook($event, &$bag, &$eventData, $addData = null) {
global $serendipity;
$hooks = &$bag->get('event_hooks');

View file

@ -34,7 +34,7 @@ class serendipity_event_glossary extends serendipity_event
$propbag->add('description', PLUGIN_EVENT_GLOSSARY_DESC);
$propbag->add('stackable', false);
$propbag->add('author', 'Rob Antonishen');
$propbag->add('version', '1.6');
$propbag->add('version', '1.7');
$propbag->add('requirements', array(
'serendipity' => '0.8',
'smarty' => '2.6.7',
@ -78,7 +78,7 @@ class serendipity_event_glossary extends serendipity_event
serendipity_plugin_api::hook_event('backend_cache_entries', $this->title);
}
function uninstall() {
function uninstall(&$propbag) {
serendipity_plugin_api::hook_event('backend_cache_purge', $this->title);
serendipity_plugin_api::hook_event('backend_cache_entries', $this->title);
}
@ -136,7 +136,7 @@ class serendipity_event_glossary extends serendipity_event
}
function event_hook($event, &$bag, &$eventData) {
function event_hook($event, &$bag, &$eventData, $addData = null) {
global $serendipity;
$hooks = &$bag->get('event_hooks');

View file

@ -21,7 +21,7 @@ class serendipity_event_google_analytics extends serendipity_event {
$propbag->add ('description', PLUGIN_EVENT_GOOGLE_ANALYTICS_DESC);
$propbag->add ('stackable', false);
$propbag->add ('author', '<a href="http://blog.kleinerChemiker.net/" target="_blank">kleinerChemiker</a>');
$propbag->add ('version', '1.2.9');
$propbag->add ('version', '1.3.0');
$propbag->add ('requirements', array ('serendipity' => '0.8', 'smarty' => '2.6.7', 'php' => '4.1.0' ));
$propbag->add ('groups', array ('STATISTICS' ));
$propbag->add ('cachable_events', array ('frontend_display' => true ));
@ -120,8 +120,8 @@ class serendipity_event_google_analytics extends serendipity_event {
serendipity_plugin_api::hook_event ('backend_cache_entries', $this->title);
}
function uninstall() {
serendipity_plugin_api::hook_event ('backend_cache_purge', $this->title);
function uninstall(&$propbag) {
serendipity_plugin_api::hook_event ('backend_cache_purge', $this->title);
serendipity_plugin_api::hook_event ('backend_cache_entries', $this->title);
}

View file

@ -14,7 +14,7 @@ if (file_exists($probelang)) {
include dirname(__FILE__) . '/lang_en.inc.php';
// Actual version of this plugin
@define('PLUGIN_EVENT_GRAVATAR_VERSION', '1.57');
@define('PLUGIN_EVENT_GRAVATAR_VERSION', '1.58');
// Defines the maximum available method slots in the configuration.
@define('PLUGIN_EVENT_GRAVATAR_METHOD_MAX', 6);
@ -250,7 +250,8 @@ class serendipity_event_gravatar extends serendipity_event
}
}
function event_hook($event, &$bag, &$eventData, &$addData) {
function event_hook($event, &$bag, &$eventData, $addData = null)
{
global $serendipity;
static $cache = null;
static $method = null;

View file

@ -57,7 +57,7 @@ class serendipity_event_guestbook extends serendipity_event {
'dateformat'
));
$propbag->add('author', 'Ian (Timbalu)');
$propbag->add('version', '3.29');
$propbag->add('version', '3.30');
$propbag->add('requirements', array(
'serendipity' => '0.7',
'smarty' => '2.6.7',
@ -137,7 +137,7 @@ class serendipity_event_guestbook extends serendipity_event {
}
/* event hook::guestbook table uninstall */
function uninstall() {
function uninstall(&$propbag) {
global $serendipity;
if(isset($serendipity['guestbookdroptable']) === true) {

View file

@ -26,7 +26,7 @@ class serendipity_plugin_guestbook extends serendipity_plugin {
$propbag->add('description', PLUGIN_GUESTSIDE_BLAHBLAH);
$propbag->add('stackable', false);
$propbag->add('author', 'Jaap Boerma ( j@webbict.com ), Tadashi Jokagi <elf2000@users.sourceforge.net>, Ian (Timbalu)');
$propbag->add('version', '1.19');
$propbag->add('version', '1.20');
$propbag->add('requirements', array(
'serendipity' => '0.7',
'smarty' => '2.6.7',

View file

@ -25,7 +25,7 @@ class serendipity_event_htmlvalidator extends serendipity_event
$propbag->add('description', PLUGIN_EVENT_HTMLVALIDATOR_DESC);
$propbag->add('stackable', false);
$propbag->add('author', 'Garvin Hicking');
$propbag->add('version', '1.3');
$propbag->add('version', '1.4');
$propbag->add('requirements', array(
'serendipity' => '0.8',
'smarty' => '2.6.7',
@ -125,7 +125,7 @@ class serendipity_event_htmlvalidator extends serendipity_event
$title = $this->title;
}
function event_hook($event, &$bag, &$eventData) {
function event_hook($event, &$bag, &$eventData, $addData = null) {
global $serendipity;
$hooks = &$bag->get('event_hooks');

View file

@ -35,7 +35,7 @@ class serendipity_event_imageselectorplus extends serendipity_event
$propbag->add('description', PLUGIN_EVENT_IMAGESELECTORPLUS_DESC);
$propbag->add('stackable', false);
$propbag->add('author', 'Garvin Hicking, Vladimir Ajgl, Adam Charnock');
$propbag->add('version', '0.30');
$propbag->add('version', '0.31');
$propbag->add('requirements', array(
'serendipity' => '0.9',
'smarty' => '2.6.7',
@ -144,7 +144,7 @@ class serendipity_event_imageselectorplus extends serendipity_event
}
// to recash all entries after uninstalling the plugin
function uninstall() {
function uninstall(&$propbag) {
serendipity_plugin_api::hook_event('backend_cache_purge', $this->title);
serendipity_plugin_api::hook_event('backend_cache_entries', $this->title);
}
@ -245,7 +245,7 @@ class serendipity_event_imageselectorplus extends serendipity_event
serendipity_makeThumbnail(basename($target), $dirname, $newsizes, $serendipity['thumbSuffix']);
}
function event_hook($event, &$bag, &$eventData) {
function event_hook($event, &$bag, &$eventData, $addData = null) {
global $serendipity;
$hooks = &$bag->get('event_hooks');

View file

@ -38,7 +38,7 @@ class serendipity_event_includeentry extends serendipity_event
$propbag->add('description', PLUGIN_EVENT_INCLUDEENTRY_DESC);
$propbag->add('stackable', false);
$propbag->add('author', 'Garvin Hicking');
$propbag->add('version', '2.11');
$propbag->add('version', '2.12');
$propbag->add('scrambles_true_content', true);
$propbag->add('requirements', array(
'serendipity' => '0.8',
@ -601,7 +601,7 @@ class serendipity_event_includeentry extends serendipity_event
}
}
function event_hook($event, &$bag, &$eventData) {
function event_hook($event, &$bag, &$eventData, $addData = null) {
global $serendipity;
static $check = null;
static $cache = array();

View file

@ -23,7 +23,7 @@ class serendipity_event_jquery extends serendipity_event {
$propbag->add('description', EVENT_JQUERY_DESC);
$propbag->add('stackable', false);
$propbag->add('author', 'Malte Paskuda');
$propbag->add('version', '1.10');
$propbag->add('version', '1.11');
$propbag->add('event_hooks', array('frontend_header' => true,
'backend_header' => true,
'backend_plugins_new_instance' => true
@ -40,7 +40,7 @@ class serendipity_event_jquery extends serendipity_event {
}
function event_hook($event, &$bag, &$eventData) {
function event_hook($event, &$bag, &$eventData, $addData = null) {
global $serendipity;
$hooks = &$bag->get('event_hooks');

View file

@ -23,8 +23,8 @@ class serendipity_event_kubrickheader extends serendipity_event {
$propbag->add('name', PLUGIN_EVENT_KUBRICKHEADER_NAME);
$propbag->add('description', PLUGIN_EVENT_KUBRICKHEADER_DESC);
$propbag->add('stackable', false);
$propbag->add('author', 'Garvin Hicking extended by Sebastian Mayeres and Jude Anthony');
$propbag->add('version', '1.4');
$propbag->add('author', 'Garvin Hicking, Sebastian Mayeres, Jude Anthony');
$propbag->add('version', '1.5');
$propbag->add('requirements', array(
'serendipity' => '0.8',
'smarty' => '2.6.7',
@ -92,7 +92,7 @@ class serendipity_event_kubrickheader extends serendipity_event {
return true;
}
function event_hook($event, &$bag, &$eventData) {
function event_hook($event, &$bag, &$eventData, $addData = null) {
global $serendipity;
$hooks = &$bag->get('event_hooks');

View file

@ -29,7 +29,7 @@ class serendipity_event_lightbox extends serendipity_event {
$propbag->add('name', PLUGIN_EVENT_LIGHTBOX_NAME);
$propbag->add('description', PLUGIN_EVENT_LIGHTBOX_DESC);
$propbag->add('author', 'Thomas Nesges, Andy Hopkins, Lokesh Dhakar, Cody Lindley, Stephan Manske, Grischa Brockhaus');
$propbag->add('version', '1.9.5');
$propbag->add('version', '1.9.6');
$propbag->add('requirements', array(
'serendipity' => '0.9',
'smarty' => '2.6.7',
@ -130,7 +130,7 @@ class serendipity_event_lightbox extends serendipity_event {
return true;
}
function event_hook($event, &$bag, &$eventData) {
function event_hook($event, &$bag, &$eventData, $addData = null) {
global $serendipity;
static $regex = null;
static $sub = null;
@ -299,7 +299,7 @@ class serendipity_event_lightbox extends serendipity_event {
serendipity_plugin_api::hook_event('backend_cache_entries', $this->title);
}
function uninstall() {
function uninstall(&$propbag) {
serendipity_plugin_api::hook_event('backend_cache_purge', $this->title);
serendipity_plugin_api::hook_event('backend_cache_entries', $this->title);
}

View file

@ -30,7 +30,7 @@ class serendipity_event_linklist extends serendipity_event {
'external_plugin' => true
));
$propbag->add('author', 'Matthew Groeninger, Omid Mottaghi Rad');
$propbag->add('version', '1.98');
$propbag->add('version', '1.99');
$propbag->add('requirements', array(
'serendipity' => '0.8',
'smarty' => '2.6.7',
@ -439,7 +439,7 @@ class serendipity_event_linklist extends serendipity_event {
$this->set_config('category','custom');
}
function uninstall() {
function uninstall(&$propbag) {
global $serendipity;
// Drop table
$q = "DROP TABLE ".$serendipity['dbPrefix']."links";

View file

@ -29,7 +29,7 @@ class serendipity_event_livecomment extends serendipity_event
'serendipity' => '1.0',
'php' => '4.1.0'
));
$propbag->add('version', '2.5.4');
$propbag->add('version', '2.5.5');
$propbag->add('event_hooks', array(
'frontend_footer' => true,
'external_plugin' => true,
@ -138,7 +138,7 @@ class serendipity_event_livecomment extends serendipity_event
}
}
function event_hook($event, &$bag, &$eventData) {
function event_hook($event, &$bag, &$eventData, $addData = null) {
global $serendipity;
static $variant = null;

View file

@ -26,7 +26,7 @@ class serendipity_event_ljupdate extends serendipity_event
'php' => '4.1.0'
));
$propbag->add('author', 'Kaustubh Srikanth, Ivan Makhonin');
$propbag->add('version', '1.12');
$propbag->add('version', '1.13');
$propbag->add('event_hooks', array(
@ -256,7 +256,7 @@ class serendipity_event_ljupdate extends serendipity_event
echo "Updating finished.<br />\n";
}
function event_hook($event, &$bag, &$eventData) {
function event_hook($event, &$bag, &$eventData, $addData = null) {
global $serendipity;
$hooks = &$bag->get('event_hooks');

View file

@ -23,7 +23,7 @@ class serendipity_event_loginform extends serendipity_event
$propbag->add('description', PLUGIN_EVENT_LOGINFORM_DESC);
$propbag->add('stackable', false);
$propbag->add('author', 'Garvin Hicking');
$propbag->add('version', '1.03');
$propbag->add('version', '1.04');
$propbag->add('requirements', array(
'serendipity' => '0.7',
'smarty' => '2.6.7',
@ -60,7 +60,7 @@ class serendipity_event_loginform extends serendipity_event
$title = PLUGIN_EVENT_LOGINFORM_NAME;
}
function event_hook($event, &$bag, &$eventData) {
function event_hook($event, &$bag, &$eventData, $addData = null) {
global $serendipity;
$hooks = &$bag->get('event_hooks');

View file

@ -19,7 +19,7 @@ class serendipity_event_mailentry extends serendipity_event {
$propbag->add('name', PLUGIN_MAILENTRY_NAME);
$propbag->add('description', PLUGIN_MAILENTRY_DESC);
$propbag->add('configuration', array('title'));
$propbag->add('version', '1.22');
$propbag->add('version', '1.23');
$propbag->add('event_hooks',
array('frontend_display:html:per_entry' => true));
$propbag->add('groups', array('FRONTEND_ENTRY_RELATED'));
@ -50,7 +50,7 @@ class serendipity_event_mailentry extends serendipity_event {
return str_replace(array("\n", "\r", "\t", "\0"), array('', '', '', ''), $str);
}
function event_hook($event, &$bag, &$eventData) {
function event_hook($event, &$bag, &$eventData, $addData = null) {
global $serendipity;
switch ($event) {

View file

@ -30,7 +30,7 @@ class serendipity_event_markdown extends serendipity_event
'smarty' => '2.6.7',
'php' => '4.1.0'
));
$propbag->add('version', '1.15');
$propbag->add('version', '1.16');
$propbag->add('cachable_events', array('frontend_display' => true));
$propbag->add('event_hooks', array('frontend_display' => true, 'frontend_comment' => true));
$propbag->add('groups', array('MARKUP'));
@ -67,7 +67,7 @@ class serendipity_event_markdown extends serendipity_event
serendipity_plugin_api::hook_event('backend_cache_entries', $this->title);
}
function uninstall() {
function uninstall(&$propbag) {
serendipity_plugin_api::hook_event('backend_cache_purge', $this->title);
serendipity_plugin_api::hook_event('backend_cache_entries', $this->title);
}
@ -102,7 +102,7 @@ class serendipity_event_markdown extends serendipity_event
}
function event_hook($event, &$bag, &$eventData) {
function event_hook($event, &$bag, &$eventData, $addData = null) {
global $serendipity;
if($this->get_config('MARKDOWN_EXTRA', false)) {

View file

@ -24,7 +24,7 @@ class serendipity_event_mimetex extends serendipity_event
$propbag->add('description', PLUGIN_EVENT_MIMETEX_DESC);
$propbag->add('stackable', false);
$propbag->add('author', 'Matthew Groeninger');
$propbag->add('version', '1.2');
$propbag->add('version', '1.3');
$propbag->add('requirements', array(
'serendipity' => '0.8',
'smarty' => '2.6.7',
@ -170,7 +170,7 @@ class serendipity_event_mimetex extends serendipity_event
$title = $this->title;
}
function event_hook($event, &$bag, &$eventData) {
function event_hook($event, &$bag, &$eventData, $addData = null) {
global $serendipity;
$hooks = &$bag->get('event_hooks');

View file

@ -14,7 +14,7 @@ TODO:
if (IN_serendipity !== true) {
die ("Don't hack!");
}
@define('PLUGIN_EVENT_MOBILE_VERSION','1.01');
@define('PLUGIN_EVENT_MOBILE_VERSION','1.02');
@define('PLUGIN_EVENT_MOBILE_AUTHORS','Pelle Boese, Grischa Brockhaus');
@define('PLUGIN_EVENT_MOBILE_TPL_IPHONE','iphone.app');
@ -81,7 +81,7 @@ class serendipity_event_mobile_output extends serendipity_event
}
}
function uninstall() {
function uninstall(&$propbag) {
global $serendipity;
serendipity_plugin_api::hook_event('backend_cache_purge', $this->title);
serendipity_plugin_api::hook_event('backend_cache_entries', $this->title);

View file

@ -30,7 +30,7 @@ class serendipity_event_oembed extends serendipity_event
$propbag->add('description', PLUGIN_EVENT_OEMBED_DESC);
$propbag->add('stackable', false);
$propbag->add('author', 'Grischa Brockhaus');
$propbag->add('version', '1.07');
$propbag->add('version', '1.08');
$propbag->add('requirements', array(
'serendipity' => '0.8',
'smarty' => '2.6.7',
@ -103,7 +103,7 @@ class serendipity_event_oembed extends serendipity_event
return true;
}
function event_hook($event, &$bag, &$eventData) {
function event_hook($event, &$bag, &$eventData, $addData = null) {
global $serendipity;
static $simplePatterns = null;

View file

@ -54,7 +54,7 @@ class serendipity_common_openid {
exit;
}
function reauth_openid() {
static function reauth_openid() {
global $serendipity;
if (isset($_SESSION['serendipityOpenID']) && $_SESSION['serendipityOpenID']) {
$serendipity['serendipityUser'] = $_SESSION['serendipityUser'];

View file

@ -13,7 +13,7 @@ class serendipity_event_openid extends serendipity_event
$propbag->add('description', PLUGIN_OPENID_DESC);
$propbag->add('stackable', false);
$propbag->add('author', 'Grischa Brockhaus, Rob Richards');
$propbag->add('version', '1.0');
$propbag->add('version', '1.1');
$propbag->add('requirements', array(
'serendipity' => '1.2',
'smarty' => '2.6.7',

View file

@ -25,7 +25,7 @@ class serendipity_event_phoneblogz extends serendipity_event
$propbag->add('description', PLUGIN_EVENT_PHONEBLOGZ_DESC);
$propbag->add('stackable', false);
$propbag->add('author', 'Garvin Hicking, phoneblogz.com');
$propbag->add('version', '0.7');
$propbag->add('version', '0.8');
$propbag->add('requirements', array(
'serendipity' => '0.8',
'smarty' => '2.6.7',
@ -379,7 +379,7 @@ class serendipity_event_phoneblogz extends serendipity_event
return true;
}
function event_hook($event, &$bag, &$eventData) {
function event_hook($event, &$bag, &$eventData, $addData = null) {
global $serendipity;
$hooks = &$bag->get('event_hooks');

View file

@ -11,7 +11,7 @@ if (file_exists($probelang)) {
include $probelang;
}
@define('PLUGIN_EVENT_PHOTOBLOG_VERSION', '1.5');
@define('PLUGIN_EVENT_PHOTOBLOG_VERSION', '1.6');
include dirname(__FILE__) . '/lang_en.inc.php';
@ -240,7 +240,7 @@ class serendipity_event_photoblog extends serendipity_event
}
}
function event_hook($event, &$bag, &$eventData) {
function event_hook($event, &$bag, &$eventData, $addData = null) {
global $serendipity;
$hooks = &$bag->get('event_hooks');

View file

@ -69,7 +69,7 @@ class serendipity_event_phpopentracker extends serendipity_event {
$propbag->add('description', S9YPOT_DESC);
$propbag->add('stackable', false);
$propbag->add('author', 'Rene Schmidt');
$propbag->add('version', '1.6');
$propbag->add('version', '1.7');
$propbag->add('requirements', array(
'serendipity' => '0.9',
'smarty' => '2.6.7',
@ -114,7 +114,7 @@ class serendipity_event_phpopentracker extends serendipity_event {
}
function event_hook($event, &$bag, &$eventData) {
function event_hook($event, &$bag, &$eventData, $addData = null) {
global $serendipity;
$hooks = &$bag->get('event_hooks');

View file

@ -256,7 +256,7 @@ class serendipity_event_picasa extends serendipity_event {
));
$propbag->add('stackable', false);
$propbag->add('author', 'Thomas Nesges, Greg Greenway');
$propbag->add('version', '1.13');
$propbag->add('version', '1.14');
$propbag->add('requirements', array(
'serendipity' => '0.8',
'smarty' => '2.6.7',
@ -362,7 +362,7 @@ class serendipity_event_picasa extends serendipity_event {
return true;
}
function event_hook($event, &$bag, &$eventData) {
function event_hook($event, &$bag, &$eventData, $addData = null) {
global $serendipity;
$hooks = &$bag->get('event_hooks');

View file

@ -14,7 +14,7 @@ if (file_exists($probelang)) {
include_once dirname(__FILE__) . '/lang_en.inc.php';
include_once dirname(__FILE__) . '/podcast_player.php';
@define("SERENDIPITY_EVENT_PODCAST_VERSION", "1.35");
@define("SERENDIPITY_EVENT_PODCAST_VERSION", "1.36");
class serendipity_event_podcast extends serendipity_event {
/**
@ -422,7 +422,7 @@ class serendipity_event_podcast extends serendipity_event{
/**
@access public
*/
function event_hook($event, &$bag, &$eventData, &$addData){
function event_hook($event, &$bag, &$eventData, $addData = null){
global $serendipity;
static $use_player = null;
static $firstmedia_only = null;

View file

@ -12,7 +12,7 @@ require_once('tmobile.php');
require_once('o2.php');
// Default values
define('POPFETCHER_VERSION', '1.42'); // This version of Popfetcher
define('POPFETCHER_VERSION', '1.43'); // This version of Popfetcher
define('DEFAULT_ADMINMENU', 'true'); // True if run as sidebar plugin. False if external plugin.
define('DEFAULT_HIDENAME', 'popfetcher'); // User should set this to something unguessable
define('DEFAULT_MAILSERVER', '');
@ -1527,7 +1527,7 @@ class serendipity_event_popfetcher extends serendipity_event
echo '<br /><hr />';
}
function event_hook($event, &$bag, &$eventData) {
function event_hook($event, &$bag, &$eventData, $addData = null) {
global $serendipity;
$hooks = &$bag->get('event_hooks');

View file

@ -23,7 +23,7 @@ class serendipity_event_prettify extends serendipity_event
$propbag->add('description', PLUGIN_PRETTIFY_DESC);
$propbag->add('stackable', false);
$propbag->add('author', PLUGIN_PRETTIFY_AUTH);
$propbag->add('version', '1.6.0');
$propbag->add('version', '1.6.1');
$propbag->add('requirements', array('serendipity' => '1.0',
'smarty' => '2.6.7',
'php' => '4.1.0'
@ -144,7 +144,7 @@ class serendipity_event_prettify extends serendipity_event
return $s;
}
function event_hook($event, &$bag, &$eventData) {
function event_hook($event, &$bag, &$eventData, $addData = null) {
global $serendipity;
$hooks = &$bag->get('event_hooks');

View file

@ -26,7 +26,7 @@ class serendipity_event_randomblogdescription extends serendipity_event
$propbag->add('description', PLUGIN_EVENT_RANDOMBLOGDESCRIPTION_DESC);
$propbag->add('stackable', false);
$propbag->add('author', 'Florian Anderiasch');
$propbag->add('version', '0.5');
$propbag->add('version', '0.6');
$propbag->add('configuration', array('enabled', 'blogdescription'));
$propbag->add('requirements', array(
'serendipity' => '0.8',
@ -67,7 +67,7 @@ class serendipity_event_randomblogdescription extends serendipity_event
$title = $this->title;
}
function event_hook($event, &$bag, &$eventData) {
function event_hook($event, &$bag, &$eventData, $addData = null) {
global $serendipity;
$hooks = &$bag->get('event_hooks');

View file

@ -24,7 +24,7 @@ class serendipity_event_realtimecomments extends serendipity_event {
$propbag->add('description', PLUGIN_EVENT_REALTIMECOMMENTS_DESC);
$propbag->add('stackable', false);
$propbag->add('author', 'Malte Paskuda');
$propbag->add('version', '0.1.2');
$propbag->add('version', '0.1.3');
$propbag->add('requirements', array(
'serendipity' => '0.8'
));
@ -76,7 +76,7 @@ class serendipity_event_realtimecomments extends serendipity_event {
}
function event_hook($event, &$bag, &$eventData, &$addData) {
function event_hook($event, &$bag, &$eventData, $addData = null) {
global $serendipity;
$hooks = &$bag->get('event_hooks');

View file

@ -25,7 +25,7 @@ class serendipity_event_regexpmarkup extends serendipity_event
$propbag->add('description', PLUGIN_EVENT_REGEXPMARKUP_DESC);
$propbag->add('stackable', false);
$propbag->add('author', 'Rob Antonishen');
$propbag->add('version', '0.7');
$propbag->add('version', '0.8');
$propbag->add('requirements', array(
'serendipity' => '0.8',
'smarty' => '2.6.7',
@ -66,7 +66,7 @@ class serendipity_event_regexpmarkup extends serendipity_event
serendipity_plugin_api::hook_event('backend_cache_entries', $this->title);
}
function uninstall() {
function uninstall(&$propbag) {
serendipity_plugin_api::hook_event('backend_cache_purge', $this->title);
serendipity_plugin_api::hook_event('backend_cache_entries', $this->title);
}
@ -84,7 +84,7 @@ class serendipity_event_regexpmarkup extends serendipity_event
return true;
}
function event_hook($event, &$bag, &$eventData) {
function event_hook($event, &$bag, &$eventData, $addData = null) {
global $serendipity;
$hooks = &$bag->get('event_hooks');

View file

@ -45,7 +45,7 @@ class serendipity_event_smartymarkup extends serendipity_event
$propbag->add('description', PLUGIN_EVENT_SMARTYMARKUP_DESC);
$propbag->add('stackable', false);
$propbag->add('author', 'Garvin Hicking');
$propbag->add('version', '1.10');
$propbag->add('version', '1.11');
$propbag->add('requirements', array(
'serendipity' => '0.8',
'smarty' => '2.6.7',
@ -93,7 +93,7 @@ class serendipity_event_smartymarkup extends serendipity_event
serendipity_plugin_api::hook_event('backend_cache_entries', $this->title);
}
function uninstall() {
function uninstall(&$propbag) {
serendipity_plugin_api::hook_event('backend_cache_purge', $this->title);
serendipity_plugin_api::hook_event('backend_cache_entries', $this->title);
}

View file

@ -27,7 +27,7 @@ class serendipity_event_snapshotlinks extends serendipity_plugin
$propbag->add('name', PLUGIN_SNAPSHOTLINKS_NAME);
$propbag->add('stackable', false);
$propbag->add('author', 'Grischa Brockhaus');
$propbag->add('version', '1.02');
$propbag->add('version', '1.03');
$propbag->add('requirements', array(
'serendipity' => '0.8',
'smarty' => '2.6.7',
@ -225,7 +225,7 @@ class serendipity_event_snapshotlinks extends serendipity_plugin
$title = PLUGIN_SNAPSHOTLINKS_NAME;
}
function event_hook($event, &$bag, &$eventData, &$addData) {
function event_hook($event, &$bag, &$eventData, $addData = null) {
global $serendipity;
static $state, $locked;

View file

@ -25,7 +25,7 @@ class serendipity_event_startcat extends serendipity_event
$propbag->add('description', PLUGIN_EVENT_STARTCAT_DESC);
$propbag->add('stackable', false);
$propbag->add('author', 'Stefan Willoughby, Garvin Hicking');
$propbag->add('version', '1.9');
$propbag->add('version', '1.10');
$propbag->add('requirements', array(
'serendipity' => '0.8',
'smarty' => '2.6.7',
@ -109,7 +109,7 @@ class serendipity_event_startcat extends serendipity_event
}
function event_hook($event, &$bag, &$eventData) {
function event_hook($event, &$bag, &$eventData, $addData = null) {
global $serendipity;
$hooks = &$bag->get('event_hooks');

View file

@ -25,7 +25,7 @@ class serendipity_event_template_editor extends serendipity_event {
$propbag->add('stackable', false);
$propbag->add('author', 'Malte Paskuda');
$propbag->add('license', 'GPL');
$propbag->add('version', '0.4');
$propbag->add('version', '0.5');
$propbag->add('requirements', array(
'serendipity' => '0.8'
));
@ -66,7 +66,7 @@ class serendipity_event_template_editor extends serendipity_event {
}
function event_hook($event, &$bag, &$eventData) {
function event_hook($event, &$bag, &$eventData, $addData = null) {
global $serendipity;
$hooks = &$bag->get('event_hooks');

View file

@ -30,7 +30,7 @@ class serendipity_event_tinymce extends serendipity_event
$propbag->add('description', PLUGIN_EVENT_TINYMCE_DESC);
$propbag->add('stackable', false);
$propbag->add('author', 'Garvin Hicking, Grischa Brockhaus');
$propbag->add('version', '1.10');
$propbag->add('version', '1.11');
$propbag->add('requirements', array(
'serendipity' => '0.9',
'smarty' => '2.6.7',
@ -149,7 +149,7 @@ class serendipity_event_tinymce extends serendipity_event
$title = $this->title;
}
function event_hook($event, &$bag, &$eventData) {
function event_hook($event, &$bag, &$eventData, $addData = null) {
global $serendipity;
$hooks = &$bag->get('event_hooks');

View file

@ -24,7 +24,7 @@ if (file_exists($probelang)) {
include dirname(__FILE__) . '/lang_en.inc.php';
@define('PLUGIN_EVENT_TODOLIST_DBVERSION', '1.11');
@define('PLUGIN_EVENT_TODOLIST_DBVERSION', '1.12');
class serendipity_event_todolist extends serendipity_event {
@ -1214,7 +1214,7 @@ class serendipity_event_todolist extends serendipity_event {
$this->set_config('catbd','done');
}
function uninstall() {
function uninstall(&$propbag) {
global $serendipity;
// Don't Drop table to avoid losing data.
// $q = "DROP TABLE ".$serendipity['dbPrefix']."percentagedone";

View file

@ -25,7 +25,7 @@ class serendipity_event_tooltips extends serendipity_event
$propbag->add('description', PLUGIN_EVENT_TOOLTIPS_DESC);
$propbag->add('stackable', false);
$propbag->add('author', 'Enrico Stahn');
$propbag->add('version', '1.4');
$propbag->add('version', '1.5');
$propbag->add('requirements', array(
'serendipity' => '0.8',
'smarty' => '2.6.7',
@ -136,7 +136,7 @@ class serendipity_event_tooltips extends serendipity_event
serendipity_plugin_api::hook_event('backend_cache_entries', $this->title);
}
function uninstall() {
function uninstall(&$propbag) {
serendipity_plugin_api::hook_event('backend_cache_purge', $this->title);
serendipity_plugin_api::hook_event('backend_cache_entries', $this->title);
}
@ -259,7 +259,7 @@ class serendipity_event_tooltips extends serendipity_event
return $element;
}
function event_hook($event, &$bag, &$eventData) {
function event_hook($event, &$bag, &$eventData, $addData = null) {
global $serendipity;
$hooks = &$bag->get('event_hooks');

View file

@ -25,7 +25,7 @@ class serendipity_event_typesetbuttons extends serendipity_event
$propbag->add('description', PLUGIN_EVENT_TYPESETBUTTONS_DESC);
$propbag->add('stackable', false);
$propbag->add('author', 'Matthew Groeninger, Malte Diers');
$propbag->add('version', '0.10');
$propbag->add('version', '0.11');
$propbag->add('requirements', array(
'serendipity' => '0.8',
'smarty' => '2.6.7',
@ -290,7 +290,7 @@ class serendipity_event_typesetbuttons extends serendipity_event
}
function event_hook($event, &$bag, &$eventData) {
function event_hook($event, &$bag, &$eventData, $addData = null) {
global $serendipity;
$hooks = &$bag->get('event_hooks');

View file

@ -24,7 +24,7 @@ class serendipity_event_typoquote extends serendipity_event
$propbag->add('description', PLUGIN_EVENT_QUOTES_DESC);
$propbag->add('stackable', false);
$propbag->add('author', 'Jonathan Spalink and Matthew Groeninger');
$propbag->add('version', '1.4');
$propbag->add('version', '1.5');
$propbag->add('requirements', array(
'serendipity' => '0.8',
'smarty' => '2.6.7',
@ -67,7 +67,7 @@ class serendipity_event_typoquote extends serendipity_event
serendipity_plugin_api::hook_event('backend_cache_entries', $this->title);
}
function uninstall() {
function uninstall(&$propbag) {
serendipity_plugin_api::hook_event('backend_cache_purge', $this->title);
serendipity_plugin_api::hook_event('backend_cache_entries', $this->title);
}
@ -101,7 +101,7 @@ class serendipity_event_typoquote extends serendipity_event
return true;
}
function event_hook($event, &$bag, &$eventData) {
function event_hook($event, &$bag, &$eventData, $addData = null) {
global $serendipity;
$hooks = &$bag->get('event_hooks');

View file

@ -24,7 +24,7 @@ class serendipity_event_unstrip_tags extends serendipity_event
$propbag->add('description', PLUGIN_EVENT_UNSTRIP_DESC);
$propbag->add('stackable', false);
$propbag->add('author', 'Garvin Hicking');
$propbag->add('version', '1.02');
$propbag->add('version', '1.03');
$propbag->add('requirements', array(
'serendipity' => '0.7',
'smarty' => '2.6.7',
@ -37,7 +37,7 @@ class serendipity_event_unstrip_tags extends serendipity_event
function generate_content(&$title) {
$title = $this->title;
}
function event_hook($event, &$bag, &$eventData) {
function event_hook($event, &$bag, &$eventData, $addData = null) {
global $serendipity;
$hooks = &$bag->get('event_hooks');

View file

@ -24,7 +24,7 @@ class serendipity_event_usergallery extends serendipity_event
$propbag->add('description', PLUGIN_EVENT_USERGALLERY_DESC);
$propbag->add('stackable', true);
$propbag->add('author', 'Arnan de Gans, Matthew Groeninger, and Stefan Willoughby');
$propbag->add('version', '2.53');
$propbag->add('version', '2.54');
$propbag->add('requirements', array(
'serendipity' => '0.8',
'smarty' => '2.6.7',
@ -380,7 +380,7 @@ class serendipity_event_usergallery extends serendipity_event
return $selector;
}
function event_hook($event, &$bag, &$eventData) {
function event_hook($event, &$bag, &$eventData, $addData = null) {
global $serendipity;
$hooks = &$bag->get('event_hooks');

View file

@ -25,7 +25,7 @@ class serendipity_event_wordwrap extends serendipity_event
$propbag->add('description', PLUGIN_EVENT_WORDWRAP_DESC);
$propbag->add('stackable', false);
$propbag->add('author', 'Garvin Hicking');
$propbag->add('version', '1.03');
$propbag->add('version', '1.04');
$propbag->add('requirements', array(
'serendipity' => '0.8',
'smarty' => '2.6.7',
@ -68,7 +68,7 @@ class serendipity_event_wordwrap extends serendipity_event
serendipity_plugin_api::hook_event('backend_cache_entries', $this->title);
}
function uninstall() {
function uninstall(&$propbag) {
serendipity_plugin_api::hook_event('backend_cache_purge', $this->title);
serendipity_plugin_api::hook_event('backend_cache_entries', $this->title);
}
@ -110,7 +110,7 @@ class serendipity_event_wordwrap extends serendipity_event
}
}
function event_hook($event, &$bag, &$eventData) {
function event_hook($event, &$bag, &$eventData, $addData = null) {
global $serendipity;
$hooks = &$bag->get('event_hooks');

View file

@ -29,7 +29,7 @@ class serendipity_event_xinha extends serendipity_event
$propbag->add('description', PLUGIN_EVENT_XINHA_DESC);
$propbag->add('stackable', false);
$propbag->add('author', 'Ziyad Saeed, Garvin Hicking');
$propbag->add('version', '0.6');
$propbag->add('version', '0.7');
$propbag->add('requirements', array(
'serendipity' => '0.9',
'smarty' => '2.6.7',
@ -91,7 +91,7 @@ class serendipity_event_xinha extends serendipity_event
return $o;
}
function event_hook($event, &$bag, &$eventData) {
function event_hook($event, &$bag, &$eventData, $addData = null) {
global $serendipity;
$hooks = &$bag->get('event_hooks');

View file

@ -25,7 +25,7 @@ class serendipity_event_xmlrpc extends serendipity_event
$propbag->add('description', PLUGIN_EVENT_XMLRPC_DESC);
$propbag->add('stackable', false);
$propbag->add('author', 'Serendipity Team');
$propbag->add('version', '1.51');
$propbag->add('version', '1.52');
$propbag->add('requirements', array(
'serendipity' => '0.8',
'smarty' => '2.6.7',
@ -190,7 +190,7 @@ class serendipity_event_xmlrpc extends serendipity_event
}
function event_hook($event, &$bag, &$eventData) {
function event_hook($event, &$bag, &$eventData, $addData = null) {
global $serendipity, $HTTP_RAW_POST_DATA;
$hooks = &$bag->get('event_hooks');

View file

@ -30,7 +30,7 @@ class serendipity_event_youtube extends serendipity_event
'smarty' => '2.6.7',
'php' => '4.1.0'
));
$propbag->add('version', '1.1');
$propbag->add('version', '1.2');
$propbag->add('event_hooks', array(
'backend_entry_toolbar_extended' => true,
'backend_entry_toolbar_body' => true,
@ -97,7 +97,7 @@ class serendipity_event_youtube extends serendipity_event
}
}
function event_hook($event, &$bag, &$eventData) {
function event_hook($event, &$bag, &$eventData, $addData = null) {
global $serendipity;
$hooks = &$bag->get('event_hooks');

View file

@ -28,7 +28,7 @@ class serendipity_event_yq extends serendipity_event {
$propbag->add('description', PLUGIN_EVENT_YQ_DESC);
$propbag->add('stackable', false);
$propbag->add('author', 'Rasmus Lerdorf');
$propbag->add('version', '1.1');
$propbag->add('version', '1.2');
$propbag->add('requirements', array(
'serendipity' => '0.8',
'smarty' => '2.6.7',
@ -66,7 +66,7 @@ class serendipity_event_yq extends serendipity_event {
return true;
}
function event_hook($event, &$bag, &$eventData) {
function event_hook($event, &$bag, &$eventData, $addData = null) {
global $serendipity, $IE;
static $hookno = 0;

View file

@ -18,7 +18,7 @@ class serendipity_event_flickrcss extends serendipity_event
$propbag->add('description', PLUGIN_EVENT_FLICKRCSS_DESC);
$propbag->add('stackable', false);
$propbag->add('author', 'Michael Kaiser');
$propbag->add('version', '1.04');
$propbag->add('version', '1.05');
$propbag->add('requirements', array(
'serendipity' => '0.8',
'smarty' => '2.6.9',
@ -41,7 +41,7 @@ class serendipity_event_flickrcss extends serendipity_event
$title = PLUGIN_EVENT_FLICKRCSS;
}
function event_hook($event, &$bag, &$eventData) {
function event_hook($event, &$bag, &$eventData, $addData = null) {
global $serendipity;
$hooks = &$bag->get('event_hooks');

View file

@ -466,7 +466,7 @@ class Twitter {
return $status;
}
function create_status_ago_string($twitter_time_string){
static function create_status_ago_string($twitter_time_string){
// Some strtotime versions are not able to handle the long date string. So shorten it!
$datepart = explode(" ", $twitter_time_string);

View file

@ -53,7 +53,7 @@ class TwitterPluginDbAccess {
}
}
function load_short_urls( $article_url, $selected_services ) {
static function load_short_urls( $article_url, $selected_services ) {
global $serendipity;
$inservices = "'" . implode("','", $selected_services) . "'";
@ -79,7 +79,7 @@ class TwitterPluginDbAccess {
}
}
function save_short_urls( $article_url, $shorturls, $loaded_shorturls = array() ) {
static function save_short_urls( $article_url, $shorturls, $loaded_shorturls = array() ) {
global $serendipity;
// insert all new (not yet known) shorturls.

View file

@ -19,7 +19,7 @@ class TwitterPluginFileAccess {
}
}
function get_permaplugin_path() {
static function get_permaplugin_path() {
global $serendipity;
// Get configured plugin path:

View file

@ -1,4 +1,4 @@
<?php
// Actual version of both plugins
@define('PLUGIN_TWITTER_VERSION', '1.43');
@define('PLUGIN_TWITTER_VERSION', '1.44');

View file

@ -717,7 +717,7 @@ class serendipity_event_twitter extends serendipity_plugin {
$title = PLUGIN_EVENT_TWITTER_NAME;
}
function event_hook($event, &$bag, &$eventData, &$addData) {
function event_hook($event, &$bag, &$eventData, $addData = null) {
global $serendipity;
static $cache = null;
static $method = null;

View file

@ -279,16 +279,16 @@ class serendipity_plugin_twitter extends serendipity_plugin {
$toall_only = serendipity_db_bool($this->get_config('toall_only', false));
$filter_all_user = serendipity_db_bool($this->get_config('filter_all_user', false));
foreach ($xml as $key => $value) {
foreach ($xml as $key => $status) {
// Change encoding of update to Visitors language
if (LANG_CHARSET!='UTF-8' && function_exists("mb_convert_encoding")) {
$status->text = mb_convert_encoding($status->text, LANG_CHARSET, 'auto');
}
$showit = true;
if ($filter_all_user && preg_match('/@/',$value->text)) $showit=false;
else if ($toall_only && preg_match('/^@/',$value->text)) $showit=false;
if ($filter_all_user && preg_match('/@/',$status->text)) $showit=false;
else if ($toall_only && preg_match('/^@/',$status->text)) $showit=false;
if ($showit) {
$str_output[] = '<li class="twitter_update_' . $odd_css . '"><span> ' . $status->text = $api->replace_links_in_status($value->text, $this->get_config('linktext','link'), 'twitter_update_link', 'twitter_user') . '</span><a class="twitter_update_time" href="' . $status_url . $value->id_str . '">' . $this->makeDate($value->created_at,$dateformat) . '</a></li>';
$str_output[] = '<li class="twitter_update_' . $odd_css . '"><span> ' . $status->text = $api->replace_links_in_status($status->text, $this->get_config('linktext','link'), 'twitter_update_link', 'twitter_user') . '</span><a class="twitter_update_time" href="' . $status_url . $status->id_str . '">' . $this->makeDate($status->created_at,$dateformat) . '</a></li>';
$odd_css = $odd_css=='odd'?'even':'odd';
$counter++;
}