![]() |
![]() ![]() |
![]() |
![]()
Post
#1
|
|
![]() Grupa: Zarejestrowani Postów: 7 Pomógł: 0 Dołączył: 13.06.2003 Skąd: Toruń Ostrzeżenie: (0%) ![]() ![]() |
http://81.190.22.207/~free/
Po wypisaniu danych w formularzu powinno tworzyć konto a tego nie robi tylko wyskakuje błąd :cry: A kod wygląda następująco : [php:1:da97d67bd5]<?php if($to_mail==0) { $licznik_file_a = "ilosc.txt"; $fp_a = fopen($licznik_file_a, "r+"); $count_a = fgets($fp_a, 10); $count_a += 1; fseek($fp_a, 0); fwrite($fp_a, $count_a, 10); fclose($fp_a); $dat_e = date("H:i"); $dat_a = date("d.m.Y"); $wiadomosc .= "Witaj ". $_imie ." !nn"; $wiadomosc .= "Twoje konto o nazwie ". $_login . " zostało pomyślnie założone. Ale na aktywacje FTP niestety musisz poczekać. Miało to miejsce ".$dat_a." o godzinie ".$dat_e.". nn"; $wiadomosc .= "Twoja strona dostępna jest pod adresem:nhttp://*/~". $_login . "/nn"; $wiadomosc .= "---n $title .= "ERM Polska Company"; $naglowek .= "From: Office <office@ermpolska.tk>n"; $naglowek .= "Return-Path: <office@ermpolska.tk>n"; mail(office@ermpolska.tk, $_email, $title, $wiadomosc, $naglowek); echo"<b>Konto zostało utworzone !</b><br><br>"; echo"<br>Oto dane, które nam podałeś :<br><br>"; echo"<b>Imię : </b>".$_imie."<br>"; echo"<b>Nazwisko : </b>".$_nazwisko."<br>"; echo"<b>E-Mail : </b>".$_email."<br>"; echo"<b>Login : </b>".$_login."<br>"; echo"<b>Hasło : </b>".$_haslo."<br>"; echo"<b>Płeć : </b>".$_plec."<br>"; echo"<b>Rok urodzenia : </b>".$_rok."<br>"; echo"<b>Miejscowość : </b>".$_miasto."<br>"; $plik = "".$_login."/index.html"; $file=fopen($plik, "index"); $file=fwrite($file, " <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html dir="ltr"> <head> <meta http-equiv=Content-Type content="text/html; charset=windows-1250"> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2"> <meta http-equiv="Content-Style-Type" content="text/css"> <link rel="top" href="index.php" title="" /> <link rel="search" href="search.php" title="" /> <link rel="help" href="faq.php" title="" /> <link rel="author" href="memberlist.php" title="" /> <title>GameNews :: Strona Główna</title> <!-- link rel="stylesheet" href="templates/subSilver/subSilver.css" type="text/css" --> <style type="text/css"> <!-- body { background-color: #E5E5E5; scrollbar-face-color: #DEE3E7; scrollbar-highlight-color: #FFFFFF; scrollbar-shadow-color: #DEE3E7; scrollbar-3dlight-color: #D1D7DC; scrollbar-arrow-color: #006699; scrollbar-track-color: #EFEFEF; scrollbar-darkshadow-color: #98AAB1; } font,th,td,p { font-family: Verdana, Arial, Helvetica, sans-serif } a:link,a:active,a:visited { color : #006699; } a:hover { text-decoration: underline; color : #DD6900; } hr { height: 0px; border: solid #D1D7DC 0px; border-top-width: 1px;} .bodyline { background-color: #FFFFFF; border: 1px #F92F14 solid; } .forumline { background-color: #FFFFFF; border: 2px #F92F14 solid; } td.row1 { background-color: #FFFFFF; } td.row2 { background-color: #FFFFFF; } td.row3 { background-color: #FFFFFF; } td.rowpic { background-color: #FFFFFF; background-image: url(templates/subSilver/images/cellpic2.jpg); background-repeat: repeat-y; } th { color: #FFA34F; font-size: 11px; font-weight : bold; background-color: #F92F14; height: 25px; background-image: url(templates/subSilver/images/cellpic3.gif); } td.cat,td.catHead,td.catSides,td.catLeft,td.catRight,td.catBottom { background-image: url(templates/subSilver/images/cellpic1.gif); background-color:#D1D7DC; border: #FFFFFF; border-style: solid; height: 28px; } td.cat,td.catHead,td.catBottom { height: 29px; border-width: 0px 0px 0px 0px; } th.thHead,th.thSides,th.thTop,th.thLeft,th.thRight,th.thBottom,th.thCornerL,th.t CornerR { font-weight: bold; border: #FFFFFF; border-style: solid; height: 28px; } td.row3Right,td.spaceRow { background-color: #D1D7DC; border: #FFFFFF; border-style: solid; } th.thHead,td.catHead { font-size: 12px; border-width: 1px 1px 0px 1px; } th.thSides,td.catSides,td.spaceRow { border-width: 0px 1px 0px 1px; } th.thRight,td.catRight,td.row3Right { border-width: 0px 1px 0px 0px; } th.thLeft,td.catLeft { border-width: 0px 0px 0px 1px; } th.thBottom,td.catBottom { border-width: 0px 1px 1px 1px; } th.thTop { border-width: 1px 0px 0px 0px; } th.thCornerL { border-width: 1px 0px 0px 1px; } th.thCornerR { border-width: 1px 1px 0px 0px; } /* The largest text used in the index page title and toptic title etc. */ .maintitle { font-weight: bold; font-size: 22px; font-family: "Trebuchet MS",Verdana, Arial, Helvetica, sans-serif; text-decoration: none; line-height : 120%; color : #000000; } /* General text */ .gen { font-size : 12px; } .genmed { font-size : 11px; } .gensmall { font-size : 10px; } .gen,.genmed,.gensmall { color : #000000; } a.gen,a.genmed,a.gensmall { color: #006699; text-decoration: none; } a.gen:hover,a.genmed:hover,a.gensmall:hover { color: #DD6900; text-decoration: underline; } /* The register, login, search etc links at the top of the page */ .mainmenu { font-size : 11px; color : #000000 } a.mainmenu { text-decoration: none; color : #006699; } a.mainmenu:hover{ text-decoration: underline; color : #DD6900; } /* Forum category titles */ .cattitle { font-weight: bold; font-size: 12px ; letter-spacing: 1px; color : #006699} a.cattitle { text-decoration: none; color : #006699; } a.cattitle:hover{ text-decoration: underline; } /* Forum title: Text and link to the forums used in: index.php */ .forumlink { font-weight: bold; font-size: 12px; color : #006699; } a.forumlink { text-decoration: none; color : #006699; } a.forumlink:hover{ text-decoration: underline; color : #DD6900; } /* Used for the navigation text, (Page 1,2,3 etc) and the navigation bar when in a forum */ .nav { font-weight: bold; font-size: 11px; color : #000000;} a.nav { text-decoration: none; color : #006699; } a.nav:hover { text-decoration: underline; } /* titles for the topics: could specify viewed link colour too */ .topictitle,h1,h2 { font-weight: bold; font-size: 11px; color : #000000; } a.topictitle:link { text-decoration: none; color : #006699; } a.topictitle:visited { text-decoration: none; color : #5493B4; } a.topictitle:hover { text-decoration: underline; color : #DD6900; } /* Name of poster in viewmsg.php and viewtopic.php and other places */ .name { font-size : 11px; color : #000000;} /* Location, number of posts, post date etc */ .postdetails { font-size : 10px; color : #000000; } /* The content of the posts (body of text) */ .postbody { font-size : 12px; line-height: 18px} a.postlink:link { text-decoration: none; color : #006699 } a.postlink:visited { text-decoration: none; color : #5493B4; } a.postlink:hover { text-decoration: underline; color : #DD6900} /* Quote & Code blocks */ .code { font-family: Courier, 'Courier New', sans-serif; font-size: 11px; color: #006600; background-color: #FAFAFA; border: #D1D7DC; border-style: solid; border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px } .quote { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #444444; line-height: 125%; background-color: #FAFAFA; border: #D1D7DC; border-style: solid; border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px } /* Copyright and bottom info */ .copyright { font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif; color: #444444; letter-spacing: -1px;} a.copyright { color: #444444; text-decoration: none;} a.copyright:hover { color: #000000; text-decoration: underline;} /* Form elements */ input,textarea, select { color : #000000; font: normal 11px Verdana, Arial, Helvetica, sans-serif; border-color : #000000; } /* The text input fields background colour */ input.post, textarea.post, select { background-color : #FFFFFF; } input { text-indent : 2px; } /* The buttons used for bbCode styling in message post */ input.button { background-color : #EFEFEF; color : #000000; font-size: 11px; font-family: Verdana, Arial, Helvetica, sans-serif; } /* The main submit button option */ input.mainoption { background-color : #FAFAFA; font-weight : bold; } /* None-bold submit button */ input.liteoption { background-color : #FAFAFA; font-weight : normal; } /* This is the line in the posting page which shows the rollover help line. This is actually a text box, but if set to be the same colour as the background no one will know ![]() */ .helpline { background-color: #DEE3E7; border-style: none; } /* Import the fancy styles for IE only (NS4.x doesn't use the @import function) */ @import url("templates/subSilver/formIE.css"); --> </style> </head> <body scroll="no"> <a name="top"></a> <table width="100%" height="100%"cellpadding="2" cellspacing="1" border="0" class="forumline"> <tr> <th class="thCornerL" height="25" nowrap="nowrap"> Informacja </th> </tr> <tr> <td class="row1" width="100%" height="100%"><center><span class="forumlink">Strona zastępcza </span></center></td> </tr> <tr> </table> </body> </html> "); $file=chmod("".$_login."/index.html", 0777); $file=fopen($plik, "index"); fclose($file); echo("&nbsc;"); } else { echo("ERROR !!!<br><b><a href=# onClick=history.back()><< WSTECZ</a><b>");} ?>[/php:1:da97d67bd5] Jest tego sporo :wink: -------------------- Życie to choroba przenoszona drogą płciową.
|
|
|
![]()
Post
#2
|
|
![]() Grupa: Przyjaciele php.pl Postów: 2 335 Pomógł: 6 Dołączył: 7.03.2002 Ostrzeżenie: (0%) ![]() ![]() |
php=>Skrypty
|
|
|
![]()
Post
#3
|
|
![]() Grupa: Zarejestrowani Postów: 296 Pomógł: 0 Dołączył: 9.05.2002 Skąd: Warszawa Ostrzeżenie: (0%) ![]() ![]() |
1. Błąd w linii 19 - nie zamknięty cudzysłów.
2. Błąd w linii 23 - adres e-mail bez cudzysłowia i cos za duzo argumentów chyba. Poza tym w nagłówkach przed 'n' na końcu powinien byc backslash '' 3. Błąd w linii 39 .... i tu wymiękam, bo od błędów aż się roi... coś chyba się nie udało wkleić kodu...? :wink: -------------------- audaces fortuna iuvat!
|
|
|
![]()
Post
#4
|
|
![]() Grupa: Zarejestrowani Postów: 2 064 Pomógł: 1 Dołączył: 22.01.2003 Skąd: Poznań Ostrzeżenie: (0%) ![]() ![]() |
A po co wkleiłeś cały skrypt, łacznie CSSem? To na działanie skryptu znaczenia nie ma.
http://forum.php.pl/viewtopic.php?p=30718#30718 W linii 39 zastąp cudzysłów apostrofem. Zrób to także tam, gdzie zamykasz ten cudzysłów. -------------------- |
|
|
![]() ![]() |
![]() |
Wersja Lo-Fi | Aktualny czas: 14.08.2025 - 09:19 |