Changeset 1656
- Timestamp:
- 01/07/07 10:39:32 (23 months ago)
- Location:
- trunk/gregarius
- Files:
-
- 2 modified
-
.htaccess (modified) (3 diffs)
-
author.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/gregarius/.htaccess
r1525 r1656 28 28 29 29 #admin section 30 RewriteRule ^admin \/sub\/(.+)$ admin/index.php?domain=feeds&add_channel_to_folder=0&action=Add&new_channel=$1 [L,NE]31 RewriteRule ^admin \/([a-z]+)$ admin/index.php?view=$1 [L]30 RewriteRule ^admin/sub/(.+)$ admin/index.php?domain=feeds&add_channel_to_folder=0&action=Add&new_channel=$1 [L,NE] 31 RewriteRule ^admin/([a-z]+)$ admin/index.php?view=$1 [L] 32 32 33 33 #opml … … 35 35 36 36 #tag view 37 RewriteRule ^tags? \/?$ tags.php?alltags [L,QSA]38 RewriteRule ^tag \/(.+)$ tags.php?tag=$1 [L,QSA]39 RewriteRule ^tag \/(.+)\/rss\/?$ tags.php?tag=$1&rss [L,QSA]37 RewriteRule ^tags?/?$ tags.php?alltags [L,QSA] 38 RewriteRule ^tag/(.+)$ tags.php?tag=$1 [L,QSA] 39 RewriteRule ^tag/(.+)/rss/?$ tags.php?tag=$1&rss [L,QSA] 40 40 41 41 #state view … … 47 47 #date view 48 48 RewriteCond %{env:static} ^$ 49 RewriteRule ^(20[0-1][0-9]) \/([0-9][0-9]?)\/([0-9]?[0-9])\/?$ feed.php?y=$1&m=$2&d=$3 [L,QSA]49 RewriteRule ^(20[0-1][0-9])/([0-9][0-9]?)/([0-9]?[0-9])/?$ feed.php?y=$1&m=$2&d=$3 [L,QSA] 50 50 51 51 #item view 52 52 RewriteCond %{env:static} ^$ 53 RewriteRule ^(.+) \/(20[0-1][0-9])\/([0-9][0-9]?)\/?([0-9]?[0-9])?\/?(.*)?$ feed.php?channel=$1&y=$2&m=$3&d=$4&iid=$5 [L,QSA]53 RewriteRule ^(.+)/(20[0-1][0-9])/([0-9][0-9]?)/?([0-9]?[0-9])?/?(.*)?$ feed.php?channel=$1&y=$2&m=$3&d=$4&iid=$5 [L,QSA] 54 54 55 55 #feed view 56 56 RewriteCond %{env:static} ^$ 57 RewriteRule ^(.+) \/(.*)?$ feed.php?channel=$1&iid=$2 [L,QSA]57 RewriteRule ^(.+)/(.*)?$ feed.php?channel=$1&iid=$2 [L,QSA] 58 58 59 59 #feed view - without the trailing slash 60 60 RewriteCond %{env:static} ^$ 61 RewriteRule ^(.+) \/?$ feed.php?channel=$1 [L,QSA]61 RewriteRule ^(.+)/?$ feed.php?channel=$1 [L,QSA] 62 62 </IfModule> -
trunk/gregarius/author.php
r1592 r1656 28 28 require_once ('init.php'); 29 29 30 $a =trim(sanitize($_REQUEST['author'], RSS_SANITIZER_WORDS)); 31 30 $a = trim(sanitize($_REQUEST['author'], RSS_SANITIZER_WORDS)); 32 31 list ($ra) = rss_fetch_row(rss_query( 33 32 "select distinct(author) from " .getTable('item') 34 ." where author = '$a'"33 ." where author like '%$a'" 35 34 )); 36 35 … … 44 43 $GLOBALS['rss']->feedList = new FeedList(false); 45 44 $authorItems = new ItemList(); 46 $sqlWhere = " i.author like ' $a' ";45 $sqlWhere = " i.author like '%$a' "; 47 46 $numItems = getConfig('rss.output.frontpage.numitems'); 48 47 $authorItems->populate($sqlWhere, "", 0, $numItems);
