# Top_List (c)2000, Blake McDonald (webmaster@dark-library.com) # # Top_List ver. 1.0 # # submit_site.php3 require("config.php3"); include("$HEADER"); $file = file($site_log_file); $total = count($file); // looks for dupe site address for($i=0; $total > $i; $i++){ $split = explode("||", $file[$i]); if($site_address == $split[4]){ $dupe_address = 1; } } // Checks if all the forms are filled out and correct if( empty($site_name) || (empty($site_address) || $site_address == "http://")|| empty($password) || empty($email_address) || empty($webmaster_name) || empty($site_description) || ($banner_width > $max_banner_width && !empty($banner_address) && $banner_address != "http://") || ($banner_height > $max_banner_height && !empty($banner_address) && $banner_address != "http://") || $dupe_address == 1 ){ // If not all forms are correct then print errors echo "
| $title_font_tag_before"; echo "Error! please go back and fix them!"; echo "$title_font_tag_after | $master_font_before\n";
if($dupe_address == 1){ echo "Duplicate site address found! "; } if(empty($site_name)){ echo "You didn't enter your site's name "; } if(empty($site_address) || $site_address == "http://"){ echo "You didn't enter your site's address "; } if(empty($password)){ echo "You didn't enter a password "; } if(empty($email_address)){ echo "You didn't enter your email address "; } if(empty($webmaster_name)){ echo "You didn't enter your name "; } if(empty($site_description)){ echo "You didn't enter your site's description "; } if($banner_width > $max_banner_width && !empty($banner_address) && $banner_address != "http://"){ echo "You didn't enter a valid banner width "; } if($banner_height > $max_banner_height && !empty($banner_address) && $banner_address != "http://"){ echo "You didn't enter a valid banner height "; } echo "$master_font_after |
| $title_font_tag_before"; echo "Thanks! Your site has been added!"; echo "$title_font_tag_after | $master_font_before\n";
echo "Your log-in code is: $date You will need this to edit your sites info. "; echo "Please put this HTML code on your site so people can vote for you, if you like you can make this a text link. ";
?>
<a href=" echo "$url_to_folder/in.php3?site=$date"; ?>" target=_blank>
This is the image. Please save it on your server. |