Changeset 1603
- Timestamp:
- 10/15/06 22:13:45 (2 years ago)
- Location:
- branches/postgresql
- Files:
-
- 1 added
- 1 removed
- 75 modified
- 69 copied
-
.htaccess (modified) (1 diff)
-
INSTALL (modified) (1 diff)
-
admin/channels.php (modified) (35 diffs)
-
admin/config.php (modified) (18 diffs)
-
admin/dashboard.php (modified) (1 diff)
-
admin/folders.php (modified) (13 diffs)
-
admin/index.php (modified) (11 diffs)
-
admin/items.php (modified) (9 diffs)
-
admin/markallasread.php (deleted)
-
admin/opml.php (modified) (5 diffs)
-
admin/plugins.php (modified) (5 diffs)
-
admin/tags.php (copied) (copied from trunk/gregarius/admin/tags.php)
-
admin/themes.php (modified) (11 diffs)
-
admin/users.php (modified) (3 diffs)
-
ajax.php (modified) (9 diffs)
-
api.php (modified) (2 diffs)
-
author.php (modified) (2 diffs)
-
cls/alltags.php (modified) (5 diffs)
-
cls/categories.php (modified) (6 diffs)
-
cls/channels.php (modified) (7 diffs)
-
cls/db/db.mysql.php (modified) (5 diffs)
-
cls/header.php (modified) (2 diffs)
-
cls/items.php (modified) (4 diffs)
-
cls/l10n.php (modified) (2 diffs)
-
cls/nav.php (modified) (1 diff)
-
cls/search.php (modified) (3 diffs)
-
cls/taglist.php (modified) (2 diffs)
-
cls/update.php (modified) (12 diffs)
-
cls/wrappers/feeds.php (modified) (2 diffs)
-
cls/wrappers/header.php (modified) (1 diff)
-
cls/wrappers/item.php (modified) (5 diffs)
-
cls/wrappers/searchform.php (modified) (4 diffs)
-
cls/wrappers/toolkit.php (copied) (copied from trunk/gregarius/cls/wrappers/toolkit.php)
-
constants.php (modified) (2 diffs)
-
css/print.css (modified) (1 diff)
-
db.php (modified) (1 diff)
-
dist/convert.php (copied) (copied from trunk/gregarius/dist/convert.php)
-
dist/l10n.sh (modified) (1 diff)
-
extlib/rss_dbcache.inc (modified) (1 diff)
-
feed.php (modified) (26 diffs)
-
index.php (modified) (5 diffs)
-
init.php (modified) (3 diffs)
-
install.php (modified) (6 diffs)
-
intl/cn_s.php (modified) (3 diffs)
-
intl/cn_t.php (modified) (3 diffs)
-
intl/da (copied) (copied from trunk/gregarius/intl/da)
-
intl/da/LC_MESSAGES (copied) (copied from trunk/gregarius/intl/da/LC_MESSAGES)
-
intl/da/LC_MESSAGES/messages.mo (copied) (copied from trunk/gregarius/intl/da/LC_MESSAGES/messages.mo)
-
intl/da/LC_MESSAGES/messages.po (copied) (copied from trunk/gregarius/intl/da/LC_MESSAGES/messages.po)
-
intl/da/langinfo.txt (copied) (copied from trunk/gregarius/intl/da/langinfo.txt)
-
intl/de (copied) (copied from trunk/gregarius/intl/de)
-
intl/de.php (modified) (3 diffs)
-
intl/de/LC_MESSAGES (copied) (copied from trunk/gregarius/intl/de/LC_MESSAGES)
-
intl/de/LC_MESSAGES/messages.mo (copied) (copied from trunk/gregarius/intl/de/LC_MESSAGES/messages.mo)
-
intl/de/LC_MESSAGES/messages.po (copied) (copied from trunk/gregarius/intl/de/LC_MESSAGES/messages.po)
-
intl/de/langinfo.txt (copied) (copied from trunk/gregarius/intl/de/langinfo.txt)
-
intl/dk.php (modified) (2 diffs)
-
intl/en.php (modified) (4 diffs)
-
intl/es (copied) (copied from trunk/gregarius/intl/es)
-
intl/es.php (modified) (3 diffs)
-
intl/es/LC_MESSAGES (copied) (copied from trunk/gregarius/intl/es/LC_MESSAGES)
-
intl/es/LC_MESSAGES/messages.mo (copied) (copied from trunk/gregarius/intl/es/LC_MESSAGES/messages.mo)
-
intl/es/LC_MESSAGES/messages.po (copied) (copied from trunk/gregarius/intl/es/LC_MESSAGES/messages.po)
-
intl/es/langinfo.txt (copied) (copied from trunk/gregarius/intl/es/langinfo.txt)
-
intl/fr (copied) (copied from trunk/gregarius/intl/fr)
-
intl/fr.php (modified) (2 diffs)
-
intl/fr/LC_MESSAGES (copied) (copied from trunk/gregarius/intl/fr/LC_MESSAGES)
-
intl/fr/LC_MESSAGES/messages.mo (copied) (copied from trunk/gregarius/intl/fr/LC_MESSAGES/messages.mo)
-
intl/fr/LC_MESSAGES/messages.po (copied) (copied from trunk/gregarius/intl/fr/LC_MESSAGES/messages.po)
-
intl/fr/langinfo.txt (copied) (copied from trunk/gregarius/intl/fr/langinfo.txt)
-
intl/he (copied) (copied from trunk/gregarius/intl/he)
-
intl/he.php (modified) (2 diffs)
-
intl/he/LC_MESSAGES (copied) (copied from trunk/gregarius/intl/he/LC_MESSAGES)
-
intl/he/LC_MESSAGES/messages.mo (copied) (copied from trunk/gregarius/intl/he/LC_MESSAGES/messages.mo)
-
intl/he/LC_MESSAGES/messages.po (copied) (copied from trunk/gregarius/intl/he/LC_MESSAGES/messages.po)
-
intl/he/langinfo.txt (copied) (copied from trunk/gregarius/intl/he/langinfo.txt)
-
intl/id (copied) (copied from trunk/gregarius/intl/id)
-
intl/id/LC_MESSAGES (copied) (copied from trunk/gregarius/intl/id/LC_MESSAGES)
-
intl/id/LC_MESSAGES/messages.mo (copied) (copied from trunk/gregarius/intl/id/LC_MESSAGES/messages.mo)
-
intl/id/LC_MESSAGES/messages.po (copied) (copied from trunk/gregarius/intl/id/LC_MESSAGES/messages.po)
-
intl/id/langinfo.txt (copied) (copied from trunk/gregarius/intl/id/langinfo.txt)
-
intl/it (copied) (copied from trunk/gregarius/intl/it)
-
intl/it.php (modified) (3 diffs)
-
intl/it/LC_MESSAGES (copied) (copied from trunk/gregarius/intl/it/LC_MESSAGES)
-
intl/it/LC_MESSAGES/messages.mo (copied) (copied from trunk/gregarius/intl/it/LC_MESSAGES/messages.mo)
-
intl/it/LC_MESSAGES/messages.po (copied) (copied from trunk/gregarius/intl/it/LC_MESSAGES/messages.po)
-
intl/it/langinfo.txt (copied) (copied from trunk/gregarius/intl/it/langinfo.txt)
-
intl/ja (copied) (copied from trunk/gregarius/intl/ja)
-
intl/ja.php (modified) (3 diffs)
-
intl/ja/LC_MESSAGES (copied) (copied from trunk/gregarius/intl/ja/LC_MESSAGES)
-
intl/ja/LC_MESSAGES/messages.mo (copied) (copied from trunk/gregarius/intl/ja/LC_MESSAGES/messages.mo)
-
intl/ja/LC_MESSAGES/messages.po (copied) (copied from trunk/gregarius/intl/ja/LC_MESSAGES/messages.po)
-
intl/ja/langinfo.txt (copied) (copied from trunk/gregarius/intl/ja/langinfo.txt)
-
intl/messages.pot (copied) (copied from trunk/gregarius/intl/messages.pot)
-
intl/pt (copied) (copied from trunk/gregarius/intl/pt)
-
intl/pt/LC_MESSAGES (copied) (copied from trunk/gregarius/intl/pt/LC_MESSAGES)
-
intl/pt/LC_MESSAGES/messages.mo (copied) (copied from trunk/gregarius/intl/pt/LC_MESSAGES/messages.mo)
-
intl/pt/LC_MESSAGES/messages.po (copied) (copied from trunk/gregarius/intl/pt/LC_MESSAGES/messages.po)
-
intl/pt/langinfo.txt (copied) (copied from trunk/gregarius/intl/pt/langinfo.txt)
-
intl/pt_BR (copied) (copied from trunk/gregarius/intl/pt_BR)
-
intl/pt_BR.php (modified) (3 diffs)
-
intl/pt_BR/LC_MESSAGES (copied) (copied from trunk/gregarius/intl/pt_BR/LC_MESSAGES)
-
intl/pt_BR/LC_MESSAGES/messages.mo (copied) (copied from trunk/gregarius/intl/pt_BR/LC_MESSAGES/messages.mo)
-
intl/pt_BR/LC_MESSAGES/messages.po (copied) (copied from trunk/gregarius/intl/pt_BR/LC_MESSAGES/messages.po)
-
intl/pt_BR/langinfo.txt (copied) (copied from trunk/gregarius/intl/pt_BR/langinfo.txt)
-
intl/pt_PT.php (modified) (2 diffs)
-
intl/ru (copied) (copied from trunk/gregarius/intl/ru)
-
intl/ru.php (modified) (2 diffs)
-
intl/ru/LC_MESSAGES (copied) (copied from trunk/gregarius/intl/ru/LC_MESSAGES)
-
intl/ru/LC_MESSAGES/messages.mo (copied) (copied from trunk/gregarius/intl/ru/LC_MESSAGES/messages.mo)
-
intl/ru/LC_MESSAGES/messages.po (copied) (copied from trunk/gregarius/intl/ru/LC_MESSAGES/messages.po)
-
intl/ru/langinfo.txt (copied) (copied from trunk/gregarius/intl/ru/langinfo.txt)
-
intl/sv (copied) (copied from trunk/gregarius/intl/sv)
-
intl/sv.php (modified) (2 diffs)
-
intl/sv/LC_MESSAGES (copied) (copied from trunk/gregarius/intl/sv/LC_MESSAGES)
-
intl/sv/LC_MESSAGES/messages.mo (copied) (copied from trunk/gregarius/intl/sv/LC_MESSAGES/messages.mo)
-
intl/sv/LC_MESSAGES/messages.po (copied) (copied from trunk/gregarius/intl/sv/LC_MESSAGES/messages.po)
-
intl/sv/langinfo.txt (copied) (copied from trunk/gregarius/intl/sv/langinfo.txt)
-
intl/zh_CN (copied) (copied from trunk/gregarius/intl/zh_CN)
-
intl/zh_CN/LC_MESSAGES (copied) (copied from trunk/gregarius/intl/zh_CN/LC_MESSAGES)
-
intl/zh_CN/LC_MESSAGES/messages.mo (copied) (copied from trunk/gregarius/intl/zh_CN/LC_MESSAGES/messages.mo)
-
intl/zh_CN/LC_MESSAGES/messages.po (copied) (copied from trunk/gregarius/intl/zh_CN/LC_MESSAGES/messages.po)
-
intl/zh_CN/langinfo.txt (copied) (copied from trunk/gregarius/intl/zh_CN/langinfo.txt)
-
opml.php (modified) (6 diffs)
-
plugins/dblclicktoread.php (modified) (2 diffs)
-
plugins/delicious.php (modified) (4 diffs)
-
plugins/extrabutton.php (modified) (1 diff)
-
plugins/markallread.php (modified) (6 diffs)
-
plugins/stickyflag/stickyflag.php (modified) (2 diffs)
-
plugins/urlfilter.php (modified) (3 diffs)
-
schema.php (modified) (7 diffs)
-
search.php (modified) (3 diffs)
-
sql_updates/pgsql_svn1586.sql (added)
-
state.php (modified) (1 diff)
-
tags.php (modified) (10 diffs)
-
themes/default/mobile/item.php (modified) (1 diff)
-
themes/default/mobile/nav.php (modified) (1 diff)
-
themes/default/mobile/searchform.php (modified) (4 diffs)
-
themes/default/web/css/look.css (modified) (3 diffs)
-
themes/default/web/footer.php (modified) (2 diffs)
-
themes/default/web/index.php (modified) (1 diff)
-
themes/default/web/item.php (modified) (3 diffs)
-
themes/default/web/searchform.php (modified) (3 diffs)
-
themes/lilina/web/item.php (modified) (6 diffs)
-
update.php (modified) (3 diffs)
-
util.php (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/postgresql/.htaccess
r1262 r1603 36 36 #tag view 37 37 RewriteRule ^tags?\/?$ tags.php?alltags [L,QSA] 38 RewriteRule ^tag\/( [a-zA-Z0-9_\.\+]+)$ tags.php?tag=$1 [L,QSA]39 RewriteRule ^tag\/( [a-zA-Z0-9_\.\+]+)\/rss\/?$ tags.php?tag=$1&rss [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 -
branches/postgresql/INSTALL
r1484 r1603 34 34 cd rss 35 35 36 5. Create a configuration file, based on the sample: 36 5. Choose your installation type: 37 38 1. For a graphical installation, point your browser at the root 39 directory of your installation. Enter the necessary information 40 about your database structure and continue. 41 42 2. For a manual installation, create a configuration file, based on the 43 sample: 37 44 38 1.Copy the sample database configuration file:45 Copy the sample database configuration file: 39 46 40 47 cp dbinit.php.sample dbinit.php 41 42 2.Edit the dbinit.php file to match your database configuration.48 49 Edit the dbinit.php file to match your database configuration. 43 50 Make sure that the database exists and has the right permissions 44 51 and the database user you define owns privileges to create/modify 45 tables. 52 tables. Point your browser at the root directory of your 53 installation. You should read a message informing you that the 54 database schema has been generated. 46 55 47 6. Point your browser to the root directory of your installation. 48 You should read a message informing you that the database schema 49 has been generated. 50 51 If at this point, the browser returns a 500 internal server 56 6. If at this point, the browser returns a 500 internal server 52 57 error, then remove (or disable) the .htaccess file in this 53 58 directory and try again. -
branches/postgresql/admin/channels.php
r1432 r1603 37 37 38 38 function channels() { 39 echo "<h2>". LBL_ADMIN_CHANNELS."</h2>\n";39 echo "<h2>". __('Feeds:') ."</h2>\n"; 40 40 echo "<div id=\"admin_channels\">\n"; 41 41 echo "<form method=\"post\" action=\"" .$_SERVER['PHP_SELF'] ."\">\n"; 42 42 echo "<p><input type=\"hidden\" name=\"". CST_ADMIN_DOMAIN."\" value=\"".CST_ADMIN_DOMAIN_CHANNEL."\" />\n"; 43 echo "<label for=\"new_channel\">". LBL_ADMIN_CHANNELS_ADD."</label>\n";43 echo "<label for=\"new_channel\">". __('Add a feed:') ."</label>\n"; 44 44 echo "<input type=\"text\" name=\"new_channel\" id=\"new_channel\" value=\"http://\" onmouseover=\"clearOnHover(this);\" onfocus=\"this.select()\" />\n"; 45 45 46 echo "<label for=\"add_channel_to_folder\">". LBL_ADMIN_IN_FOLDER . "</label>\n"; 47 folder_combo('add_channel_to_folder'); 48 echo "<input type=\"hidden\" name=\"". CST_ADMIN_METAACTION ."\" value=\"LBL_ADMIN_ADD\" />\n"; 49 echo "<input type=\"submit\" name=\"action\" value=\"". LBL_ADMIN_ADD ."\" /></p>\n"; 50 echo "<p style=\"font-size:small\">".LBL_ADMIN_ADD_CHANNEL_EXPL."</p>"; 46 echo "<label for=\"add_channel_to_folder\">". __('to folder:') . "</label>\n"; 47 echo rss_toolkit_folders_combo('add_channel_to_folder'); 48 echo "<label for=\"channel_tags\">" . __('Categories') . ":</label>\n"; 49 echo "<input type=\"text\" name=\"channel_tags\" id=\"channel_tags\" />\n"; 50 echo "<input type=\"hidden\" name=\"". CST_ADMIN_METAACTION ."\" value=\"ACT_ADMIN_ADD\" />\n"; 51 echo "<input type=\"submit\" name=\"action\" value=\"". __('Add') ."\" /></p>\n"; 52 echo "<p style=\"font-size:small\">".__('(Enter either the URL of an RSS feed or of a Website whose feed you wish to subscribe to)')."</p>"; 51 53 echo "</form>\n\n"; 52 54 … … 58 60 ."('$b_url'.concat(escape(document.location).replace(/\s/,'%2520'))))"; 59 61 60 echo "<p style=\"font-size:small\">" . LBL_ADMIN_BOOKMARKET_LABEL . " <a class=\"bookmarklet\" href=\"$bookmarklet\">".LBL_ADMIN_BOOKMARKLET_TITLE."</a></p>\n"; 62 echo "<p style=\"font-size:small\">" . __('Subscription bookmarklet [<a href="http://www.squarefree.com/bookmarklets/">?</a>]:') . " <a class=\"bookmarklet\" href=\"$bookmarklet\">".__('Subscribe in Gregarius!')."</a></p>\n"; 63 // feed handler - similar to bookmarklet, but with %s 64 $feedhandler_url = "javascript:navigator.registerContentHandler(\'application/vnd.mozilla.maybe.feed\',\'$b_url%s\',\'Gregarius\');"; 65 echo "<script type=\"text/javascript\">\n" 66 ."//<!--\n" 67 ."if (navigator && typeof(navigator.registerContentHandler) == 'function'){\n" 68 ."\tdocument.write('<p style=\"font-size:small\">" 69 . __('Register as Feed Handler [<a href="http://www.bengoodger.com/software/mb/feeds/feed-handling.html">?</a>]:') 70 . " <a class=\"bookmarklet\" href=\"$feedhandler_url\">" 71 .__('Register Gregarius!')."</a></p>');\n" 72 ."}\n" 73 ."// -->\n" 74 ."</script>\n"; 61 75 62 76 // feeds … … 81 95 ."<tr>\n" 82 96 ."\t<th><input type=\"checkbox\" id=\"mastercb\" onclick=\"cbtoggle();\" /></th>\n" 83 ."\t<th>". LBL_ADMIN_CHANNELS_HEADING_TITLE."</th>\n"84 ."\t<th class=\"cntr\">". LBL_ADMIN_CHANNELS_HEADING_FOLDER."</th>\n"85 ."\t<th>". LBL_ADMIN_CHANNELS_HEADING_DESCR."</th>\n"86 ."\t<th>". LBL_TAG_FOLDERS."</th>\n"87 ."\t<th>". LBL_ADMIN_CHANNELS_HEADING_FLAGS."</th>\n";97 ."\t<th>". __('Title') ."</th>\n" 98 ."\t<th class=\"cntr\">". __('Folder') ."</th>\n" 99 ."\t<th>". __('Description') ."</th>\n" 100 ."\t<th>". __('Categories')."</th>\n" 101 ."\t<th>". __('Flags')."</th>\n"; 88 102 89 103 if (getConfig('rss.config.absoluteordering')) { 90 echo "\t<th>". LBL_ADMIN_CHANNELS_HEADING_MOVE."</th>\n";91 } 92 93 echo "\t<th class=\"cntr\">". LBL_ADMIN_CHANNELS_HEADING_ACTION."</th>\n"104 echo "\t<th>".__('Move')."</th>\n"; 105 } 106 107 echo "\t<th class=\"cntr\">". __('Action') ."</th>\n" 94 108 ."</tr>\n"; 95 109 96 110 $sql = "select " 97 ." c.id, c.title, c.url, c.siteurl, d.name, c.descr, c.parent, c.icon, c.mode " 98 ." from " .getTable("channels") ." c, " . getTable("folders") ." d " 99 ." where d.id = c.parent "; 111 ." c.id, c.title, c.url, c.siteurl, d.name, c.descr, c.parent, c.icon, c.mode, c.daterefreshed " 112 ." from " .getTable("channels") ." c " 113 ." inner join " . getTable("folders") ." d " 114 ." on d.id = c.parent "; 100 115 101 116 if (getConfig('rss.config.absoluteordering')) { … … 107 122 $res = rss_query($sql); 108 123 $cntr = 0; 109 while (list($id, $title, $url, $siteurl, $parent, $descr, $pid, $icon, $mode) = rss_fetch_row($res)) {124 while (list($id, $title, $url, $siteurl, $parent, $descr, $pid, $icon, $mode, $daterefreshed) = rss_fetch_row($res)) { 110 125 111 126 if (getConfig('rss.output.usemodrewrite')) { … … 115 130 } 116 131 117 $parentLabel = $parent == ''? LBL_HOME_FOLDER:$parent;132 $parentLabel = $parent == ''? __('Root'):$parent; 118 133 119 134 $class_ = (($cntr++ % 2 == 0)?"even":"odd"); … … 121 136 // get feed's tags 122 137 $tags = ""; 123 $sql2 = "select t.id, t.tag from " . getTable('tag') . " t, " 124 . getTable('metatag') . " m where t.id = m.tid " 125 . "and m.ttype = 'channel' and m.fid = $id"; 138 $sql2 = "select t.id, t.tag from " . getTable('tag') . " t " 139 . "inner join " . getTable('metatag') . " m " 140 . " on m.tid = t.id " 141 . "where m.ttype = 'channel' and m.fid = $id"; 126 142 $res2 = rss_query($sql2); 127 143 … … 133 149 } 134 150 } 151 152 if(NULL == $daterefreshed) { 153 $dead = true; 154 } else { 155 $dead = (time() - strtotime($daterefreshed) > getConfig('rss.config.deadthreshhold')*60*60 ? true : false); 156 } 135 157 136 158 $fmode = array(); … … 140 162 if ($mode & RSS_MODE_DELETED_STATE) { 141 163 $fmode[] = "D"; 142 } 164 $dead = false; 165 } 166 143 167 $slabel = count($fmode)?implode(", ",$fmode):" "; 144 168 if ($icon && substr($icon,0,5) == 'blob:') { … … 150 174 .((getConfig('rss.output.showfavicons') && $icon != "")? 151 175 "<img src=\"$icon\" class=\"favicon\" alt=\"\" width=\"16\" height=\"16\" />":"") 152 ."<label for=\"scb_$id\" >$title</label>"176 ."<label for=\"scb_$id\"".($dead ? ' style="text-decoration:line-through">' : ">").$title."</label>" 153 177 ."</td>\n" 154 178 ."\t<td class=\"cntr\">".preg_replace('/ /',' ',$parentLabel)."</td>\n" … … 159 183 if (getConfig('rss.config.absoluteordering')) { 160 184 echo "\t<td class=\"cntr\"><a href=\"".$_SERVER['PHP_SELF']. "?".CST_ADMIN_DOMAIN."=". CST_ADMIN_DOMAIN_CHANNEL 161 ."&action=". CST_ADMIN_MOVE_UP_ACTION. "&cid=$id\">". LBL_ADMIN_MOVE_UP185 ."&action=". CST_ADMIN_MOVE_UP_ACTION. "&cid=$id\">". __('↑') 162 186 ."</a> - <a href=\"".$_SERVER['PHP_SELF']. "?".CST_ADMIN_DOMAIN."=". CST_ADMIN_DOMAIN_CHANNEL 163 ."&action=". CST_ADMIN_MOVE_DOWN_ACTION ."&cid=$id\">". LBL_ADMIN_MOVE_DOWN."</a></td>\n";187 ."&action=". CST_ADMIN_MOVE_DOWN_ACTION ."&cid=$id\">".__('↓') ."</a></td>\n"; 164 188 } 165 189 echo "\t<td class=\"cntr\"><a href=\"".$_SERVER['PHP_SELF']. "?".CST_ADMIN_DOMAIN."=". CST_ADMIN_DOMAIN_CHANNEL 166 190 ."&".CST_ADMIN_VIEW."=". CST_ADMIN_DOMAIN_CHANNEL 167 ."&action=". CST_ADMIN_EDIT_ACTION. "&cid=$id\">" . LBL_ADMIN_EDIT191 ."&action=". CST_ADMIN_EDIT_ACTION. "&cid=$id\">" . __('edit') 168 192 ."</a>|<a href=\"".$_SERVER['PHP_SELF']. "?".CST_ADMIN_DOMAIN."=". CST_ADMIN_DOMAIN_CHANNEL 169 193 ."&".CST_ADMIN_VIEW."=". CST_ADMIN_DOMAIN_CHANNEL 170 ."&action=". CST_ADMIN_DELETE_ACTION ."&cid=$id\">" . LBL_ADMIN_DELETE."</a></td>\n"194 ."&action=". CST_ADMIN_DELETE_ACTION ."&cid=$id\">" . __('delete') ."</a></td>\n" 171 195 ."</tr>\n"; 172 196 } … … 177 201 ."<legend>Selected...</legend>\n" 178 202 ."<p>\n" 179 ."<label for=\"me_folder\">". LBL_ADMIN_CHANNEL_FOLDER."</label>\n";180 folder_combo('me_folder',null);203 ."<label for=\"me_folder\">".__('In folder:')."</label>\n" 204 .rss_toolkit_folders_combo('me_folder',null); 181 205 182 206 echo 183 "<input type=\"submit\" id=\"me_move_to_folder\" name=\"me_move_to_folder\" value=\"". LBL_ADMIN_CHANNELS_HEADING_MOVE."\" />\n"207 "<input type=\"submit\" id=\"me_move_to_folder\" name=\"me_move_to_folder\" value=\"".__('Move')."\" />\n" 184 208 185 209 ."<span class=\"vr\"> </span>" 186 210 187 ."<label>". LBL_ADMIN_STATE."</label>\n"211 ."<label>".__('State:')."</label>\n" 188 212 ."<input type=\"checkbox\" name=\"me_deprecated\" id=\"me_deprecated\" value=\"".RSS_MODE_DELETED_STATE."\" />\n" 189 ."<label for=\"me_deprecated\">". LBL_DEPRECATED."</label>\n"213 ."<label for=\"me_deprecated\">".__('Deprecated')."</label>\n" 190 214 191 215 ."<input type=\"checkbox\" name=\"me_private\" id=\"me_private\" value=\"".RSS_MODE_PRIVATE_STATE."\" />\n" 192 ."<label for=\"me_private\">". LBL_PRIVATE."</label>\n"193 194 ."<input type=\"submit\" id=\"me_state\" name=\"me_state\" value=\"". LBL_ADMIN_STATE_SET."\" />\n"216 ."<label for=\"me_private\">".__('Private')."</label>\n" 217 218 ."<input type=\"submit\" id=\"me_state\" name=\"me_state\" value=\"".__('Set')."\" />\n" 195 219 196 220 ."<span class=\"vr\"> </span>" 197 221 198 ."<input type=\"submit\" id=\"me_delete\" name=\"me_delete\" value=\"". LBL_ADMIN_DELETE2."\" />\n"222 ."<input type=\"submit\" id=\"me_delete\" name=\"me_delete\" value=\"".__('Delete')."\" />\n" 199 223 ."<input type=\"checkbox\" name=\"me_do_delete\" id=\"me_do_delete\" value=\"1\" />\n" 200 ."<label for=\"me_do_delete\">". LBL_ADMIN_IM_SURE."</label>\n"224 ."<label for=\"me_do_delete\">".__("I'm sure!")."</label>\n" 201 225 202 226 … … 237 261 switch ($__action__) { 238 262 239 case LBL_ADMIN_ADD:240 case ' LBL_ADMIN_ADD':263 case __('Add'): 264 case 'ACT_ADMIN_ADD': 241 265 case 'Add': 242 266 … … 257 281 258 282 if ($label != 'http://' && substr($label, 0,4) == "http") { 259 $ret = add_channel($label,$fid); 283 $tags = $_REQUEST['channel_tags']; 284 $ret = add_channel($label,$fid,null,null,$tags); 260 285 //var_dump($ret); 261 286 if (is_array($ret) && $ret[0] > -1) { … … 266 291 $newCid = $ret[0]; 267 292 rss_error(sprintf( 268 LBL_ADMIN_OPML_IMPORT_FEED_INFO,293 __('Adding %s to %s... '), 269 294 htmlentities($label),"/$flabel") 270 . LBL_ADMIN_OK295 . __('OK') 271 296 . " [<a href=\"".getPath()."admin/index.php?domain=".CST_ADMIN_DOMAIN_CHANNEL 272 297 ."&action=edit&cid=$newCid\">" 273 . LBL_ADMIN_EDIT298 . __('edit') 274 299 ."</a>]", 275 300 &nbs
