Changeset 1639

Show
Ignore:
Timestamp:
11/24/06 16:23:35 (2 years ago)
Author:
mdodoo
Message:

Attempted sync with trunk through "diff -r." Ignored the internationalized langugage files because i was afraid of messing something up.

It is 10:30 am. I should get some sleep.

Location:
branches/multiuser
Files:
21 modified

Legend:

Unmodified
Added
Removed
  • branches/multiuser/admin/channels.php

    r1606 r1639  
    281281 
    282282        if ($label != 'http://' &&  substr($label, 0,4) == "http") { 
    283             $tags = $_REQUEST['channel_tags']; 
     283            $tags = @$_REQUEST['channel_tags']; 
    284284            $ret = add_channel($label,$fid,null,null,$tags); 
    285285            //var_dump($ret); 
     
    900900 
    901901    // Description 
    902     $descr = strip_tags($descr); 
     902    $descr = trim(strip_tags($descr)); 
    903903    echo "<p><label for=\"c_descr\">". __('Description:') ."</label>\n" 
    904904    ."<input type=\"text\" id=\"c_descr\" name=\"c_descr\" value=\"$descr\" /></p>\n"; 
  • branches/multiuser/api.php

    r1628 r1639  
    5252        rss_require('extlib/JSON.php'); 
    5353        $json = new Services_JSON(); 
    54         $query = sanitize(@$_REQUEST['q'], RSS_SANITIZER_WORDS); 
     54        $query = preg_replace('#[^a-z0-9\s]#','',@$_REQUEST['q']); 
    5555        if ($query) { 
    5656            $res = osSearch($query); 
    5757        } else { 
    58             $res = array($query,array()); 
     58            $res = array($query,array(),array(),array()); 
    5959        } 
    60         header('Content-Type: application/json'); 
     60        header('Content-Type: text/plain'); 
    6161        die ($json->encode($res)); 
    6262        break; 
     
    8080           ." c.id, c.title, c.url, c.siteurl, f.name " 
    8181           ." from ".getTable("channels")." c " 
    82            . " inner join " . getTable("folders")." f on f.id = c.parent"; 
     82           ." inner join " . getTable("folders")." f " 
     83           ."  on f.id = c.parent"; 
    8384 
    8485    if (hidePrivate()) { 
     
    149150           ." unix_timestamp(ifnull(i.pubdate, i.added)) as idate ,i.id as iid" 
    150151           ." from ".getTable('item')." i " 
    151            . " inner join ".getTable('channels') ." c " 
    152            ." on i.cid=c.id where i.unread & ". RSS_MODE_UNREAD_STATE ." and c.id=$cid"; 
     152            ." inner join " .getTable('channels') ." c " 
     153            ."  on c.id = i.cid " 
     154            ." where i.unread & ". RSS_MODE_UNREAD_STATE ." and c.id=$cid"; 
    153155 
    154156    if ($date) { 
     
    216218        } 
    217219    } 
    218     return array($q,$results); 
     220    return array($q,$results,array(),array()); 
    219221} 
    220222?> 
  • branches/multiuser/cls/items.php

    r1604 r1639  
    6060     * ctor 
    6161     */ 
    62     function Item($id, $title, $url, $enclosure, $parent, $author, $description, $date, $isPubDate, $unread,$private, $sticky, $flagged) { 
     62    function Item($id, $title, $url, $enclosure, $parent, $author, $description, $date, $isPubDate, $unread, $rating) { 
    6363        $this->rss = &$GLOBALS['rss']; 
    6464        $this->id = $id; 
    65         //$this->flags = $unread; 
     65        $this->flags = $unread; 
    6666        if ($title) { 
    6767            $this->title = $title; 
     
    8787        $this -> tags=array(); 
    8888        $this -> rating = $rating; 
    89         $this ->isUnread    = $unread; 
    90         $this ->isPrivate   = $private; 
    91         $this ->isDeleted   = $deleted; 
    92         $this ->isSticky    = $sticky; 
    93         $this ->isFlag      = $flagged; 
     89        $this ->isUnread    = $unread & RSS_MODE_UNREAD_STATE; 
     90        $this ->isPrivate   = $unread & RSS_MODE_PRIVATE_STATE; 
     91        $this ->isDeleted   = $unread & RSS_MODE_DELETED_STATE; 
     92        $this ->isSticky    = $unread & RSS_MODE_STICKY_STATE; 
     93        $this ->isFlag    = $unread & RSS_MODE_FLAG_STATE; 
    9494        //$this -> key = md5(rand(0,10000)); 
    9595         
     
    193193        $this->items[] = $item; 
    194194         
    195         if ((!$this -> hasUnreadItems) && $item->isUnread) { 
     195        if ((!$this -> hasUnreadItems) && $item->flags & RSS_MODE_UNREAD_STATE) { 
    196196            $this -> hasUnreadItems = true; 
    197197        } 
     
    260260         
    261261        // Predefined alternate ordering 
    262         $this -> ORDER_BY_UNREAD_FIRST = " order by i2u.flgunread desc, "; 
     262        $this -> ORDER_BY_UNREAD_FIRST = " order by i2u.flgunread & " . RSS_MODE_UNREAD_STATE . " desc, "; 
    263263        if (getConfig('rss.config.absoluteordering')) { 
    264264            $this -> ORDER_BY_UNREAD_FIRST .= " f.position asc, c2u.position asc"; 
    265265        } else { 
    266             $this -> ORDER_BY_UNREAD_FIRST .= " f.name asc, c.title asc"; 
     266            $this -> ORDER_BY_UNREAD_FIRST .= " f.name asc, c2u.title asc"; 
    267267        } 
    268268        $this -> ORDER_BY_UNREAD_FIRST .= ", i.added desc, i.id asc"; 
     
    271271 
    272272    /** 
    273      * Populates a an ItemList with items from the Database. Note that this methdo 
     273     * Populates a an ItemList with items from the Database. Note that this method 
    274274     * can be invoked several times on the same ItemList object instance: upon each 
    275275     * call the new items will be aggregated to the existing ones. 
     
    283283 
    284284      _pf('ItemList::populate()'); 
    285         $this -> _sqlActualWhat = " i.title,  c.title, c.id, " 
    286         ."i2u.flgunread, i2u.flgprivate, i2u.flgsticky, i2u.flgdeleted, " 
    287         ." i2u.flgflagged," 
     285        $this -> _sqlActualWhat = " i.title,  c.title, c.id, i2u.flgunread, " 
    288286            ."i.url, i.enclosure, i.author, i.description, c2u.icon, " 
    289287            ." unix_timestamp(ifnull(i.pubdate,i.added)) as ts, " 
     
    360358        $this -> _sqlActualLimit = " $startItem, $itemCount"; 
    361359 
    362         $sql = "\nselect\n\t " 
     360        $sql = "select " 
    363361            .$this -> _sqlActualWhat 
    364             . " \nfrom\n\t " 
     362            . " from " 
    365363            .$this -> _sqlActualFrom 
    366             . " \nwhere\n\t " 
     364            . " where " 
    367365            . $this -> _sqlActualWhere 
    368             . " \norder by\n\t " 
     366            . " order by " 
    369367            . $this -> _sqlActualOrder 
    370             . " \nlimit " 
     368            . " limit " 
    371369            . $this -> _sqlActualLimit; 
    372370             
    373         //die( $sql ); 
     371        //echo $sql; 
    374372        $this -> iids = array(); 
    375         $res = rss_query($sql); 
     373        $res = $GLOBALS['rss_db']->rss_query($sql); 
    376374        $this -> rowCount = $GLOBALS['rss_db']->rss_num_rows($res); 
    377375        $prevCid = -1; 
    378376        $curIdx = 0; 
    379377        $f=null; 
    380         while (list ($ititle_, $ctitle_, $cid_, $iunread_, $iprivate_, $isticky_, $ideleted_, $iflagged_, $iurl_, $ienclosure_, $iauthor_, $idescr_, $cicon_, $its_, $iispubdate_, $iid_) = $GLOBALS['rss_db']->rss_fetch_row($res)) { 
     378        while (list ($ititle_, $ctitle_, $cid_, $iunread_, $iurl_, $ienclosure_, $iauthor_, $idescr_, $cicon_, $its_, $iispubdate_, $iid_) = $GLOBALS['rss_db']->rss_fetch_row($res)) { 
    381379             
    382380            // Built a new Item 
    383             $i = new Item($iid_, $ititle_, $iurl_, $ienclosure_, $cid_, $iauthor_, $idescr_, $its_, $iispubdate_, $iunread_, $iprivate_, $isticky_, $iflagged_); 
     381            $i = new Item($iid_, $ititle_, $iurl_, $ienclosure_, $cid_, $iauthor_, $idescr_, $its_, $iispubdate_, $iunread_); 
    384382             
    385383            // no dupes, please 
     
    413411            // Some stats... 
    414412            $this -> itemCount++;            
    415             if ($iunread_) { 
     413            if ($iunread_ & RSS_MODE_UNREAD_STATE) { 
    416414                $this -> unreadCount++;  
    417415                $this -> unreadIids[] = $iid_; 
  • branches/multiuser/cls/l10n.php

    r1628 r1639  
    7575    } 
    7676    /** 
    77      * Detect users preferred language. Losely based on http://grep.be/data/accept-to-gettext.inc 
     77     * Detect user's preferred language.  
     78     * Loosely based on http://grep.be/data/accept-to-gettext.inc 
    7879     */ 
    7980    function __detectUserLang() { 
    80        if (isset($_REQUEST['lang']) && preg_match('#^[a-z]{2}_?([A-Z]{2})?$#',$_REQUEST['lang']) && ($_REQUEST['lang'] == 'en' || file_exists(GREGARIUS_HOME .'intl/'.$_REQUEST['lang']))) { 
     81        // Language overridden? 
     82        if (defined('RSS_LANGUAGE_OVERRIDE')) { 
     83            return constant('RSS_LANGUAGE_OVERRIDE'); 
     84        // Language defined in the request (?lang=) 
     85        } elseif (isset($_REQUEST['lang']) && preg_match('#^[a-z]{2}_?([A-Z]{2})?$#',$_REQUEST['lang']) && ($_REQUEST['lang'] == 'en' || file_exists(GREGARIUS_HOME .'intl/'.$_REQUEST['lang']))) { 
    8186            $this -> __setLocaleCookie($_REQUEST['lang']); 
    8287            rss_invalidate_cache(); 
  • branches/multiuser/cls/update.php

    r1604 r1639  
    9999        if (!hidePrivate() || $ignorePrivate) { 
    100100            if (count($newIds) > 0 && getConfig('rss.config.markreadonupdate')) { 
    101                 rss_query("update ".getTable("item2user")." i2u set i2u.flgunread=0 where i2u.flgunread=1" 
     101                rss_query("update ".getTable("item2user")." i2u set i2u.flgunread = unread & " 
     102                          .SET_MODE_READ_STATE." where unread & ".RSS_MODE_UNREAD_STATE 
    102103                          ." and i2u.fkiid not in (".implode(",", $newIds).")"); 
    103104            } 
     
    113114 
    114115    function magpieError($error) { 
    115         if ($error & MAGPIE_FEED_ORIGIN_CACHE) { 
     116        if (is_numeric($error) && ($error & MAGPIE_FEED_ORIGIN_CACHE)) { 
    116117            if ($error & MAGPIE_FEED_ORIGIN_HTTP_304) { 
    117118                $label = __('OK (304 Not modified)'); 
     
    120121            elseif ($error & MAGPIE_FEED_ORIGIN_HTTP_TIMEOUT) { 
    121122                $label = __('HTTP Timeout (Local cache)'); 
    122                 $cls = ERROR_WARNING; 
     123                $cls = ERROR_ERROR; 
    123124            } 
    124125            elseif ($error & MAGPIE_FEED_ORIGIN_NOT_FETCHED) { 
     
    129130                $label = __('404 Not Found (Local cache)'); 
    130131                $cls = ERROR_ERROR; 
     132            } elseif ($error & MAGPIE_FEED_ORIGIN_HTTP_403) { 
     133                $label = __('403 Forbidden (Local cache)'); 
     134                $cls = ERROR_ERROR; 
    131135            } 
    132136            else { 
     
    141145        else { 
    142146            if (is_numeric($error)) { 
    143                 $label = __('ERROR'); 
     147                $label = __('ERROR') ." $error"; 
    144148                $cls = ERROR_ERROR; 
    145149            } else { 
  • branches/multiuser/cls/wrappers/header.php

    r1604 r1639  
    135135} 
    136136 
    137 function rss_header_logininfo() { 
     137function rss_header_logininfo($showLoginBox = true) { 
    138138 
    139139    $ret = "<div id=\"loginfo\">\n"; 
     
    142142        $ret .= sprintf(__('Logged in as <strong>%s</strong>'), rss_user_name()) 
    143143                ."&nbsp;|&nbsp;<a href=\"".getPath()."?logout\">".__('Logout')."</a>\n"; 
    144     } else { 
     144    } else if(true == $showLoginBox) { 
    145145        $ret .= __('Not logged in') 
    146146                ."&nbsp;|&nbsp;<a href=\"#\" onclick=\"miniloginform(); return false;\">".__('Login')."</a>"; 
  • branches/multiuser/cls/wrappers/item.php

    r1606 r1639  
    4747    if (getConfig('rss.output.usepermalinks')) { 
    4848        list ($ply, $plm, $pld) = explode(":", rss_date("Y:m:d", $GLOBALS['rss'] -> currentItem -> date, false)); 
    49         $ptitle = ($label."'".$GLOBALS['rss'] -> currentItem -> parent -> escapedTitle 
    50             ."/$ply/$plm/$pld/".$GLOBALS['rss'] -> currentItem -> escapedTitle."'"); 
    51     } 
    52     return $ptitle; 
     49        $ptitle = ($label."'". htmlentities($GLOBALS['rss'] -> currentItem -> title,ENT_QUOTES  ,'UTF-8') ."'"); 
     50    } 
     51    return @$ptitle; 
    5352} 
    5453 
  • branches/multiuser/constants.php

    r1530 r1639  
    177177// Profiling  
    178178//  - The profiling information is "html commented out" at the end of every html page 
    179 define('PROFILING', 1); 
    180 define('PROFILING_DB', 1); 
     179//define('PROFILING', 1); 
     180//define('PROFILING_DB', 1); 
    181181 
    182182?> 
  • branches/multiuser/extlib/rss_fetch.inc

    r1164 r1639  
    5050// Not fetched because age < MAGPIE_CACHE_AGE 
    5151define ('MAGPIE_FEED_ORIGIN_NOT_FETCHED', 64); 
     52// 403 Forbidden 
     53define ('MAGPIE_FEED_ORIGIN_HTTP_403', 128); 
    5254 
    5355/* 
     
    236238            if (is_object($resp) && isset($resp->status)) { 
    237239                switch ($resp->status) { 
     240        case '403': 
     241            $rss -> rss_origin |= MAGPIE_FEED_ORIGIN_HTTP_403; 
     242            break; 
    238243                case '404': 
    239244                        $rss -> rss_origin |= MAGPIE_FEED_ORIGIN_HTTP_404; 
  • branches/multiuser/index.php

    r1604 r1639  
    122122    $unreadItems = new ItemList(); 
    123123    $numItems = getConfig('rss.output.frontpage.numitems'); 
    124      
    125      
    126     $unreadItems -> populate(" i2u.flgunread=1 ", "", 0, $numItems,ITEM_SORT_HINT_UNREAD); 
     124    /* 
     125    $hiddenIds = getHiddenChannelIds(); 
     126    if (count($hiddenIds)) { 
     127        $sqlWhereHidden = " and c.id not in (" . implode(',',$hiddenIds) . ") "; 
     128    } else { 
     129        $sqlWhereHidden = ""; 
     130    } 
     131    */ 
     132    $sqlWhereHidden = ""; 
     133     
     134    $unreadItems -> populate("i2u.flgunread=1 & " . RSS_MODE_UNREAD_STATE . $sqlWhereHidden, "", 0, $numItems,ITEM_SORT_HINT_UNREAD); 
    127135    //var_dump($unreadItems); 
    128136    _pf('end populate unread items'); 
  • branches/multiuser/themes/default/mobile/feed.php

    r1302 r1639  
    11<?php if(rss_feed_do_title()) { ?> 
    2 <h3><a href="<?php echo rss_feed_url(); ?>"><?php echo rss_feed_title(); ?></a></h3> 
     2<h3> 
     3<?php if (rss_feed_favicon_url()) { ?> 
     4<img src="<?php echo rss_feed_favicon_url(); ?>" class="favicon" width="16" height="16" alt="" /> 
     5<?php } ?> 
     6<a href="<?php echo rss_feed_url(); ?>"><?php echo rss_feed_title(); ?></a></h3> 
    37<?php }  
    48rss_feed_items(); 
  • branches/multiuser/themes/default/mobile/footer.php

    r1302 r1639  
    1 <span><a href="#top">TOP</a></span> 
    2 <span><a href="http://gregarius.net/">Gregarius</a> <?php echo _VERSION_; ?><?php echo rss_svn_rev('.'); ?></span> 
    3 <span><a href="http://validator.w3.org/check/referer">XHTML1.0-MP</a></span> 
    4 <span>Last update: <?php echo rss_footer_last_modif(); ?></span> 
     1<div id="footer"> 
     2<?php echo rss_nav() ?> 
     3</div> 
  • branches/multiuser/themes/default/mobile/header.php

    r1302 r1639  
    11<title><?php echo rss_header_title() ?></title> 
    2 <link rel="stylesheet" type="text/css" href="<?php echo getExternalThemeFile( 'style.css' ) ?>" /> 
     2<link rel="stylesheet" type="text/css" href="<?php echo getExternalThemeFile( 'style.css' ) ?>"> 
  • branches/multiuser/themes/default/mobile/index.php

    r1309 r1639  
    44<?php rss_main_header(); ?> 
    55</head> 
    6 <body> 
    7 <a name="top"></a> 
     6<body id="top"> 
    87<?php  
    98if( array_key_exists('feeds',$_REQUEST) ) { 
     
    2019</div> 
    2120<?php } ?> 
    22 <?php echo rss_nav() ?> 
    23 <div id="ftr"> 
    24     <?php rss_main_footer(); ?> 
    25 </div> 
     21<?php rss_main_footer(); ?> 
    2622</body> 
    2723</html> 
  • branches/multiuser/themes/default/mobile/item.php

    r1604 r1639  
    1 <br /><br /><h4><a href="<?php 
     1<?php 
     2if (!isset($GLOBALS['__item__idx__'])) { 
     3    $GLOBALS['__item__idx__']=0; 
     4} 
     5$cls = $GLOBALS['__item__idx__']++ % 2 ? 'e':'o'; 
     6?> 
     7<div class="item <?php echo $cls; ?>"> 
     8<h4><a href="<?php 
    29  $url = rss_item_url(); 
    310  if (substr($url,0,4) == 'http') { 
     
    815?>"><?php echo rss_item_title();  
    916?></a></h4> 
    10 <h5><?php echo rss_item_date(); ?><?php echo rss_item_author(); ?></h5> 
     17<h5><?php echo rss_item_date(); ?> <?php echo rss_item_author(); ?></h5> 
    1118<?php if (rss_item_has_enclosure()) { ?> 
    1219<h5><?php echo __('Enclosure:'); ?>&nbsp;[<a href="<?php echo rss_item_enclosure(); ?>"><?php echo __('download'); ?></a>]</h5> 
    1320<?php } ?> 
    1421<?php   if (rss_item_display_tags() && count($GLOBALS['rss']->currentItem->tags)) { ?> 
    15 <h5><a href="<?php echo rss_item_tagslink(); ?>"><?php echo __('Tags'); ?></a>:&nbsp;<span><?php echo rss_item_tags(); ?></h5> 
     22<h5><a href="<?php echo rss_item_tagslink(); ?>"><?php echo __('Tags'); ?></a>:&nbsp;<span><?php echo rss_item_tags(); ?></span></h5> 
    1623<?php } ?> 
    17 <br /> 
    1824<div class="content"> 
    1925<?php echo rss_item_content(); ?> 
    2026 
    2127<?php if(!hidePrivate()) { ?> 
    22     <br /> 
    23     <div class="mobileform"> 
    24     <input type="radio" value="mobile_read" name="<?= rss_item_id(); ?>" <?php 
    25       if( !$GLOBALS['rss'] -> currentItem -> isUnread && !$GLOBALS['rss'] -> currentItem -> isSticky ) { 
    26         echo "checked"; 
    27       } 
    28     ?> >read 
    29     <input type="radio" name="<?= rss_item_id(); ?>" <?php 
    30       if( $GLOBALS['rss'] -> currentItem -> isUnread ) { 
    31         echo "checked";  
    32       } 
    33     ?> >unread 
    34     <input type="radio" value="mobile_sticky" name="<?= rss_item_id(); ?>" <?php 
    35       if( $GLOBALS['rss'] -> currentItem -> isSticky ) { 
    36         echo "checked"; 
    37       } 
    38     ?> >sticky 
    39     </div> 
     28<div class="mobileform"> 
     29<label for="it_<?= rss_item_id(); ?>">State:</label> 
     30<select id="it_<?= rss_item_id(); ?>" name="<?= rss_item_id(); ?>"> 
     31    <option value="mobile_read" <?php  
     32        if(!$GLOBALS['rss'] -> currentItem -> isSticky ) {  
     33            echo "selected=\"selected\"";  
     34        } ?>><?= __('Read'); ?></option> 
     35    <option value="mobile_unread"><?= __('Unread'); ?></option> 
     36    <option value="mobile_sticky"   <?php 
     37          if( $GLOBALS['rss'] -> currentItem -> isSticky ) { 
     38            echo "selected=\"selected\"";  
     39          } 
     40        ?>><?= __('Sticky'); ?></option> 
     41</select> 
     42</div> 
    4043<?php } ?> 
    4144 
  • branches/multiuser/themes/default/mobile/itemlist.php

    r1356 r1639  
     1<?php if ($title = rss_itemlist_title()) { ?> 
     2< <h2><?php echo $title; ?></h2> 
    13<?php if(hidePrivate()) { ?> 
    2     <p>(<a href="<?php echo getPath(); ?>?mobilelogin&media=mobile">Login</a> to mark items read)</p> 
     4    <p>(<a href="<?php echo getPath(); ?>?mobilelogin&amp;media=mobile">Login</a> to mark items read)</p> 
    35<?php } ?> 
    4 <?php if ($title = rss_itemlist_title()) { ?> 
    5 <h2><?php echo $title; ?></h2> 
    6 <form method="POST" style="display: inline;"> 
     6<form method="post" action="<?= getPath(); ?>"> 
    77<?php } rss_itemlist_feeds(); ?> 
    88<?php if( !isMobileDevice() ) { ?> 
    9 <input type='hidden' name='mobile'> 
     9<input type='hidden' name='mobile' /> 
    1010<?php } ?> 
    11 <input type='submit' value='next'> 
     11<p id="nextitems"><input type='submit' value='Next  &raquo;&raquo;' /></p> 
    1212</form> 
     13<?php rss_plugin_hook('rss.plugins.bodyend.media', getThemeMedia()); ?> 
  • branches/multiuser/themes/default/mobile/nav.php

    r1604 r1639  
    1 <div class="navlist"> 
    21<?php  
    32$GLOBALS['rss']->nav->appendNavItem(getPath()."?feeds",__('Feeds')); 
    43$GLOBALS['rss']->nav->appendNavItem(getPath()."?cats",__('Categories')); 
    5 $GLOBALS['rss']->nav->appendNavItem(getPath()."update.php?mobile", __('<span>R</span>efresh')); 
     4$GLOBALS['rss']->nav->appendNavItem(getPath()."update.php?mobile", __('Refresh')); 
     5$GLOBALS['rss']->nav->appendNavItem("#top",'TOP of Page'); 
    66 
    77foreach ($GLOBALS['rss']->nav->items as $item) { 
     
    1212 
    1313?> 
    14 </div> 
  • branches/multiuser/themes/default/mobile/navitem.php

    r1302 r1639  
    1 <span<?php echo rss_nav_item_class(); ?>><a href="<?php echo rss_nav_item_href(); ?>"><?php echo rss_nav_item_label(); ?></a></span> 
     1<?php  
     2if (!isset($GLOBALS['__ak__'])) { 
     3    $GLOBALS['__ak__']=0; 
     4} 
     5$ak = ++$GLOBALS['__ak__']; 
     6?> 
     7<p><span>[<?= $ak; ?>] </span><a accesskey="<?= $ak; ?>" href="<?php echo rss_nav_item_href(); ?>"><?php echo rss_nav_item_label(); ?></a></p> 
  • branches/multiuser/themes/default/mobile/plugins.php

    r1442 r1639  
    1818function __mobile_truncate_content($i) { 
    1919    $ml = rss_theme_config_override_option('rss.output.maxlength',DEFAULT_MOBILE_OUTPUT_MAXLENGTH); 
    20     $i -> description =  html_substr($i -> description, $ml) ; 
     20    if ($ml) { 
     21        $i -> description =  html_substr($i -> description, $ml) ; 
     22    } 
    2123    return $i; 
    2224} 
     
    2931    rss_set_hook('rss.plugins.items.beforerender','__mobile_truncate_content'); 
    3032} 
    31  
    32  
    33 /*else { 
    34 setProperty('rss.prop.theme.default.mobile','rss.content.strip.images','theme',true) ; 
    35 }*/ 
    3633 
    3734function mobileLoginForm() { 
  • branches/multiuser/themes/default/mobile/style.css

    r1357 r1639  
    1 img {  border: 0px; } 
    2 h4,h5 { display:block;margin:0;padding:0 } 
    3 div.mobileform { 
    4   border: 1px dashed black;  
    5   margin: 0 13px 13px 0; 
    6   display:block; 
    7 } 
     1body { 
     2background-color:white; 
     3padding: 0; 
     4margin:0; 
     5font: normal x-small Verdana, Arial, "MS Trebuchet", sans-serif; 
     6color: #333; 
     7< input,select,option{font-size:xx-small;} 
     8< div,p,h4,h5,ul {margin:0;padding:0;} 
     9< div.item { border-top: 1px solid #ccc; border-bottom: 1px solid #ccc; margin:0.3em 0; padding: 0 ;} 
     10< div.item.e { background-color: #efefef;} 
     11< div.item.o { background-color: #f6f6f6;} 
     12< div.item .content { padding: 1em 4px; } 
     13< a {color:#d54; text-decoration:none;} 
     14< img {border: 0px;} 
     15< h2 {font-size:120%;} 
     16