Пример #1
0
 /**
  *
  * @param $controller
  */
 function enter($controller)
 {
     // Call a given controller, except when the segment1 is "null", in which, call Home.
     if ($controller != "null") {
         $instance = new $controller();
         $instance->main();
     } else {
         $instance = new Home();
         $instance->main();
     }
 }
Пример #2
0
    function hideBlock($tempVar)
    {
        $this->tpl->set_block("rptsTemplate", $tempVar, $tempVar . "Block");
        $this->tpl->set_var($tempVar . "Block", "");
    }
    function setPageDetailPerms()
    {
    }
    function Main()
    {
        $this->tpl->set_var("uname", $this->user["uname"]);
        $this->tpl->set_var("today", date("F j, Y"));
        $this->setPageDetailPerms();
        $this->tpl->set_var("Session", $this->sess->url(""));
        $this->tpl->parse("templatePage", "rptsTemplate");
        $this->tpl->finish("templatePage");
        $this->tpl->p("templatePage");
    }
}
#####################################
# Define Procedures and Functions
#####################################
##########################################################
# Begin Program Script
##########################################################
//*
page_open(array("sess" => "rpts_Session", "auth" => "rpts_Challenge_Auth"));
//*/
$obj = new Home($sess);
$obj->main();
page_close();