Changeset 1463

Show
Ignore:
Timestamp:
05/09/06 00:52:27 (3 years ago)
Author:
sdcosta
Message:

404 for authors.php (similar to feed.php) to save bandwidth.

Location:
trunk/rss
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/rss/author.php

    r1462 r1463  
    3535 
    3636if (!$ra) { 
    37     rss_redirect(); 
     37    rss_404(); 
     38    exit; 
    3839} 
    3940 
  • trunk/rss/feed.php

    r1433 r1463  
    287287    ($d == 0 && $m == 0 && $y == 0) 
    288288) { 
    289     header("HTTP/1.1 404 Not Found"); 
    290     echo "404 Page Not Found"; 
     289    rss_404(); 
    291290    exit; 
    292291} 
  • trunk/rss/util.php

    r1461 r1463  
    11541154    return !rss_user_check_user_level(RSS_USER_LEVEL_PRIVATE); 
    11551155} 
     1156 
     1157// Send a crappy 404 (to save bandwidth) for webbots  
     1158function rss_404() { 
     1159    header("HTTP/1.1 404 Not Found"); 
     1160    echo "404 Page Not Found\n"; 
     1161} 
     1162 
    11561163?>