Re: [PHP] Login with Remember me Feature

2011-08-19 Thread Alekto Antarctica
Thank you for all the helpful input so far! I have now tried to implement the changes you suggested, but I unfortunately keep getting an error in line 114, in {-bracket in the switch statement. I know it is not very desirable to send all the code in a mail, but I think this is the best solution

Re: [PHP] Login with Remember me Feature

2011-08-14 Thread Alekto Antarctica
Hi guys! I have now tried to take some of your hints into consideration, by encrypting the password with md5 adding a salt. As some of you pointed out, this code is the work of a newbie, that is totally correct, so please bear with me ;) I have tried to implement a cookie to remember the login

[PHP] Login with Remember me Feature

2011-08-07 Thread alekto
Hi, I have implemented a remember me feature in my login-script, but I can't get it to function! I want to make it possible for the users to stay logged in for 30 days. This is what I got this far: This checkbox is placed Inside the index.php script, near by the username/password field.

[PHP] Tree menu list in php

2011-07-26 Thread alekto
Hi, is there a way to create a tree menu list only by using php/html/css? I found some, but they are all in JavaScript, do I have to make them by using JavaScript or is there a way in php as well? This is how I imagine the tree menu should look like: v First level Second level Second

Re: [PHP] Tree menu list in php

2011-07-26 Thread alekto
tech stuff , (most browsers do but user are not up to date with freshest ones) If there is a real reason not to use JS, can you make more specific example so we can help. Bojan Tesanovic Senior PHP Developer http://oophp.org/ On Jul 26, 2011, at 7:20 PM, alekto wrote: Hi

Re: [PHP] Members area Login with permissions!

2011-07-24 Thread alekto
buffer in php.ini, or ob_start somewhere. And hope you do session_start() in config.php ;) Cheers, Tamas -Original Message- From: alekto [mailto:alekto.antarct...@gmail.com] Sent: Sunday, July 24, 2011 1:28 AM To: php-general@lists.php.net Subject: [PHP] Members area

Re: [PHP] Members area Login with permissions!

2011-07-24 Thread alekto
it to: $usr_level = $dn[’usr_level’]; Cheers, Tamas From: alekto [mailto:alekto.antarct...@gmail.com] Sent: Sunday, July 24, 2011 1:00 PM To: Dajka Tamas Cc: php-general@lists.php.net Subject: Re: [PHP] Members area Login with permissions! Hi, thank you

Re: [PHP] Members area Login with permissions!

2011-07-24 Thread alekto
an unlogged user to the login form ( if logged in, but has no access rights, your login page will log out the user ). Don’t forget to store the users’ access level in the session, or this will not work! Cheers, Tamas From: alekto [mailto:alekto.antarct...@gmail.com

[PHP] Members area Login with permissions!

2011-07-23 Thread alekto
Hi, I need some help with my html/php, restricted access script. The purpose with this script is to let users login to a members area; some with admin permission, some with newbe permission and some with advanced permissions. The permissions are pre-defined in the MySQL-DB with a