示例#1
0
文件: DBTools.php 项目: armic/erpts
        if (!checkPerms($this->user["userType"], $pageType)) {
            header("Location: Unauthorized.php" . $this->sess->url(""));
            exit;
        }
        $this->tpl = new rpts_Template(getcwd(), "keep");
        $this->tpl->set_file("rptsTemplate", "DBTools.htm");
        $this->tpl->set_var("TITLE", "DB Tools");
    }
    function Main()
    {
        $this->tpl->set_var("HTTP_HOST", $_SERVER["HTTP_HOST"]);
        $this->tpl->set_var("uname", $this->user["uname"]);
        $this->tpl->set_var("today", date("F j, Y"));
        $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", "perm" => "rpts_Perm"));
//*/
$obj = new dbTools($sess);
$obj->Main();
page_close();