Changeset 1595 for branches/multiuser
- Timestamp:
- 10/04/06 06:55:02 (2 years ago)
- Location:
- branches/multiuser
- Files:
-
- 21 modified
-
admin/channels.php (modified) (4 diffs)
-
admin/items.php (modified) (3 diffs)
-
cls/channels.php (modified) (1 diff)
-
cls/wrappers/item.php (modified) (1 diff)
-
extlib/rss_dbcache.inc (modified) (1 diff)
-
intl/cn_s.php (modified) (1 diff)
-
intl/cn_t.php (modified) (1 diff)
-
intl/de.php (modified) (1 diff)
-
intl/dk.php (modified) (1 diff)
-
intl/en.php (modified) (2 diffs)
-
intl/es.php (modified) (1 diff)
-
intl/fr.php (modified) (1 diff)
-
intl/he.php (modified) (1 diff)
-
intl/it.php (modified) (1 diff)
-
intl/ja.php (modified) (1 diff)
-
intl/pt_BR.php (modified) (1 diff)
-
intl/pt_PT.php (modified) (1 diff)
-
intl/ru.php (modified) (1 diff)
-
intl/sv.php (modified) (1 diff)
-
plugins/urlfilter.php (modified) (2 diffs)
-
util.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/multiuser/admin/channels.php
r1530 r1595 98 98 $sql = "select " 99 99 ." c.id, c.title, c.url, c.siteurl, d.name, c.descr, c.parent, c.icon, c.mode, c.daterefreshed " 100 ." from " .getTable("channels") ." c, " . getTable("folders") ." d " 101 ." where d.id = c.parent "; 100 ." from " .getTable("channels") ." c " 101 ." inner join " . getTable("folders") ." d " 102 ." on d.id = c.parent "; 102 103 103 104 if (getConfig('rss.config.absoluteordering')) { … … 123 124 // get feed's tags 124 125 $tags = ""; 125 $sql2 = "select t.id, t.tag from " . getTable('tag') . " t, " 126 . getTable('metatag') . " m where t.id = m.tid " 127 . "and m.ttype = 'channel' and m.fid = $id"; 126 $sql2 = "select t.id, t.tag from " . getTable('tag') . " t " 127 . "inner join " . getTable('metatag') . " m " 128 . " on m.tid = t.id " 129 . "where m.ttype = 'channel' and m.fid = $id"; 128 130 $res2 = rss_query($sql2); 129 131 … … 747 749 748 750 function channel_edit_form($cid) { 749 $sql = "select id, title, url, siteurl, parent, descr, icon, mode from " .getTable("channels") ." where id=$cid";751 $sql = "select id, title, url, siteurl, parent, descr, icon, mode, daterefreshed, dateadded from " .getTable("channels") ." where id=$cid"; 750 752 $res = rss_query($sql); 751 list ($id, $title, $url, $siteurl, $parent, $descr, $icon, $mode) = rss_fetch_row($res);753 list ($id, $title, $url, $siteurl, $parent, $descr, $icon, $mode, $daterefreshed, $dateadded) = rss_fetch_row($res); 752 754 // get tags 753 $sql = "select t.tag from " . getTable('tag')." t, " . getTable('metatag') 754 . " m where t.id = m.tid and m.ttype = 'channel' and m.fid = $cid"; 755 $sql = "select t.tag from " . getTable('tag')." t " 756 . " inner join " . getTable('metatag') . " m " 757 . " on m.tid = t.id " 758 . "where m.ttype = 'channel' and m.fid = $cid"; 755 759 $res = rss_query($sql); 756 760 $tags = ""; … … 763 767 764 768 echo "<form method=\"post\" action=\"" .$_SERVER['PHP_SELF'] ."#fa$cid\" id=\"channeledit\">\n"; 765 echo "<fieldset id=\"channeleditfs\">" 766 ."<p>"; 769 echo "<fieldset id=\"channeleditfs\">"; 770 // Timestamps 771 if(!empty($daterefreshed)) { 772 echo "<p><label>" . LBL_ADDED . ": " . date("M-d-Y H:i", strtotime($dateadded)) . "</label></p>" 773 ."<p><label>" . LBL_LAST_UPDATE . ": ".date("M-d-Y H:i", strtotime($daterefreshed))."</label></p>\n"; 774 } else { 775 echo "<p><label>" . LBL_ADDED . ": " . date("M-d-Y H:i", strtotime($dateadded)) . "</label></p>" 776 ."<p><label>" . LBL_LAST_UPDATE . ": " . LBL_FOOTER_LAST_MODIF_NEVER . "</label></p>\n"; 777 } 767 778 // Item name 768 echo "< label for=\"c_name\">". LBL_ADMIN_CHANNEL_NAME ."</label>\n"779 echo "<p><label for=\"c_name\">". LBL_ADMIN_CHANNEL_NAME ."</label>\n" 769 780 ."<input type=\"text\" id=\"c_name\" name=\"c_name\" value=\"$title\" />" 770 781 ."<input type=\"hidden\" name=\"".CST_ADMIN_DOMAIN."\" value=\"". CST_ADMIN_DOMAIN_CHANNEL."\" />\n" -
branches/multiuser/admin/items.php
r1530 r1595 96 96 break; 97 97 } 98 $sql = " from ".getTable('item') ." i INNER JOIN " .getTable('channels') . " c ONc.id=i.cid "98 $sql = " from ".getTable('item') ." i inner join " .getTable('channels') . " c on c.id=i.cid " 99 99 ." where 1=1 "; 100 100 … … 131 131 } 132 132 133 $tsql = " select distinct fid from ". getTable('metatag') . " m, " 134 . getTable('tag') . " t" 135 ." where m.tid=t.id and t.tag in ('" 133 $tsql = " select distinct fid from ". getTable('metatag') . " m " 134 . " inner join " . getTable('tag') . " t" 135 . " on t.id = m.tid " 136 . " where t.tag in ('" 136 137 . implode("', '", $trimmed_exclude_tags) ."')"; 137 138 } … … 151 152 //delete the tags for these items 152 153 $sqlids = "select distinct i.id,i.cid " . $sql 153 . " and i.cid=c.idorder by i.cid, i.id desc";154 . " order by i.cid, i.id desc"; 154 155 155 156 -
branches/multiuser/cls/channels.php
r1541 r1595 90 90 //$this->rlink = getPath().preg_replace("/[^a-zA-Z0-9_]/", "_", $title)."/"; 91 91 /* EXPERIMENTAL! */ 92 $this->rlink = getPath() . utf8_uri_encode(preg_replace('/[\s&\/ ]/','_',$title)) . "/";92 $this->rlink = getPath() . utf8_uri_encode(preg_replace('/[\s&\/\+]/','_',$title)) . "/"; 93 93 } else { 94 94 $this->rlink = getPath()."feed.php?channel=$id"; -
branches/multiuser/cls/wrappers/item.php
r1493 r1595 72 72 return $url; 73 73 } 74 return rss_item_pl_url();74 return "http://" . $_SERVER['HTTP_HOST'] . rss_item_pl_url(); 75 75 } 76 76 -
branches/multiuser/extlib/rss_dbcache.inc
r1353 r1595 148 148 return $cid; // should always be positive 149 149 } else { 150 if ( MAGPIE_DEBUG ) { 150 151 $this->error("Cache unable translate to cid: $url"); 151 return 0; 152 } 153 return 0; 152 154 } 153 155 } -
branches/multiuser/intl/cn_s.php
r1530 r1595 334 334 è¯»çæ¡ç®å)'); 335 335 define ('LBL_FLAG','å·²æ è®°'); 336 336 define ('LBL_ADDED', 'Added'); 337 337 ?> -
branches/multiuser/intl/cn_t.php
r1493 r1595 336 336 define ('LBL_STATE_FLAG','æšèš (çºæåŸé±è®çæ¢ç®å)'); 337 337 define ('LBL_FLAG','å·²æšèš'); 338 338 define ('LBL_ADDED', 'Added'); 339 339 ?> -
branches/multiuser/intl/de.php
r1502 r1595 295 295 define ('LBL_MARK_FOLDER_READ_ALL',"Markiere diesen Ordner als gelesen"); 296 296 define ('LBL_MARK_CATEGORY_READ_ALL',"Markiere diese Kategorie als gelesen"); 297 define ('LBL_ADDED', 'Added'); 297 298 ?> -
branches/multiuser/intl/dk.php
r1493 r1595 293 293 define ('LBL_MARK_FOLDER_READ_ALL',"Mark This Folder as Read"); 294 294 define ('LBL_MARK_CATEGORY_READ_ALL',"Mark This Category as Read"); 295 define ('LBL_ADDED', 'Added'); 295 296 ?> -
branches/multiuser/intl/en.php
r1533 r1595 293 293 .' href="http://plugins.gregarius.net/">Plugin Repository</a>.</p>'); 294 294 295 define ('LBL_LAST_UPDATE','Last update');295 define ('LBL_LAST_UPDATE','Last Update'); 296 296 define ('LBL_ADMIN_DOMAIN_THEMES_LBL','themes'); 297 297 define ('LBL_ADMIN_THEMES','Themes'); … … 304 304 define ('LBL_STATE_FLAG','Flag (Flags an item for later reading)'); 305 305 define ('LBL_FLAG','Flagged'); 306 define ('LBL_ADDED', 'Added'); 306 307 307 308 define('LBL_ADMIN_USERS','Users'); -
branches/multiuser/intl/es.php
r1502 r1595 296 296 define ('LBL_STATE_FLAG','Marca (Marca un item para leerlo más tarde)'); 297 297 define ('LBL_FLAG','Marcado'); 298 define ('LBL_ADDED', 'Added'); 298 299 ?> -
branches/multiuser/intl/fr.php
r1493 r1595 299 299 define ('LBL_MARK_FOLDER_READ_ALL',"Marquer ce répertoire comme lu"); 300 300 define ('LBL_MARK_CATEGORY_READ_ALL',"Marquer cette catégorie comme lu"); 301 define ('LBL_ADDED', 'Added'); 301 302 ?> -
branches/multiuser/intl/he.php
r1493 r1595 300 300 define ('LBL_STATE_FLAG','××ך ×× (ס×× ×š×©××× ×קך××× ××ך ××)'); 301 301 define ('LBL_FLAG','××ך ××'); 302 define ('LBL_ADDED', 'Added'); 302 303 303 304 ?> -
branches/multiuser/intl/it.php
r1502 r1595 304 304 define ('LBL_MARK_FOLDER_READ_ALL',"Marca tutti gli elementi di questa cartella come letti"); 305 305 define ('LBL_MARK_CATEGORY_READ_ALL',"Marca tutti gli elementi di questa categoria come letti"); 306 define ('LBL_ADDED', 'Added'); 306 307 ?> -
branches/multiuser/intl/ja.php
r1502 r1595 316 316 define ('LBL_STATE_FLAG','ãã©ã°(åŸã§èªãããã«èšäºã«ãã©ã°ãã€ãã)'); 317 317 define ('LBL_FLAG','ãã©ã°ãã€ããŠããŸã'); 318 define ('LBL_ADDED', 'Added'); 318 319 319 320 ?> -
branches/multiuser/intl/pt_BR.php
r1502 r1595 298 298 define ('LBL_MARK_FOLDER_READ_ALL',"Marcar esta pasta como lida"); 299 299 define ('LBL_MARK_CATEGORY_READ_ALL',"Marcar esta categoria como lida"); 300 define ('LBL_ADDED', 'Added'); 300 301 ?> -
branches/multiuser/intl/pt_PT.php
r1493 r1595 311 311 define ('LBL_STATE_FLAG','Marcar (Marca um item para leitura posterior)'); 312 312 define ('LBL_FLAG','Marcado'); 313 define ('LBL_ADDED', 'Added'); 313 314 314 315 ?> -
branches/multiuser/intl/ru.php
r1493 r1595 317 317 318 318 define ('LBL_MARK_CATEGORY_READ_ALL',"Mark This Category as Read"); 319 define ('LBL_ADDED', 'Added'); 319 320 ?> -
branches/multiuser/intl/sv.php
r1493 r1595 310 310 define ('LBL_MARK_FOLDER_READ_ALL',"Mark This Folder as Read"); 311 311 define ('LBL_MARK_CATEGORY_READ_ALL',"Mark This Category as Read"); 312 define ('LBL_ADDED', 'Added'); 312 313 ?> -
branches/multiuser/plugins/urlfilter.php
r1513 r1595 31 31 /// Author: Marco Bonetti 32 32 /// Description: This plugin will try to make ugly URL links look better 33 /// Version: 1. 733 /// Version: 1.8 34 34 35 35 /** … … 40 40 $match = '#<a[^>]+?href="(.*?)">\\1</a>#im'; 41 41 // matches non-linkified URLs 42 $match2 = '#[^>"\' ](http[^\s$]+)[\s$]?#im';42 $match2 = '#[^>"\'/=\?](http[^\s$]+)[\s$]?#im'; 43 43 $ret= preg_replace_callback($match, '__filter_callback', $in); 44 44 $ret2= preg_replace_callback($match2,'__filter_callback', $ret); -
branches/multiuser/util.php
r1530 r1595 540 540 $sql = "insert into ".getTable("channels") 541 541 ." (title, url, siteurl, parent, descr, dateadded, icon, position, mode, daterefreshed)" 542 ." values ('$title', '$urlDB', '$siteurl', $folderid, '$descr', now(), '$icon', $np, $mode, 1)";542 ." values ('$title', '$urlDB', '$siteurl', $folderid, '$descr', now(), '$icon', $np, $mode, '0000-00-00 00:00:00')"; 543 543 544 544 rss_query($sql);
