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