Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [MySQL][PHP] Blokada konta
Adam345
post
Post #1





Grupa: Zarejestrowani
Postów: 17
Pomógł: 0
Dołączył: 31.12.2011

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


Witam myslę nad skryptem który blokował by konto Tzn Gdy uzytkownik nie wpisze podanego przezemnie kodu to jego konto bedzie zablokowane
Czy ma ktoś pomysł (IMG:style_emoticons/default/questionmark.gif)
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
Adam345
post
Post #2





Grupa: Zarejestrowani
Postów: 17
Pomógł: 0
Dołączył: 31.12.2011

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


Mam cos takiego
  1. function postLogin($username){
  2. $db =&atkGetDb();
  3. $user = &getUser();
  4. $sqlu="UPDATE `user` SET status='loged in' WHERE login='".$user['login']."'";
  5. $db->query($sqlu);
  6. }// end function
  7.  
  8. // This event is thrown just before the user get's logged out the system.
  9. function preLogout($username){
  10. atkdebug("$username about to logout: preLogout()");
  11. $db =&atkGetDb();
  12. $user = &getUser();
  13. $sqlu="UPDATE `user` SET status='active' WHERE login='".$user['login']."'";
  14. $db->query($sqlu);
  15. }// end function
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: 6.10.2025 - 06:41