Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP] Z obiektowego na strukturalny - logowanie
bahh
post
Post #1





Grupa: Zarejestrowani
Postów: 261
Pomógł: 2
Dołączył: 13.05.2012

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


Mam stworzyć system obsługujący to samo logowanie co na Kohanie - to kod z metodami dla sesji, które tutaj przepisałem jako zwykłe funkcje:

https://cpaste.org/p1oefactn

A tutaj pewne elementy do powyższego skryptu
  1. 'driver' => 'ORM',
  2. 'hash_method' => 'sha1',
  3. 'salt_pattern' => '1, 3, 5, 9, 14, 15, 20, 21, 28, 30',
  4. 'lifetime' => 1209600,
  5. 'session_key' => 'auth_user',
  6. 'autologin_key' => 'auth_autologin',
  7. 'forced_key' => 'auth_forced',


Cały kod zapisałem tak jak tutaj w postaci strukturalnej:
https://cpaste.org/pm3gdscgv/jptekh

Ale wywala takie błędy (w zależności od odświeżenia wyświetla jeden z tych trzech):

Cytat
Fatal error: Cannot redeclare find_salt() (previously declared in 0u°:61911776) in /firmymiesne/panel/index.php on line 24

Parse error: syntax error, unexpected ';' in /firmymiesne/panel/index.php on line 35

Fatal error: Cannot redeclare find_salt() (previously declared in /firmymiesne/panel/index.php:18) in /firmymiesne/panel/index.php on line 24



Wie ktoś co zrobiłem źle?

Ten post edytował bahh 19.03.2015, 20:29:37
Go to the top of the page
+Quote Post

Posty w temacie


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

 



RSS Aktualny czas: 20.08.2025 - 00:28