Всем привет при регистрации пишет ошибку в строке 45 Код (Text): <?PHP $_OPTIMIZATION["title"] = "Ðåãèñòðàöèÿ"; $_OPTIMIZATION["description"] = "Ðåãèñòðàöèÿ ïîëüçîâàòåëÿ â ñèñòåìå"; $_OPTIMIZATION["keywords"] = "Ðåãèñòðàöèÿ íîâîãî ó÷àñòíèêà â ñèñòåìå"; if(isset($_SESSION["user_id"])){ Header("Location: /account"); return; } ?> <div class="s-bk-lf"> <div class="acc-title">Ðåãèñòðàöèÿ</div> </div> <div class="silver-bk"><div class="clr"></div> <style> #error { border-color: #EE2327; } #good { border-color: #23EE5B; } .alert { color: #191A18; margin: 5px 0; padding: 8px 35px 8px 14px; text-shadow: 0px 1px 0px rgba(255, 255, 255, 0.5); background-color: #FCF8E3; border: 2px solid #3Aa73D; border-radius: 2px; } </style> <?PHP # Ðåãèñòðàöèÿ if(isset($_POST["login"])){ if(isset($_SESSION["captcha"]) AND strtolower($_SESSION["captcha"]) == strtolower($_POST["captcha"])){ unset($_SESSION["captcha"]); $login = $func->IsLogin($_POST["login"]); $pass = $func->IsPassword($_POST["pass"]); $status = $func->IsStatus($_POST["status"]); $rules = isset($_POST["rules"]) ? true : false; $time = time(); $ip = $func->UserIP; $email = $func->IsMail($_POST["email"]); $referer_id = (isset($_COOKIE["i"]) AND intval($_COOKIE["i"]) > 0 AND intval($_COOKIE["i"]) < 1000000) ? intval($_COOKIE["i"]) : 1; $referer_name = ""; if($referer_id != 1){ $db->Query("SELECT user FROM db_users_a WHERE id = '$referer_id' LIMIT 1"); if($db->NumRows() > 0){$referer_name = $db->FetchRow();} else{ $referer_id = 1; $referer_name = "Admin"; } }else{ $referer_id = 1; $referer_name = "First"; } if($rules){ if($email !== false){ if($login !== false){ if($pass !== false){ if($pass == $_POST["repass"]){ if($status !== false){ $db->Query("SELECT COUNT(*) FROM db_users_a WHERE user = '$login'"); if($db->FetchRow() == 0){ # Ðåãàåì ïîëüçîâàòåëÿ $db->Query("INSERT INTO db_users_a (user, email, pass, status, referer, referer_id, date_reg, ip) VALUES ('$login','{$email}','$pass','$status','$referer_name','$referer_id','$time',INET_ATON('$ip'))"); $lid = $db->LastInsert(); $db->Query("INSERT INTO db_users_b (id, user, money_b, a_t, last_sbor) VALUES ('$lid','$login','20000', '1', '".time()."')"); $db->Query("UPDATE db_users_b SET money_b = money_b +100 WHERE id = '$referer_id'"); # Âñòàâëÿåì ñòàòèñòèêó $db->Query("UPDATE db_stats SET all_users = all_users +1 WHERE id = '1'"); echo "<center><div class='alert' id='good'>Âû óñïåøíî çàðåãèñòðèðîâàëèñü. Èñïîëüçóéòå ôîðìó ñëåâà äëÿ âõîäà â àêêàóíò</div></center>"; ?></div> <div class="clr"></div> <div class="clr"></div> <br> <br> </div> <div class="clr"></div> <?PHP return; }else echo "<center><div class='alert' id='error'>Óêàçàííûé ëîãèí óæå èñïîëüçóåòñÿ</div></center>"; }else echo "<center><div class='alert' id='error'>Ïàðîëü è ïîâòîð ïàðîëÿ íå ñîâïàäàþò</div></center>"; }else echo "<center><div class='alert' id='error'>Ïàðîëü çàïîëíåí íåâåðíî</div></center>"; }else echo "<center><div class='alert' id='error'>Ëîãèí çàïîëíåí íåâåðíî</div></center>"; }else echo "<center><font color = 'red'><b>Email èìååò íåâåðíûé ôîðìàò</b></font></center>"; }else echo "<center><div class='alert' id='error'>Âû íå ïîäòâåðäèëè ïðàâèëà</div></center>"; }else echo "<center><font color = 'red'><b>Ñèìâîëû ñ êàðòèíêè ââåäåíû íåâåðíî</b></font></center>"; } } ?> <br /> <form action="" method="post"> <center> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td> <font style="color: #000;"><b>Âàø ïñåâäîíèì: </b></font><font color="#FF0000">*</font></td> <td align="left" style="padding:3px;"><input id="reg_1" placeholder="Ïðèäóìàéòå ëîãèí" pattern="[0-9A-Za-z]{4,10}" required title="Ïñåâäîíèì äîëæíî èìåòü îò 4 äî 10 ñèìâîëîâ (òîëüêî ëàòèíñêèå áóêâû è öèôðû)" name="login" class="poi" style="width: 215px;height: 30px;margin-left: 30px;text-align:center;background-color: #fff;font-size: 14px;" type="text" size="25" maxlength="10" value="<?=(isset($_POST["login"])) ? $_POST["login"] : false; ?>"/></td> </tr> <tr> <td><div style="margin-top: 10px;"></div></td> </tr> <tr> <td> <font style="color: #000;"><b>Email: </b></font><font color="#FF0000">*</font></td> <td align="left" style="padding:3px;"><input id="reg_2" placeholder="Ââåäèòå âàø e-mail" required name="email" class="poi" style="width: 215px;height: 30px;margin-left: 30px;text-align:center;background-color: #fff;font-size: 14px;" type="email" size="25" maxlength="50" value="<?=(isset($_POST["email"])) ? $_POST["email"] : false; ?>"/></td> </tr> <tr> <td><div style="margin-top: 10px;"></div></td> </tr> <tr> <td> <font style="color: #000;"><b>Ïàðîëü: </b></font><font color="#FF0000">*</font></td> <td align="left" style="padding:3px;"><input id="reg_3" placeholder="Ââåäèòå ïàðîëü" pattern="[0-9A-Za-z]{6,20}" required title="Ïàðîëü äîëæíî èìåòü îò 6 äî 20 ñèìâîëîâ (òîëüêî ëàòèíñêèå áóêâû è öèôðû)" name="pass" class="poi" style="width: 215px;height: 30px;margin-left: 30px;text-align:center; background-color: #fff;font-size: 14px;" type="password" size="25" maxlength="20" /></td> </tr> <tr> <td><div style="margin-top: 10px;"></div></td> </tr> <tr> <td> <font style="color: #000;"><b>Ïàðîëü åùå ðàç: </b></font><font color="#FF0000">*</font></td> <td align="left" style="padding:3px;"><input id="reg_4" placeholder="Ïîâòîðèòå ïàðîëü" pattern="[0-9A-Za-z]{6,20}" required title="Ïàðîëü äîëæíî èìåòü îò 6 äî 20 ñèìâîëîâ (òîëüêî ëàòèíñêèå áóêâû è öèôðû)" name="repass" class="poi" style="width: 215px;height: 30px;margin-left: 30px;text-align:center; background-color: #fff;font-size: 14px;" type="password" size="25" maxlength="20" /></td> </tr> <tr> <td><div style="margin-top: 10px;"></div></td> </tr> <tr> <td> <font style="color: #000;"><b>Âàø: </b></font><font color="#FF0000">*</font></td> <td align="left" style="padding:3px;"><input id="reg_1" placeholder="Ïðèäóìàéòå ëîãèí" pattern="[0-9A-Za-z]{4,10}" required title="Ïñåâäîíèì äîëæíî èìåòü îò 4 äî 10 ñèìâîëîâ (òîëüêî ëàòèíñêèå áóêâû è öèôðû)" name="login" class="poi" style="width: 215px;height: 30px;margin-left: 30px;text-align:center;background-color: #fff;font-size: 14px;" type="text" size="25" maxlength="10" value="<?=(isset($_POST["status"])) ? $_POST["status"] : false; ?>"/></td> </tr> <tr> <td><div style="margin-top: 10px;"></div></td> </tr> </table> <center> <div> <label><input name="rules" style="cursor: pointer; width: 15px; height: 15px; vertical-align: -4px;" required type="checkbox"><font style="color: #000;"><b style="cursor: pointer;"> Ñ </b><a href="/rules" target="_blank" class="stn">ïðàâèëàìè</a> <font><b style="cursor: pointer;"> ïðîåêòà îçíàêîìëåí(à) è ïðèíèìàþ: </b></label> </div> </center> </center> <br> <table width="330" border="0" align="center"> <tbody><tr> <td align="center"></td> </tr> <div> <center> <div class="silver-bkloxum"> <center> <div style="border: 1px solid #FFEBD7;width: 165px;height: 60px;cursor: pointer;"> <a onclick="ResetCaptcha(this);"><img style="cursor: pointer;" src="/captcha.php?rnd=<?=rand(1,10000); ?>" border="0"></a> </div> </center> <div style="margin-top: 10px;"></div> <center> <font style="color: #000;"><b>Ââåäèòå ñèìâîëû ñ êàðòèíêè </b></font><font color="#FF0000">*</font><input id="reg_6" placeholder="Öèôðû ñ êàðòèíêè" class="poi" style="width: 215px;height: 30px;margin-left: 30px;text-align:center;background-color: #fff;font-size: 14px;" name="captcha" type="text" size="25" required maxlength="50"> </font></center><font> </font></div><font> </font></center><font> </font></div> <div style="margin-top: 5px;"></div> <tr> <center><br><input name="registr" type="submit" class="btn_reg" value="Çàðåãèñòðèðîâàòüñÿ"></center> </tr> </tbody></table> </center> </form> </div> <div class="clr"></div> <div class="clr"></div> <br> <br> </div> <div class="clr"></div>
Если приведёте полностью сообщение об ошибке, код разместите в специальном блоке (слева/сверху в панели редактора нового сообщения) и конкретизируете, какая строка выложенного кода соответствует номеру строки указанному в сообщении об ошибке...