-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.php
60 lines (43 loc) · 1.87 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
49
50
51
52
53
54
55
56
57
58
<?php
/**
* Copyright (c) mojito
*
*/
define('MOJ_INDEX_PAGE', 1);
if(!file_exists("inc/header.inc.php")){
$now = gmdate('D, d M Y H:i:s') . ' GMT';
header("Expires: $now");
header("Last-Modified: $now");
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
echo "Some file seems to be <b>missing</b>.<br />\n";
exit;
}
require_once( 'inc/header.inc.php' );
require_once( MOJ_DIRECTORY_PATH_INC . 'design.inc.php' );
require_once( MOJ_DIRECTORY_PATH_INC . 'admin.inc.php' );
require_once( MOJ_DIRECTORY_PATH_INC . 'db.inc.php' );
require_once( MOJ_DIRECTORY_PATH_INC . 'profiles.inc.php' );
require_once( MOJ_DIRECTORY_PATH_INC . 'prof.inc.php' );
require_once( MOJ_DIRECTORY_PATH_INC . 'utils.inc.php' );
//require_once( MOJ_DIRECTORY_PATH_INC . 'membership_levels.inc.php' );
require_once (MOJ_DIRECTORY_PATH_INC.'smarty/Smarty.class.php');
moj_import('MojTemplIndexPageView');
//check_logged();
$oPageView = null;
$oPage = $dir['root'].'templates/tpl_index.php';
$arrVar = array();
$arrPhoto = array();
$oPageView = new MojTemplIndexPageView();
$arrVar['title'] = $site['title'];
$arrVar['icon'] = $site['icon'];
$arrVar['index'] = '<a href="'.$site['url'].'">';
$arrVar['right1'] = ( (!empty($_COOKIE['memberID']) && $_COOKIE['memberID']) && $_COOKIE['memberPassword'] ) ? $_COOKIE['memberID'] : 'Login';
$arrVar['right2'] = ( (!empty($_COOKIE['memberID']) && $_COOKIE['memberID']) && $_COOKIE['memberPassword'] ) ? 'Logout' : 'Register';
$arrVar['right1href'] = '<a href="'.$site['url'].'member.php">';
$arrVar['right2href'] = ( (!empty($_COOKIE['memberID']) && $_COOKIE['memberID']) && $_COOKIE['memberPassword'] ) ? '<a href="'.$site['url'].'logout.php">' : '<a href="'.$site['url'].'register.php">';
$arrVar['hrefend'] = '</a>';
//$oPageView->setPhotoPos(0);
$oPageView->addParam($arrVar);
$oPageView->setTpl($oPage);
PageCode();