root / backupDatabase.php

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