root / index.php @ 6ebba44e3bf110d4ce262c25b020719c2f060e94

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
// Run install if config.ini.php does not exist
25
if (!file_exists('config/config.ini.php')) {
26
  header('Location: install.php');
27
  exit();
28
}
29
30
require_once("lib/auth.lib.php");  //Session
31
32
//Authenticate
33
$auth = GetAuthority();
34
35
// SMARTY Setup
36
require_once('lib/smarty_inv.class.php');
37
$smarty = new Smarty_Inv();
38
39
//BEGIN Page
40
        
41
//Assign vars
42
$smarty->assign('title', "RPInventory");
43
$smarty->assign('authority', $auth);
44
$smarty->assign('page_tpl', 'main');
45
46
$smarty->display('index.tpl');
47
48
?>
49