root / addUser.php

1
<?php
2
3
/*
4
5
  Copyright (C) 2010, All Rights Reserved.
6
7
  This file is part of RPInventory.
8
9
  RPInventory is free software: you can redistribute it and/or modify
10
  it under the terms of the GNU General Public License as published by
11
  the Free Software Foundation, either version 3 of the License, or
12
  (at your option) any later version.
13
14
  RPInventory is distributed in the hope that it will be useful,
15
  but WITHOUT ANY WARRANTY; without even the implied warranty of
16
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17
  GNU General Public License for more details.
18
19
  You should have received a copy of the GNU General Public License
20
  along with RPInventory.  If not, see <http://www.gnu.org/licenses/>.
21
22
*/
23
24
require_once("lib/auth.lib.php");  //Session
25
26
//Authenticate
27
$auth = GetAuthority();
28
if($auth < 2)
29
  die("You dont have permission to access this page");
30
31
// SMARTY Setup
32
require_once('lib/smarty_inv.class.php');
33
$smarty = new Smarty_Inv();
34
        
35
//Assign vars
36
$smarty->assign('title', "Add new user");
37
$smarty->assign('authority', $auth);
38
$smarty->assign('page_tpl', 'addUser');
39
40
$smarty->display('index.tpl');
41
42
?>
43