Pirsen Matts - 2015-02-23 16:09:15
Hello,
if I try to open any page from your script (except logout.php) in a browser, I get a message, that there are too many redirects (ERR_TOO_MANY_REDIRECTS).
And well, you call $LS->init(); in each file.
So if I try to open it, the page will redirect all the time.
$LS->init(); enforces a redirect to login.php
when this page is loading, $LS->init(); is there again
so it enforces a redirect to login.php again and again and again...
Now I've deleted the init() call in each file. But I wonder why they were there?
-------------------------------------
Another problem beside deleting init() is located in reset.php. There is some HTML before you including class.loginsys.php. So if I use sessions, there will be a warning "headers already sent".