<div dir="ltr">-----BEGIN PGP SIGNED MESSAGE-----<br>Hash: SHA1<br><br>Hello,<br>&nbsp;&nbsp; When the plugin successfully imports a feed, it goes to<br>the DefaultView.&nbsp; So I can believe that you are getting that<br>warning.&nbsp; ( I assume that $posts is null)<br>
<br>&nbsp;&nbsp; The link to the rss item comes straight out of LifeType&#39;s<br>xml parser.&nbsp; If you look at the feed from google reader, does the<br>url look good there?<br><br>&nbsp;&nbsp; What you have described is exactly what I want to use it<br>
for.&nbsp; But there is a problem with the google reader feed.&nbsp;<br>Google doesn&#39;t have any indication of when an item was &quot;shared&quot; in the<br>feed itself.&nbsp; Without that, it is hard to generate the list of<br>the items that were shared in the last 24 hours.&nbsp; I am planning<br>
on working on a workaround for this, when I get a chance.<br><br>&nbsp;&nbsp; I have written up how I am using it here:<br><br><a href="http://www.paulstimesink.com/post/2008/08/21/posting_daily_activity">http://www.paulstimesink.com/post/2008/08/21/posting_daily_activity</a><br>
<br>Also, this plugin will not create a post, if there are no items in the<br>feed.&nbsp; The way that I was planning on using this is to pass a<br>feed that only has items added in the last 24 hours in it.&nbsp; I am<br>using Yahoo Pipes to do that now for my delicious items.<br>
<br><br><br>- --Paul<br><br><br>-----BEGIN PGP SIGNATURE-----<br>Version: GnuPG v1.4.6 (GNU/Linux)<br>Comment: <a href="http://getfiregpg.org">http://getfiregpg.org</a><br><br>iD8DBQFIvXzwQIx6KJgT81kRArZZAKCJW+fqqrrwOMlmy/2n45Ji0sYwVQCfS/8U<br>
d3wxanQ34LKO4jNlLbvqYNk=<br>=x2VX<br>-----END PGP SIGNATURE-----<br><div class="gmail_quote">On Mon, Sep 1, 2008 at 7:43 PM, Jon Daley <span dir="ltr">&lt;<a href="mailto:plogworld@jon.limedaley.com">plogworld@jon.limedaley.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I haven&#39;t looked into it yet, but I got this error every time I import the feed (google reader shared)<br>

<br>
Warning: Invalid argument supplied for foreach() in /home/jondaley/www/plog/class/view/defaultview.class.php on line 41<br>
<br>
Also, it is parsing the RSS feed incorrectly, and generating text like this:<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;&lt;li&gt;&lt;a href=&quot;<a href="http://blog.wired.com/geekdad/2008/09/geekdad-puzzle.htmlhttp://blog.wired.com/geekdad/" target="_blank">http://blog.wired.com/geekdad/2008/09/geekdad-puzzle.htmlhttp://blog.wired.com/geekdad/</a>&quot;&gt;GeekDad Puzzle of the Week: Cross Number PrimeGeekdad &lt;/a&gt;&lt;/li&gt;<br>

<br>
You mentioned you use it for google reader, so it seems odd that it would fail for me?<br>
<br>
Lastly, the ideal way to make it work with google reader is to setup a daily cron job to look at a feed url that only shows posts on that day, and it is smart enough to not generate a post if there aren&#39;t any links? i.e. if I simply give it my google reader url, then it will always generate links for all of my shared items each time, even though it already displayed them last time, right?<br>

<br>
Looks like I might have some work to make this work how I want it to, but a good start for me anyway.<div><div></div><div class="Wj3C7c"><br>
<br>
On Thu, 21 Aug 2008, Paul Westbrook wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello,<br>
 &nbsp;This creates a new post everytime the &quot;import feed action&quot; gets run<br>
(assuming that the right access key is specified).<br>
<br>
 &nbsp;The reason that I wrote this was to have a way to create a daily post that<br>
contains links to my &quot;shared&quot; items. &nbsp;For example, my <a href="http://del.icio.us" target="_blank">del.icio.us</a> bookmarks<br>
and Google Reader Shared items. &nbsp;This timing is why I rely on an external<br>
action to call the plugin.<br>
<br>
--Paul<br>
<br>
On Wednesday 20 August 2008 08:15:59 Jon Daley wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
 &nbsp; &nbsp; &nbsp; &nbsp;Very nice. &nbsp;I have been aiming to do something like this. &nbsp;How<br>
does this work - it has one post that gets updated? &nbsp;Or it makes a new<br>
post with the same title every time the rss feed changes?<br>
<br>
On Wed, 20 Aug 2008, <a href="mailto:pwestbro@devel.lifetype.net" target="_blank">pwestbro@devel.lifetype.net</a> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Author: pwestbro<br>
Date: 2008-08-20 17:48:02 -0400 (Wed, 20 Aug 2008)<br>
New Revision: 6714<br>
<br>
Added:<br>
 &nbsp;plugins/branches/lifetype-1.2/rssimport/<br>
 &nbsp;plugins/branches/lifetype-1.2/rssimport/README.txt<br>
 &nbsp;plugins/branches/lifetype-1.2/rssimport/class/<br>
 &nbsp;plugins/branches/lifetype-1.2/rssimport/class/action/<br>
<br>
plugins/branches/lifetype-1.2/rssimport/class/action/importrssfeedaction.<br>
class.php<br>
plugins/branches/lifetype-1.2/rssimport/class/action/pluginrssimportconfi<br>
gaction.class.php<br>
plugins/branches/lifetype-1.2/rssimport/class/action/pluginrssimportupdat<br>
econfigaction.class.php<br>
plugins/branches/lifetype-1.2/rssimport/class/view/<br>
<br>
plugins/branches/lifetype-1.2/rssimport/class/view/pluginrssimportconfigv<br>
iew.class.php plugins/branches/lifetype-1.2/rssimport/locale/<br>
 &nbsp;plugins/branches/lifetype-1.2/rssimport/locale/locale_en_UK.php<br>
 &nbsp;plugins/branches/lifetype-1.2/rssimport/pluginrssimport.class.php<br>
 &nbsp;plugins/branches/lifetype-1.2/rssimport/templates/<br>
 &nbsp;plugins/branches/lifetype-1.2/rssimport/templates/rssimport.template<br>
Log:<br>
The rssimport plugin creates a post with the content of an rss feed. &nbsp;One<br>
use of this is to create a daily post of online activities &nbsp;(i.e. posted<br>
Flickr photos, Twitter tweets, delicious bookmarks, Google Reader shared<br>
items.)<br>
<br>
<br>
[USAGES]:<br>
1. Upload: Upload all the extract files and directories to<br>
 &nbsp;$LifeType_Install_Dir/plugin/rssimport<br>
