Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Sobota, 28. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  User Manager Controls Table Display .. ?

phpMyEdit Features     User Manager Controls Table Display .. ?
Odoslať novú tému   Odpovedať na tému    
 
KyleK29     Založený: 14.09.2004   Príspevky: 5  
Príspevok 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
Príspevok 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    

Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok · Odkazový formulár · Prihláška
Upozorniť na chybu na PLATON.SK webstránke · Podmienky použitia · Ochrana osobných údajov