-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
53 lines (38 loc) · 1000 Bytes
/
header.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
<?php
/**
* header.php
*
* Damien Palacio
* Geocomputation - UZH
* 2016
*
**/
header('Content-type: text/html; charset=utf-8');
// show errors
error_reporting(E_ALL ^ E_DEPRECATED);
ini_set('display_errors', '1');
// change cookie lifetime
$limit = 60*24*3600;
session_set_cookie_params ($limit);
session_name('gpto');
session_start();
//echo session_id();
include("include/functions.php");
include("include/config.php");
// Smarty folder
define('SMARTY_DIR', $_smarty);
// load Smarty lib
require_once(SMARTY_DIR . 'Smarty.class.php');
// Smarty Configuration
$_smarty = new Smarty();
$_smarty->template_dir = $_local_url.'templates/';
$_smarty->compile_dir = $_local_url.'templates_c/';
$_smarty->config_dir = $_local_url.'configs/';
$_smarty->cache_dir = $_local_url.'cache/';
// for tests
$_smarty->caching = false;
$_smarty->assign('siteurl',$_site_url);
$_smarty->assign('onwork',$_on_work);
$begin = get_time();
$title = "Spatial Name Entity Recognition BenchMark";
?>