(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.)

bottom corner