-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
35 lines (31 loc) · 1.54 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
<?php
/******************************************************************************
Etano
===============================================================================
File: index.php
$Revision$
Software by: DateMill (http://www.datemill.com)
Copyright by: DateMill (http://www.datemill.com)
Support at: http://www.datemill.com/forum
*******************************************************************************
* See the "docs/licenses/etano.txt" file for license. *
******************************************************************************/
//define('CACHE_LIMITER','private');
require 'includes/common.inc.php';
require _BASEPATH_.'/includes/user_functions.inc.php';
check_login_member('all');
$tpl=new phemplate(_BASEPATH_.'/skins_site/'.get_my_skin().'/','remove_nonjs');
$tpl->set_file('content','index.html');
sort($basic_search_fields,SORT_NUMERIC);
$search_loop=create_search_form($basic_search_fields);
$tplvars['title']=$tplvars['sitename'];
$tpl->set_loop('search',$search_loop);
$tpl->set_var('tplvars',$tplvars);
$tpl->process('content','content',TPL_OPTIONAL | TPL_LOOP);
if (!empty($GLOBALS['page_last_modified_time'])) {
// header('Expires: '. gmdate('D,d M Y H:i:s',time()+1209600).' GMT',true); // +14 days
// header('Expires: -1',true);
header('Cache-Control: private, max-age=0',true);
header('Last-Modified: '.date('D,d M Y H:i:s',$GLOBALS['page_last_modified_time']).' GMT',true);
}
echo $tpl->process('content','content',TPL_FINISH | TPL_INCLUDE);