/
index.php
executable file
·48 lines (42 loc) · 1.25 KB
/
index.php
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
48
<?php
/**
* index.php
* Initial page for the application
*
* @package niftyrsvp
* @version 0.9 beta
* @author Bryce Mickler <bryce@brycemickler.com>
* @copyright 2009
* @license http://www.freebsd.org/copyright/freebsd-license.html Free BSD License
*/
define('IN_NIFTY',true);
define('IN_FRONTEND', true);
require_once('init.php');
/**
* Page initialization and session
*/
$thisPageName = basename(__FILE__);
require_once(FILE_PATH . '/lang/' . CURRENT_LANGUAGE . '.php');
require_once(FILE_PATH . '/lang/' . CURRENT_LANGUAGE . '/' . $thisPageName);
/**
*
*/
$datetime = date("l F jS\, Y \- h:i:s A") . ' (EST)';
$smarty->assign('CURRENT_DATETIME',$datetime);
$smarty->assign('WEB_PATH',WEB_PATH);
$smarty->assign('LOGO_PATH',CURRENT_TEMPLATE_PATH . 'images/logo.gif');
/**
* Language
*/
$smarty->assign('HTML_TITLE',HTML_TITLE);
$smarty->assign('CSS_PATH', CURRENT_TEMPLATE_PATH . 'css/');
$smarty->assign('IMG_PATH',CURRENT_TEMPLATE_PATH . 'images/');
$smarty->assign('HELP_URL',WEB_PATH . 'help.php?page=index');
/**
* Page display
*/
require_once('footer.php');
$footer = $smarty->fetch('footer.tpl');
$smarty->assign('FOOTER', $footer);
$smarty->display(current(explode('.',basename(__FILE__))) . '.tpl');
?>