Changeset 927
- Timestamp:
- 01/23/06 20:28:52 (3 years ago)
- Files:
-
- trunk/feedmelinks/feedmelinks/.htaccess-global (modified) (1 diff)
- trunk/feedmelinks/feedmelinks/.htaccess-live (modified) (2 diffs)
- trunk/feedmelinks/feedmelinks/FAQ/index.php (modified) (2 diffs)
- trunk/feedmelinks/feedmelinks/_config/parse-config.xsl (modified) (2 diffs)
- trunk/feedmelinks/feedmelinks/_config/servers.xml (modified) (2 diffs)
- trunk/feedmelinks/feedmelinks/account.php (modified) (1 diff)
- trunk/feedmelinks/feedmelinks/categorize.php (modified) (3 diffs)
- trunk/feedmelinks/feedmelinks/comments.php (modified) (3 diffs)
- trunk/feedmelinks/feedmelinks/contacts/big.php (modified) (1 diff)
- trunk/feedmelinks/feedmelinks/contacts/recent.php (modified) (1 diff)
- trunk/feedmelinks/feedmelinks/folder-as-rss.php (modified) (1 diff)
- trunk/feedmelinks/feedmelinks/funnel.php (modified) (2 diffs)
- trunk/feedmelinks/feedmelinks/import/do-random-checks.inc.php (modified) (1 diff)
- trunk/feedmelinks/feedmelinks/index.php (modified) (1 diff)
- trunk/feedmelinks/feedmelinks/install/how-confusing.php (modified) (1 diff)
- trunk/feedmelinks/feedmelinks/login.php (modified) (7 diffs)
- trunk/feedmelinks/feedmelinks/mailer.php (modified) (1 diff)
- trunk/feedmelinks/feedmelinks/misc/forgot-password.php (modified) (1 diff)
- trunk/feedmelinks/feedmelinks/modules/utils.inc.php (modified) (3 diffs)
- trunk/feedmelinks/feedmelinks/rss-1.0.php (modified) (1 diff)
- trunk/feedmelinks/feedmelinks/rss-2.0.php (modified) (1 diff)
- trunk/feedmelinks/feedmelinks/user-as-rss.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/feedmelinks/feedmelinks/.htaccess-global
r924 r927 124 124 125 125 # faq 126 RewriteRule ^faq /FAQ 126 RewriteRule ^fuq http://feedmelinks.com/cgi-bin/wiki.pl 127 RewriteRule ^faq http://feedmelinks.com/FAQ 128 127 129 128 130 # redirection / old urls trunk/feedmelinks/feedmelinks/.htaccess-live
r919 r927 1 # $Id$ 2 3 # ACCESS CONTROL SETTINGS 4 ##################################################### 5 6 AuthUserFile /usr/home/hirokai/jm3.net/.htpasswd 7 AuthGroupFile /usr/home/hirokai/jm3.net/.htpasswd.group 8 AuthName jm3-authmonkey 9 AuthType Basic 1 10 2 11 # PHP CONFIGURATION 3 12 ##################################################### 13 4 14 php_flag asp_tags on 5 15 php_value mysql.default_host "db26.pair.com" … … 7 17 php_value mysql.default_password "MeatLove1" 8 18 9 # DEBUGLOGGING19 # LOGGING 10 20 ##################################################### 21 11 22 php_value error_log "/usr/home/hirokai/fml/_logs/global.log" 12 23 php_flag log_errors on trunk/feedmelinks/feedmelinks/FAQ/index.php
r903 r927 251 251 Yes. we support connections via HTTP and 252 252 can make your links available to you as XML 253 over HTTP or RSS. <a href="mailto: admins@feedmelinks.com">Contact us</a> for access and253 over HTTP or RSS. <a href="mailto:<%= get_maintainer_email() %>">Contact us</a> for access and 254 254 the API details. 255 255 </div> … … 403 403 404 404 <p/> 405 <a href="mailto: admins@feedmelinks.com">Email us</a> for additional help or documentation...405 <a href="mailto:<%= get_maintainer_email() %>">Email us</a> for additional help or documentation... 406 406 407 407 </div> trunk/feedmelinks/feedmelinks/_config/parse-config.xsl
r925 r927 7 7 8 8 <xsl:choose> 9 <xsl:when test="$mode = 'php'"> 10 <% 9 <xsl:when test="$mode = 'php'"><% 11 10 function get_env() { 12 11 return "<xsl:value-of select="$server-name" />"; … … 17 16 } 18 17 </xsl:for-each> 19 %>20 18 <xsl:call-template name="CRLF" /> 21 </xsl:when>19 %></xsl:when> 22 20 23 21 <xsl:when test="$mode = 'htaccess'"> trunk/feedmelinks/feedmelinks/_config/servers.xml
r921 r927 18 18 webserver-root="/Users/erdnase/www/feedmelinks.com" 19 19 database-name="fml" 20 maintainer-email="dingus-boojer@oojwala.net" 20 21 xsl-parser="/sw/bin/xsltproc" 21 22 http-downloader="/sw/bin/lynx" … … 38 39 webserver-root="/usr/home/hirokai/feedmelinks.com" 39 40 database-name="hirokai_jm3DataMart" 41 maintainer-email="dingus-boojer@oojwala.net" 40 42 xsl-parser="/usr/local/bin/xsltproc" 41 43 http-downloader="/usr/local/bin/lynx" trunk/feedmelinks/feedmelinks/account.php
r907 r927 102 102 showUserImage( $u ); 103 103 %> 104 <h2><a class="hot" href="/account">« Back to your profile.</a></h2>105 or <h2><a class="hot" href="/">« Back to your links.</a></h2>104 <h2><a style="color: #ff6600;" href="/account">« Back to your profile.</a></h2> 105 or <h2><a style="color: #ff6600;" href="/">« Back to your links.</a></h2> 106 106 <% 107 107 } else { trunk/feedmelinks/feedmelinks/categorize.php
r907 r927 219 219 <style type="text/css"> 220 220 /* momentarily override the visited colorizing so as not to confuse the user... */ 221 a:visited { color: #ff6600; } 221 222 222 223 .l { height: 1.6em; } … … 278 279 <div class="l"> 279 280 <%= $cb %> 281 <a href="javascript:pc(<%= $id %>);"><img src="img/lil-tag<%= !$public ? "-private" : "" %>-bice.gif" align="absmiddle" border="0" /></a> 280 282 <a <%= !$public ? "style='color: $hiddenColor;'" : "" %> <%= $alreadySelected ? "class=\"hot\" " : "" %>href="javascript:pc(<%= $id %>);"><%= 281 283 $catName %></a> … … 364 366 <style type="text/css"> 365 367 /* momentarily override the visited colorizing so as not to confuse the user... */ 368 a:visited { color: #ff6600; } 366 369 table, tr, td { background-color: #E5E5E5 } 367 370 </style> trunk/feedmelinks/feedmelinks/comments.php
r917 r927 36 36 37 37 <% 38 chdir( get _root() );38 chdir( getHomeDir() ); 39 39 $cmd = "find _comments/$user -type f | xargs -n1 grep -H -v $user | sort -rk 2"; 40 40 if( $debug ) … … 96 96 <% 97 97 $c = 1; #counter 98 $the_dir = get _root() . '/_comments/' . $user;98 $the_dir = getHomeDir() . '/_comments/' . $user; 99 99 if( is_dir( $the_dir )) { 100 100 chdir( $the_dir ); … … 148 148 149 149 <% 150 chdir( get _root() );150 chdir( getHomeDir() ); 151 151 $cmd = "find _comments/ -type f | sort -r | xargs -n1 grep -H $user, | grep -v comments/$user | sort -r -k 2"; 152 152 if( $debug ) trunk/feedmelinks/feedmelinks/contacts/big.php
r443 r927 50 50 </p> 51 51 <p> 52 -- jm3 @ feedmelinks.com52 -- <%= get_maintainer_email() %> 53 53 </p> 54 54 <% trunk/feedmelinks/feedmelinks/contacts/recent.php
r916 r927 12 12 function send_peeps_email( $u ) { 13 13 14 $msg = "From: Feed Me Links < jm3@feedmelinks.com>\n";14 $msg = "From: Feed Me Links <" . get_maintainer_email() . ">\n"; 15 15 $msg .= "MIME-Version: 1.0\n"; 16 16 $boundary = uniqid("FML_UNIQ_BOUNDARY_"); trunk/feedmelinks/feedmelinks/folder-as-rss.php
r889 r927 116 116 <description><%= $errors ? "this " . getCatName() . " is not available as RSS" : $title %></description> 117 117 <managingEditor><%= getEmailAddressForUser( $owner ) %></managingEditor> 118 <webMaster> jm3@feedmelinks.com</webMaster>118 <webMaster><%= get_maintainer_email() %></webMaster> 119 119 <link><%= $site %></link> 120 120 <language>en-us</language> trunk/feedmelinks/feedmelinks/funnel.php
r907 r927 22 22 23 23 <title> Feed Me Links : <%= $op == "change" ? getCatVerb() : "save" %> link </title> 24 25 <style type="text/css"> 26 .invisitext { 27 background-color: #<%= getBGColor() %>; 28 border: 0px; 29 } 30 </style> 31 24 32 25 33 <% if( $debug ) { %> … … 227 235 <b><%= $catName %><%= $debug ? " ($id)" : "" %></b></a><br /> 228 236 </td> 229 230 237 <% 231 238 } else { trunk/feedmelinks/feedmelinks/import/do-random-checks.inc.php
r643 r927 34 34 35 35 if( $num_dupes > $max_dupes_allowed ) { 36 fatal( "We noticed that a percentage ($max_dupes_allowed links) of the links you're importing already exist in your Feed Me Links account. Have you imported this bookmarks file already? If not, please <a href='mailto: help@feedmelinks.com'>email the administrators</a> for help importing your favorites." );36 fatal( "We noticed that a percentage ($max_dupes_allowed links) of the links you're importing already exist in your Feed Me Links account. Have you imported this bookmarks file already? If not, please <a href='mailto:" . get_maintainer_email() . "'>email the administrators</a> for help importing your favorites." ); 37 37 exit( 0 ); 38 38 } # else trunk/feedmelinks/feedmelinks/index.php
r881 r927 139 139 } else { # link add failed 140 140 echo "sorry, something bad happened and your new link wasn't added."; 141 echo "please click your back button and try again, or email admins@feedmelinks.com.<br />\n";141 echo "please click your back button and try again, or email " . get_maintainer_email() . ".<br />\n"; 142 142 } 143 143 trunk/feedmelinks/feedmelinks/install/how-confusing.php
r354 r927 41 41 now you can add new sites to your big mess of links with one 42 42 single click, like a pro. wicked cool. <a 43 href="mailto: help@feedmelinks.com">contact the helpdesk</a> if43 href="mailto:<%= get_maintainer_email() %>">contact the helpdesk</a> if 44 44 you need assistance.</p> 45 45 trunk/feedmelinks/feedmelinks/login.php
r871 r927 82 82 echo $dbPassword . "<br />"; 83 83 } 84 $mesg = "Darn it! Your password seems to be incorrect. Please double-check your username and password and try again, or email the <a href='mailto: jm3@feedmelinks.com'>admins</a> if you need help.";84 $mesg = "Darn it! Your password seems to be incorrect. Please double-check your username and password and try again, or email the <a href='mailto:" . get_maintainer_email() . "'>admins</a> if you need help."; 85 85 $shouldShowLoginForm = 1; 86 86 } … … 88 88 } 89 89 } else { 90 $mesg = "Oh no! We couldn't find your Username in our database! Please double-check your username and try again, or email the <a href='mailto: jm3@feedmelinks.com'>admins</a> if you need help.";90 $mesg = "Oh no! We couldn't find your Username in our database! Please double-check your username and try again, or email the <a href='mailto:" . get_maintainer_email() . "'>admins</a> if you need help."; 91 91 } 92 92 conClose( $con_login ); … … 133 133 134 134 Save this message under your pillow in case you forget your username 135 and password. Email support@feedmelinks.comwith any questions or comments.135 and password. Email " . get_maintainer_email() . "with any questions or comments. 136 136 137 137 Happy Linking! … … 141 141 "; 142 142 143 $headers .= "From: Feed Me Links < LinkEaters@FeedMeLinks.com>\n";143 $headers .= "From: Feed Me Links <" . get_maintainer_email() . ">\n"; 144 144 $headers .= "X-Mailer: feedmelinks-mailer-daemon\n"; 145 145 $mailSuccess = mail( $origEmail, $subject, $body, $headers); … … 154 154 $authenticated = 1; 155 155 $sessionUserId = $userId; 156 setCookie( "c_uid", $userId, time()+60*60*24*69, "/", ".feedmelinks.com");157 setCookie( "c_pass_token", md5( getPasswdForUser( $sessionUserId )), time()+60*60*24*69, "/", ".feedmelinks.com");158 156 setCookie( "c_uid", $userId, time()+60*60*24*69, "/", get_cookie_domain() ); 157 setCookie( "c_pass_token", md5( getPasswdForUser( $sessionUserId )), time()+60*60*24*69, "/", get_cookie_domain() ); 158 159 159 # display status message: 160 160 echo "<h3>Creating your user account...</h3><br />\n"; … … 180 180 } else { 181 181 if( $op != "logout" && $op == "login" ) 182 $mesg = "Dang. Login failed. Please double-check your username and password and try again, or email the <a href='mailto: admins@feedmelinks.com'>admins</a> if you need help.";182 $mesg = "Dang. Login failed. Please double-check your username and password and try again, or email the <a href='mailto:" . get_maintainer_email() . "'>admins</a> if you need help."; 183 183 } 184 184 %> … … 198 198 <form name="login_form" action="<%= $page %>"> 199 199 <input type="hidden" name="op" value="login" /> 200 <input type="hidden" name="debug" value="<%= $debug %>" /> 200 201 <% if( $bounceToPage ) { %> 201 202 <input type="hidden" name="bounceToPage" value="<%= $bounceToPage %>" /> trunk/feedmelinks/feedmelinks/mailer.php
r926 r927 76 76 <td><textarea name="comment" rows="10" cols="38" style="margin-left: 5px;">Check this out: 77 77 78 <%= getSiteURL() %>/<%= $id %>78 http://feedmelinks.com/<%= $id %> 79 79 80 80 trunk/feedmelinks/feedmelinks/misc/forgot-password.php
r728 r927 25 25 $showForm = false; 26 26 27 $from = "linkmaster@feedmelinks.com";27 $from = get_maintainer_email(); 28 28 $subject = "Your Feed Me Links password"; 29 29 $headers = ""; trunk/feedmelinks/feedmelinks/modules/utils.inc.php
r926 r927 1737 1737 1738 1738 # clear the login cookies 1739 setCookie( "c_uid", "", time() + 3000, "/", ".feedmelinks.com");1740 setCookie( "c_pass_token", "", time() + 3000, "/", ".feedmelinks.com");1739 setCookie( "c_uid", "", time() + 3000, "/", get_cookie_domain() ); 1740 setCookie( "c_pass_token", "", time() + 3000, "/", get_cookie_domain() ); 1741 1741 1742 1742 # log the user out: … … 1961 1961 echo "Sorry, something bad happened and your new folder wasn't created.<br />"; 1962 1962 echo "$qs"; 1963 echo "Please click your back button and choose a different folder, or email admins@feedmelinks.com.<br />\n";1963 echo "Please click your back button and choose a different folder, or email " . get_maintainer_email() . ".<br />\n"; 1964 1964 conClose( $con_addFolderDriver ); 1965 1965 return 0; … … 3050 3050 } 3051 3051 3052 # FIXME: remove the old humpback-named wrapper function and refactor the calling code 3053 function get_site() { 3054 return getSiteURL(); 3055 } 3056 3052 3057 function getSiteURL() { 3053 3058 $port = get_port() ? ":" . get_port() : ""; trunk/feedmelinks/feedmelinks/rss-1.0.php
r559 r927 17 17 <title>Feed Me Links</title> 18 18 <description>your portable public link suitcase</description> 19 <managingEditor> all-of-us@feedmelinks.com</managingEditor>20 <webMaster> jm3@feedmelinks.com</webMaster>19 <managingEditor><% get_maintainer_email() %></managingEditor> 20 <webMaster><%= get_maintainer_email() %></webMaster> 21 21 <link><%= $site %></link> 22 22 <language>en-us</language> trunk/feedmelinks/feedmelinks/rss-2.0.php
r426 r927 19 19 <description>your portable public link suitcase</description> 20 20 <dc:language>en-us</dc:language> 21 <dc:creator> all-of-us@feedmelinks.com</dc:creator>21 <dc:creator><%= get_maintainer_email() %></dc:creator> 22 22 <dc:rights>Copyleft 2004</dc:rights> 23 23 <dc:date><%= $dcdate %></dc:date> 24 <admin:errorReportsTo rdf:resource="mailto: jm3@feedmelinks.com"/>24 <admin:errorReportsTo rdf:resource="mailto:<%= get_maintainer_email() %>"/> 25 25 <% 26 26 $hideTimes = true; trunk/feedmelinks/feedmelinks/user-as-rss.php
r790 r927 12 12 # global: 13 13 $title = "Feed Me Links!"; 14 $creator Email = "all-of-us@feedmelinks.com";14 $creator_email = get_maintainer_email(); 15 15 $description = "your portable public link suitcase"; 16 16 … … 37 37 <dc:rights>Copyleft 2004</dc:rights> 38 38 <dc:date><%= $dcdate %></dc:date> 39 <admin:errorReportsTo rdf:resource="mailto: jm3@feedmelinks.com"/>39 <admin:errorReportsTo rdf:resource="mailto:$creator_email"/> 40 40 <% 41 41 $con_userAsRss = mysql_connect(); … … 107 107 <description><%= $description %></description> 108 108 <dc:language>en-us</dc:language> 109 <dc:creator> jm3@feedmelinks.com</dc:creator>109 <dc:creator><%= $creator_email %></dc:creator> 110 110 <dc:rights>Copyleft 2004</dc:rights> 111 111 <dc:date><%= $dcdate %></dc:date> 112 <admin:errorReportsTo rdf:resource="mailto: jm3@feedmelinks.com"/>112 <admin:errorReportsTo rdf:resource="mailto:$creator_email"/> 113 113 <item> 114 114 <title>Feed Me Links</title>