Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> problem z logowaniem
misiek2592
post
Post #1





Grupa: Zarejestrowani
Postów: 35
Pomógł: 0
Dołączył: 23.04.2012

Ostrzeżenie: (0%)
-----


Witam moze ktos mi tu pomoże, mam problem ze skryptem, podczas logowania na stronie www.ideatown.pl
przykład:
login: demo
hasło: demo
wyskakuje błąd z funkcją eregi

Deprecated: Function eregi() is deprecated in /home/misiekpo/domains/ideatown.pl/public_html/include/functions/main.php on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/misiekpo/domains/ideatown.pl/public_html/include/functions/main.php:325) in /home/misiekpo/domains/ideatown.pl/public_html/login.php on line 78

czy ktoś pomoże rozwiązać problem
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
misiek2592
post
Post #2





Grupa: Zarejestrowani
Postów: 35
Pomógł: 0
Dołączył: 23.04.2012

Ostrzeżenie: (0%)
-----


Oto funkcja o którą chodzi, jest w tym funkcja eregi i może ktoś mi powie jak ją popraić, widzę ze to problem z weryfikacją email.

  1. function verify_valid_email($emailtocheck)
  2. {
  3. $eregicheck = "^([-!#\$%&'*+./0-9=?A-Z^_`a-z{|}~])+@([-!#\$%&'*+/0-9=?A-Z^_`a-z{|}~]+\\.)+[a-zA-Z]{2,4}\$";
  4. return eregi($eregicheck, $emailtocheck);
  5. }
  6.  
  7. function verify_email_unique($emailtocheck)
  8. {
  9. global $config,$conn;
  10. $query = "select count(*) as total from members where email='".mysql_real_escape_string($emailtocheck)."' limit 1";
  11. $executequery = $conn->execute($query);
  12. $totalemails = $executequery->fields[total];
  13. if ($totalemails >= 1)
  14. {
  15. return false;
  16. }
  17. else
  18. {
  19. return true;
  20. }
  21. }
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 8.10.2025 - 08:12