$max_banner_width) && (!empty($banner_address) || $banner_address != "http://")) || (($banner_height > $max_banner_height) && (!empty($banner_address) || $banner_address != "http://")) ){ // If not all forms are correct then print errors echo "The following errors have occured, please press back and fix them.
"; if(empty($site_name)){ echo "Nie podano nazwy strony
"; } if(empty($site_address) || $site_address == "http://"){ echo "Nie podano adresu strony
"; } if(empty($password)){ echo "You didn't enter a password
"; } if(empty($email_address)){ echo "Nie podano adresu e-mail
"; } if(empty($webmaster_name)){ echo "Nie podano imienia i Nazwiska
"; } if(empty($site_description)){ echo "Nie podano opisu strony
"; } if($banner_width > $max_banner_width && !empty($banner_address) && $banner_address != "http://"){ echo "Nie podano wła¶ciwej szerokości banera
"; } if($banner_height > $max_banner_height && !empty($banner_address) && $banner_address != "http://"){ echo "Nie podano właściwej wysokości banera
"; } } else { ################## $fp = fopen($sitelog_file, "r"); flock($fp,1); $x = fread($fp, filesize($sitelog_file)); fclose($fp); $site_name = str_replace ("|","_", $site_name); $site_address = str_replace ("|","_", $site_address); $password = str_replace ("|","_", $password); $email_address = str_replace ("|", "_", $email_address); $webmaster_name = str_replace ("|","_", $webmaster_name); $site_description = str_replace ("|","_", $site_description); $banner_address = str_replace ("|","_", $banner_address); $after = "||$id||$site_name||$site_address||$password||$email_address||$webmaster_name||$site_description||$banner_address||$banner_width||$banner_height||"; $after = stripslashes($after); $before = stripslashes($before); $after = str_replace ("<","<", $after); $after = str_replace (">",">", $after); $before = str_replace ("<","<", $before); $before = str_replace (">",">", $before); $after = str_replace("$before","$after", $x); $fp = fopen($sitelog_file, "w"); flock($fp,2); $fw = fwrite($fp, $after); fclose($fp); echo "Informacje o stronie zostały zaktualizowane!

"; } } // password stuff if(empty($enter)){ echo "
$title_font_tag_before Zaloguj się $title_font_tag_after
$master_font_before\n" ?>
Inentyfikator:

Hasło:

Gdy zapomniałe¶ hała lub ID"; echo "$master_font_after
"; } else { for($i=0; $total > $i; $i++){ $split = explode("||", $file[$i]); if(($split[2] == $id) && ($split[5] == $password)){ $edit_site = 1; $file_line_num = $i; } } } if($edit_site == 1){ $file = file($sitelog_file); $total = count($file); $split = explode("||", $file[$file_line_num]); ##### fixed all the forms $split[2] = str_replace("'","'", $split[2]); $split[3] = str_replace("'","'", $split[3]); $split[4] = str_replace("'","'", $split[4]); $split[5] = str_replace("'","'", $split[5]); $split[6] = str_replace("'","'", $split[6]); $split[7] = str_replace("'","'", $split[7]); $split[8] = str_replace("'","'", $split[8]); $split[9] = str_replace("'","'", $split[9]); $split[2] = str_replace("\"",""", $split[2]); $split[3] = str_replace("\"",""", $split[3]); $split[4] = str_replace("\"",""", $split[4]); $split[5] = str_replace("\"",""", $split[5]); $split[6] = str_replace("\"",""", $split[6]); $split[7] = str_replace("\"",""", $split[7]); $split[8] = str_replace("\"",""", $split[8]); $split[9] = str_replace("\"",""", $split[9]); ##### $before = "||$split[2]||$split[3]||$split[4]||$split[5]||$split[6]||$split[7]||$split[8]||$split[9]||$split[10]||$split[11]||"; echo "
$title_font_tag_before"; echo "
$split[3]
\n"; echo "Utworzono: ".date("n/j/y h:i:s a", $split[2])."$title_font_tag_after\n"; echo "
$master_font_before\n" ?>
Hasło:

Nazwisko i imię:

Twój e-mail:


Tytuł strony:

Adres Strony:

Adres banera:

Szeroko¶ć banera: ( MAX)

Wysoko¶ć banera: ( MAX)

Opis strony:

"; } elseif($edit_site != 1 && !empty($enter)){ echo "Niewła¶ciwy identyfikator lub/i Hasło! $password : $id"; } include($FOOTER); ?>