-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapplication.php
40 lines (27 loc) · 1.01 KB
/
application.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
<?php
/*
I.T. Web Experts, Rental Store v2
http://www.itwebexperts.com
Copyright (c) 2009 I.T. Web Experts
This script and it's source is not redistributable
*/
require('includes/application_top.php');
$action = (isset($_GET['action']) ? $_GET['action'] : (isset($_POST['action']) ? $_POST['action'] : ''));
require($App->getAppFile());
if (!empty($action)){
EventManager::notify('ApplicationActionsBeforeExecute', $action);
$actionFiles = $App->getActionFiles($action);
foreach($actionFiles as $file){
require($file);
}
EventManager::notify('ApplicationActionsAfterExecute');
}
EventManager::notify('ApplicationTemplateBeforeInclude');
$tplFile = 'main_page';
if (isset($_GET['dialog']) && $_GET['dialog'] == 'true'){
$tplFile = 'popup';
}
require(sysConfig::getDirFsCatalog() . 'extensions/templateManager/mainFiles/' . $tplFile . '.tpl.php');
EventManager::notify('ApplicationTemplateAfterInclude');
require(sysConfig::getDirFsCatalog() . 'includes/application_bottom.php');
?>