This topic is locked
[SOLVED]

 Edit, Delete and Add

8/23/2005 1:43:17 PM
PHPRunner General questions
E
edgerton author

Is it possible to not have the general pages password protected but to tie a login into the edit, delete and add functions?
Bruce

Sergey Kornilov admin 8/24/2005

Hi,
you can use Guest loginoption.

This option adds guest read only access to the database. If this option is selected, "Login as guest" link will be added to the login screen. Guest user cannot edit, delete or add new records to the database.
Proceed to the Securitytab in PHPRunner - Advanced security settings and check off the Add "Login as guest" with readonly accesscheckbox.

E
edgerton author 8/26/2005

Can you have the guest account auto login? That way you don't have to click "log on as guest" if you just want to view? Then if you want to edit you can click log out or something?

Sergey Kornilov admin 8/29/2005

Hi,
open \include\dbcommon.php file and insert this code snippet right after <?php:

if(!isset($_SESSION["UserID"]))

{

$_SESSION["UserID"]="Guest";

$_SESSION["AccessLevel"]="Guest";

}


Now you can log in as Guest using direct link to the ..._list.php page. Click Log outand go to the login page to log in as registered user.

E
edgerton author 9/1/2005

That's working. However, is there a way to prevent the "your session has expired" message? What's happening is I'll open up the *list.php page, and everything works fine, but if I go to another pc and try to open up that page it gives me the session expired message.

E
edgerton author 9/1/2005

I think I figured it out. Some how the file I updated (dbcommon) got overwritten so the code you gave me wasn't in there anymore.

E
edgerton author 9/2/2005

Sorry, another question regarding this.
I have it defaulting to the guest login and that's working. But now that I've done that there is no "export" or "print" options. Can I reenable them for the guest login?

Sergey Kornilov admin 9/5/2005

Bruce,
proceed to the Advanced security settingstab in PHPRunner, click User group permissions button and check off Export/Printcheckbox for <Guest> group.

E
edgerton author 9/6/2005

Thanks.
Really love the program!