Changeset 1796

Show
Ignore:
Timestamp:
09/16/09 23:26:17 (11 months ago)
Author:
spetersen
Message:

Merge with trunk up to change 1795

Location:
branches/postgresql
Files:
1 added
51 modified
3 copied

Legend:

Unmodified
Added
Removed
  • branches/postgresql

    • Property svn:mergeinfo set to /trunk/gregarius:1773-1795*
  • branches/postgresql/.htaccess

    • Property svn:mergeinfo set to /trunk/gregarius/.htaccess:1773-1795
    r1696 r1796  
    1  
    21# Disable MultiViews: we want the real thing 
    32# http://httpd.apache.org/docs-2.0/mod/mod_negotiation.html#multiviews 
     
    87<IfModule mod_rewrite.c> 
    98  RewriteEngine on 
    10    
    11    
    129   
    1310  # If we have a file or a directory match then lets set the  
  • branches/postgresql/COPYING

    • Property svn:mergeinfo set to /trunk/gregarius/COPYING:1773-1795
  • branches/postgresql/INSTALL

    • Property svn:mergeinfo set to /trunk/gregarius/INSTALL:1773-1795
  • branches/postgresql/admin

    • Property svn:mergeinfo set to /trunk/gregarius/admin:1773-1795
  • branches/postgresql/admin/channels.php

    r1773 r1796  
    232232        ."&amp;".CST_ADMIN_VIEW."=". CST_ADMIN_DOMAIN_CHANNEL 
    233233        ."&amp;action=". CST_ADMIN_EDIT_ACTION. "&amp;cid=$id\">" . __('edit') 
    234         ."</a>|<a href=\"".$_SERVER['PHP_SELF']. "?".CST_ADMIN_DOMAIN."=". CST_ADMIN_DOMAIN_CHANNEL 
     234        ."</a>"; 
     235        if(!getConfig('rss.config.restrictrefresh')) { 
     236            echo "|<a href=\"".getPath()."update.php?cid=$id\">" . __('update') . "</a>\n"; 
     237                } 
     238        echo "|<a href=\"".$_SERVER['PHP_SELF']. "?".CST_ADMIN_DOMAIN."=". CST_ADMIN_DOMAIN_CHANNEL 
    235239        ."&amp;".CST_ADMIN_VIEW."=". CST_ADMIN_DOMAIN_CHANNEL 
    236240        ."&amp;action=". CST_ADMIN_DELETE_ACTION ."&amp;cid=$id\">" . __('delete') ."</a></td>\n" 
     
    561565        // Parse into and OPML object 
    562566        $opml=getOpml($url); 
    563  
     567         
    564568        if (sizeof($opml) > 0) { 
    565569 
  • branches/postgresql/ajax.php

    • Property svn:mergeinfo set to /trunk/gregarius/ajax.php:1773-1795
    r1773 r1796  
    3333 
    3434function __exp__setState($id,$state) { 
     35    $id = sanitize($id, RSS_SANITIZER_NUMERIC); 
     36    $state = sanitize($state, RSS_SANITIZER_NUMERIC); 
    3537    if (isLoggedIn()) { 
    3638        rss_query('update '.getTable('item') . " set unread=$state where id=$id");   
     
    7173 
    7274function __exp__getFeedContent($cid) { 
    73  
     75    $cid = sanitize($cid, RSS_SANITIZER_NUMERIC); 
    7476     
    7577    ob_start(); 
     
    9193 
    9294function __exp__rateItem($iid, $rt) { 
     95    $iid = sanitize($iid, RSS_SANITIZER_NUMERIC); 
     96    $rt = sanitize($rt, RSS_SANITIZER_NUMERIC); 
     97     
    9398    list($rrt) = rss_fetch_row(rss_query("select rating from " 
    9499        .getTable('rating') . " where iid = $iid")); 
  • branches/postgresql/api.php

    • Property svn:mergeinfo set to /trunk/gregarius/api.php:1773-1795
  • branches/postgresql/author.php

    • Property svn:mergeinfo set to /trunk/gregarius/author.php:1773-1795
  • branches/postgresql/cls

    • Property svn:mergeinfo set to /trunk/gregarius/cls:1773-1795
  • branches/postgresql/cls/search.php

    r1773 r1796  
    4444define ('QUERY_MATCH_EXACT','exact'); 
    4545define ('QUERY_MATCH_WITHIN', 'within'); 
     46 
     47define ('QUERY_MATCH_STATE', 'state'); 
     48define ('QUERY_MATCH_UNREAD', 'unread'); 
     49define ('QUERY_MATCH_READ', 'read'); 
     50define ('QUERY_MATCH_BOTH', 'both'); 
    4651 
    4752// This is needed for some constants 
     
    214219        } 
    215220        $qWhere .= " and (i.unread & ".RSS_MODE_DELETED_STATE.")=0 "; 
     221         
     222        if(array_key_exists(QUERY_MATCH_STATE, $_REQUEST) && QUERY_MATCH_READ == $_REQUEST[QUERY_MATCH_STATE]) { 
     223                // Show only read items. 
     224                $qWhere .= " and (i.unread & " . RSS_MODE_UNREAD_STATE . ")=0 "; 
     225                } 
     226                else if(array_key_exists(QUERY_MATCH_STATE, $_REQUEST) && QUERY_MATCH_UNREAD == $_REQUEST[QUERY_MATCH_STATE]) { 
     227                        // Show only unread items. 
     228                        $qWhere .= " and not (i.unread & " . RSS_MODE_UNREAD_STATE . ")=0 "; 
     229                } 
    216230 
    217231        if ($this->orderBy == QUERY_ORDER_BY_DATE) { 
  • branches/postgresql/cls/update.php

    r1634 r1796  
    3232define('NO_NEW_ITEMS', '-'); 
    3333define ('UPDATING','...'); 
     34define ('DEFAULT_CID', -1); 
    3435 
    3536 
     
    6465    var $chans = array (); 
    6566 
    66     function Update($doPopulate = true, $updatePrivateAlso = false) { 
     67    function Update($doPopulate = true, $updatePrivateAlso = false, $cid = DEFAULT_CID) { 
    6768        rss_plugin_hook('rss.plugins.updates.before', null); 
    6869        if($doPopulate) { 
    69             $this->populate($updatePrivateAlso); 
     70            $this->populate($updatePrivateAlso, $cid); 
    7071        } 
    7172 
     
    7576    } 
    7677 
    77     function populate($updatePrivateAlso = false) { 
     78    function populate($updatePrivateAlso = false, $cid) { 
     79        $cid = (int)$cid; 
    7880        $sql = "select c.id, c.url, c.title from ".getTable("channels") . " c " 
    7981               . " inner join " . getTable('folders') . " f on f.id = c.parent " 
     
    8385            $sql .= " and (mode & ".RSS_MODE_PRIVATE_STATE.")=0 "; 
    8486        } 
    85  
    86         if (getConfig('rss.config.absoluteordering')) { 
    87             $sql .= " order by f.position asc, c.position asc"; 
    88         } else { 
    89             $sql .= " order by f.name, c.title asc"; 
    90         } 
     87         
     88        if(DEFAULT_CID != $cid) { 
     89            $sql .= " and c.id = " . $cid . " "; 
     90                } else { 
     91                    if (getConfig('rss.config.absoluteordering')) { 
     92                            $sql .= " order by f.position asc, c.position asc"; 
     93                    } else { 
     94                            $sql .= " order by f.name, c.title asc"; 
     95                    } 
     96                } 
    9197 
    9298        $res = rss_query($sql); 
     
    159165} 
    160166 
    161  
    162167/** 
    163168 * HTTP Server Push update 
     
    165170class HTTPServerPushUpdate extends Update { 
    166171 
    167     function HTTPServerPushUpdate() { 
    168         parent::Update(); 
     172    function HTTPServerPushUpdate($cid) { 
     173        parent::Update($doPopulate = true, $updatePrivateAlso = false, $cid); 
    169174 
    170175        $GLOBALS['rss']->header->appendHeader("Connection: close"); 
     
    228233} 
    229234 
    230  
    231235/** 
    232236 * AJAXUpdate updates feeds via AJAX. It's a bit more server-intesive 
     
    235239class AJAXUpdate extends Update { 
    236240 
    237     function AJAXUpdate() { 
    238         parent::Update(); 
     241    function AJAXUpdate($cid) { 
     242        parent::Update($doPopulate = true, $updatePrivateAlso = false, $cid); 
    239243        $GLOBALS['rss']->header->extraHTML .= "<script type=\"text/javascript\" src=\"" 
    240244                                              .getPath()."update.php?js\"></script>\n"; 
     
    275279} 
    276280 
    277  
    278  
    279281class CommandLineUpdate extends Update { 
    280     function CommandLineUpdate() { 
    281         parent::Update($doPopulate = true, $updatePrivateAlso = true); 
     282    function CommandLineUpdate($cid) { 
     283        parent::Update($doPopulate = true, $updatePrivateAlso = true, $cid); 
    282284    } 
    283285 
     
    309311 
    310312class MobileUpdate extends Update { 
    311     function MobileUpdate() { 
    312         parent::Update($doPopulate = true); 
    313     } 
     313    function MobileUpdate($cid) { 
     314        parent::Update($doPopulate = true, $updatePrivateAlso = false, $cid); 
     315    } 
     316     
    314317    function render() { 
    315318        $newIds = array(); 
     
    334337    } 
    335338} 
    336  
    337339 
    338340/** 
     
    372374} 
    373375 
    374  
    375  
    376376/** 
    377377 * SilentUpdate updates the feeds silently for those lame  
     
    380380 */ 
    381381class SilentUpdate extends Update { 
    382     function SilentUpdate() { 
    383         parent::Update($doPopulate = false); 
     382    function SilentUpdate($cid) { 
     383        parent::Update($doPopulate = false, $updatePrivateAlso = false, $cid); 
    384384    } 
    385385 
  • branches/postgresql/cls/wrappers/feeds.php

    r1603 r1796  
    112112} 
    113113 
     114function rss_feeds_feed_id() { 
     115    return ($GLOBALS['rss']->currentFeedsFeed-> id); 
     116} 
     117 
    114118function rss_feeds_feed_title_entities() { 
    115119    return htmlentities($GLOBALS['rss']->currentFeedsFeed-> title); 
  • branches/postgresql/cls/wrappers/item.php

    r1773 r1796  
    215215        $ea = preg_replace('/[^a-zA-Z0-9]/','_',$a); 
    216216        if (getConfig('rss.output.usemodrewrite')) { 
    217             $a = "<a href=\"".getPath() ."author/$ea\">$a</a>"; 
     217            $a = "<a href=\"".getPath() ."author/$ea/\">$a</a>"; 
    218218        } else { 
    219219            $a = "<a href=\"".getPath() ."author.php?author=$ea\">$a</a>"; 
  • branches/postgresql/cls/wrappers/searchform.php

    r1773 r1796  
    6969    return ((array_key_exists(QUERY_MATCH_TYPE, $_REQUEST) && 
    7070        $_REQUEST[QUERY_MATCH_TYPE] == QUERY_MATCH_WITHIN)?" checked=\"checked\"":"");   
     71} 
     72 
     73function rss_search_state_read_checked() { 
     74    return ((array_key_exists(QUERY_MATCH_STATE, $_REQUEST) && 
     75        $_REQUEST[QUERY_MATCH_STATE] == QUERY_MATCH_READ) ?" checked=\"checked\"":"");   
     76} 
     77 
     78function rss_search_state_unread_checked() { 
     79    return ((array_key_exists(QUERY_MATCH_STATE, $_REQUEST) && 
     80        $_REQUEST[QUERY_MATCH_STATE] == QUERY_MATCH_UNREAD) ?" checked=\"checked\"":"");     
     81} 
     82 
     83function rss_search_state_both_checked() { 
     84    return ((array_key_exists(QUERY_MATCH_STATE, $_REQUEST) && 
     85        $_REQUEST[QUERY_MATCH_STATE] == QUERY_MATCH_BOTH) || 
     86        !array_key_exists(QUERY_MATCH_STATE, $_REQUEST) ?" checked=\"checked\"":"");     
    7187} 
    7288 
  • branches/postgresql/constants.php

    • Property svn:mergeinfo set to /trunk/gregarius/constants.php:1773-1795
    r1773 r1796  
    3131 
    3232// Application version 
    33 define ('_VERSION_', "0.5.5"); 
     33define ('_VERSION_', "0.6.0"); 
    3434define ('MINUTE',60); 
    3535 
  • branches/postgresql/core.php

    • Property svn:mergeinfo set to /trunk/gregarius/core.php:1773-1795
  • branches/postgresql/css

    • Property svn:mergeinfo set to /trunk/gregarius/css:1773-1795
  • branches/postgresql/db.php

    • Property svn:mergeinfo set to /trunk/gregarius/db.php:1773-1795
  • branches/postgresql/dbinit.php.sample

    • Property svn:mergeinfo set to /trunk/gregarius/dbinit.php.sample:1773-1795
  • branches/postgresql/dbstruct.pgsql.sql

    • Property svn:mergeinfo set to /trunk/gregarius/dbstruct.pgsql.sql:1773-1795
  • branches/postgresql/dist

    • Property svn:mergeinfo set to /trunk/gregarius/dist:1773-1795
  • branches/postgresql/extlib

    • Property svn:mergeinfo set to /trunk/gregarius/extlib:1773-1795
  • branches/postgresql/extlib/kses.php

    r1491 r1796  
    132132 
    133133  $xhtml_slash = ''; 
    134   if (preg_match('%\s*/\s*$%', $attr)) 
     134  if (preg_match('%\s/\s*$%', $attr)) 
    135135    $xhtml_slash = ' /'; 
    136136 
     
    208208      case 0: # attribute name, href for instance 
    209209 
    210         if (preg_match('/^([-a-zA-Z]+)\/?/', $attr, $match)) 
     210        if (preg_match('/^([-a-zA-Z]+)/', $attr, $match)) 
    211211        { 
    212212          $attrname = $match[1]; 
    213213          $working = $mode = 1; 
    214           $attr = preg_replace('/^[-a-zA-Z]+\/?/', '', $attr); 
     214          $attr = preg_replace('/^[-a-zA-Z]+/', '', $attr); 
    215215        } 
    216216 
     
    241241      case 2: # attribute value, a URL after href= for instance 
    242242 
    243         if (preg_match('/^"([^"]*)"(\s+|$|\/)?/', $attr, $match)) 
     243        if (preg_match('/^"([^"]*)"(\s+|$)/', $attr, $match)) 
    244244         # "value" 
    245245        { 
     
    252252                         'vless' => 'n'); 
    253253          $working = 1; $mode = 0; 
    254           $attr = preg_replace('/^"[^"]*"(\s+|$|\/)?/', '', $attr); 
     254          $attr = preg_replace('/^"[^"]*"(\s+|$)/', '', $attr); 
    255255          break; 
    256256        } 
    257257 
    258         if (preg_match("/^'([^']*)'(\s+|$|\/)?/", $attr, $match)) 
     258        if (preg_match("/^'([^']*)'(\s+|$)/", $attr, $match)) 
    259259         # 'value' 
    260260        { 
     
    267267                         'vless' => 'n'); 
    268268          $working = 1; $mode = 0; 
    269           $attr = preg_replace("/^'[^']*'(\s+|$)?/", '', $attr); 
     269          $attr = preg_replace("/^'[^']*'(\s+|$)/", '', $attr); 
    270270          break; 
    271271        } 
    272272 
    273         if (preg_match("%^([^\s\"']+)(\s+|$|\/)%", $attr, $match)) 
     273        if (preg_match("%^([^\s\"']+)(\s+|$)%", $attr, $match)) 
    274274         # value 
    275275        { 
     
    384384{ 
    385385  $string = kses_no_null($string); 
    386   $string = preg_replace('/\xad+/', '', $string); # deals with Opera "feature" 
     386  $string = preg_replace('/([^\xc3-\xcf])\xad+/', '\\1', $string); # deals with Opera "feature" -- moodle utf8 fix  
    387387  $string2 = $string.'a'; 
    388388 
     
    470470############################################################################### 
    471471{ 
    472   return preg_replace('/^((&[^;]*;|[\sA-Za-z0-9])*)'. 
    473                       '(:|&#58;|&#[Xx]3[Aa];)\s*/e', 
    474                       'kses_bad_protocol_once2("\\1", $allowed_protocols)', 
    475                       $string); 
     472  $string2 = preg_split('/:|&#58;|&#x3a;/i', $string, 2); 
     473  if(isset($string2[1]) && !preg_match('%/\?%',$string2[0])) 
     474  { 
     475    $string = kses_bad_protocol_once2($string2[0],$allowed_protocols).trim($string2[1]); 
     476  } 
     477  return $string; 
    476478} # function kses_bad_protocol_once 
    477479 
  • branches/postgresql/feed.php

    • Property svn:mergeinfo set to /trunk/gregarius/feed.php:1773-1795
    r1773 r1796  
    3434define ('ACT_NAV_SUCC_POSTFIX','&nbsp;&rarr;'); 
    3535 
    36  
    37  
    38  
    3936// Show unread items on the front page? 
    4037// default to the config value, user can override this via a cookie 
     
    261258    $iid = $cid  = null; 
    262259} 
    263  
    264  
    265  
    266260 
    267261// If we have no channel-id something went terribly wrong. 
     
    728722 
    729723function doItems($cids,$fid,$vfid,$title,$iid,$y,$m,$d,$nv,$show_what,$show_private) { 
    730  
    731724    $do_show=$show_what; 
    732725 
     
    762755        } 
    763756 
    764     $items = new PaginatedItemList(); 
     757        $items = new PaginatedItemList(); 
     758 
    765759    $severalFeeds = (($fid != null) || ($vfid != null)); 
    766760 
  • branches/postgresql/index.php

    • Property svn:mergeinfo set to /trunk/gregarius/index.php:1773-1795
    r1773 r1796  
    128128    _pf('populate unread items'); 
    129129    $unreadItems = new PaginatedItemList(); 
     130     
    130131    $numItems = getConfig('rss.output.frontpage.numitems'); 
    131132     
     
    237238} 
    238239 
    239  
    240240?> 
  • branches/postgresql/init.php

    • Property svn:mergeinfo set to /trunk/gregarius/init.php:1773-1795
  • branches/postgresql/install.php

    • Property svn:mergeinfo set to /trunk/gregarius/install.php:1773-1795
  • branches/postgresql/opml.php

    • Property svn:mergeinfo set to /trunk/gregarius/opml.php:1773-1795
  • branches/postgresql/plugins

    • Property svn:mergeinfo set to /trunk/gregarius/plugins:1773-1795
  • branches/postgresql/plugins.php

    • Property svn:mergeinfo set to /trunk/gregarius/plugins.php:1773-1795
  • branches/postgresql/plugins/roundedcorners.php

    r1181 r1796  
    3030/// Author: Marco Bonetti 
    3131/// Description: Rounded corners in some GUI elements. Enabling this plugin breaks the CSS validation. 
    32 /// Version: 0.3 
     32/// Version: 0.4 
    3333 
    3434/** 
     
    3737 * 0.3 Hack for a Gecko bug which did not render rounded corners properly 
    3838 *  on large divs. https://bugzilla.mozilla.org/show_bug.cgi?id=252241 - Sameer 
     39 * 
     40 * 0.4 Be evil on WebKit browsers, too 
    3941 */ 
    4042 
     
    4850    $css = " 
    4951/* bad bad bad */ 
    50 .frame,.item,h3.collapsed,table,div.content img,#sidemenu li, 
     52.frame,.item,h3.collapsed,table,div.content img, 
    5153ul.navlist li,a.bookmarklet, fieldset, div#pbholder, div.ief, 
    52 div.ief p a, #loginfo, input[type=\"submit\"] { -moz-border-radius: 5px } 
     54div.ief p a, #loginfo, input[type=\"submit\"] { -moz-border-radius: 5px; -webkit-border-radius:5px } 
     55#sidemenu li { 
     56    -moz-border-radius-top-left:5px; 
     57    -moz-border-radius-top-right:5px; 
     58    -webkit-border-top-left-radius:5px; 
     59    -webkit-border-top-right-radius:5px; 
     60} 
    5361"; 
    5462 
  • branches/postgresql/plugins/rssview.php

    r1773 r1796  
    4545 
    4646    if (strstr($_SERVER['REQUEST_URI'],"?") !== FALSE) { 
    47         $url .= "&amp;media=$type"; 
     47        $url .= "&amp;media=$type&amp;"; 
    4848    } else { 
    4949        $url .= "?media=$type"; 
  • branches/postgresql/plugins/stickyflag/stickyflag.php

    r1603 r1796  
    147147    } 
    148148  
    149     if($options & STICKYFLAG_ENABLE_STICKY_MENU) { 
     149    if($options & STICKYFLAG_ENABLE_STICKY_MENU || (isMobileDevice() && $options & STICKYFLAG_ENABLE_STICKY_SHORTCUT)) { 
    150150        if (true == $usemodrewrite) { 
    151151            $url = getPath() . "state/" . RSS_STATE_STICKY . ""; 
     
    157157    } 
    158158 
    159     if($options & STICKYFLAG_ENABLE_FLAG_MENU) { 
     159    if($options & STICKYFLAG_ENABLE_FLAG_MENU || (isMobileDevice() && $options & STICKYFLAG_ENABLE_FLAG_SHORTCUT)) { 
    160160        if (true == $usemodrewrite) { 
    161161            $url = getPath() . "state/" . RSS_STATE_FLAG . ""; 
  • branches/postgresql/robots.txt

    • Property svn:mergeinfo set to /trunk/gregarius/robots.txt:1773-1795
  • branches/postgresql/schema.php

    • Property svn:mergeinfo set to /trunk/gregarius/schema.php:1773-1795
  • branches/postgresql/search.php

    • Property svn:mergeinfo set to /trunk/gregarius/search.php:1773-1795
  • branches/postgresql/sql_updates

    • Property svn:mergeinfo set to /trunk/gregarius/sql_updates:1773-1795
  • branches/postgresql/state.php

    • Property svn:mergeinfo set to /trunk/gregarius/state.php:1773-1795
  • branches/postgresql/tags.php

    • Property svn:mergeinfo set to /trunk/gregarius/tags.php:1773-1795
    r1773 r1796  
    106106        $sqlWhere = " i.id in (".implode(",", $ids).") "; 
    107107        // include deprecated feeds while showing tags.  
    108         $taggedItems->populate($sqlWhere, "", 0, -1, ITEM_SORT_HINT_MIXED, true); 
     108        $taggedItems->populate($sqlWhere, "", 0, 1, ITEM_SORT_HINT_MIXED, true); 
    109109 
    110110        $rtags = relatedTags($tarr); 
     
    168168        if ($gotsome) { 
    169169 
    170             $title = $taggedItems->itemCount." ". ($taggedItems->itemCount > 1 ? __('items') : __('item'))." " 
    171             . ($taggedItems->itemCount > 1 || $taggedItems->itemCount == 0 ? __('tagged') : __('tagged')) 
     170            $title = $taggedItems->numItems." ". ($taggedItems->numItems > 1 ? __('items') : __('item'))." " 
     171            . ($taggedItems->numItems > 1 || $taggedItems->numItems == 0 ? __('tagged') : __('tagged')) 
    172172            .""." \"".$hrTag."\""; 
    173173 
     
    184184        } else { 
    185185            $GLOBALS['rss']->renderWithTemplate('index.php', 'items'); 
    186  
    187 //          echo "<p style=\"height: 10em; text-align:center\">"; 
    188 //          printf(__('Oops! No items tagged &laquo;%s&raquo; were found.'), $hrTag); 
    189 //          echo "</p>"; 
    190         } 
    191         //echo "</div>\n"; 
    192         //rss_footer(); 
     186        } 
     187 
    193188    } 
    194189 
  • branches/postgresql/themes

    • Property svn:mergeinfo set to /trunk/gregarius/themes:1773-1795
  • branches/postgresql/themes.php

    • Property svn:mergeinfo set to /trunk/gregarius/themes.php:1773-1795
    r1696 r1796  
    166166                    (strpos($ua,    'SonyEricsson') !== FALSE) 
    167167                ||  (strpos($ua,    'Nokia') !== FALSE) 
     168                ||  (strpos($ua,  'Tablet') !== FALSE) 
    168169                ||  (strpos($ua,    'MIDP') !== FALSE) 
    169170                ||  (strpos($ua_lwr,'mobile') !== FALSE) 
  • branches/postgresql/themes/default/web/css/look.css

    r1773 r1796  
    292292  border:1px solid #ddd;                                                                                              
    293293} 
     294fieldset p { text-align: left;} 
     295 
    294296fieldset.prune p{ text-align:left } 
    295297.cntr { text-align:center !important} 
  • branches/postgresql/themes/default/web/feedsfeed.php

    r1393 r1796  
    33    <img src="<?php echo $icon; ?>" class="favicon" alt="" /> 
    44<?php } ?> 
    5     <a class="<?php echo rss_feeds_feed_class(); ?>" title="<?php echo rss_feeds_feed_description_entities(); ?>" href="<?php echo rss_feeds_feed_link();  ?>"><?php echo rss_feeds_feed_title(); ?></a> 
     5<a class="<?php echo rss_feeds_feed_class(); ?>" title="<?php echo rss_feeds_feed_description_entities(); ?>" href="<?php echo rss_feeds_feed_link();  ?>"><?php echo rss_feeds_feed_title(); ?></a> 
    66<?php if (($rdLbl = rss_feeds_feed_read_label()) != "") { ?> 
    77    <?php echo $rdLbl; ?> 
  • branches/postgresql/themes/default/web/index.php

    r1603 r1796  
    1616 
    1717<div id="ctnr"> 
    18  
    1918<ul id="sidemenu"> 
    2019    <?php rss_main_sidemenu("li") ?> 
  • branches/postgresql/themes/default/web/searchform.php

    r1773 r1796  
    2121        <label for="qry_match_within"><?php echo __('Search within words') ?></label> 
    2222        <input type="checkbox" id="qry_match_within" name="<?php echo QUERY_MATCH_TYPE ?>" value="<?php echo QUERY_MATCH_WITHIN ?>" <?php echo rss_search_within() ?> /> 
     23    </p> 
     24     
     25    <p> 
     26        <input type="radio" id="qry_match_unread" name="<?php echo QUERY_MATCH_STATE ?>" value="<?php echo QUERY_MATCH_UNREAD ?>" <?php echo rss_search_state_unread_checked() ?> /> 
     27        <label for="qry_match_unread"><?php echo __('Unread Only') ?></label> 
     28         
     29        <input type="radio" id="qry_match_read" name="<?php echo QUERY_MATCH_STATE ?>" value="<?php echo QUERY_MATCH_READ ?>" <?php echo rss_search_state_read_checked() ?> /> 
     30        <label for="qry_match_read"><?php echo __('Read Only') ?></label> 
     31 
     32        <input type="radio" id="qry_match_both" name="<?php echo QUERY_MATCH_STATE ?>" value="<?php echo QUERY_MATCH_BOTH ?>" <?php echo rss_search_state_both_checked() ?> />       
     33        <label for="qry_match_both"><?php echo __('Unread & Read') ?></label> 
    2334    </p> 
    2435 
  • branches/postgresql/themes/lilina/.themeinfo

    r1393 r1796  
    11name: Lilina theme 0.5 
    22official: true 
    3 description: This theme is an imitation of <a href="http://vrypan.net/linkblog">Lilina</a> 
     3description: This theme is an imitation of the <a href="http://getlilina.org/">Lilina</a> aggregator, by Ryan McCue. 
    44author: Sameer D'Costa 
    55url: http://dcostanet.net/wordpress/2005/11/12/lilina-theme-for-gregarius/ 
  • branches/postgresql/themes/lilina/web/css/layout.css

    r1393 r1796  
     1/** 
     2 * Sections of this stylesheet are Copyright (c) Ryan McCue, http://getlilina.org/ 
     3 * Released under GPL 
     4 */ 
    15html, body, td, p, th, a  { padding: 0; } 
    26 
  • branches/postgresql/themes/lilina/web/css/look.css

    r1432 r1796  
     1/** 
     2 * Sections of this stylesheet are Copyright (c) Ryan McCue, http://getlilina.org/ 
     3 * Released under GPL 
     4 */ 
     5 
    16body { 
    27  text-align: left; 
  • branches/postgresql/update.php

    • Property svn:mergeinfo set to /trunk/gregarius/update.php:1773-1795
    r1603 r1796  
    2828define ('RSS_NO_CACHE',true); 
    2929require_once('init.php'); 
     30 
    3031$cline = isset($argv) && !$_REQUEST && isset($argc) && $argc; 
    3132if (!$cline && getConfig('rss.config.restrictrefresh')) { 
     
    4142sajax_init(); 
    4243 
    43      
    4444if (array_key_exists('js',$_GET)) { 
    4545    header('Content-Type: text/javascript'); 
     
    5252} 
    5353 
    54  
    5554$browser = new Browser(); 
    5655$silent = array_key_exists('silent', $_GET) || ($cline && in_array('--silent',$argv)); 
    5756$newsonly = array_key_exists('newsonly', $_GET) || ($cline && in_array('--newsonly', $argv)); 
    5857$mobile = array_key_exists('mobile',$_GET); 
     58 
     59$cid = DEFAULT_CID; 
     60if(array_key_exists('cid', $_GET)) { 
     61    $cid = $_GET['cid']; 
     62} else if ($cline && in_array('--update-only', $argv)) { 
     63    foreach($argv as $k => $v) { 
     64        if ('--update-only' == $v) { 
     65            $cid = $argv[$k+1]; 
     66            break; 
     67        } 
     68    } 
     69} 
    5970 
    6071$GLOBALS['rss'] -> header = new Header( 
     
    6879$GLOBALS['rss'] -> feedList = new FeedList(false); 
    6980 
    70  
    7181// Instantiate a different Update object, depending on the client 
    7282if ($cline && !$silent && !$newsonly) { 
    73     $update = new CommandLineUpdate(); 
     83    $update = new CommandLineUpdate($cid); 
    7484 
    7585} elseif ($cline && !$silent && $newsonly) { 
    76     $update = new CommandLineUpdateNews(); 
     86    $update = new CommandLineUpdateNews($cid); 
    7787     
    7888} elseif (getConfig('rss.config.serverpush') && !$silent && $browser->supportsServerPush()) { 
    79     $update = new HTTPServerPushUpdate();    
     89    $update = new HTTPServerPushUpdate($cid);    
    8090     
    8191} elseif(!$silent && $browser->supportsAJAX()) { 
    82     $update = new AJAXUpdate();  
     92    $update = new AJAXUpdate($cid);  
    8393 
    8494} elseif($mobile) { 
    85     $update = new MobileUpdate(); 
     95    $update = new MobileUpdate($cid); 
    8696     
    8797} else { 
    8898    error_reporting(0); 
    89     $update = new SilentUpdate(); 
     99    $update = new SilentUpdate($cid); 
    90100} 
    91101 
  • branches/postgresql/util.php

    • Property svn:mergeinfo set to /trunk/gregarius/util.php:1773-1795