I would assume if you have a page of 50 functions and only one gets called, it is because you pass in the name of the action you want to happen in the
url:

actions.php?do=logout

or something like that. So you just take that string and call your action. This of course would be a page that assumed a level of trust with the user
or was alright with the user calling any of the 50 functions.

$func = $_GET['do'];

$func();

That's exactly what we are considering doing in replace of our massive switch.

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

UPHPU mailing list
[email protected]
http://uphpu.org/mailman/listinfo/uphpu
IRC: #uphpu on irc.freenode.net

Reply via email to