KyleK29
Založený: 14.09.2004
Príspevky: 5
Zaslal: 2005-01-30 03:09
Návrat hore
Odpovedať s citátom
|
I've been using PHPME for a few months now, and so far it's great. But I've come up with a new need that I'm trying to figure out. If say, I wanted to build a contact manager out of PHPME where the user login (controlled by a User/Pass maintenance script, etc) determines what the user sees (so they'd only see their own stuff) .. is it possible with PHPME? I don't mind doing some editing, just want to be put on the right track.
Now, I could manually setup the filters for each user (using a seperate username .php file), but I'm looking for something that would do the filter on the fly. Like if user "KyleK29" logged in, PHPME would filter & display only rows owned by "KyleK29" and nothing else.
Any ideas? Tutorial links, suggestion links, etc are always welcome!
|
michal
Založený: 17.06.2003
Príspevky: 537
Bydlisko: Slovakia
Zaslal: 2005-01-30 13:32
Návrat hore
Odpovedať s citátom
|
afaik all you need is
$opts['cgi']['persist'] = $userid
and
$opts['filters'] = "owner = $userid"
(plus stuff to deal with $_POST/$_GET/$_COOKIE and against sql injection)
|
|
Odoslať novú tému
Odpovedať na tému
|
|
|