forked from remdex/fof
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index_dealer.php
51 lines (36 loc) · 1.05 KB
/
index_dealer.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
<?php
$star_microtile = microtime();
function set_time ( $start_time, $end_time )
{
$start = explode(' ', $start_time);
$end = explode(' ', $end_time);
return $time = $end[0] + $end[1] - $start[0] - $start[1];
}
/* DEBUG END */
ini_set('error_reporting', E_ALL);
ini_set('display_errors', 1);
require_once "ezcomponents/Base/src/base.php"; // dependent on installation method, see below
function __autoload( $className )
{
ezcBase::autoload( $className );
}
ezcBase::addClassRepository( './','./lib/autoloads');
// your code here
ezcBaseInit::setCallback(
'ezcInitDatabaseInstance',
'erLhcoreClassLazyDatabaseConfiguration'
);
erLhcoreClassSystem::init(true);
if (erLhcoreClassSystem::instance()->validDealer === false){
//header('Location: http://coral.lt');
exit;
}
$Result = erLhcoreClassModule::moduleInit();
$tpl = erLhcoreClassTemplate::getInstance('pagelayouts/main_dealer.php');
$tpl->set('Result',$Result);
if (isset($Result['pagelayout']))
{
$tpl->setFile('pagelayouts/'.$Result['pagelayout'].'.php');
}
echo $tpl->fetch();
?>