forked from viglesiasce/testlink
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
executable file
·47 lines (42 loc) · 1.27 KB
/
index.php
File metadata and controls
executable file
·47 lines (42 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
/**
* TestLink Open Source Project - http://testlink.sourceforge.net/
* This script is distributed under the GNU General Public License 2 or later.
*
* Filename $RCSfile: index.php,v $
*
* @version $Revision: 1.20 $
* @modified $Date: 2009/04/28 19:22:33 $ by $Author: schlundus $
*
* @author Martin Havlat
*
* This file is main window. Include authorization of user and define frames (navBar and main).
**/
require_once('lib/functions/configCheck.php');
checkConfiguration();
require_once('config.inc.php');
require_once('common.php');
doSessionStart();
unset($_SESSION['basehref']);
setPaths();
$args = init_args();
//verify the session during a work
if (!isset($_SESSION['currentUser']))
{
redirect(TL_BASE_HREF ."login.php?note=expired");
exit;
}
$smarty = new TLSmarty();
$smarty->assign('title', lang_get('main_page_title'));
$smarty->assign('titleframe', 'lib/general/navBar.php');
$smarty->assign('mainframe', $args->reqURI);
$smarty->display('main.tpl');
function init_args()
{
$iParams = array("reqURI" => array(tlInputParameter::STRING_N,0,4000));
$pParams = G_PARAMS($iParams);
$args = new stdClass();
$args->reqURI = ($pParams["reqURI"] != '') ? $pParams["reqURI"] : 'lib/general/mainPage.php';
return $args;
}
?>