2. Specify the url to the rss feed to be imported<br>
3. Specify a title for the generated posts<br>
4. Speciy a category for the generated posts<br>
5. (Optionally) Specify a different access key needed to make a post<br>
6. Press Update<br>
<br>
Now when you access the &quot;Url to import feed&quot;, and there are a post will<br>
be created<br>
<br>
<br>
<br>
<br>
Added: plugins/branches/lifetype-1.2/rssimport/README.txt<br>
<br>
</blockquote></blockquote>
===================================================================<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

--- plugins/branches/lifetype-1.2/rssimport/README.txt<br>
 &nbsp; &nbsp; (rev 0) +++<br>
plugins/branches/lifetype-1.2/rssimport/README.txt &nbsp; &nbsp; &nbsp;2008-08-20 21:48:02<br>
UTC (rev 6714) @@ -0,0 +1,52 @@<br>
+[DESCRIPTION]<br>
+The rssimport plugin creates a post with the content of an rss feed.<br>
One +use of this is to create a daily post of online activities &nbsp;(i.e.<br>
posted +Flickr photos, Twitter tweets, delicious bookmarks, Google Reader<br>
shared +items.)<br>
+<br>
+[USAGES]:<br>
+1. Upload: Upload all the extract files and directories to<br>
+ &nbsp; $LifeType_Install_Dir/plugin/rssimport<br>
+2. Specify the url to the rss feed to be imported<br>
+3. Specify a title for the generated posts<br>
+4. Speciy a category for the generated posts<br>
+5. (Optionally) Specify a different access key needed to make a post<br>
+6. Press Update<br>
+<br>
+Now when you access the &quot;Url to import feed&quot;, and there are a post will<br>
be created +<br>
+<br>
+[ADVANCED USAGES]<br>
+Creating a rss feed for the last 24 hours of posts.<br>
+<br>
+ &nbsp; &nbsp;This Yahoo Pipe will filter a feed by date<br>
+ &nbsp; &nbsp;<a href="http://pipes.yahoo.com/pipes/pipe.info?_id=SJDIxkAa3BG7s6ZYmLokhQ" target="_blank">http://pipes.yahoo.com/pipes/pipe.info?_id=SJDIxkAa3BG7s6ZYmLokhQ</a><br>
+<br>
+Automatically creating posts<br>
+<br>
+ &nbsp; &nbsp;On Linux and Max OS X, it is easy to schedule access to the &quot;Url to<br>
+ &nbsp; &nbsp;import feed&quot; with cron. &nbsp;For a cron tutorial<br>
+ &nbsp; &nbsp;<a href="http://www.clickmojo.com/code/cron-tutorial.html" target="_blank">http://www.clickmojo.com/code/cron-tutorial.html</a><br>
+<br>
+<br>
+[SECURITY CONCERNS]<br>
+The rssimport plugin does allow external processes to create posts in a<br>
+LifeType install. &nbsp;When first configured, the rssimport plugin creates a<br>
+random, relatively unique accessKey. &nbsp;This key is required to be<br>
specified +in a parameter of the url in order for a post to be created.<br>
+<br>
+It is possible, that if the accessKey is discovered, that a third party<br>
can +create posts. &nbsp;The third party will not be able to specify the<br>
content of +these posts, as the feed url is in retrieved from the plugin<br>
config. +<br>
+Followon release may add the following addition enhancement.<br>
+ &nbsp; 1) Allow a list of ip address/host names to be specified where<br>
posting is + &nbsp; allowed<br>
+<br>
+<br>
+<br>
+[TODO]<br>
+1) Add the ability to specify a list of the ip address that are<br>
permitted to create the posts. +2) Add an option to include the<br>
description of the rss items or a summary +int the pos<br>
+3) Change the title field, to not require characters to be escaped<br>
<br>
Added:<br>
plugins/branches/lifetype-1.2/rssimport/class/action/importrssfeedaction.<br>
class.php<br>
<br>
</blockquote></blockquote>
===================================================================<br>
---<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

