Changeset 1165

Show
Ignore:
Timestamp:
09/30/06 16:36:47 (2 years ago)
Author:
jm3
Message:

made imported links hot

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • feedmelinks/import/handle-upload.inc.php

    r1156 r1165  
    3232                } 
    3333 
    34  
    3534                if( move_uploaded_file($tmp, $path)) { 
    3635                        # fix perms: 
     
    3938                        $show_form = false; 
    4039                } else warn( "[Please ignore this error - code in debugging mode. Couldn't move the uploaded bookmarks file ($tmp) to your user directory ($dir) for importing -- please contact the administrators...]" ); 
    41         }  
     40        } 
    4241                else warn( "We require that your favorites file be smaller than " . ($max_bookmarks_file_size / 1024) . "k."  ); 
    4342%> 
  • feedmelinks/import/present-clean-pre-flight-input.inc.php

    r905 r1165  
    4444                $url = $l[0]; 
    4545                $name = $l[1]; 
     46                $max_length = 65; 
    4647                if( substr( $line, 0, 2 ) == "X " ) { 
    47                         $url = getCompactString( preg_replace( "/^X /", "", $url ), 48); 
    48                         echo row_wrap( " <span class='subtle'>Ignoring duplicate $url</span>", ($i % 2 == 0) ? 1 : 0 ); 
     48                        $url = getCompactString( preg_replace( "/^X /", "", $url ), $max_length); 
     49                        echo row_wrap( " <span class='subtle'>Ignoring duplicate link: <a class='subtle' href='$url' target='external'>$url</a></span>", ($i % 2 == 0) ? 1 : 0 ); 
    4950                } else { 
    5051                        ++$num_links; 
    51                         $url = getCompactString( $url, 48 ); 
    52                         echo row_wrap( " <span class='hot'>$url</span>", ($i % 2 == 0) ? 1 : 0 ); 
     52                        $url = getCompactString( $url, $max_length ); 
     53                        echo row_wrap( " <span class='hot'><a target='external' href='$url'>$url</a></span>", ($i % 2 == 0) ? 1 : 0 ); 
    5354                } 
    5455                echo "</div>\n";