project
project summary freshmeat entry development infos mailing list WebInstaller database tools ChangeLog
page plugins
ProtectedEmail PowerSearch README README.config README.plugins README.fragments ProtectedMode INTERNALS WordIndex AboutPlugins PhpInfo OrphanedPages ListOfPluginHooks RSS RecentChanges PageIndex NewestPages SearchPages MostVisitedPages MostOftenChangedPages UpdatedPages
usage hint
9OTUNE YOGURT SÜREER AYRAN OLANA KADAR SİKERİMxD
(moved from SupportForum)
Is there any way to force a user to view a specific page? I know i could mess with the $_REQUEST variable, but I'm trying to minimize the number of hacks I use.
Jeff
milky: I can't imagine, what this could be good for. But if you need it (you'll need a strong break condition), the $_REQUEST is eventually the sanest solution. You could however also do this in a ["handler"] plugin easily:
$ewiki_plugins["handler"][] = "forcepage";
function forcepage(&$id, &$data, &$action) {
if (($user=="...") && ($action=="view")) {
$id = "PageFor$user";
$data = ewiki_database("GET", array("id"=>$id));
}
}
(An ["init"] plugin would also do I guess.)