garvinhicking at BerliOS | 14 Sep 10:45 2006
Picon

r1427 - in trunk: . include plugins/serendipity_plugin_remoterss plugins/serendipity_plugin_remoterss/UTF-8

Author: garvinhicking
Date: 2006-09-14 10:45:13 +0200 (Thu, 14 Sep 2006)
New Revision: 1427

Modified:
   trunk/include/functions_images.inc.php
   trunk/plugins/serendipity_plugin_remoterss/UTF-8/lang_de.inc.php
   trunk/plugins/serendipity_plugin_remoterss/lang_de.inc.php
   trunk/plugins/serendipity_plugin_remoterss/lang_en.inc.php
   trunk/plugins/serendipity_plugin_remoterss/serendipity_plugin_remoterss.php
   trunk/serendipity_admin_image_selector.php
Log:
Upgrade remoteRSS plugin

Modified: trunk/include/functions_images.inc.php
===================================================================
--- trunk/include/functions_images.inc.php	2006-08-30 09:51:59 UTC (rev 1426)
+++ trunk/include/functions_images.inc.php	2006-09-14 08:45:13 UTC (rev 1427)
 <at>  <at>  -256,8 +256,10  <at>  <at> 
         $cond['distinct'] = '';
     }

-    serendipity_ACL_SQL($cond, false, 'directory', $mode);
-
+    if ($mode != 'discard') {        
+        serendipity_ACL_SQL($cond, false, 'directory', $mode);    
+    }
+    
     $rs = serendipity_db_query("SELECT {$cond['distinct']} i.id, i.name, i.extension, i.mime, i.size,
i.dimensions_width, i.dimensions_height, i.date, i.thumbnail_name, i.authorid, i.path,
(Continue reading)

slothman at BerliOS | 27 Sep 04:36 2006
Picon

r1428 - trunk/include

Author: slothman
Date: 2006-09-27 04:36:37 +0200 (Wed, 27 Sep 2006)
New Revision: 1428

Modified:
   trunk/include/functions_entries.inc.php
Log:
Add search term highlighting, in the form of <span> tags with
both foundterm and foundtermN class.

Modified: trunk/include/functions_entries.inc.php
===================================================================
--- trunk/include/functions_entries.inc.php	2006-09-14 08:45:13 UTC (rev 1427)
+++ trunk/include/functions_entries.inc.php	2006-09-27 02:36:37 UTC (rev 1428)
 <at>  <at>  -920,6 +920,18  <at>  <at> 
                 $entry['is_cached'] = true;
             }

+	    //--JAM: Highlight-span search terms
+	    if ($serendipity['action'] == 'search') {
+	        $searchterms = str_replace('"', '', $serendipity['GET']['searchterms']);
+	        $searchterms = explode($searchterms, ' ');
+		foreach($searchterms as $searchdx => $searchterm) {
+		    $searchclass = "foundterm foundterm".$searchdx;
+		    $entry['body'] = preg_replace('/('.$searchterm.')/mi',
+		        '<span class="'.$searchclass.'">\1</span>',
+			$entry['body']);
+		}
+	    }
+
(Continue reading)

slothman at BerliOS | 29 Sep 04:00 2006
Picon

r1429 - trunk

Author: slothman
Date: 2006-09-29 04:00:02 +0200 (Fri, 29 Sep 2006)
New Revision: 1429

Modified:
   trunk/rss.php
Log:
Use correct server offset; found by JohnnyPark of forums.

Modified: trunk/rss.php
===================================================================
--- trunk/rss.php	2006-09-27 02:36:37 UTC (rev 1428)
+++ trunk/rss.php	2006-09-29 02:00:02 UTC (rev 1429)
 <at>  <at>  -57,7 +57,7  <at>  <at> 
                     : false;

     if (is_array($latest_entry) && isset($latest_entry[0]['last_modified'])) {
-        $last_modified = gmdate('D, d M Y H:i:s \G\M\T',
serendipity_serverOffsetHour($latest_entry[0]['last_modified'], true));
+        $last_modified = gmdate('D, d M Y H:i:s \G\M\T',
serendipity_serverOffsetHour($latest_entry[0]['last_modified'], false));
         $etag          = '"' . $last_modified . '"';

         header('Last-Modified: ' . $last_modified);

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
(Continue reading)


Gmane