This topic is locked

Simple newbie question

11/16/2006 8:50:55 AM
PHPRunner General questions
B
Bikerman author

Hi,

I'm just starting to play with phprunner and have a (probably lame) question.
I'd like to login a guest user automatically from an html page rather than present the login page. Other users will login normally using the login.php page but selecting (on my existing html page) to access as a guest should take the user straight to a particular list view of a table. There seem to be several ways to do this - what would be the recommended way?

The html page uses a simple

<a href="../table_list"Browse tables as a read-only user"></a>
Regards

Chris

Alexey admin 11/16/2006

Chris,
just give your guest user a direct link to List or Menu page.

I.e.

http://.../project/table_list.php

or

http://.../project/menu.php
He will be automatically logged in as a Guest.

B
Bikerman author 11/16/2006

Excellent.

Phase two will be to link the php user file (currently stored in a user table under mysql) to the messageboard login (YaBB) and the Links Database login (in-house).

Is there a general procedure for passing user and password information back and forward from the phprunner scripts to external scripts (such as the Yabb.pl login, for example). ie is there a particular strategy that is recommended or is it simply a case of adapting for each situation ?
Thanks

Chris

Sergey Kornilov admin 11/16/2006

Chris,
in this situation Yabb.pl file needs to be modified to retrieve usernames and passwords from another table.
I don't think any special procedure is required. You'll need to amend login table name and username/password field names.

B
Bikerman author 11/17/2006

Chris,

in this situation Yabb.pl file needs to be modified to retrieve usernames and passwords from another table.
I don't think any special procedure is required. You'll need to amend login table name and username/password field names.


Thanks for that. I'll have a crack at it over the next day or two and get back if/when problems occur.

ps - congats on the software - it is genuinely easy for a novice to use and seems powerful enough to do most of the more advanced things that we get deluded enough to want to try :-)
Chris