Cheetah
index.php
Go to the documentation of this file.
1 <?php
2 
8 define('CH_INDEX_PAGE', 1);
9 
10 if (!file_exists("inc/header.inc.php")) {
11  $now = gmdate('D, d M Y H:i:s') . ' GMT';
12  header("Expires: $now");
13  header("Last-Modified: $now");
14  header("Cache-Control: no-cache, must-revalidate");
15  header("Pragma: no-cache");
16 
17  echo "It looks like Cheetah is <b>not</b> installed.<br />\n";
18  if ( file_exists( "install/index.php" ) ) {
19  echo "Please, wait. Redirecting you to installation form...<br />\n";
20  echo "<script language=\"Javascript\">location.href = 'install/index.php';</script>\n";
21  }
22  exit;
23 }
24 
25 require_once( 'inc/header.inc.php' );
26 require_once( CH_DIRECTORY_PATH_INC . 'design.inc.php' );
27 require_once( CH_DIRECTORY_PATH_INC . 'admin.inc.php' );
28 require_once( CH_DIRECTORY_PATH_INC . 'db.inc.php' );
29 require_once( CH_DIRECTORY_PATH_INC . 'profiles.inc.php' );
30 require_once( CH_DIRECTORY_PATH_INC . 'prof.inc.php' );
31 require_once( CH_DIRECTORY_PATH_INC . 'utils.inc.php' );
32 require_once( CH_DIRECTORY_PATH_INC . 'membership_levels.inc.php' );
33 
34 ch_import('ChWsbPageView');
35 ch_import('ChWsbProfileFields');
36 ch_import('ChTemplFormView');
37 ch_import('ChTemplVotingView');
38 ch_import("ChTemplIndexPageView");
39 
40 //-- registration by invitation only --//;
41 if (!empty($_GET['idFriend']) && (int)$_GET['idFriend'] && getParam('reg_by_inv_only') == 'on') {
42  setcookie('idFriend', (int)$_GET['idFriend'], 0, '/');
43 }
44 
45 check_logged();
46 
47 $_page['name_index'] = 1;
48 
49 $oSysTemplate->setPageTitle($site['title']);
50 $oSysTemplate->setPageDescription(getParam("MetaDescription"));
51 $oSysTemplate->setPageMainBoxTitle($site['title']);
52 $oSysTemplate->addPageKeywords(getParam("MetaKeyWords"));
53 $oSysTemplate->addCss(array('index.css'));
54 
56 
57 $_ni = $_page['name_index'];
58 $_page_cont[$_ni]['page_main_code'] = $oIPV -> getCode();
59 
60 PageCode();
header
</code > Be careful enabling this directive if you have a redirector script that does not use the< code > Location</code > HTTP header
Definition: URI.MungeResources.txt:10
check_logged
check_logged()
Definition: admin.inc.php:238
ch_import
ch_import($sClassName, $aModule=array())
Definition: utils.inc.php:1218
$oIPV
$oIPV
Definition: index.php:55
php
ChTemplIndexPageView
Definition: ChTemplIndexPageView.php:11
$_GET
$_GET['debug']
Definition: index.php:67
getParam
getParam($sParamName, $bUseCache=true)
Definition: db.inc.php:130
$_ni
$_ni
Definition: index.php:57
exit
if(secureCheckWidgetName($sModule) &&file_exists($sRayHeaderPath) &&!empty($sModule) &&!empty($sApp) &&secureCheckWidgetName($sApp)) else exit
Definition: index.php:20
$site
$site['ver']
Definition: version.inc.php:8
$_page
$_page['name_index']
Definition: index.php:47
PageCode
PageCode($oTemplate=null)
Definition: design.inc.php:91
$oSysTemplate
$oSysTemplate
Definition: params.inc.php:22
empty
Attr AllowedRel this is empty
Definition: Attr.AllowedRel.txt:7
$_page_cont
$_page_cont[$_ni]['page_main_code']
Definition: index.php:58