-
-
Notifications
You must be signed in to change notification settings - Fork 144
/
index.php
509 lines (470 loc) · 21.1 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
<?php
/*************************************************************************************************
* Copyright 2016 JPL TSolucio, S.L. -- This file is a part of TSOLUCIO coreBOS Customizations.
* Licensed under the vtiger CRM Public License Version 1.1 (the "License"); you may not use this
* file except in compliance with the License. You can redistribute it and/or modify it
* under the terms of the License. JPL TSolucio, S.L. reserves all rights not expressly
* granted by the License. coreBOS distributed by JPL TSolucio S.L. is distributed in
* the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Unless required by
* applicable law or agreed to in writing, software distributed under the License is
* distributed on an "AS IS" BASIS, WITHOUT ANY WARRANTIES OR CONDITIONS OF ANY KIND,
* either express or implied. See the License for the specific language governing
* permissions and limitations under the License. You may obtain a copy of the License
* at <http://corebos.org/documentation/doku.php?id=en:devel:vpl11>
*************************************************************************************************/
if (version_compare(phpversion(), '5.4.0') < 0 || version_compare(phpversion(), '7.5.0') >= 0) {
require_once 'modules/Vtiger/phpversionfail.php';
}
if (!is_file('config.inc.php')) {
header('Location: install.php');
exit();
}
require_once 'config.inc.php';
if (!isset($dbconfig['db_hostname']) || $dbconfig['db_status'] == '_DB_STAT_') {
header('Location: install.php');
exit();
}
require_once 'include/utils/utils.php';
global $currentModule, $log, $seclog;
$log = LoggerManager::getLogger('APPLICATION');
$seclog = LoggerManager::getLogger('SECURITY');
header('Content-Type: text/html; charset='. $default_charset);
// Create or reestablish the current session
coreBOS_Session::init(true, true);
if (isset($_REQUEST['view'])) {
$view = $_REQUEST['view'];
coreBOS_Session::set('view', $view);
}
require_once 'modules/Users/Users.php';
$calculate_response_time = GlobalVariable::getVariable('Debug_Calculate_Response_Time', 0, '', Users::getActiveAdminId());
if ($calculate_response_time) {
$startTime = microtime(true);
}
// We use the REQUEST_URI later to construct dynamic URLs. IIS does not pass this field
// to prevent an error, if it is not set, we will assign it to ''
if (!isset($_SERVER['REQUEST_URI'])) {
$_SERVER['REQUEST_URI'] = '';
}
//Initialise CSRFGuard library
include_once 'include/csrfmagic/csrf-magic.php';
$action = '';
if (isset($_REQUEST['action'])) {
$action = vtlib_purify($_REQUEST['action']);
}
if ($action == 'Export') {
include 'include/utils/export.php';
}
if ($action == 'ExportAjax') {
include 'include/utils/ExportAjax.php';
}
$nologinaction = array('sendnew2facode');
if (in_array($action, $nologinaction) && file_exists('modules/Utilities/'.$action.'.php')) {
include 'modules/Utilities/'.$action.'.php';
}
// vtlib customization: Module manager export
if ($action == 'ModuleManagerExport') {
include 'modules/Settings/ModuleManager/Export.php';
}
//Code added for 'Path Traversal/File Disclosure' security fix - Philip
$is_module = false;
$is_action = false;
if (isset($_REQUEST['module'])) {
$module = vtlib_purify($_REQUEST['module']);
if (!preg_match('/[\/.]/', $module)) {
$dir = @scandir($root_directory.'modules', SCANDIR_SORT_NONE);
$is_module = @in_array($module, $dir);
$is_action = file_exists($root_directory.'modules/'.$module.'/'.$action.'.php') || file_exists('modules/Vtiger/'.$action.'.php');
}
if (!$is_module) {
die('Module name is missing or incorrect. Please check the module name.');
}
if (empty($action)) {
$is_action = false;
}
if (!$is_action) {
die('Action name is missing or incorrect. Please check the action name');
}
}
//Code added for 'Multiple SQL Injection Vulnerabilities & XSS issue'
if (isset($_REQUEST['record']) && !is_numeric($_REQUEST['record']) && $_REQUEST['record']!='') {
die('An invalid record number specified to view details.');
}
// Check to see if there is an authenticated user in the session.
$use_current_login = false;
if (isset($_SESSION['authenticated_user_id']) && (isset($_SESSION['app_unique_key']) && $_SESSION['app_unique_key'] == $application_unique_key)) {
if ($cbodUniqueUserConnection) {
$connection_id = coreBOS_Settings::getSetting('cbodUserConnection'.$_SESSION['authenticated_user_id'], -1);
if (isset($_SESSION['conn_unique_key']) && $_SESSION['conn_unique_key'] == $connection_id) {
$use_current_login = true;
} else {
//To prevent showing checkbox if user is forced to log out
coreBOS_Session::delete('authenticated_user_id');
coreBOS_Session::delete('can_unblock');
}
} else {
$use_current_login = true;
}
if ($use_current_login) {
coreBOS_Settings::setSetting('cbodLastLoginTime'.$_SESSION['authenticated_user_id'], time());
}
}
// Prevent loading Login again if there is an authenticated user in the session.
if (isset($_SESSION['authenticated_user_id']) && isset($module) && $module == 'Users' && $action == 'Login') {
$default_action = GlobalVariable::getVariable('Application_Default_Action', 'index', 'Home', $_SESSION['authenticated_user_id']);
$default_module = GlobalVariable::getVariable('Application_Default_Module', 'Home', 'Home', $_SESSION['authenticated_user_id']);
$result = $adb->pquery('select tabid from vtiger_tab where name=?', array($default_module));
if (!$result || $adb->num_rows($result)==0) {
$default_module = 'Home';
}
header("Location: index.php?action=$default_action&module=$default_module");
}
if ($use_current_login && coreBOS_Settings::SettingExists('cbodUserConnection'.$_SESSION['authenticated_user_id'])) {
//getting the internal_mailer flag
if (!isset($_SESSION['internal_mailer'])) {
$qry_res = $adb->pquery('select internal_mailer from vtiger_users where id=?', array($_SESSION['authenticated_user_id']));
coreBOS_Session::set('internal_mailer', $adb->query_result($qry_res, 0, 'internal_mailer'));
}
$log->debug('authenticated user: '.$_SESSION['authenticated_user_id']);
if (coreBOS_Settings::getSetting('cbSMActive', 0) && !is_adminID($_SESSION['authenticated_user_id'])) {
include 'modules/Vtiger/maintenance.php';
exit;
}
} elseif (isset($action) && isset($module) && $action=='Authenticate' && $module=='Users') {
$log->debug('authenticating user');
} else {
if (!empty(session_id())
&& (!isset($_REQUEST['action']) || (substr($_REQUEST['action'], -4)!='Ajax' && $_REQUEST['action'] != 'Logout' && $_REQUEST['action'] != 'Login'))
) {
coreBOS_Session::set('lastpage', $_SERVER['QUERY_STRING']);
}
$log->debug('no session > login page');
if (isset($_REQUEST['action']) && substr($_REQUEST['action'], -4)=='Ajax') {
echo 'Login';
die();
}
coreBOS_Session::delete('authenticated_user_id');
$action = 'Login';
$module = 'Users';
include 'modules/Users/Login.php';
exit;
}
$skipHeaders=false;
$skipFooters=false;
$viewAttachment = false;
$skipSecurityCheck= false;
if (isset($action) && isset($module)) {
$log->debug('action '.$action);
if (preg_match("/^Popup/", $action) ||
preg_match("/^".$module."Ajax/", $action) ||
preg_match("/^Save/", $action) ||
preg_match("/^MassEditSave/", $action) ||
preg_match("/^Delete/", $action) ||
preg_match("/^ChangePassword/", $action) ||
preg_match("/^Authenticate/", $action) ||
preg_match("/^Logout/", $action) ||
preg_match("/^LeadConvertToEntities/", $action) ||
preg_match("/^massdelete/", $action) ||
preg_match("/^updateRole/", $action) ||
preg_match("/^UserInfoUtil/", $action) ||
preg_match("/^deleteRole/", $action) ||
preg_match("/^minical/", $action) ||
preg_match("/^populatetemplate/", $action) ||
preg_match("/^TemplateMerge/", $action) ||
preg_match("/^testemailtemplateusage/", $action) ||
preg_match("/^ProcessDuplicates/", $action) ||
preg_match("/^deleteattachments/", $action) ||
preg_match("/^CreateXL/", $action) ||
preg_match("/^lastImport/", $action) ||
preg_match("/^CurrencyDelete/", $action) ||
preg_match("/^UpdateFieldLevelAccess/", $action) ||
preg_match("/^UpdateDefaultFieldLevelAccess/", $action) ||
preg_match("/^UpdateProfile/", $action) ||
preg_match("/^updateRelations/", $action) ||
preg_match("/^Star/", $action) ||
preg_match("/^CreatePDF/", $action) ||
preg_match("/^CreateSOPDF/", $action) ||
preg_match("/^redirect/", $action) ||
preg_match("/^webmail/", $action) ||
preg_match("/^download/", $action) ||
preg_match("/^home_rss/", $action) ||
preg_match("/^ConvertAsFAQ/", $action) ||
preg_match("/^ActivityAjax/", $action) ||
preg_match("/^updateCalendarSharing/", $action) ||
preg_match("/^disable_sharing/", $action) ||
preg_match("/^RecalculateSharingRules/", $action) ||
preg_match("/^mailmergedownloadfile/", $action) ||
preg_match("/^getListOfRecords/", $action) ||
preg_match("/^iCalExport/", $action)
) {
$skipHeaders=true;
//skip headers for all these invocations
if (preg_match("/^Popup/", $action) ||
preg_match("/^".$module."Ajax/", $action) ||
preg_match("/^MassEditSave/", $action) ||
preg_match("/^ChangePassword/", $action) ||
preg_match("/^home_rss/", $action) ||
preg_match("/^massdelete/", $action) ||
preg_match("/^mailmergedownloadfile/", $action) ||
preg_match("/^download/", $action) ||
preg_match("/^ProcessDuplicates/", $action) ||
preg_match("/^lastImport/", $action) ||
preg_match("/^getListOfRecords/", $action) ||
preg_match("/^iCalExport/", $action)
) {
$skipFooters=true;
}
//skip footers for all these invocations
if (preg_match("/^mailmergedownloadfile/", $action) || preg_match("/^iCalExport/", $action)) {
$viewAttachment = true;
}
if ($action == ' Delete ') {
$skipHeaders=false;
}
}
if ($action == 'Save') {
header('Expires: Mon, 20 Dec 1998 01:00:00 GMT');
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
header('Cache-Control: no-cache, must-revalidate');
header('Pragma: no-cache');
}
if ($module == 'Users' || $module == 'Home') {
$skipSecurityCheck=true;
}
if ($action == 'UnifiedSearch') {
$currentModuleFile = 'modules/Utilities/'.$action.'.php';
} else {
$currentModuleFile = 'modules/'.$module.'/'.$action.'.php';
}
$currentModule = $module;
} else {
// use $default_module and $default_action
// Redirect to the correct module with the correct action. We need the URI to include these fields.
if (isset($_SESSION['authenticated_user_id'])) {
$userid = $_SESSION['authenticated_user_id'];
} else {
$userid = 1;
}
$default_action = GlobalVariable::getVariable('Application_Default_Action', 'index', 'Home', $userid);
$default_module = GlobalVariable::getVariable('Application_Default_Module', 'Home', 'Home', $userid);
$result = $adb->pquery('select tabid from vtiger_tab where name=?', array($default_module));
if (!$result || $adb->num_rows($result)==0) {
$default_module = 'Home';
}
header("Location: index.php?action=$default_action&module=$default_module");
exit();
}
$module = (isset($_REQUEST['module']) ? vtlib_purify($_REQUEST['module']) : '');
$action = (isset($_REQUEST['action']) ? vtlib_purify($_REQUEST['action']) : '');
$record = (isset($_REQUEST['record']) ? vtlib_purify($_REQUEST['record']) : (isset($_REQUEST['recordid']) ? vtlib_purify($_REQUEST['recordid']) : ''));
$current_user = new Users();
if ($use_current_login) {
//$result = $current_user->retrieve($_SESSION['authenticated_user_id']);
//getting the current user info from flat file
$result = $current_user->retrieveCurrentUserInfoFromFile($_SESSION['authenticated_user_id']);
if ($result == null) {
coreBOS_Session::kill();
header('Location: index.php?action=Login&module=Users');
}
coreBOS_Session::setUserGlobalSessionVariables();
/* Skip audit trail log for special request types */
$skip_auditing = (($action == 'TraceIncomingCall' || (isset($_REQUEST['file']) && $_REQUEST['file'] == 'TraceIncomingCall')) && $module == 'PBXManager')
||
(($action == 'ActivityReminderCallbackAjax' || (isset($_REQUEST['file']) && $_REQUEST['file'] == 'ActivityReminderCallbackAjax')) && $module == 'cbCalendar');
$privileges = $current_user->getPrivileges();
if (coreBOS_Settings::getSetting('audit_trail', false) && !$skip_auditing) {
$auditaction = $action;
if ($action=='Save') {
if (empty($record)) {
$auditaction = 'Save (Create)';
} else {
$auditaction = 'Save (Edit)';
}
} elseif ($action=='ReportsAjax') {
switch ($_REQUEST['file']) {
case 'CreatePDF':
$auditaction = 'Report Export PDF';
break;
case 'CreateCSV':
$auditaction = 'Report Export CSV';
break;
case 'CreateXL':
$auditaction = 'Report Export XLS';
break;
case 'PrintReport':
$auditaction = 'Report Print';
break;
case 'getJSON':
default:
$auditaction = 'Report View';
break;
}
}
$date_var = $adb->formatDate(date('Y-m-d H:i:s'), true);
$query = 'insert into vtiger_audit_trial values(?,?,?,?,?,?)';
$qparams = array($adb->getUniqueID('vtiger_audit_trial'), $current_user->id, $module, $auditaction, $record, $date_var);
$adb->pquery($query, $qparams);
}
if (!$skip_auditing) {
cbEventHandler::do_action('corebos.audit.action', array($current_user->id, $module, $action, $record, date('Y-m-d H:i:s')));
}
}
// Force password change
if ($current_user->mustChangePassword() && $_REQUEST['action']!='Logout' && $_REQUEST['action']!='CalendarAjax' && $_REQUEST['action']!='UsersAjax'
&& ($_REQUEST['action']!='UtilitiesAjax' && (empty($_REQUEST['functiontocall']) || $_REQUEST['functiontocall']!='setNewPassword')) && $_REQUEST['action'] != 'PBXManagerAjax'
&& !($_REQUEST['module']=='Users' && $_REQUEST['action']=='Save')
) {
$currentModule = 'Users';
$currentModuleFile = 'modules/Users/DetailView.php';
$_REQUEST['action'] = $action = 'DetailView';
$_REQUEST['module'] = $module = 'Users';
$_REQUEST['record'] = $current_user->id;
}
if (isset($_SESSION['vtiger_authenticated_user_theme']) && $_SESSION['vtiger_authenticated_user_theme'] != '') {
$theme = $_SESSION['vtiger_authenticated_user_theme'];
} else {
if (!empty($current_user->theme)) {
$theme = $current_user->theme;
} else {
$theme = $default_theme;
}
}
$theme = basename(vtlib_purify($theme));
// if the language is not set yet, then set it to the default language.
if (isset($_SESSION['authenticated_user_language']) && $_SESSION['authenticated_user_language'] != '') {
$current_language = $_SESSION['authenticated_user_language'];
} else {
if (!empty($current_user->language)) {
$current_language = $current_user->language;
} else {
$current_language = $default_language;
}
}
//set module and application string arrays based upon selected language
$app_currency_strings = return_app_currency_strings_language($current_language);
$app_strings = return_application_language($current_language);
$mod_strings = return_module_language($current_language, $currentModule);
//If DetailView, set focus to record passed in
if ($action == 'DetailView') {
if (empty($_REQUEST['record'])) {
die('A record number must be specified to view details.');
}
// If we are going to a detail form, load up the record now and use the record to track the viewing.
if (!empty($_REQUEST['record']) && !empty($current_user->id)) {
// Only track a viewing if the record was retrieved.
$focus = CRMEntity::getInstance($currentModule);
$focus->track_view($current_user->id, $currentModule, $_REQUEST['record']);
}
}
// set user, theme and language cookies so that login screen defaults to last values
$siteURLParts = parse_url($site_URL);
$cookieDomain = $siteURLParts['host'];
if (isset($_SESSION['authenticated_user_id'])) {
$sitepath = empty($siteURLParts['path']) ? '' : ' path='.$siteURLParts['path'].';';
header('Set-Cookie: ck_login_id_vtiger='.$_SESSION['authenticated_user_id'].'; SameSite=Strict; expires=0;'.$sitepath.' domain='.$cookieDomain, false);
}
if ($_REQUEST['module'] == 'Documents' && $action == 'DownloadFile') {
checkFileAccess('modules/Documents/DownloadFile.php');
include 'modules/Documents/DownloadFile.php';
exit;
}
//skip headers for popups, deleting, saving, importing and other actions
if (!$skipHeaders && $use_current_login) {
include 'modules/Vtiger/header.php';
}
//logging the security Information
$seclog->debug('######## Module --> '.$module.' :: Action --> '.$action.' :: UserID --> '.$current_user->id.' :: RecordID --> '.$record.' #######');
if (!$skipSecurityCheck && $use_current_login) {
require_once 'include/utils/UserInfoUtil.php';
if (preg_match('/Ajax/', $action)) {
if (isset($_REQUEST['ajxaction']) && $_REQUEST['ajxaction'] == 'LOADRELATEDLIST') {
$now_action = 'DetailView';
} else {
$now_action = (isset($_REQUEST['file']) ? vtlib_purify($_REQUEST['file']) : (isset($_REQUEST['orgajax']) ? vtlib_purify($_REQUEST['orgajax']) : $action));
}
} else {
$now_action=$action;
}
if (isset($_REQUEST['record']) && $_REQUEST['record'] != '') {
if ($now_action=='EditView' && isset($_REQUEST['isDuplicate']) && $_REQUEST['isDuplicate']=='true') {
$display = isPermitted($module, 'CreateView', $_REQUEST['record']);
} else {
$display = isPermitted($module, $now_action, $_REQUEST['record']);
}
} else {
if ($now_action=='EditView' || $now_action=='Save' || ($now_action=='DetailViewAjax' && isset($_REQUEST['ajxaction'])
&& $_REQUEST['ajxaction']=='WIDGETADDCOMMENT')
) {
$now_action = 'CreateView';
}
$display = isPermitted($module, $now_action);
}
$seclog->debug('########### Pemitted ---> '.$display.' ##############');
} else {
$display = 'yes';
$seclog->debug('########### Pemitted ---> yes ##############');
}
if ($display == 'no'
&& !(($currentModule=='Tooltip' && $action==$module.'Ajax' && $_REQUEST['file']=='ComputeTooltip')
|| ($currentModule=='GlobalVariable' && $action==$module.'Ajax' && $_REQUEST['file']=='SearchGlobalVar'))
) {
require_once 'Smarty_setup.php';
$smarty = new vtigerCRM_Smarty();
$smarty->assign('APP', $app_strings);
if ($action==$module.'Ajax') {
$smarty->assign('PUT_BACK_ACTION', false);
}
$smarty->display('modules/Vtiger/OperationNotPermitted.tpl');
} elseif (!vtlib_isModuleActive($currentModule)
&& !(($currentModule=='Tooltip' && $action==$module.'Ajax' && $_REQUEST['file']=='ComputeTooltip')
|| ($currentModule=='GlobalVariable' && $action==$module.'Ajax' && $_REQUEST['file']=='SearchGlobalVar'))
) {
require_once 'Smarty_setup.php';
$smarty = new vtigerCRM_Smarty();
$smarty->assign('APP', $app_strings);
$smarty->assign('OPERATION_MESSAGE', getTranslatedString($currentModule, $currentModule) . $app_strings['VTLIB_MOD_NOT_ACTIVE']);
$smarty->display('modules/Vtiger/OperationNotPermitted.tpl');
} else {
if (file_exists($currentModuleFile)) {
include_once $currentModuleFile;
} elseif (file_exists('modules/Vtiger/'.$action.'.php')) {
include_once 'modules/Vtiger/'.$action.'.php';
} else {
die('Action name is missing or incorrect. Please check the action name: '.vtlib_purify($action));
}
}
if (isset($_SESSION['vtiger_authenticated_user_theme']) && $_SESSION['vtiger_authenticated_user_theme'] != '') {
$theme = $_SESSION['vtiger_authenticated_user_theme'];
} else {
$theme = $default_theme;
}
$theme = basename(vtlib_purify($theme));
$Ajx_module = (isset($_REQUEST['module']) ? vtlib_purify($_REQUEST['module']) : $module);
if (!$viewAttachment && (!$viewAttachment && $action!='home_rss') && $action!=$Ajx_module.'Ajax' && $action!='massdelete' && $action!='DashboardAjax'
&& $action!='ActivityAjax' && empty($_REQUEST['Module_Popup_Edit'])
) {
// ActivityReminder Customization for callback
if (!$skipFooters && $current_user->id!=null && isPermitted('cbCalendar', 'index') == 'yes' && vtlib_isModuleActive('cbCalendar')) {
echo "<script type='text/javascript'>if(typeof(ActivityReminderCallback) != 'undefined') ";
$cur_time = time();
$last_reminder_check_time = (isset($_SESSION['last_reminder_check_time']) ? $_SESSION['last_reminder_check_time'] : 0);
$next_reminder_interval = (isset($_SESSION['next_reminder_interval']) ? $_SESSION['next_reminder_interval'] : 0);
$reminder_interval_reset = ($last_reminder_check_time + $next_reminder_interval - $cur_time) * 1000;
if (isset($_SESSION['last_reminder_check_time']) && $reminder_interval_reset > 0) {
echo "window.setTimeout(function(){ActivityReminderCallback(false);},$reminder_interval_reset);</script>";
} else {
echo 'ActivityReminderCallback(false);</script>';
}
}
if (!$skipFooters && $action!='ChangePassword' && $action!='body' && $action!=$Ajx_module.'Ajax' && $action!='Popup' && $action!='ImportStep3' && $action!='ActivityAjax' && $action!='getListOfRecords') {
cbEventHandler::do_action('corebos.footer.prefooter');
$coreBOS_uiapp_name = GlobalVariable::getVariable('Application_UI_Name', $coreBOS_app_name);
$coreBOS_uiapp_companyname = GlobalVariable::getVariable('Application_UI_CompanyName', $coreBOS_uiapp_name);
$coreBOS_uiapp_version = GlobalVariable::getVariable('Application_UI_Version', $coreBOS_app_version);
$coreBOS_uiapp_url = GlobalVariable::getVariable('Application_UI_URL', $coreBOS_app_url);
$coreBOS_uiapp_showgitversion = GlobalVariable::getVariable('Application_UI_ShowGITVersion', 0);
$coreBOS_uiapp_showgitdate = GlobalVariable::getVariable('Application_UI_ShowGITDate', 0);
include 'modules/Vtiger/footer.php';
}
}
?>