-
-
Notifications
You must be signed in to change notification settings - Fork 143
/
install.php
41 lines (36 loc) · 1.43 KB
/
install.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
<?php
/*+**********************************************************************************
* The contents of this file are subject to the vtiger CRM Public License Version 1.0
* ("License"); You may not use this file except in compliance with the License
* The Original Code is: vtiger CRM Open Source
* The Initial Developer of the Original Code is vtiger.
* Portions created by vtiger are Copyright (C) vtiger.
* All Rights Reserved.
************************************************************************************/
include 'include/adodb/adodb.inc.php';
$config_file = 'config.inc.php';
if (!is_file($config_file)) {
$contents = '';
file_put_contents($config_file, $contents);
}
if (version_compare(phpversion(), '5.4') < 0) {
$serverPhpVersion = phpversion();
require_once 'phpversionfail.php';
die();
}
require_once 'include/install/language/en_us.lang.php';
require_once 'include/install/resources/utils.php';
require_once 'vtigerversion.php';
global $installationStrings, $vtiger_current_version, $coreBOS_app_version;
@include_once 'install/config.db.php';
global $dbconfig, $vtconfig;
if (empty($_REQUEST['file']) && is_array($vtconfig) && $vtconfig['quickbuild'] == 'true') {
$the_file = 'BuildInstallation.php';
} elseif (!empty($_REQUEST['file'])) {
$the_file = $_REQUEST['file'];
} else {
$the_file = 'welcome.php';
}
Common_Install_Wizard_Utils::checkFileAccessForInclusion('install/'.$the_file);
include 'install/'.$the_file;
?>