| Index
» Projekty
» phpMyEdit
» Fórum
» Authorization scheme |
 |
Sunuraxi
Založený: 08.03.2005
Príspevky: 2
Zaslal: 2005-03-08 22:35
Návrat hore
Odpovedať s citátom
|
Hello,
If I have well read the documentation, there is no user logon but you can limit the user rights with $opts['options']. Is it be possible to develop a authorization scheme like this :
$opts['security'] = 0 (==> no logon for this page. Default)
= 1 (==> Web server logon)
= 2 (==> DB logon)
By "Web server logon", I mean something similar to the .htaccess files in the Apache web server.
By "DB logon", I mean :
- If the user is not authentified, redirect him to a logon page. Then, compare user and password with the data in the "PME_user" table. Record connection date and time in this table and set the HTTP var : REMOTE_USER
- If (s)he is authentificated, then read the "PME_userURL" table to find the $opts['options'] and $opts['filters'] for this URL and this user.
Of course, there is a relation one to many between table "PME_user" and "PME_userURL".
Regards,
Sunuraxi
|
michal
Založený: 17.06.2003
Príspevky: 537
Bydlisko: Slovakia
Zaslal: 2005-03-09 07:58
Návrat hore
Odpovedať s citátom
|
the user login scheme is left to the site admin. you can do pretty much any scheme and keep it in $opts['cgi']['persist'] variable.
i don't believe there will be a built in option for this. rather an extra script will exist, which will do what's expected.
also, you can have a look at metafox sources. it uses authentificied phpMyEdit for admin part.
|
nepto
Založený: 06.01.2003
Príspevky: 320
Bydlisko: Phoenix, Arizona (USA)
Zaslal: 2005-03-10 16:07
Návrat hore
Odpovedať s citátom
|
Yes, michal is right.
_________________ Ondrej Jombik (Nepto)
Visit my
homepage
, review my recent
CV
or
projects
and give me some
feedback
.
|
|
Odoslať novú tému
Odpovedať na tému
|
|
|
|