plugins/branches/lifetype-1.2/rssimport/class/action/importrssfeedaction.<br>
class.php &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (rev 0) +++<br>
plugins/branches/lifetype-1.2/rssimport/class/action/importrssfeedaction.<br>
class.php &nbsp; &nbsp; &nbsp; 2008-08-20 21:48:02 UTC (rev 6714) @@ -0,0 +1,157 @@<br>
+&lt;?php<br>
+<br>
+ &nbsp; &nbsp;lt_include( PLOG_CLASS_PATH.&quot;class/action/blogaction.class.php&quot; );<br>
+ &nbsp; &nbsp;lt_include(<br>
PLOG_CLASS_PATH.&quot;class/view/plugintemplatedview.class.php&quot; ); +<br>
lt_include( PLOG_CLASS_PATH.&quot;class/view/errorview.class.php&quot; ); +<br>
+ &nbsp; &nbsp;class ImportRssFeedAction extends BlogAction<br>
+ &nbsp; &nbsp;{<br>
+ &nbsp; &nbsp; &nbsp; var $_enteredPassword;<br>
+ &nbsp; &nbsp; &nbsp; var $_html;<br>
+<br>
+ &nbsp; &nbsp; &nbsp; &nbsp;function ImportRssFeedAction( $actionInfo, $request )<br>
+ &nbsp; &nbsp; &nbsp; &nbsp;{<br>
+<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$this-&gt;BlogAction( $actionInfo, $request );<br>
+ &nbsp; &nbsp; &nbsp; &nbsp;}<br>
+<br>
+ &nbsp; &nbsp; &nbsp; &nbsp;function perform()<br>
+ &nbsp; &nbsp; &nbsp; &nbsp;{<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// Get and confirm the password<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;_enteredPassword = &nbsp;$this-&gt;_request-&gt;getValue( &quot;accessKey&quot;<br>
); +<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;_html = &quot;&quot;;<br>
+<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Check the ip address to make sure that it is the list of<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // allowd ip address<br>
+<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $blogSettings = $this-&gt;_blogInfo-&gt;getSettings();<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ($blogSettings-&gt;getValue( &quot;plugin_rssimport_enabled&quot; ) == FALSE)<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;_view = new ErrorView( $this-&gt;_blogInfo );<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;_view-&gt;setValue( &quot;message&quot;, &quot;Plugin not enabled&quot; );<br>
+<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;setCommonData();<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return true;<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>
+<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $feedurl = $blogSettings-&gt;getValue( &quot;plugin_rssimport_feedurl&quot; );<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $accessKey = $blogSettings-&gt;getValue( &quot;plugin_rssimport_accessKey&quot;<br>
); +// &nbsp; &nbsp; &nbsp;$accessHosts = $blogSettings-&gt;getValue(<br>
&quot;plugin_rssimport_accessHosts&quot; ); + &nbsp; &nbsp; &nbsp; &nbsp; $titleFormat =<br>
$blogSettings-&gt;getValue( &quot;plugin_rssimport_titleFormat&quot; ); +<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Compare the access key to that which is in the accessKey<br>
parameter + &nbsp; &nbsp; &nbsp; &nbsp; if ($accessKey != $this-&gt;_enteredPassword)<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Passwords don&#39;t match<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;_view = new ErrorView( $this-&gt;_blogInfo );<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;_view-&gt;setValue( &quot;message&quot;, &quot;Incorrect Access Key&quot; );<br>
+<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;setCommonData();<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return true;<br>
+<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>
+<br>
+// &nbsp; &nbsp; &nbsp; &nbsp; if ( $accessHosts != null &amp;&amp; $accessHosts != &quot;&quot; )<br>
+// &nbsp; &nbsp; &nbsp; &nbsp; {<br>
+//<br>
+// &nbsp; &nbsp; &nbsp; &nbsp; }<br>
+<br>
+<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lt_include(<br>
PLOG_CLASS_PATH.&quot;class/xml/rssparser/rssparser.class.php&quot; ); +<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $parser = new RSSParser();<br>
+<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ( $parser-&gt;parse($feedurl) == FALSE )<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // failed to parse the feed<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;_view = new ErrorView( $this-&gt;_blogInfo );<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;_view-&gt;setValue( &quot;message&quot;, &quot;Failed to parse feed&quot; );<br>
+<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;setCommonData();<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return true;<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>
+<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $items = $parser-&gt;getItems();<br>
+<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Now add each of the items to our html documen that we are<br>
building + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;foreach ($items as $item) {<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;addItem($item);<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>
+<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ( $this-&gt;_html == &quot;&quot; )<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // There were no items<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;_view = new ErrorView( $this-&gt;_blogInfo );<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;_view-&gt;setValue( &quot;message&quot;, &quot;No items in feed&quot; );<br>
+<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;setCommonData();<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return true;<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>
+<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Now create an article with the html as the body,<br>
+<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lt_include( PLOG_CLASS_PATH.&#39;class/dao/articles.class.php&#39; );<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $articles = new Articles();<br>
+<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$postText = Textfilter::xhtmlize(&quot;&lt;ul&gt;&quot; . $this-&gt;_html .<br>
&quot;&lt;/ul&gt;&quot;); +<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $postTitle = date($titleFormat);<br>
+<br>
+<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // XXX_PW This should pull the category from the settings<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Get the default category<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lt_include(<br>
PLOG_CLASS_PATH.&#39;class/dao/articlecategories.class.php&#39; ); +<br>
$category = new ArticleCategories();<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$cats =<br>
$category-&gt;getBlogCategories($this-&gt;_blogInfo-&gt;getId()); +<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // some protection again blogs without categories<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if( !$cats ) {<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;_view = new ErrorView( $this-&gt;_blogInfo );<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;_view-&gt;setValue( &quot;message&quot;, &quot;Error getting categories&quot; );<br>
+<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;setCommonData();<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;return true;<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<br>
+<br>
+<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $idCategory = $blogSettings-&gt;getValue(<br>
&quot;plugin_rssimport_article_category_id&quot; ); +<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$article &nbsp;= new Article( $postTitle,<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$postText,<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Array( $idCategory ), // catid<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;_blogInfo-&gt;getOwner(),<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$this-&gt;_blogInfo-&gt;getId(),<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;POST_STATUS_PUBLISHED,<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0 );<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$article-&gt;setDateObject( new Timestamp());<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$article-&gt;setCommentsEnabled( true );<br>
+<br>
+<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // add the article to the db, finally<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if( $articles-&gt;addArticle( $article )) {<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lt_include( PLOG_CLASS_PATH.&quot;class/view/defaultview.class.php&quot;<br>
); + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$this-&gt;_view = new DefaultView( $this-&gt;_blogInfo );<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else {<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;_view = new ErrorView( $this-&gt;_blogInfo );<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;_view-&gt;setValue( &quot;message&quot;, &quot;Error adding article to the<br>
database&quot; ); + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>
+<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$this-&gt;setCommonData();<br>
+<br>
+<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;return true;<br>
+ &nbsp; &nbsp; &nbsp; &nbsp;}<br>
+<br>
+ &nbsp; &nbsp; &nbsp; function addItem( $item )<br>
+ &nbsp; &nbsp; &nbsp; {<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Add this item to the html text<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;_html .= &quot;&lt;li&gt;&quot;;<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;_html .= &quot;&lt;a href=\&quot;&quot; . $item-&gt;getLink() . &quot;\&quot;&gt;&quot; .<br>
$item-&gt;getTitle() . &quot; &lt;/a&gt;&quot;; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$this-&gt;_html .= &quot;&lt;/li&gt;&quot;;<br>
+ &nbsp; &nbsp; &nbsp; }<br>
+<br>
+<br>
+ &nbsp; &nbsp;}<br>
+?&gt;<br>
<br>
Added:<br>
plugins/branches/lifetype-1.2/rssimport/class/action/pluginrssimportconfi<br>
gaction.class.php<br>
<br>
</blockquote></blockquote>
===================================================================<br>
---<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

plugins/branches/lifetype-1.2/rssimport/class/action/pluginrssimportconfi<br>
gaction.class.php &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (rev 0) +++<br>
plugins/branches/lifetype-1.2/rssimport/class/action/pluginrssimportconfi<br>
gaction.class.php &nbsp; &nbsp; &nbsp; 2008-08-20 21:48:02 UTC (rev 6714) @@ -0,0 +1,45 @@<br>
+&lt;?php<br>
+<br>
+ &nbsp; &nbsp;/*<br>
+ &nbsp; &nbsp;Copyright 2006, 2008 Paul Westbrook (<a href="mailto:paul@westbrooks.org" target="_blank">paul@westbrooks.org</a>)<br>
+<br>
+ &nbsp; &nbsp;This program is free software; you can redistribute it and/or modify<br>
+ &nbsp; &nbsp;it under the terms of the GNU General Public License as published by<br>
+ &nbsp; &nbsp;the Free Software Foundation; either version 2 of the License, or<br>
+ &nbsp; &nbsp;(at your option) any later version.<br>
+<br>
+ &nbsp; &nbsp;This program is distributed in the hope that it will be useful,<br>
+ &nbsp; &nbsp;but WITHOUT ANY WARRANTY; without even the implied warranty of<br>
+ &nbsp; &nbsp;MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. &nbsp;See the<br>
+ &nbsp; &nbsp;GNU General Public License for more details.<br>
+<br>
+ &nbsp; &nbsp;You should have received a copy of the GNU General Public License<br>
+ &nbsp; &nbsp;along with this program; if not, write to the Free Software<br>
+ &nbsp; &nbsp;Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA &nbsp;02111-1307<br>
&nbsp;USA + &nbsp; &nbsp;*/<br>
+<br>
+<br>
+ &nbsp; &nbsp; &nbsp; lt_include( PLOG_CLASS_PATH.&quot;class/action/admin/adminaction.class.php&quot;<br>
); + &nbsp; &nbsp;lt_include(<br>
PLOG_CLASS_PATH.&quot;plugins/rssimport/class/view/pluginrssimportconfigview.c<br>
lass.php&quot; ); +<br>
+ &nbsp; &nbsp; &nbsp; /**<br>
+ &nbsp; &nbsp; &nbsp; &nbsp;* shows a form with the current configuration<br>
+ &nbsp; &nbsp; &nbsp; &nbsp;*/<br>
+ &nbsp; &nbsp; &nbsp; class PluginRssImportConfigAction extends AdminAction<br>
+ &nbsp; &nbsp; &nbsp; {<br>
+<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; function PluginRssImportConfigAction( $actionInfo, $request )<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;AdminAction( $actionInfo, $request );<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>
+<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; function perform()<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;_view = new PluginRssImportConfigView( $this-&gt;_blogInfo<br>
); +<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;setCommonData();<br>
+<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return true;<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>
+ &nbsp; &nbsp; &nbsp; }<br>
+?&gt;<br>
<br>
Added:<br>
plugins/branches/lifetype-1.2/rssimport/class/action/pluginrssimportupdat<br>
econfigaction.class.php<br>
<br>
</blockquote></blockquote>
===================================================================<br>
---<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

plugins/branches/lifetype-1.2/rssimport/class/action/pluginrssimportupdat<br>
econfigaction.class.php &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (rev 0) +++<br>
plugins/branches/lifetype-1.2/rssimport/class/action/pluginrssimportupdat<br>
econfigaction.class.php 2008-08-20 21:48:02 UTC (rev 6714) @@ -0,0 +1,165<br>
@@<br>
+&lt;?php<br>
+<br>
+ &nbsp; &nbsp;/*<br>
+ &nbsp; &nbsp;Copyright 2006, 2008 Paul Westbrook (<a href="mailto:paul@westbrooks.org" target="_blank">paul@westbrooks.org</a>)<br>
+<br>
+ &nbsp; &nbsp;This program is free software; you can redistribute it and/or modify<br>
+ &nbsp; &nbsp;it under the terms of the GNU General Public License as published by<br>
+ &nbsp; &nbsp;the Free Software Foundation; either version 2 of the License, or<br>
+ &nbsp; &nbsp;(at your option) any later version.<br>
+<br>
+ &nbsp; &nbsp;This program is distributed in the hope that it will be useful,<br>
+ &nbsp; &nbsp;but WITHOUT ANY WARRANTY; without even the implied warranty of<br>
+ &nbsp; &nbsp;MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. &nbsp;See the<br>
+ &nbsp; &nbsp;GNU General Public License for more details.<br>
+<br>
+ &nbsp; &nbsp;You should have received a copy of the GNU General Public License<br>
+ &nbsp; &nbsp;along with this program; if not, write to the Free Software<br>
+ &nbsp; &nbsp;Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA &nbsp;02111-1307<br>
&nbsp;USA + &nbsp; &nbsp;*/<br>
+<br>
+ &nbsp; &nbsp; &nbsp; lt_include( PLOG_CLASS_PATH.&quot;class/action/admin/adminaction.class.php&quot;<br>
); + &nbsp; &nbsp;lt_include(<br>
PLOG_CLASS_PATH.&quot;plugins/rssimport/class/view/pluginrssimportconfigview.c<br>
lass.php&quot; ); + &nbsp;lt_include(<br>
PLOG_CLASS_PATH.&quot;class/data/validator/httpurlvalidator.class.php&quot; );<br>
+ &nbsp; &nbsp; &nbsp; lt_include(<br>
PLOG_CLASS_PATH.&quot;class/data/validator/stringvalidator.class.php&quot; ); +<br>
+<br>
+ &nbsp; &nbsp; &nbsp; /**<br>
+ &nbsp; &nbsp; &nbsp; &nbsp;* updates the plugin configuration<br>
+ &nbsp; &nbsp; &nbsp; &nbsp;*/<br>
+ &nbsp; &nbsp; &nbsp; class PluginRssImportUpdateConfigAction extends AdminAction<br>
+ &nbsp; &nbsp; &nbsp; {<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var $_pluginEnabled;<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var $_feedurl;<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var $_accessKey;<br>
+// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var $_accessHosts;<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var $_titleFormat;<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var $_categoryId;<br>
+<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; function PluginRssImportUpdateConfigAction( $actionInfo, $request )<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;AdminAction( $actionInfo, $request );<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>
+<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; function validate()<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br>
+<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;_pluginEnabled = $this-&gt;_request-&gt;getValue( &quot;pluginEnabled&quot; );<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;_pluginEnabled = ($this-&gt;_pluginEnabled != &quot;&quot; );<br>
+<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;_feedurl = $this-&gt;_request-&gt;getValue( &quot;feedurl&quot; );<br>
+<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;_accessKey = $this-&gt;_request-&gt;getValue( &quot;accessKey&quot; );<br>
+<br>
+// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;_accessHosts = $this-&gt;_request-&gt;getValue( &quot;accessHosts&quot; );<br>
+<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;_titleFormat = $this-&gt;_request-&gt;getValue( &quot;titleFormat&quot; );<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;_categoryId = $this-&gt;_request-&gt;getValue( &quot;categoryId&quot; );<br>
+<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // This should validate the url<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $val = new HttpUrlValidator();<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if( !$val-&gt;validate($this-&gt;_feedurl) ) {<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;_view = new PluginRssImportConfigView(<br>
$this-&gt;_blogInfo ); + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;_view-&gt;setErrorMessage(<br>
$this-&gt;_locale-&gt;tr(&quot;rssimport_error_url&quot;)); +<br>
$this-&gt;setCommonData();<br>
+<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return false;<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>
+<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Make sure that key is specied<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (!$this-&gt;_accessKey || $this-&gt;_accessKey == &quot;&quot;)<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;_view = new PluginRssImportConfigView(<br>
$this-&gt;_blogInfo ); + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;_view-&gt;setErrorMessage(<br>
$this-&gt;_locale-&gt;tr(&quot;rssimport_error_missing_accesskey&quot;)); +<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$this-&gt;setCommonData();<br>
+<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return false;<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>
+<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // This should validate the url<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $val = new StringValidator();<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if( !$val-&gt;validate($this-&gt;_accessKey) ) {<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;_view = new PluginRssImportConfigView(<br>
$this-&gt;_blogInfo ); + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;_view-&gt;setErrorMessage(<br>
$this-&gt;_locale-&gt;tr(&quot;rssimport_error_invalid_accesskey&quot;)); +<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$this-&gt;setCommonData();<br>
+<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return false;<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>
+<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // This should validate the url<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $val = new StringValidator();<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if( !$val-&gt;validate($this-&gt;_accessKey) ) {<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;_view = new PluginRssImportConfigView(<br>
$this-&gt;_blogInfo ); + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;_view-&gt;setErrorMessage(<br>
$this-&gt;_locale-&gt;tr(&quot;rssimport_error_invalid_accesskey&quot;)); +<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$this-&gt;setCommonData();<br>
+<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return false;<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>
+<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Make sure that titleFormat is specied<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (!$this-&gt;_titleFormat || $this-&gt;_titleFormat == &quot;&quot;)<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;_view = new PluginRssImportConfigView(<br>
$this-&gt;_blogInfo ); + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;_view-&gt;setErrorMessage(<br>
$this-&gt;_locale-&gt;tr(&quot;rssimport_error_missing_titleformat&quot;)); +<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$this-&gt;setCommonData();<br>
+<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return false;<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>
+<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // This should validate the url<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $val = new StringValidator();<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if( !$val-&gt;validate($this-&gt;_titleFormat) ) {<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;_view = new PluginRssImportConfigView(<br>
$this-&gt;_blogInfo ); + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;_view-&gt;setErrorMessage(<br>
$this-&gt;_locale-&gt;tr(&quot;rssimport_error_invalid_titleformat&quot;)); +<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$this-&gt;setCommonData();<br>
+<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return false;<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>
+<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return true;<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>
+<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; function perform()<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // update the plugin configurations to blog setting<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $blogSettings = $this-&gt;_blogInfo-&gt;getSettings();<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $blogSettings-&gt;setValue( &quot;plugin_rssimport_enabled&quot;,<br>
$this-&gt;_pluginEnabled ); +<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $blogSettings-&gt;setValue( &quot;plugin_rssimport_feedurl&quot;, $this-&gt;_feedurl<br>
); +<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $blogSettings-&gt;setValue( &quot;plugin_rssimport_accessKey&quot;,<br>
$this-&gt;_accessKey); +<br>
+// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $blogSettings-&gt;setValue( &quot;plugin_rssimport_accessHosts&quot;,<br>
$this-&gt;_accessHosts); +<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $blogSettings-&gt;setValue( &quot;plugin_rssimport_titleFormat&quot;,<br>
$this-&gt;_titleFormat); +<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $blogSettings-&gt;setValue( &quot;plugin_rssimport_article_category_id&quot;,<br>
$this-&gt;_categoryId ); + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;_blogInfo-&gt;setSettings( $blogSettings );<br>
+<br>
+<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // save the blogs settings<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $blogs = new Blogs();<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if( !$blogs-&gt;updateBlog( $this-&gt;_blogInfo )) {<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;_view = new PluginRssImportConfigView(<br>
$this-&gt;_blogInfo ); + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;_view-&gt;setErrorMessage(<br>
$this-&gt;_locale-&gt;tr(&quot;error_updating_settings&quot;)); +<br>
$this-&gt;setCommonData();<br>
+<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return false;<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>
+<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // if everything went ok...<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;_blogInfo-&gt;setSettings( $blogSettings );<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;_session-&gt;setValue( &quot;blogInfo&quot;, $this-&gt;_blogInfo );<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;saveSession();<br>
+<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;_view = new PluginRssImportConfigView( $this-&gt;_blogInfo );<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;_view-&gt;setSuccessMessage(<br>
$this-&gt;_locale-&gt;tr(&quot;rssimport_settings_saved_ok&quot;));<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;setCommonData();<br>
+<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // clear the cache<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CacheControl::resetBlogCache( $this-&gt;_blogInfo-&gt;getId());<br>
+<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return true;<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>
+ &nbsp; &nbsp; &nbsp; }<br>
+?&gt;<br>
<br>
Added:<br>
plugins/branches/lifetype-1.2/rssimport/class/view/pluginrssimportconfigv<br>
iew.class.php<br>
<br>
</blockquote></blockquote>
===================================================================<br>
---<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

