Changeset 1410
- Timestamp:
- 03/10/07 11:34:17 (2 years ago)
- Files:
-
- feedmelinks/modules/utils.inc.php (modified) (9 diffs)
- feedmelinks/users.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
feedmelinks/modules/utils.inc.php
r1403 r1410 18 18 else 19 19 return false; 20 } 21 22 function get_bot_link() { 23 return "aim:goim?screenname=cityoflinks"; 20 24 } 21 25 … … 2858 2862 %> 2859 2863 </table> 2860 < %2864 <?php 2861 2865 } else if( $argMode == "USERS" ) { 2862 %>2863 found < %= $matchingLinks %> similar links by these users:<br />2866 ?> 2867 found <?= $matchingLinks ?> similar links by these users:<br /> 2864 2868    2865 < %2869 <?php 2866 2870 for( $i = 0; $i < $matchingLinks && ($argMaxUrls ? $i < $argMaxUrls : 1); $i++ ) { 2867 2871 $id = mysql_result($q,$i,"ID" ); 2868 %>2872 ?> 2869 2873 <%= $i != 0 ? "," : "" %> 2870 2874 <%= makeUserLink( getOwnerForLink( $id )) %>'s <%= makePermaLink( $id ) %> 2871 < %2875 <?php 2872 2876 } 2873 2877 if( $matchingLinks > $argMaxUrls ) … … 2875 2879 # FIXME: not working: (<a href=\"/urls-like?id=$id\">show all similar</a>)"; 2876 2880 2877 %>2878 <%2879 2881 conClose( $con ); 2880 2882 } else if( $argMode == "COUNT" ) { … … 3078 3080 $f = get_thumbnail_image( $u ); 3079 3081 if( $f ) { 3080 %>3081 <img src="<%= $f %>" width="< %= $pxl_size %>" class="profileImage" alt="" border="0" >3082 < %3082 ?> 3083 <img src="<%= $f %>" width="<?= $pxl_size ?>" class="profileImage" alt="" border="0" > 3084 <?php 3083 3085 } else { 3084 %>3085 <img src="/img/new-user/thumb" height="< %= $pxl_size %>" class="profileImage" alt="" border="0" >3086 < %3086 ?> 3087 <img src="/img/new-user/thumb" height="<?= $pxl_size ?>" class="profileImage" alt="" border="0" > 3088 <?php 3087 3089 } 3088 3090 $ret = ob_get_clean(); … … 3286 3288 $lines = get_file_safe( $linkfile ); 3287 3289 3288 %>3290 ?> 3289 3291 <h4> <a href="/comments">Comments</a>: </h4> 3290 < %3292 <?php 3291 3293 #<p> 3292 3294 #(comments by link owner have a dark border,<br /> … … 3368 3370 function addUser( $argUserId, $argEmail, $argPassword, $argName, $argPostCode, $argIM, $argIMType, $argPostCode, $argIM, $argIMType ) { 3369 3371 3372 # FIXME: we manhandled this pretty badly 3373 3370 3374 # check to see if weve seen any new accounts from this IP recently 3371 3375 $ip = get_ip(); 3376 3377 l( "new_user: $argUserId, $argEmail" ); 3378 3372 3379 $q = run_query( getQuery( "multiple_accounts_from_this_ip", $ip )); 3373 3380 $num_rows = mysql_num_rows($q); 3374 3381 if( $num_rows > 1 ) { 3375 3382 #disabled because it got too noisy: 3376 #fire( "Possible spammer-birth in progress!", "Multiple accounts being requested from the same IP ($ip) -- user: http://feedmelinks.com/u/$argUserId, $argEmail" );3377 3383 log_mesg_to( "$ip: potential spammer $argUserId ($argEmail) creating multiple accounts from the same IP", "security" ); 3378 3384 $q = run_query( getQuery( "log_ip", $argUserId, $argEmail, $ip )); … … 3392 3398 $im_type = urlencode( $argIMType ); 3393 3399 3394 $qs = "INSERT INTO users VALUES(NULL,'$userId','$email', '$password', '$name','', 2, 1, NULL, now(), now(), NULL, NULL, NULL );";3400 $qs = "INSERT INTO users VALUES(NULL,'$userId','$email', '$password', '$name','', 2, 1, NULL, now(), now(), NULL, NULL, NULL, NULL );"; 3395 3401 3396 3402 l( "new_user: $argUserId, $argEmail" ); … … 3465 3471 <div class="notice"> 3466 3472 <b>Notice.</b> 3467 < %= $mesg %>3473 <?= $mesg ?> 3468 3474 </div> 3469 3475 3470 < %3476 <?php 3471 3477 } 3472 3478 } … … 3734 3740 } 3735 3741 3736 function get_mail_headers( ) {3742 function get_mail_headers( $from_user ) { 3737 3743 $headers = ""; 3738 $headers .= "From: Feed Me Links <do-not-reply@" . get_domain() . ">\n";3744 $headers .= "From: " . ( $from_user ? $from_user . " <" . getEmailAddressForUser( $from_user ) . ">" : "Feed Me Links <do-not-reply@" . get_domain()) . ">\n"; 3739 3745 $headers .= "X-Mailer: feedmelinks-mailer-daemon\n"; 3740 3746 return $headers; feedmelinks/users.php
r1376 r1410 81 81 <% 82 82 $id = mysql_result($q,$i,"ID"); 83 $email = urldecode( mysql_result($q,$i,"email")); 83 if( has_me_as_a_peep( $userId, $u )) 84 $email = urldecode( mysql_result($q,$i,"email")); 84 85 85 86 $qs2 = getQuery( "links_per_user", $userId ); … … 95 96 96 97 <h1> 97 <%= encodeAddress( $email, $userId )%>98 <%= $email ? encodeAddress( $email, $userId ) : $userId %> 98 99 <small><small><%= get_verbose_contact_link( $userId ) %></small></small> 99 100 </h1> … … 102 103 <a href="/u/<%= $userId %>/<%= getCatsName() %>"><%= getCatsName() %></a> 103 104 </h3> 104 105 105 106 106 <%