Changeset 1398
- Timestamp:
- 03/08/07 11:36:53 (2 years ago)
- Files:
-
- feedmelinks/bin/add-link.pl (modified) (3 diffs)
- feedmelinks/import/ready-to-import.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
feedmelinks/bin/add-link.pl
r1356 r1398 82 82 83 83 if( ! $dbh ) { 84 print LOG "$now [link-by-mail cant connect to DB]\n";84 print LOG "$now [link-by-mail error] cannot connect to DB]\n"; 85 85 die( "can't connect to DB, fatal error\n" ); 86 86 } … … 109 109 my $linkID = $sth->fetchrow_array; 110 110 if( $linkID ) { 111 print LOG "$now [ successfull likn-by-mail] $dbUser, link$linkID\n";111 print LOG "$now [link-by-mail] $dbUser added $linkID\n"; 112 112 113 113 $qs = "SELECT ID FROM linksGroups WHERE name = ? AND userid = ? AND isPrivate IS NULL"; … … 150 150 151 151 } else { 152 print LOG "$now [link-by-mail no tag found] $dbUser,'$tagName'\n";152 print LOG "$now [link-by-mail error] no tag found: $dbUser, tag: '$tagName'\n"; 153 153 die( "cant find a tag for this link, searching for '$tagName' failed, and adding a new one failed" ); 154 154 } 155 155 } 156 156 } else { 157 print LOG "$now [ unregistered link-by-mail attempt]$submitter\n";157 print LOG "$now [link-by-mail error] unregistered user $submitter\n"; 158 158 die( "The email address $submitter isn't registered with any Feed Me Links user. Perhaps you registered under another name?" ); 159 159 } feedmelinks/import/ready-to-import.php
r1375 r1398 53 53 $ls < $max_allowed_links 54 54 && $ts < $max_allowed_tags 55 && ($tr < $max_tags_to_links_ratio || $ls < 18)55 && ($tr < $max_tags_to_links_ratio || $ls < 36 ) 56 56 ) 57 57 || is_privileged_importer( $u ) ) 58 58 { 59 fire( "FML Debug: import request - $ls, $ts, $tr", "user $u importing $ls links and $ts tags with T:L ratio of $tr\nhttp://feedmelinks.com/u/$u" ); 59 if( $ls > 20 ) 60 fire( "FML Debug: import request - $ls, $ts, $tr", "user $u importing $ls links and $ts tags with T:L ratio of $tr\nhttp://feedmelinks.com/u/$u" ); 60 61 if( $tr > $max_tags_to_links_ratio && $ls > 5) 61 62 log_mesg_to( "WARN. user $u importing $ls links and $ts tags with T:L ratio of $tr", "security" );