plugins/branches/lifetype-1.2/rssimport/class/view/pluginrssimportconfigv<br>
iew.class.php &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (rev 0) +++<br>
plugins/branches/lifetype-1.2/rssimport/class/view/pluginrssimportconfigv<br>
iew.class.php &nbsp; 2008-08-20 21:48:02 UTC (rev 6714) @@ -0,0 +1,94 @@<br>
+&lt;?php<br>
+ &nbsp; &nbsp;/*<br>
+ &nbsp; &nbsp;Copyright 2006, 2008 Paul Westbrook (<a href="mailto:paul@westbrooks.org" target="_blank">paul@westbrooks.org</a>)<br>
+<br>
+ &nbsp; &nbsp;This program is free software; you can redistribute it and/or modify<br>
+ &nbsp; &nbsp;it under the terms of the GNU General Public License as published by<br>
+ &nbsp; &nbsp;the Free Software Foundation; either version 2 of the License, or<br>
+ &nbsp; &nbsp;(at your option) any later version.<br>
+<br>
+ &nbsp; &nbsp;This program is distributed in the hope that it will be useful,<br>
+ &nbsp; &nbsp;but WITHOUT ANY WARRANTY; without even the implied warranty of<br>
+ &nbsp; &nbsp;MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. &nbsp;See the<br>
+ &nbsp; &nbsp;GNU General Public License for more details.<br>
+<br>
+ &nbsp; &nbsp;You should have received a copy of the GNU General Public License<br>
+ &nbsp; &nbsp;along with this program; if not, write to the Free Software<br>
+ &nbsp; &nbsp;Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA &nbsp;02111-1307<br>
&nbsp;USA + &nbsp; &nbsp;*/<br>
+<br>
+<br>
+ &nbsp; &nbsp; &nbsp; lt_include(<br>
PLOG_CLASS_PATH.&quot;class/view/admin/adminplugintemplatedview.class.php&quot; );<br>
+<br>
+ &nbsp; &nbsp; &nbsp; /**<br>
+ &nbsp; &nbsp; &nbsp; &nbsp;* implements the main view of the feed reader plugin<br>
+ &nbsp; &nbsp; &nbsp; &nbsp;*/<br>
+ &nbsp; &nbsp; &nbsp; class PluginRssImportConfigView extends AdminPluginTemplatedView<br>
+ &nbsp; &nbsp; &nbsp; {<br>
+<br>
+<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; function PluginRssImportConfigView( $blogInfo )<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;AdminPluginTemplatedView( $blogInfo, &quot;rssimport&quot;, &quot;rssimport&quot;<br>
); +<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>
+<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; function render()<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // load some configuration settings<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $blogSettings = $this-&gt;_blogInfo-&gt;getSettings();<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $pluginEnabled = $blogSettings-&gt;getValue( &quot;plugin_rssimport_enabled&quot;<br>
); +<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $feedurl = $blogSettings-&gt;getValue( &quot;plugin_rssimport_feedurl&quot; );<br>
+<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $accessKey = $blogSettings-&gt;getValue( &quot;plugin_rssimport_accessKey&quot; );<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // If accessKey is not set, generate a new one<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ( $accessKey == null || $accessKey == &quot;&quot; )<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $rg =&amp; $this-&gt;_blogInfo-&gt;getBlogRequestGenerator();<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $rg-&gt;blogLink();<br>
+<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Generate a unique accessKey for this plugin<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $accessKey = md5($rg-&gt;blogLink() . time());<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>
+<br>
+// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $accessHosts = $blogSettings-&gt;getValue(<br>
&quot;plugin_rssimport_accessHosts&quot; ); +<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Get the title format string<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $titleFormat = $blogSettings-&gt;getValue(<br>
&quot;plugin_rssimport_titleFormat&quot; ); + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ( $titleFormat == null ||<br>
$titleFormat == &quot;&quot; )<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $locale = $this-&gt;_blogInfo-&gt;getLocale();<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $titleFormat = $locale-&gt;tr(&quot;rssimport_default_titleformat&quot;);<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>
+<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $categoryId = $blogSettings-&gt;getValue(<br>
&quot;plugin_rssimport_article_category_id&quot; ); +<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // fetch all the current article categories<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lt_include( PLOG_CLASS_PATH.&quot;class/dao/articlecategories.class.php&quot;);<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $categories = new ArticleCategories();<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $blogCategories = $categories-&gt;getBlogCategories(<br>
$this-&gt;_blogInfo-&gt;getId()); +<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // get the update url from rssimport plugin and pass to the plugin<br>
setting view + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$plugins = $this-&gt;_pm-&gt;getPlugins();<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;setValue( &#39;importRssUrl&#39;,<br>
$plugins[&#39;rssimport&#39;]-&gt;getImportRssUrl($accessKey) ); +<br>
+<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // create a view and export the settings to the template<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;setValue( &quot;pluginEnabled&quot;, $pluginEnabled );<br>
+<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;setValue( &quot;feedurl&quot;, $feedurl );<br>
+<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;setValue( &quot;accessKey&quot;, $accessKey );<br>
+<br>
+// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;setValue( &quot;accessHosts&quot;, $accessHosts );<br>
+<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;setValue( &quot;titleFormat&quot;, $titleFormat );<br>
+<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;setValue( &quot;categoryId&quot;, $categoryId );<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;setValue( &quot;categories&quot;, $blogCategories );<br>
+<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; parent::render();<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>
+ &nbsp; &nbsp; &nbsp; }<br>
+?&gt;<br>
<br>
Added: plugins/branches/lifetype-1.2/rssimport/locale/locale_en_UK.php<br>
<br>
</blockquote></blockquote>
===================================================================<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

--- plugins/branches/lifetype-1.2/rssimport/locale/locale_en_UK.php<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(rev 0) +++<br>
plugins/branches/lifetype-1.2/rssimport/locale/locale_en_UK.php 2008-08-2<br>
0 21:48:02 UTC (rev 6714) @@ -0,0 +1,32 @@<br>
+&lt;?php<br>
+$messages[&quot;manageIntegrationPlugins&quot;] = &quot;Integration Management&quot;;<br>
+$messages[&quot;rssimport&quot;] = &quot;RSS Import&quot;;<br>
+<br>
+$messages[&quot;rssimport_plugin_enabled&quot;] = &quot;Enable this plugin&quot;;<br>
+$messages[&quot;rssimport_accessKey&quot;] = &quot;Access Key that is required to<br>
import a feed&quot;; +$messages[&quot;rssimport_accessHosts&quot;] = &quot;IP address that<br>
are allowed to trigger a feed to be imported (leave blank to allow allow<br>
all hosts)&quot;; +$messages[&quot;rssimport_feedurl&quot;] = &quot;Url of the feed to<br>
fetch&quot;;<br>
+$messages[&quot;rssimport_titleformat&quot;] = &quot;Format string that should be used<br>
for the titles of the new posts. &nbsp;See &lt;a<br>
href=&#39;<a href="http://us3.php.net/manual/en/function.date.php" target="_blank">http://us3.php.net/manual/en/function.date.php</a>&#39;&gt;this page&lt;/a&gt; for<br>
format parameters&quot;; +$messages[&quot;rssimport_articles_categories_help&quot;] =<br>
&quot;In which category would you like articles posted to be categorized?&quot;;<br>
+$messages[&quot;rssimport_plugin&quot;] = &quot;RSS Import Plugin&quot;;<br>
+<br>
+$messages[&quot;detail&quot;] = &quot;Detail&quot;;<br>
+<br>
+$messages[&quot;rssimport_settings_saved_ok&quot;] = &quot;RSS Import settings saved<br>
successfully!&quot;; +$messages[&quot;rssimport_error_url&quot;] = &quot;Invalid url<br>
specified &quot;;<br>
+$messages[&quot;rssimport_error_missing_accesskey&quot;] = &quot;Access Key needs to be<br>
specified &quot;; +$messages[&quot;rssimport_error_invalid_accesskey&quot;] = &quot;Invalid<br>
Access Key&quot;; +$messages[&quot;rssimport_error_missing_titleformat&quot;] = &quot;Title<br>
Format needs to be specified&quot;;<br>
+$messages[&quot;rssimport_error_invalid_titleformat&quot;] = &quot;Invalid Title<br>
Format&quot;; +<br>
+<br>
+$messages[&quot;label_configuration&quot;] = &quot;Configuration&quot;;<br>
+$messages[&quot;label_enable&quot;] = &quot;Enable&quot;;<br>
+$messages[&quot;label_rssimport_feedurl&quot;] = &quot;Feed URL&quot;;<br>
+$messages[&quot;label_rssimport_accessKey&quot;] = &quot;Access Key&quot;;<br>
+$messages[&quot;label_rssimport_accessHosts&quot;] = &quot;Allowed hosts&quot;;<br>
+$messages[&quot;label_rssimport_importurl&quot;] = &quot;Url to import feed&quot;;<br>
+$messages[&quot;label_rssimport_titleformat&quot;] = &quot;Title Format String&quot;;<br>
+<br>
+$messages[&quot;rssimport_default_titleformat&quot;] = &quot;\l\i\\n\k\s \f\o\\r F j,<br>
Y&quot;; +?&gt;<br>
<br>
Added: plugins/branches/lifetype-1.2/rssimport/pluginrssimport.class.php<br>
<br>
</blockquote></blockquote>
===================================================================<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

--- plugins/branches/lifetype-1.2/rssimport/pluginrssimport.class.php<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(rev 0) +++<br>
plugins/branches/lifetype-1.2/rssimport/pluginrssimport.class.php &nbsp; &nbsp; &nbsp; 2008-08<br>
-20 21:48:02 UTC (rev 6714) @@ -0,0 +1,93 @@<br>
+&lt;?php<br>
+ &nbsp; &nbsp;/*<br>
+ &nbsp; &nbsp;Copyright 2006, 2008 Paul Westbrook (<a href="mailto:paul@westbrooks.org" target="_blank">paul@westbrooks.org</a>)<br>
+<br>
+ &nbsp; &nbsp;This program is free software; you can redistribute it and/or modify<br>
+ &nbsp; &nbsp;it under the terms of the GNU General Public License as published by<br>
+ &nbsp; &nbsp;the Free Software Foundation; either version 2 of the License, or<br>
+ &nbsp; &nbsp;(at your option) any later version.<br>
+<br>
+ &nbsp; &nbsp;This program is distributed in the hope that it will be useful,<br>
+ &nbsp; &nbsp;but WITHOUT ANY WARRANTY; without even the implied warranty of<br>
+ &nbsp; &nbsp;MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. &nbsp;See the<br>
+ &nbsp; &nbsp;GNU General Public License for more details.<br>
+<br>
+ &nbsp; &nbsp;You should have received a copy of the GNU General Public License<br>
+ &nbsp; &nbsp;along with this program; if not, write to the Free Software<br>
+ &nbsp; &nbsp;Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA &nbsp;02111-1307<br>
&nbsp;USA + &nbsp; &nbsp;*/<br>
+<br>
+<br>
+<br>
+ &nbsp; &nbsp; &nbsp; lt_include( PLOG_CLASS_PATH.&quot;class/plugin/pluginbase.class.php&quot; );<br>
+ &nbsp; &nbsp; &nbsp; lt_include( PLOG_CLASS_PATH.&quot;class/plugin/pluginmanager.class.php&quot; );<br>
+<br>
+<br>
+ &nbsp; &nbsp; &nbsp; class PluginRssImport extends PluginBase<br>
+ &nbsp; &nbsp; &nbsp; {<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var $pluginEnabled;<br>
+<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; function PluginRssImport( $source = &quot;&quot; )<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;PluginBase($source);<br>
+<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;id &nbsp; &nbsp; &nbsp;= &quot;rssimport&quot;;<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;author &nbsp;= &quot;Paul Westbrook&quot;;<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;desc &nbsp; &nbsp;= &quot;The Rss Import plugin imports an rss feed and<br>
creates an article with the contentss&quot;; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;version = &quot;20080715&quot;;<br>
+<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;locales = Array( &quot;en_UK&quot;);<br>
+<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if( $source == &quot;admin&quot; )<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;initAdmin();<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;init();<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>
+<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; function init()<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;registerBlogAction( &quot;importFeed&quot;, &quot;ImportRssFeedAction&quot; );<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>
+<br>
+<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; function initAdmin()<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;registerAdminAction( &quot;rssImportConfig&quot;,<br>
&quot;PluginRssImportConfigAction&quot; ); + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$this-&gt;registerAdminAction(<br>
&quot;updateRssImportConfig&quot;, &quot;PluginRssImportUpdateConfigAction&quot; ); +<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $menu =&amp; Menu::getMenu();<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if( !$menu-&gt;entryExists(<br>
&quot;/menu/controlCenter/manageIntegrationPlugins&quot; ))<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;addMenuEntry( &quot;/menu/controlCenter&quot;,<br>
&quot;manageIntegrationPlugins&quot;, &quot;&quot;, &quot;&quot;, true, false ); +<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;addMenuEntry( &quot;/menu/controlCenter/manageIntegrationPlugins&quot;,<br>
&quot;rssimport&quot;, &quot;?op=rssImportConfig&quot;, &quot;&quot; ); + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>
+<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; function register()<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $blogSettings = $this-&gt;blogInfo-&gt;getSettings();<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;pluginEnabled = $blogSettings-&gt;getValue(<br>
&quot;plugin_rssimport_enabled&quot; ); +<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;accessKey = $blogSettings-&gt;getValue(<br>
&quot;plugin_rssimport_accessKey&quot; ); + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>
+<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; function isEnabled()<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return $this-&gt;pluginEnabled;<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>
+<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; function getImportRssUrl($accessKey)<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lt_include( PLOG_CLASS_PATH.&quot;class/net/rawrequestgenerator.class.php&quot;<br>
); +<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $rg = new RawRequestGenerator($this-&gt;blogInfo);<br>
+<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $rg-&gt;addParameter( &quot;op&quot;, &quot;importFeed&quot; );<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $rg-&gt;addParameter( &quot;accessKey&quot;, $accessKey);<br>
+<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $importRssUrl = $rg-&gt;getIndexUrl().$rg-&gt;getRequest();<br>
+<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return $importRssUrl;<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>
+<br>
+ &nbsp; &nbsp; &nbsp; }<br>
+?&gt;<br>
<br>
Added:<br>
plugins/branches/lifetype-1.2/rssimport/templates/rssimport.template<br>
<br>
</blockquote></blockquote>
===================================================================<br>
---<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

plugins/branches/lifetype-1.2/rssimport/templates/rssimport.template<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (rev 0) +++<br>
plugins/branches/lifetype-1.2/rssimport/templates/rssimport.template &nbsp; &nbsp;2008<br>
-08-20 21:48:02 UTC (rev 6714) @@ -0,0 +1,65 @@<br>
+{include file=&quot;$admintemplatepath/header.template&quot;}<br>
+{include file=&quot;$admintemplatepath/navigation.template&quot; showOpt=rssimport<br>
title=$locale-&gt;tr(&quot;rssimport_plugin&quot;)} +&lt;form name=&quot;commentPluginConfig&quot;<br>
method=&quot;post&quot;&gt;<br>
+ &lt;fieldset class=&quot;inputField&quot;&gt;<br>
+ &lt;legend&gt;{$locale-&gt;tr(&quot;label_configuration&quot;)}&lt;/legend&gt;<br>
+ &nbsp;{include file=&quot;$admintemplatepath/successmessage.template&quot;}<br>
+ &nbsp;{include file=&quot;$admintemplatepath/errormessage.template&quot;}<br>
+ &nbsp;&lt;div class=&quot;field&quot;&gt;<br>
+ &nbsp; &lt;label for=&quot;pluginEnabled&quot;&gt;{$locale-&gt;tr(&quot;label_enable&quot;)}&lt;/label&gt;<br>
+ &nbsp; &lt;div class=&quot;formHelp&quot;&gt;<br>
+ &nbsp; &nbsp;&lt;input class=&quot;checkbox&quot; type=&quot;checkbox&quot; name=&quot;pluginEnabled&quot;<br>
id=&quot;pluginEnabled&quot; {if $pluginEnabled} checked=&quot;checked&quot; {/if} value=&quot;1&quot;<br>
/&gt;{$locale-&gt;tr(&quot;rssimport_plugin_enabled&quot;)} + &nbsp; &lt;/div&gt;<br>
+ &nbsp;&lt;/div&gt;<br>
+<br>
+ &nbsp;&lt;div class=&quot;field&quot;&gt;<br>
+ &nbsp; &lt;label<br>
for=&quot;accessKey&quot;&gt;{$locale-&gt;tr(&quot;label_rssimport_accessKey&quot;)}&lt;/label&gt; +<br>
&lt;span class=&quot;required&quot;&gt;*&lt;/span&gt;<br>
+ &nbsp; &lt;div class=&quot;formHelp&quot;&gt;{$locale-&gt;tr(&quot;rssimport_accessKey&quot;)}<br>
+ &nbsp; &nbsp; &lt;input class=&quot;text&quot; type=&quot;text&quot; name=&quot;accessKey&quot; id=&quot;accessKey&quot;<br>
value=&quot;{$accessKey}&quot; width=&quot;10&quot; /&gt; + &nbsp; &lt;/div&gt;<br>
+ &nbsp;&lt;/div&gt;<br>
+<br>
+ &nbsp;&lt;div class=&quot;field&quot;&gt;<br>
+ &nbsp; &lt;label for=&quot;feedurl&quot;&gt;{$locale-&gt;tr(&quot;label_rssimport_feedurl&quot;)}&lt;/label&gt;<br>
+ &nbsp; &lt;span class=&quot;required&quot;&gt;*&lt;/span&gt;<br>
+ &nbsp; &lt;div class=&quot;formHelp&quot;&gt;{$locale-&gt;tr(&quot;rssimport_feedurl&quot;)}<br>
+ &nbsp; &nbsp; &lt;input class=&quot;text&quot; type=&quot;text&quot; name=&quot;feedurl&quot; id=&quot;feedurl&quot;<br>
value=&quot;{$feedurl}&quot; width=&quot;10&quot; /&gt; + &nbsp; &lt;/div&gt;<br>
+ &nbsp;&lt;/div&gt;<br>
+<br>
+ &nbsp;&lt;div class=&quot;field&quot;&gt;<br>
+ &nbsp; &lt;label<br>
for=&quot;feedurl&quot;&gt;{$locale-&gt;tr(&quot;label_rssimport_titleformat&quot;)}&lt;/label&gt; +<br>
&lt;span class=&quot;required&quot;&gt;*&lt;/span&gt;<br>
+ &nbsp; &lt;div class=&quot;formHelp&quot;&gt;{$locale-&gt;tr(&quot;rssimport_titleformat&quot;)}<br>
+ &nbsp; &nbsp; &lt;input class=&quot;text&quot; type=&quot;text&quot; name=&quot;titleFormat&quot; id=&quot;titleFormat&quot;<br>
value=&quot;{$titleFormat}&quot; width=&quot;10&quot; /&gt; + &nbsp; &lt;/div&gt;<br>
+ &nbsp;&lt;/div&gt;<br>
+<br>
+ &nbsp;&lt;!-- article categories --&gt;<br>
+ &nbsp;&lt;div class=&quot;field&quot;&gt;<br>
+ &nbsp; &lt;label for=&quot;categoryId&quot;&gt;{$locale-&gt;tr(&quot;posts&quot;)}&lt;/label&gt;<br>
+ &nbsp; &lt;div<br>
class=&quot;formHelp&quot;&gt;{$locale-&gt;tr(&quot;rssimport_articles_categories_help&quot;)}&lt;/div<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
+ &nbsp; &lt;select name=&quot;categoryId&quot;&gt;<br>
</blockquote>
+ &nbsp; &nbsp;{foreach from=$categories item=category}<br>
+ &nbsp; &nbsp; &nbsp; &lt;option value=&quot;{$category-&gt;getId()}&quot; {if $categoryId ==<br>
$category-&gt;getId()}selected=&quot;selected&quot;{/if}&gt;{$category-&gt;getName()}&lt;/optio<br>
n&gt; + &nbsp; &nbsp;{/foreach}<br>
+ &nbsp; &lt;/select&gt;<br>
+ &nbsp;&lt;/div&gt;<br>
+<br>
+ &nbsp;&lt;div class=&quot;field&quot;&gt;<br>
+ &nbsp; &lt;label<br>
for=&quot;importurl&quot;&gt;{$locale-&gt;tr(&quot;label_rssimport_importurl&quot;)}&lt;/label&gt; +&lt;br/&gt;<br>
+ &nbsp; &lt;span&gt;&lt;a href=&quot;{$importRssUrl}&quot;&gt;{$importRssUrl}&lt;/a&gt;&lt;/span&gt;<br>
+ &nbsp;&lt;/div&gt;<br>
+<br>
+ &lt;/fieldset&gt;<br>
+<br>
+ &lt;div class=&quot;buttons&quot;&gt;<br>
+ &nbsp;&lt;input type=&quot;hidden&quot; name=&quot;op&quot; value=&quot;updateRssImportConfig&quot; /&gt;<br>
+ &nbsp;&lt;input type=&quot;reset&quot; name=&quot;{$locale-&gt;tr(&quot;reset&quot;)}&quot; /&gt;<br>
+ &nbsp;&lt;input type=&quot;submit&quot; name=&quot;{$locale-&gt;tr(&quot;update_settings&quot;)}&quot;<br>
value=&quot;{$locale-&gt;tr(&quot;update&quot;)}&quot; /&gt; + &lt;/div&gt;<br>
+&lt;/form&gt;<br>
+{include file=&quot;$admintemplatepath/footernavigation.template&quot;}<br>
+{include file=&quot;$admintemplatepath/footer.template&quot;}<br>
<br>
_______________________________________________<br>
pLog-svn mailing list<br>
<a href="mailto:pLog-svn@devel.lifetype.net" target="_blank">pLog-svn@devel.lifetype.net</a><br>
<a href="http://limedaley.com/mailman/listinfo/plog-svn" target="_blank">http://limedaley.com/mailman/listinfo/plog-svn</a><br>
</blockquote></blockquote>
<br>
<br>
</blockquote>
<br></div></div><div class="Ih2E3d">
-- <br>
Jon Daley<br>
<a href="http://jon.limedaley.com" target="_blank">http://jon.limedaley.com</a><br>
~~<br></div>
And when it rains on your parade, look up rather than down.<br>
Without the rain, there would be no rainbow.<br>
-- Jerry Chin<div><div></div><div class="Wj3C7c"><br>
_______________________________________________<br>
pLog-svn mailing list<br>
<a href="mailto:pLog-svn@devel.lifetype.net" target="_blank">pLog-svn@devel.lifetype.net</a><br>
<a href="http://limedaley.com/mailman/listinfo/plog-svn" target="_blank">http://limedaley.com/mailman/listinfo/plog-svn</a><br>
</div></div></blockquote></div><br><br><br></div>