This topic is locked

external user rights

4/23/2008 6:19:44 AM
PHPRunner General questions
W
webdino author

I have an application which generates a link to the sites that are generated from the phprunner
The user who comes from my application has some rights, I will check these rights before I display him the site which is generated by phprunner

to edit or add in the page.
These rights are global in Session Variables and I have a constant variable in an include file.

how can I check thes right to integrate it in phprunners code??
User1 Application

-> switch to another Application (generated whith phprunner)

-> CONSTANT USERRIGHT = 1

-> then he goes to menue Page from PHPrunner generated

-> how are his rights?

--> switch to list page - how can I here examine his rights - must I generate an event? or are there other solutions?
thank you for help

J
Jane 4/23/2008

Hi,
check user permissions (your variables, contants, etc.) in the Login page: Before process event, then fill PHPRunner $_SESSION variables if required and redirect to the menu page.

W
webdino author 4/23/2008

there is a problem when a user goes direct to call a url or not?

I don´t check permissions now with the phprunner

J
Jane 4/23/2008

You can use any Before process event to check your variables and redirect to required page.

W
webdino author 4/23/2008

how can I redirect to a page?

J
Jane 4/23/2008

Use Redirect to another page action on the Events tab as a sample.

W
webdino author 4/23/2008

thank you but now i have another problem with this fault
Smarty error: unable to write to $compile_dir '/bela-os/test/infusions/werbung_admin_panel/templates_c'. Be sure $compile_dir is writable by the web server user.
what is $compile_dir echo $compile_dir is not available
where I can check which dir is meaning?

S
steveh 4/23/2008

it's the templates_c directory, make sure it's writeable by the process that runs your webserver.

J
Jane 4/23/2008

You need to make sure "templates_c" directory is writable by the web server user.

Usually you can assign correct permissions using your control panel. Also you may ask your webhoting company to help you with this.

W
webdino author 4/23/2008

thank you I have changed the permissions on the linux server

it works