Changeset 1604 for branches/multiuser/admin
- Timestamp:
- 10/16/06 06:31:35 (2 years ago)
- Location:
- branches/multiuser/admin
- Files:
-
- 11 modified
-
channels.php (modified) (30 diffs)
-
config.php (modified) (18 diffs)
-
dashboard.php (modified) (1 diff)
-
folders.php (modified) (12 diffs)
-
index.php (modified) (11 diffs)
-
items.php (modified) (5 diffs)
-
opml.php (modified) (5 diffs)
-
plugins.php (modified) (5 diffs)
-
tags.php (modified) (9 diffs)
-
themes.php (modified) (8 diffs)
-
users.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/multiuser/admin/channels.php
r1595 r1604 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";46 echo "<label for=\"add_channel_to_folder\">". __('to folder:') . "</label>\n"; 47 47 echo rss_toolkit_folders_combo('add_channel_to_folder'); 48 echo "<label for=\"channel_tags\">" . LBL_TAG_FOLDERS. ":</label>\n";48 echo "<label for=\"channel_tags\">" . __('Categories') . ":</label>\n"; 49 49 echo "<input type=\"text\" name=\"channel_tags\" id=\"channel_tags\" />\n"; 50 echo "<input type=\"hidden\" name=\"". CST_ADMIN_METAACTION ."\" value=\" LBL_ADMIN_ADD\" />\n";51 echo "<input type=\"submit\" name=\"action\" value=\"". LBL_ADMIN_ADD."\" /></p>\n";52 echo "<p style=\"font-size:small\">". LBL_ADMIN_ADD_CHANNEL_EXPL."</p>";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>"; 53 53 echo "</form>\n\n"; 54 54 … … 60 60 ."('$b_url'.concat(escape(document.location).replace(/\s/,'%2520'))))"; 61 61 62 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 63 64 64 // feeds … … 83 83 ."<tr>\n" 84 84 ."\t<th><input type=\"checkbox\" id=\"mastercb\" onclick=\"cbtoggle();\" /></th>\n" 85 ."\t<th>". LBL_ADMIN_CHANNELS_HEADING_TITLE."</th>\n"86 ."\t<th class=\"cntr\">". LBL_ADMIN_CHANNELS_HEADING_FOLDER."</th>\n"87 ."\t<th>". LBL_ADMIN_CHANNELS_HEADING_DESCR."</th>\n"88 ."\t<th>". LBL_TAG_FOLDERS."</th>\n"89 ."\t<th>". LBL_ADMIN_CHANNELS_HEADING_FLAGS."</th>\n";85 ."\t<th>". __('Title') ."</th>\n" 86 ."\t<th class=\"cntr\">". __('Folder') ."</th>\n" 87 ."\t<th>". __('Description') ."</th>\n" 88 ."\t<th>". __('Categories')."</th>\n" 89 ."\t<th>". __('Flags')."</th>\n"; 90 90 91 91 if (getConfig('rss.config.absoluteordering')) { 92 echo "\t<th>". LBL_ADMIN_CHANNELS_HEADING_MOVE."</th>\n";93 } 94 95 echo "\t<th class=\"cntr\">". LBL_ADMIN_CHANNELS_HEADING_ACTION."</th>\n"92 echo "\t<th>".__('Move')."</th>\n"; 93 } 94 95 echo "\t<th class=\"cntr\">". __('Action') ."</th>\n" 96 96 ."</tr>\n"; 97 97 … … 118 118 } 119 119 120 $parentLabel = $parent == ''? LBL_HOME_FOLDER:$parent;120 $parentLabel = $parent == ''? __('Root'):$parent; 121 121 122 122 $class_ = (($cntr++ % 2 == 0)?"even":"odd"); … … 171 171 if (getConfig('rss.config.absoluteordering')) { 172 172 echo "\t<td class=\"cntr\"><a href=\"".$_SERVER['PHP_SELF']. "?".CST_ADMIN_DOMAIN."=". CST_ADMIN_DOMAIN_CHANNEL 173 ."&action=". CST_ADMIN_MOVE_UP_ACTION. "&cid=$id\">". LBL_ADMIN_MOVE_UP173 ."&action=". CST_ADMIN_MOVE_UP_ACTION. "&cid=$id\">". __('↑') 174 174 ."</a> - <a href=\"".$_SERVER['PHP_SELF']. "?".CST_ADMIN_DOMAIN."=". CST_ADMIN_DOMAIN_CHANNEL 175 ."&action=". CST_ADMIN_MOVE_DOWN_ACTION ."&cid=$id\">". LBL_ADMIN_MOVE_DOWN."</a></td>\n";175 ."&action=". CST_ADMIN_MOVE_DOWN_ACTION ."&cid=$id\">".__('↓') ."</a></td>\n"; 176 176 } 177 177 echo "\t<td class=\"cntr\"><a href=\"".$_SERVER['PHP_SELF']. "?".CST_ADMIN_DOMAIN."=". CST_ADMIN_DOMAIN_CHANNEL 178 178 ."&".CST_ADMIN_VIEW."=". CST_ADMIN_DOMAIN_CHANNEL 179 ."&action=". CST_ADMIN_EDIT_ACTION. "&cid=$id\">" . LBL_ADMIN_EDIT179 ."&action=". CST_ADMIN_EDIT_ACTION. "&cid=$id\">" . __('edit') 180 180 ."</a>|<a href=\"".$_SERVER['PHP_SELF']. "?".CST_ADMIN_DOMAIN."=". CST_ADMIN_DOMAIN_CHANNEL 181 181 ."&".CST_ADMIN_VIEW."=". CST_ADMIN_DOMAIN_CHANNEL 182 ."&action=". CST_ADMIN_DELETE_ACTION ."&cid=$id\">" . LBL_ADMIN_DELETE."</a></td>\n"182 ."&action=". CST_ADMIN_DELETE_ACTION ."&cid=$id\">" . __('delete') ."</a></td>\n" 183 183 ."</tr>\n"; 184 184 } … … 189 189 ."<legend>Selected...</legend>\n" 190 190 ."<p>\n" 191 ."<label for=\"me_folder\">". LBL_ADMIN_CHANNEL_FOLDER."</label>\n"191 ."<label for=\"me_folder\">".__('In folder:')."</label>\n" 192 192 .rss_toolkit_folders_combo('me_folder',null); 193 193 194 194 echo 195 "<input type=\"submit\" id=\"me_move_to_folder\" name=\"me_move_to_folder\" value=\"". LBL_ADMIN_CHANNELS_HEADING_MOVE."\" />\n"195 "<input type=\"submit\" id=\"me_move_to_folder\" name=\"me_move_to_folder\" value=\"".__('Move')."\" />\n" 196 196 197 197 ."<span class=\"vr\"> </span>" 198 198 199 ."<label>". LBL_ADMIN_STATE."</label>\n"199 ."<label>".__('State:')."</label>\n" 200 200 ."<input type=\"checkbox\" name=\"me_deprecated\" id=\"me_deprecated\" value=\"".RSS_MODE_DELETED_STATE."\" />\n" 201 ."<label for=\"me_deprecated\">". LBL_DEPRECATED."</label>\n"201 ."<label for=\"me_deprecated\">".__('Deprecated')."</label>\n" 202 202 203 203 ."<input type=\"checkbox\" name=\"me_private\" id=\"me_private\" value=\"".RSS_MODE_PRIVATE_STATE."\" />\n" 204 ."<label for=\"me_private\">". LBL_PRIVATE."</label>\n"205 206 ."<input type=\"submit\" id=\"me_state\" name=\"me_state\" value=\"". LBL_ADMIN_STATE_SET."\" />\n"204 ."<label for=\"me_private\">".__('Private')."</label>\n" 205 206 ."<input type=\"submit\" id=\"me_state\" name=\"me_state\" value=\"".__('Set')."\" />\n" 207 207 208 208 ."<span class=\"vr\"> </span>" 209 209 210 ."<input type=\"submit\" id=\"me_delete\" name=\"me_delete\" value=\"". LBL_ADMIN_DELETE2."\" />\n"210 ."<input type=\"submit\" id=\"me_delete\" name=\"me_delete\" value=\"".__('Delete')."\" />\n" 211 211 ."<input type=\"checkbox\" name=\"me_do_delete\" id=\"me_do_delete\" value=\"1\" />\n" 212 ."<label for=\"me_do_delete\">". LBL_ADMIN_IM_SURE."</label>\n"212 ."<label for=\"me_do_delete\">".__("I'm sure!")."</label>\n" 213 213 214 214 … … 249 249 switch ($__action__) { 250 250 251 case LBL_ADMIN_ADD:252 case ' LBL_ADMIN_ADD':251 case __('Add'): 252 case 'ACT_ADMIN_ADD': 253 253 case 'Add': 254 254 … … 279 279 $newCid = $ret[0]; 280 280 rss_error(sprintf( 281 LBL_ADMIN_OPML_IMPORT_FEED_INFO,281 __('Adding %s to %s... '), 282 282 htmlentities($label),"/$flabel") 283 . LBL_ADMIN_OK283 . __('OK') 284 284 . " [<a href=\"".getPath()."admin/index.php?domain=".CST_ADMIN_DOMAIN_CHANNEL 285 285 ."&action=edit&cid=$newCid\">" 286 . LBL_ADMIN_EDIT286 . __('edit') 287 287 ."</a>]", 288 288 RSS_ERROR_ERROR,true); … … 307 307 $newCid = $ret[0]; 308 308 rss_error(sprintf( 309 LBL_ADMIN_OPML_IMPORT_FEED_INFO,309 __('Adding %s to %s... '), 310 310 htmlentities($label),"/$flabel") 311 . LBL_ADMIN_OK311 . __('OK') 312 312 . " [<a href=\"".getPath()."admin/index.php?domain=" 313 313 .CST_ADMIN_DOMAIN_CHANNEL 314 314 ."&action=edit&cid=$newCid\">" 315 . LBL_ADMIN_EDIT315 . __('edit') 316 316 ."</a>]", 317 317 RSS_ERROR_ERROR,true); … … 327 327 // multiple feeds in the channel 328 328 echo "<form method=\"post\" action=\"" .$_SERVER['PHP_SELF'] ."\">\n" 329 ."<p>".sprintf( LBL_ADMIN_FEEDS,$label,$label)."</p>\n";329 ."<p>".sprintf(__('The following feeds were found in <a href="%s">%s</a>, which one would you like to subscribe?'),$label,$label)."</p>\n"; 330 330 $cnt = 0; 331 331 while(list($id,$feedarr) = each($feeds)) { … … 366 366 echo "<p><input type=\"hidden\" name=\"add_channel_to_folder\" value=\"$fid\" />\n" 367 367 ."<input type=\"hidden\" name=\"".CST_ADMIN_DOMAIN."\" value=\"".CST_ADMIN_DOMAIN_CHANNEL."\" />\n" 368 ."<input type=\"hidden\" name=\"".CST_ADMIN_METAACTION."\" value=\" LBL_ADMIN_ADD\" />\n"369 ."<input type=\"submit\" class=\"indent\" name=\"action\" value=\"". LBL_ADMIN_ADD."\" />\n"368 ."<input type=\"hidden\" name=\"".CST_ADMIN_METAACTION."\" value=\"ACT_ADMIN_ADD\" />\n" 369 ."<input type=\"submit\" class=\"indent\" name=\"action\" value=\"". __('Add') ."\" />\n" 370 370 ."</p>\n</form>\n\n"; 371 371 } … … 377 377 } 378 378 else { 379 rss_error(sprintf( LBL_ADMIN_BAD_RSS_URL,$label), RSS_ERROR_ERROR,true);379 rss_error(sprintf(__("I'm sorry, I don't think I can handle this URL: '%s'"),$label), RSS_ERROR_ERROR,true); 380 380 $ret__ = CST_ADMIN_DOMAIN_CHANNEL; 381 381 } 382 382 } else { 383 rss_error(sprintf( LBL_ADMIN_BAD_RSS_URL,$label), RSS_ERROR_ERROR,true);383 rss_error(sprintf(__("I'm sorry, I don't think I can handle this URL: '%s'"),$label), RSS_ERROR_ERROR,true); 384 384 $ret__ = CST_ADMIN_DOMAIN_CHANNEL; 385 385 } … … 394 394 case CST_ADMIN_DELETE_ACTION: 395 395 $id = sanitize($_REQUEST['cid'],RSS_SANITIZER_NUMERIC); 396 if (array_key_exists(CST_ADMIN_CONFIRMED,$_POST) && $_POST[CST_ADMIN_CONFIRMED] == LBL_ADMIN_YES) {396 if (array_key_exists(CST_ADMIN_CONFIRMED,$_POST) && $_POST[CST_ADMIN_CONFIRMED] == __('Yes')) { 397 397 $rs = rss_query("select distinct id from " .getTable("item") . " where cid=$id"); 398 398 $ids = array(); … … 419 419 $ret__ = CST_ADMIN_DOMAIN_CHANNEL; 420 420 } 421 elseif (array_key_exists(CST_ADMIN_CONFIRMED,$_REQUEST) && $_REQUEST[CST_ADMIN_CONFIRMED] == LBL_ADMIN_NO) {421 elseif (array_key_exists(CST_ADMIN_CONFIRMED,$_REQUEST) && $_REQUEST[CST_ADMIN_CONFIRMED] == __('No')) { 422 422 $ret__ = CST_ADMIN_DOMAIN_CHANNEL; 423 423 } … … 427 427 echo "<form class=\"box\" method=\"post\" action=\"" .$_SERVER['PHP_SELF'] ."\">\n" 428 428 ."<p class=\"error\">"; 429 printf( LBL_ADMIN_ARE_YOU_SURE,$cname);429 printf(__("Are you sure you wish to delete '%s'?"),$cname); 430 430 echo "</p>\n" 431 ."<p><input type=\"submit\" name=\"".CST_ADMIN_CONFIRMED."\" value=\"". LBL_ADMIN_NO."\" />\n"432 ."<input type=\"submit\" name=\"".CST_ADMIN_CONFIRMED."\" value=\"". LBL_ADMIN_YES."\" />\n"431 ."<p><input type=\"submit\" name=\"".CST_ADMIN_CONFIRMED."\" value=\"". __('No') ."\" />\n" 432 ."<input type=\"submit\" name=\"".CST_ADMIN_CONFIRMED."\" value=\"". __('Yes') ."\" />\n" 433 433 ."<input type=\"hidden\" name=\"cid\" value=\"$id\" />\n" 434 434 ."<input type=\"hidden\" name=\"".CST_ADMIN_DOMAIN."\" value=\"".CST_ADMIN_DOMAIN_CHANNEL."\" />\n" … … 440 440 441 441 442 case LBL_ADMIN_IMPORT:443 case ' LBL_ADMIN_IMPORT':442 case __('Import'): 443 case 'ACT_ADMIN_IMPORT': 444 444 445 445 … … 499 499 500 500 } else { 501 $prev_folder = LBL_HOME_FOLDER;501 $prev_folder = __('Root'); 502 502 $fid = 0; 503 503 } … … 531 531 if ($u__) { 532 532 533 echo "<li><p>" . sprintf( LBL_ADMIN_OPML_IMPORT_FEED_INFO,$t__,$f__);533 echo "<li><p>" . sprintf(__('Adding %s to %s... '),$t__,$f__); 534 534 flush(); 535 535 list($retcde, $retmsg) = add_channel($u__, $fid, $t__, $d__); … … 543 543 } 544 544 545 echo "</ul>\n<p><b>". LBL_TITLE_UPDATING."...</b></p>\n";545 echo "</ul>\n<p><b>".__('Updating') ."...</b></p>\n"; 546 546 echo "</div>\n"; 547 547 flush(); … … 615 615 616 616 if ($url == '' || substr($url,0,4) != "http") { 617 rss_error(sprintf( LBL_ADMIN_BAD_RSS_URL,$url), RSS_ERROR_ERROR,true);617 rss_error(sprintf(__("I'm sorry, I don't think I can handle this URL: '%s'"),$url), RSS_ERROR_ERROR,true); 618 618 $ret__ = CST_ADMIN_DOMAIN_CHANNEL; 619 619 break; … … 741 741 break; 742 742 743 743 case 'dump': 744 // Make sure this is a POST 745 if(!isset($_POST['dumpact'])) { 746 die('Sorry, you can\'t access this via a GET'); 747 } 748 $tbl = array('"','"'); 749 error_reporting(E_ALL); 750 rss_require('schema.php'); 751 $tables=getExpectedTables(); 752 unset($tables['cache']); 753 //$tables=array('channels','tag','config'); 754 $bfr=''; 755 $bfr .= '<'.'?xml version="1.0" encoding="UTF-8"?'.'>'."\n"; 756 $bfr .= '<dump prefix="'.getTable('').'" date="'.date('r').'">'."\n"; 757 foreach($tables as $table => $prefixed) { 758 $rs = rss_query("select * from $prefixed"); 759 $bfr .="<$table>\n"; 760 while($row=rss_fetch_assoc($rs)) { 761 $r="<row "; 762 foreach($row as $key => $val) { 763 $val=htmlspecialchars($val); 764 $r.=" $key=\"$val\" "; 765 } 766 $r .= "/>\n"; 767 $bfr .=$r; 768 } 769 $bfr .="</$table>\n"; 770 } 771 $bfr .='</dump>'."\n"; 772 $gzdata = gzencode($bfr, 9); 773 774 775 // Delete the output buffer. This is probably a bad thing to do, if the ob'ing is turned off. 776 // e.g. data was already sent to the brwoser. 777 while (@ob_end_clean()); 778 779 // Send the dump to the browser: 780 header("Pragma: public"); // required 781 header("Expires: 0"); 782 header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); 783 header("Connection: close"); 784 header("Content-Transfer-Encoding: binary"); 785 header("Content-Length: " . strlen($gzdata)); 786 header('Content-type: application/x-gzip'); 787 header('Content-disposition: inline; filename="gregarius.dump.'.date('MjSY').'.xml.gz"'); 788 789 die($gzdata); 790 791 break; 744 792 default: 745 793 break; … … 764 812 765 813 echo "<div>\n"; 766 echo "\n\n<h2>". LBL_ADMIN_CHANNEL_EDIT_CHANNEL." '$title'</h2>\n";814 echo "\n\n<h2>".__('Edit the feed ')." '$title'</h2>\n"; 767 815 768 816 echo "<form method=\"post\" action=\"" .$_SERVER['PHP_SELF'] ."#fa$cid\" id=\"channeledit\">\n"; … … 770 818 // Timestamps 771 819 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";820 echo "<p><label>" . __('Added') . ": " . date("M-d-Y H:i", strtotime($dateadded)) . "</label></p>" 821 ."<p><label>" . __('Last Update') . ": ".date("M-d-Y H:i", strtotime($daterefreshed))."</label></p>\n"; 774 822 } 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";823 echo "<p><label>" . __('Added') . ": " . date("M-d-Y H:i", strtotime($dateadded)) . "</label></p>" 824 ."<p><label>" . __('Last Update') . ": " . __('Never') . "</label></p>\n"; 777 825 } 778 826 // Item name 779 echo "<p><label for=\"c_name\">". LBL_ADMIN_CHANNEL_NAME."</label>\n"827 echo "<p><label for=\"c_name\">". __('Title:') ."</label>\n" 780 828 ."<input type=\"text\" id=\"c_name\" name=\"c_name\" value=\"$title\" />" 781 829 ."<input type=\"hidden\" name=\"".CST_ADMIN_DOMAIN."\" value=\"". CST_ADMIN_DOMAIN_CHANNEL."\" />\n" … … 786 834 787 835 // RSS URL 788 ."<p><label for=\"c_url\">". LBL_ADMIN_CHANNEL_RSS_URL."</label>\n"789 ."<a href=\"$url\">" . LBL_VISIT. "</a>\n"836 ."<p><label for=\"c_url\">". __('RSS URL:') ."</label>\n" 837 ."<a href=\"$url\">" . __('(visit)') . "</a>\n" 790 838 ."<input type=\"text\" id=\"c_url\" name=\"c_url\" value=\"$url\" /></p>" 791 839 792 840 // Site URL 793 ."<p><label for=\"c_siteurl\">". LBL_ADMIN_CHANNEL_SITE_URL."</label>\n"794 ."<a href=\"$siteurl\">" . LBL_VISIT. "</a>\n"841 ."<p><label for=\"c_siteurl\">". __('Site URL:') ."</label>\n" 842 ."<a href=\"$siteurl\">" . __('(visit)') . "</a>\n" 795 843 ."<input type=\"text\" id=\"c_siteurl\" name=\"c_siteurl\" value=\"$siteurl\" /></p>" 796 844 797 845 // Folder 798 ."<p><label for=\"c_parent\">". LBL_ADMIN_CHANNEL_FOLDER."</label>\n"846 ."<p><label for=\"c_parent\">". __('In folder:') ."</label>\n" 799 847 800 848 .rss_toolkit_folders_combo('c_parent',$parent) … … 802 850 803 851 // Tags 804 echo "<p><label for=\"c_tags\">". LBL_TAG_FOLDERS. ":</label>\n"852 echo "<p><label for=\"c_tags\">". __('Categories') . ":</label>\n" 805 853 ."<input type=\"text\" id=\"c_tags\" name=\"c_tags\" value=\"$tags\" /></p>"; 806 854 … … 826 874 ."<input style=\"display:inline\" type=\"checkbox\" id=\"c_private\" " 827 875 ." name=\"c_private\" value=\"1\"$pchk />\n" 828 ."<label for=\"c_private\">". LBL_ADMIN_CHANNEL_PRIVATE."</label>\n"876 ."<label for=\"c_private\">". __('This feed is <strong>private</strong>, only admins see it.') ."</label>\n" 829 877 ."<input type=\"hidden\" name=\"old_priv\" value=\"$old_priv\" />\n" 830 878 ."</p>\n"; … … 834 882 ."<input style=\"display:inline\" type=\"checkbox\" id=\"c_deleted\" " 835 883 ." name=\"c_deleted\" value=\"1\"$dchk />\n" 836 ."<label for=\"c_deleted\">". LBL_ADMIN_CHANNEL_DELETED."</label>\n"884 ."<label for=\"c_deleted\">". __("This feed is <strong>deprecated</strong>, it won't be updated anymore and won't be visible in the feeds column.") ."</label>\n" 837 885 ."<input type=\"hidden\" name=\"old_del\" value=\"$old_del\" />\n" 838 886 ."</p>\n"; … … 841 889 // Description 842 890 $descr = strip_tags($descr); 843 echo "<p><label for=\"c_descr\">". LBL_ADMIN_CHANNEL_DESCR."</label>\n"891 echo "<p><label for=\"c_descr\">". __('Description:') ."</label>\n" 844 892 ."<input type=\"text\" id=\"c_descr\" name=\"c_descr\" value=\"$descr\" /></p>\n"; 845 893 846 894 // Icon 847 895 if (getConfig('rss.output.showfavicons')) { 848 echo "<p><label for=\"c_icon\">" . LBL_ADMIN_CHANNEL_ICON."</label>\n";896 echo "<p><label for=\"c_icon\">" . __('Shown favicon:') ."</label>\n"; 849 897 850 898 if (trim($icon) != "") { … … 853 901 } 854 902 echo "<img src=\"$icon\" alt=\"$title\" class=\"favicon\" width=\"16\" height=\"16\" />\n"; 855 echo "<span>" . LBL_CLEAR_FOR_NONE."</span>";903 echo "<span>" . __('(Leave blank for no icon)') ."</span>"; 856 904 } 857 905 … … 908 956 909 957 910 echo "<p style=\"clear:both; padding: 1em 0\"><input type=\"submit\" name=\"action_\" value=\"". LBL_ADMIN_SUBMIT_CHANGES."\" /></p>";958 echo "<p style=\"clear:both; padding: 1em 0\"><input type=\"submit\" name=\"action_\" value=\"". __('Submit Changes') ."\" /></p>"; 911 959 912 960 echo "</form></div>\n"; -
branches/multiuser/admin/config.php
r1388 r1604 29 29 30 30 function config() { 31 echo "<h2 class=\"trigger\">". LBL_ADMIN_CONFIG."</h2>\n"31 echo "<h2 class=\"trigger\">".__('Configuration:')."</h2>\n" 32 32 ."<div id=\"admin_config\" class=\"trigger\">\n"; 33 33 … … 65 65 } 66 66 echo "<tr>\n" 67 ."\t<th>". LBL_ADMIN_CHANNELS_HEADING_KEY."</th>\n"68 ."\t<th>". LBL_ADMIN_CHANNELS_HEADING_VALUE."</th>\n"69 ."\t<th>". LBL_ADMIN_CHANNELS_HEADING_DESCR."</th>\n"70 ."\t<th class=\"cntr\">". LBL_ADMIN_CHANNELS_HEADING_ACTION."</th>\n"67 ."\t<th>". __('Key') ."</th>\n" 68 ."\t<th>". __('Value') ."</th>\n" 69 ."\t<th>". __('Description') ."</th>\n" 70 ."\t<th class=\"cntr\">". __('Action') ."</th>\n" 71 71 ."</tr>\n"; 72 72 } … … 106 106 case 'rss.output.lang': 107 107 $arr = getLanguages(); 108 echo $arr[getConfig('rss.output.lang')]; 108 if (isset($arr[getConfig('rss.output.lang')]['language'])) { 109 echo $arr[getConfig('rss.output.lang')]['language']; 110 } else { 111 echo getConfig('rss.output.lang'); 112 } 109 113 break; 110 114 case 'rss.config.tzoffset': … … 154 158 ."&action=". CST_ADMIN_EDIT_ACTION. "&key=".$row['key_'] 155 159 ."&".CST_ADMIN_VIEW."=". $adminDomain 156 ."$extraLinkText\">" . LBL_ADMIN_EDIT160 ."$extraLinkText\">" . __('edit') 157 161 ."</a>"; 158 162 … … 161 165 162 166 ."<a href=\"".$_SERVER['PHP_SELF']. "?".CST_ADMIN_DOMAIN."=". $adminDomain 163 ."&action=". CST_ADMIN_DEFAULT_ACTION. "&key=".$row['key_']."$extraLinkText\">" . LBL_ADMIN_DEFAULT167 ."&action=". CST_ADMIN_DEFAULT_ACTION. "&key=".$row['key_']."$extraLinkText\">" . __('default') 164 168 ."</a>"; 165 169 } … … 184 188 case 'CST_ADMIN_DEFAULT_ACTION': 185 189 if (!array_key_exists('key',$_REQUEST)) { 186 rss_error( 'Invalid config key specified.', RSS_ERROR_ERROR,true);190 rss_error(__('Invalid config key specified.'), RSS_ERROR_ERROR,true); 187 191 break; 188 192 } … … 194 198 195 199 if ($value == $default) { 196 rss_error( "The value for '$key' is the same as its default value!", RSS_ERROR_ERROR,true);197 break; 198 } 199 200 if (array_key_exists(CST_ADMIN_CONFIRMED,$_POST) && $_POST[CST_ADMIN_CONFIRMED] == LBL_ADMIN_YES) {200 rss_error(__("The value for '$key' is the same as its default value!"), RSS_ERROR_ERROR,true); 201 break; 202 } 203 204 if (array_key_exists(CST_ADMIN_CONFIRMED,$_POST) && $_POST[CST_ADMIN_CONFIRMED] == __('Yes')) { 201 205 rss_query("update " . getTable('config') ." set value_=default_ where key_='$key'" ); 202 206 rss_invalidate_cache(); 203 207 } 204 elseif (array_key_exists(CST_ADMIN_CONFIRMED,$_REQUEST) && $_REQUEST[CST_ADMIN_CONFIRMED] == LBL_ADMIN_NO) {208 elseif (array_key_exists(CST_ADMIN_CONFIRMED,$_REQUEST) && $_REQUEST[CST_ADMIN_CONFIRMED] == __('No')) { 205 209 //nop 206 210 } … … 228 232 229 233 echo "<p style=\"display:inline\">\n"; 230 echo (isset($preview)?"<input type=\"submit\" name=\"action\" value=\"". LBL_ADMIN_PREVIEW_CHANGES."\""234 echo (isset($preview)?"<input type=\"submit\" name=\"action\" value=\"". __('Preview') ."\"" 231 235 .($onclickaction?" onclick=\"$onclickaction\"":"") ." />\n":""); 232 echo "<input type=\"hidden\" name=\"".CST_ADMIN_METAACTION."\" value=\" LBL_ADMIN_SUBMIT_CHANGES\" />";233 234 echo "<input type=\"submit\" name=\"action\" value=\"". LBL_ADMIN_SUBMIT_CHANGES."\""236 echo "<input type=\"hidden\" name=\"".CST_ADMIN_METAACTION."\" value=\"ACT_ADMIN_SUBMIT_CHANGES\" />"; 237 238 echo "<input type=\"submit\" name=\"action\" value=\"". __('Submit Changes') ."\"" 235 239 .($onclickaction?" onclick=\"$onclickaction\"":"") 236 240 ." /><input type=\"hidden\" name=\"".CST_ADMIN_DOMAIN."\" value=\"". CST_ADMIN_DOMAIN_CONFIG ."\"/>\n</p></form>\n"; … … 239 243 echo "<form style=\"display:inline\" method=\"post\" action=\"" .$_SERVER['PHP_SELF'] ."\">\n" 240 244 ."<p style=\"display:inline\">\n<input type=\"hidden\" name=\"".CST_ADMIN_DOMAIN."\" value=\"". CST_ADMIN_DOMAIN_CONFIG ."\"/>\n" 241 ."<input type=\"hidden\" name=\"".CST_ADMIN_METAACTION."\" value=\" LBL_ADMIN_SUBMIT_CANCEL\" />"242 ."<input type=\"submit\" name=\"action\" value=\"". LBL_ADMIN_CANCEL."\"/></p></form>\n"245 ."<input type=\"hidden\" name=\"".CST_ADMIN_METAACTION."\" value=\"ACT_ADMIN_SUBMIT_CANCEL\" />" 246 ."<input type=\"submit\" name=\"action\" value=\"". __('Cancel') ."\"/></p></form>\n" 243 247 ."\n\n</div>\n"; 244 248 … … 246 250 break; 247 251 248 case LBL_ADMIN_PREVIEW_CHANGES:249 case ' LBL_ADMIN_PREVIEW_CHANGES':252 case __('Preview'):
