[pLog-svn] r7251 - in plugins/branches/lifetype-1.2: blogtimes blogtimes/class/action categorycloud categorycloud/class/action editcomments editcomments/class/action hiddeninput hiddeninput/class/action mobile mobile/class/view plugoo tagcloud tagcloud/class/action
jondaley at devel.lifetype.net
jondaley at devel.lifetype.net
Wed Oct 14 22:23:44 EDT 2020
Author: jondaley
Date: 2020-10-14 22:23:43 -0400 (Wed, 14 Oct 2020)
New Revision: 7251
Modified:
plugins/branches/lifetype-1.2/blogtimes/class/action/pluginblogtimesupdateconfigaction.class.php
plugins/branches/lifetype-1.2/blogtimes/pluginblogtimes.class.php
plugins/branches/lifetype-1.2/categorycloud/class/action/plugincategorycloudupdateconfigaction.class.php
plugins/branches/lifetype-1.2/categorycloud/plugincategorycloud.class.php
plugins/branches/lifetype-1.2/editcomments/class/action/adminupdatecommentaction.class.php
plugins/branches/lifetype-1.2/editcomments/class/action/adminupdatetrackbackaction.class.php
plugins/branches/lifetype-1.2/editcomments/plugineditcomments.class.php
plugins/branches/lifetype-1.2/hiddeninput/class/action/pluginhiddeninputupdateconfigaction.class.php
plugins/branches/lifetype-1.2/hiddeninput/pluginhiddeninput.class.php
plugins/branches/lifetype-1.2/mobile/class/view/mobileviewarticleview.class.php
plugins/branches/lifetype-1.2/mobile/pluginmobile.class.php
plugins/branches/lifetype-1.2/plugoo/pluginplugoo.class.php
plugins/branches/lifetype-1.2/tagcloud/class/action/plugintagcloudupdateconfigaction.class.php
plugins/branches/lifetype-1.2/tagcloud/plugintagcloud.class.php
Log:
updating to php7
Modified: plugins/branches/lifetype-1.2/blogtimes/class/action/pluginblogtimesupdateconfigaction.class.php
===================================================================
--- plugins/branches/lifetype-1.2/blogtimes/class/action/pluginblogtimesupdateconfigaction.class.php 2020-10-14 06:14:15 UTC (rev 7250)
+++ plugins/branches/lifetype-1.2/blogtimes/class/action/pluginblogtimesupdateconfigaction.class.php 2020-10-15 02:23:43 UTC (rev 7251)
@@ -137,13 +137,12 @@
}
function isValidColor($colorCode) {
- $pattern = "#[a-fA-F0-9]{6}";
- $length = strlen($colorCode);
- if (ereg ($pattern, $colorCode) && $length == 7) {
- return true;
- } else {
- return false;
- }
- }
+ $pattern = "/#[a-fA-F0-9]{6}/";
+ $length = strlen($colorCode);
+ if(preg_match($pattern, $colorCode) && $length == 7)
+ return true;
+ else
+ return false;
+ }
}
?>
\ No newline at end of file
Modified: plugins/branches/lifetype-1.2/blogtimes/pluginblogtimes.class.php
===================================================================
--- plugins/branches/lifetype-1.2/blogtimes/pluginblogtimes.class.php 2020-10-14 06:14:15 UTC (rev 7250)
+++ plugins/branches/lifetype-1.2/blogtimes/pluginblogtimes.class.php 2020-10-15 02:23:43 UTC (rev 7251)
@@ -31,7 +31,7 @@
$this->id = "blogtimes";
$this->author = "Mark Wu";
$this->desc = "This plugin offers you to show the blogtimes image in your blog.";
- $this->version = "20070301";
+ $this->version = "20201014";
// source the neccessary class files
lt_include( PLOG_CLASS_PATH."class/database/db.class.php" );
Modified: plugins/branches/lifetype-1.2/categorycloud/class/action/plugincategorycloudupdateconfigaction.class.php
===================================================================
--- plugins/branches/lifetype-1.2/categorycloud/class/action/plugincategorycloudupdateconfigaction.class.php 2020-10-14 06:14:15 UTC (rev 7250)
+++ plugins/branches/lifetype-1.2/categorycloud/class/action/plugincategorycloudupdateconfigaction.class.php 2020-10-15 02:23:43 UTC (rev 7251)
@@ -77,13 +77,12 @@
}
function isValidColor($colorCode) {
- $pattern = "#[a-fA-F0-9]{6}";
- $length = strlen($colorCode);
- if (ereg ($pattern, $colorCode) && $length == 7) {
- return true;
- } else {
- return false;
- }
- }
+ $pattern = "/#[a-fA-F0-9]{6}/";
+ $length = strlen($colorCode);
+ if (preg_match ($pattern, $colorCode) && $length == 7)
+ return true;
+ else
+ return false;
+ }
}
?>
Modified: plugins/branches/lifetype-1.2/categorycloud/plugincategorycloud.class.php
===================================================================
--- plugins/branches/lifetype-1.2/categorycloud/plugincategorycloud.class.php 2020-10-14 06:14:15 UTC (rev 7250)
+++ plugins/branches/lifetype-1.2/categorycloud/plugincategorycloud.class.php 2020-10-15 02:23:43 UTC (rev 7251)
@@ -23,7 +23,7 @@
$this->author = "Mariano Draghi (cHagHi)";
$this->desc = "This plugin offers a CategoryCloud for a specific Blog";
- $this->version = "20070511";
+ $this->version = "20201014";
$this->locales = Array( "en_UK", "es_ES" );
if( $source == "admin" )
Modified: plugins/branches/lifetype-1.2/editcomments/class/action/adminupdatecommentaction.class.php
===================================================================
--- plugins/branches/lifetype-1.2/editcomments/class/action/adminupdatecommentaction.class.php 2020-10-14 06:14:15 UTC (rev 7250)
+++ plugins/branches/lifetype-1.2/editcomments/class/action/adminupdatecommentaction.class.php 2020-10-15 02:23:43 UTC (rev 7251)
@@ -70,7 +70,7 @@
$this->_authorEmail = Textfilter::filterAllHTML($this->_request->getValue( "authorEmail" ));
$this->_authorUrl = Textfilter::filterAllHTML($this->_request->getValue( "authorUrl" ));
if( (strlen($this->_authorUrl) != 0) &&
- ereg('^https?://',$this->_authorUrl) == false)
+ preg_match('#^https?://#',$this->_authorUrl) == false)
{
$this->_authorUrl = "http://".$this->_authorUrl;
}
Modified: plugins/branches/lifetype-1.2/editcomments/class/action/adminupdatetrackbackaction.class.php
===================================================================
--- plugins/branches/lifetype-1.2/editcomments/class/action/adminupdatetrackbackaction.class.php 2020-10-14 06:14:15 UTC (rev 7250)
+++ plugins/branches/lifetype-1.2/editcomments/class/action/adminupdatetrackbackaction.class.php 2020-10-15 02:23:43 UTC (rev 7251)
@@ -66,7 +66,7 @@
$this->_authorEmail = Textfilter::filterAllHTML($this->_request->getValue( "authorEmail" ));
$this->_authorUrl = Textfilter::filterAllHTML($this->_request->getValue( "authorUrl" ));
if( (strlen($this->_authorUrl) != 0) &&
- ereg('^https?://',$this->_authorUrl) == false)
+ preg_match('#^https?://#', $this->_authorUrl) == false)
{
$this->_authorUrl = "http://".$this->_authorUrl;
}
Modified: plugins/branches/lifetype-1.2/editcomments/plugineditcomments.class.php
===================================================================
--- plugins/branches/lifetype-1.2/editcomments/plugineditcomments.class.php 2020-10-14 06:14:15 UTC (rev 7250)
+++ plugins/branches/lifetype-1.2/editcomments/plugineditcomments.class.php 2020-10-15 02:23:43 UTC (rev 7251)
@@ -10,7 +10,7 @@
$this->desc = "Allows editing of comments for users with the 'update existing comments' permission.";
$this->author = "Jon Daley";
$this->locales = Array( "en_UK" );
- $this->version = "20100804";
+ $this->version = "20201014";
if($source == "admin")
$this->initAdmin();
Modified: plugins/branches/lifetype-1.2/hiddeninput/class/action/pluginhiddeninputupdateconfigaction.class.php
===================================================================
--- plugins/branches/lifetype-1.2/hiddeninput/class/action/pluginhiddeninputupdateconfigaction.class.php 2020-10-14 06:14:15 UTC (rev 7250)
+++ plugins/branches/lifetype-1.2/hiddeninput/class/action/pluginhiddeninputupdateconfigaction.class.php 2020-10-15 02:23:43 UTC (rev 7251)
@@ -26,7 +26,7 @@
$this->_noTopic = $this->_request->getValue( "noTopic" );
$this->_noTopic = ($this->_noTopic != "" );
$this->_hiddenFields = $this->_request->getValue( "hiddenFields" );
- $this->_hiddenFields = ereg_replace("[^0-9A-Za-z,]", "", $this->_hiddenFields);
+ $this->_hiddenFields = preg_replace("/[^0-9A-Za-z,]/", "", $this->_hiddenFields);
$val = new StringValidator();
if( !$val->validate($this->_hiddenFields) ) {
$this->_view = new PluginHiddenInputConfigView( $this->_blogInfo );
@@ -39,7 +39,7 @@
// Check to make sure that all values in the empty fields input
// box are also in the hidden fields
$this->_emptyFields = $this->_request->getValue("emptyFields");
- $this->_emptyFields = ereg_replace("[^0-9A-Za-z,]", "", $this->_emptyFields);
+ $this->_emptyFields = preg_replace("/[^0-9A-Za-z,]/", "", $this->_emptyFields);
$emptyFieldsExploded = explode(",", $this->_emptyFields);
foreach($emptyFieldsExploded as $emptyField){
Modified: plugins/branches/lifetype-1.2/hiddeninput/pluginhiddeninput.class.php
===================================================================
--- plugins/branches/lifetype-1.2/hiddeninput/pluginhiddeninput.class.php 2020-10-14 06:14:15 UTC (rev 7250)
+++ plugins/branches/lifetype-1.2/hiddeninput/pluginhiddeninput.class.php 2020-10-15 02:23:43 UTC (rev 7251)
@@ -18,7 +18,7 @@
$this->id = "hiddeninput";
$this->author = "Mark Wu";
$this->desc = "This plugin offers hidden fields to comment form to prevent spammer post from spam robot.";
- $this->version = "20120506";
+ $this->version = "20201014";
$this->prefix = Db::getPrefix();
Modified: plugins/branches/lifetype-1.2/mobile/class/view/mobileviewarticleview.class.php
===================================================================
--- plugins/branches/lifetype-1.2/mobile/class/view/mobileviewarticleview.class.php 2020-10-14 06:14:15 UTC (rev 7250)
+++ plugins/branches/lifetype-1.2/mobile/class/view/mobileviewarticleview.class.php 2020-10-15 02:23:43 UTC (rev 7251)
@@ -21,7 +21,7 @@
// load a paginated view of the article comments
$comments = new ArticleComments();
$article = $this->getValue( "post" );
- $articleComments = $comments->getPostComments( $article->getId(),
+ $articleComments = $comments->getArticleComments( $article->getId(),
COMMENT_ORDER_OLDEST_FIRST,
COMMENT_STATUS_NONSPAM,
$this->_page,
Modified: plugins/branches/lifetype-1.2/mobile/pluginmobile.class.php
===================================================================
--- plugins/branches/lifetype-1.2/mobile/pluginmobile.class.php 2020-10-14 06:14:15 UTC (rev 7250)
+++ plugins/branches/lifetype-1.2/mobile/pluginmobile.class.php 2020-10-15 02:23:43 UTC (rev 7251)
@@ -16,7 +16,7 @@
$this->id = "mobile";
$this->desc = "Allows LifeType blogs to be accessed via mobile terminals";
$this->author = "The LifeType Project";
- $this->version = "20070226";
+ $this->version = "20201014";
}
/**
Modified: plugins/branches/lifetype-1.2/plugoo/pluginplugoo.class.php
===================================================================
--- plugins/branches/lifetype-1.2/plugoo/pluginplugoo.class.php 2020-10-14 06:14:15 UTC (rev 7250)
+++ plugins/branches/lifetype-1.2/plugoo/pluginplugoo.class.php 2020-10-15 02:23:43 UTC (rev 7251)
@@ -15,7 +15,7 @@
$this->desc ="Implements Plugoo Live Chat Messenger which allows blog visitors to contact you directly via your instant messenger account needed at www.plugoo.com";
$this->author = "Andy Collins";
$this->locales = Array("en_UK", "vn_VN" );
- $this->version = "20070829";
+ $this->version = "20201014";
if( $source == "admin" )
$this->initAdmin();
@@ -48,8 +48,8 @@
function getPlugoo()
{
- if (ereg('[^A-Za-z0-9]', $this->pluginUrl))
- return $this->pluginUrl;
+ if (!empty($this->pluginUrl))
+ return $this->pluginUrl;
else
return "<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0\" width=\"160\" height=\"300\" id=\"plugoo\" align=\"middle\">
<param name=\"movie\" value=\"http://www.plugoo.com/plug.swf?go=".$this->pluginUrl."\">
@@ -62,4 +62,3 @@
}
-?>
\ No newline at end of file
Modified: plugins/branches/lifetype-1.2/tagcloud/class/action/plugintagcloudupdateconfigaction.class.php
===================================================================
--- plugins/branches/lifetype-1.2/tagcloud/class/action/plugintagcloudupdateconfigaction.class.php 2020-10-14 06:14:15 UTC (rev 7250)
+++ plugins/branches/lifetype-1.2/tagcloud/class/action/plugintagcloudupdateconfigaction.class.php 2020-10-15 02:23:43 UTC (rev 7251)
@@ -92,13 +92,11 @@
}
function isValidColor($colorCode) {
- $pattern = "#[a-fA-F0-9]{6}";
- $length = strlen($colorCode);
- if (ereg ($pattern, $colorCode) && $length == 7) {
- return true;
- } else {
- return false;
- }
- }
+ $pattern = "/#[a-fA-F0-9]{6}/";
+ $length = strlen($colorCode);
+ if(preg_match($pattern, $colorCode) && $length == 7)
+ return true;
+ else
+ return false;
+ }
}
-?>
\ No newline at end of file
Modified: plugins/branches/lifetype-1.2/tagcloud/plugintagcloud.class.php
===================================================================
--- plugins/branches/lifetype-1.2/tagcloud/plugintagcloud.class.php 2020-10-14 06:14:15 UTC (rev 7250)
+++ plugins/branches/lifetype-1.2/tagcloud/plugintagcloud.class.php 2020-10-15 02:23:43 UTC (rev 7251)
@@ -30,7 +30,7 @@
lt_include( PLOG_CLASS_PATH."class/database/db.class.php" );
$this->db =& Db::getDb();
$this->id = "tagcloud";
- $this->version = "20110410";
+ $this->version = "20201014";
$this->locales = Array("en_UK");
More information about the pLog-svn
mailing list