@@ -78,10 +78,6 @@ if (!if_group("superadmin")) {
|
|||||||
echo "</table>\n";
|
echo "</table>\n";
|
||||||
echo "</form>\n";
|
echo "</form>\n";
|
||||||
|
|
||||||
echo "<br><br>";
|
|
||||||
|
|
||||||
echo "<p>WiP</p>";
|
|
||||||
|
|
||||||
//include the footer
|
//include the footer
|
||||||
require_once "resources/footer.php";
|
require_once "resources/footer.php";
|
||||||
?>
|
?>
|
||||||
@@ -170,7 +170,7 @@ if(!$install_step) { $install_step = 'select_language'; }
|
|||||||
}
|
}
|
||||||
//test for windows and non sqlite
|
//test for windows and non sqlite
|
||||||
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN' and strlen($db_type) > 0 and $db_type !='sqlite') {
|
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN' and strlen($db_type) > 0 and $db_type !='sqlite') {
|
||||||
$messages[] = "<b>Windows requires a system DSN ODBC connection</b> this must be configured after installing then restart freeswitch.";
|
$messages[] = "<b>Windows requires a system DSN ODBC connection</b> this must be configured.";
|
||||||
}
|
}
|
||||||
|
|
||||||
//action code
|
//action code
|
||||||
@@ -309,8 +309,10 @@ if(!$install_step) { $install_step = 'select_language'; }
|
|||||||
$switch = new install_switch($global_settings);
|
$switch = new install_switch($global_settings);
|
||||||
//$switch->debug = true;
|
//$switch->debug = true;
|
||||||
//$system->debug = true;
|
//$system->debug = true;
|
||||||
$system->install();
|
$system->install_phase_1();
|
||||||
$switch->install();
|
$switch->install_phase_1();
|
||||||
|
$system->install_phase_2();
|
||||||
|
$switch->install_phase_2();
|
||||||
}catch(Exception $e){
|
}catch(Exception $e){
|
||||||
echo "</pre>\n";
|
echo "</pre>\n";
|
||||||
echo "<p><b>Failed to install</b><br/>" . $e->getMessage() . "</p>\n";
|
echo "<p><b>Failed to install</b><br/>" . $e->getMessage() . "</p>\n";
|
||||||
|
|||||||
@@ -74,9 +74,9 @@ include "root.php";
|
|||||||
echo "$message\n";
|
echo "$message\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
function install() {
|
function install_phase_1() {
|
||||||
ini_set('max_execution_time',3600);
|
ini_set('max_execution_time',3600);
|
||||||
$this->write_progress("Install started for FusionPBX");
|
$this->write_progress("Install phase 1 started for FusionPBX");
|
||||||
$this->create_config_php();
|
$this->create_config_php();
|
||||||
$this->write_progress("\tExecuting config.php");
|
$this->write_progress("\tExecuting config.php");
|
||||||
require $this->config_php;
|
require $this->config_php;
|
||||||
@@ -88,8 +88,14 @@ include "root.php";
|
|||||||
$this->write_progress("\tRunning requires");
|
$this->write_progress("\tRunning requires");
|
||||||
require "resources/require.php";
|
require "resources/require.php";
|
||||||
$this->create_menus();
|
$this->create_menus();
|
||||||
|
$this->write_progress("Install phase 1 complete for FusionPBX");
|
||||||
|
}
|
||||||
|
|
||||||
|
function install_phase_2() {
|
||||||
|
ini_set('max_execution_time',3600);
|
||||||
|
$this->write_progress("Install phase 2 started for FusionPBX");
|
||||||
$this->app_defaults();
|
$this->app_defaults();
|
||||||
$this->write_progress("Install complete for FusionPBX");
|
$this->write_progress("Install phase 2 complete for FusionPBX");
|
||||||
}
|
}
|
||||||
|
|
||||||
function upgrade() {
|
function upgrade() {
|
||||||
|
|||||||
@@ -181,13 +181,18 @@ include "root.php";
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function install() {
|
function install_phase_1() {
|
||||||
$this->write_progress("Install started for switch");
|
$this->write_progress("Install phase 1 started for switch");
|
||||||
$this->copy_conf();
|
$this->copy_conf();
|
||||||
$this->copy_scripts();
|
$this->copy_scripts();
|
||||||
|
$this->write_progress("Install phase 1 completed for switch");
|
||||||
|
}
|
||||||
|
|
||||||
|
function install_phase_2() {
|
||||||
|
$this->write_progress("Install phase 2 started for switch");
|
||||||
$this->create_config_lua();
|
$this->create_config_lua();
|
||||||
$this->restart_switch();
|
$this->restart_switch();
|
||||||
$this->write_progress("Install completed for switch");
|
$this->write_progress("Install phase 2 completed for switch");
|
||||||
}
|
}
|
||||||
|
|
||||||
function upgrade() {
|
function upgrade() {
|
||||||
|
|||||||
@@ -287,7 +287,7 @@ if ($domains_processed == 1) {
|
|||||||
$array[$x]['default_setting_category'] = 'theme';
|
$array[$x]['default_setting_category'] = 'theme';
|
||||||
$array[$x]['default_setting_subcategory'] = 'background_color';
|
$array[$x]['default_setting_subcategory'] = 'background_color';
|
||||||
$array[$x]['default_setting_name'] = 'array';
|
$array[$x]['default_setting_name'] = 'array';
|
||||||
$array[$x]['default_setting_value'] = '#ffffff';
|
$array[$x]['default_setting_value'] = '#6c89b5';
|
||||||
$array[$x]['default_setting_enabled'] = 'true';
|
$array[$x]['default_setting_enabled'] = 'true';
|
||||||
$array[$x]['default_setting_order'] = '0';
|
$array[$x]['default_setting_order'] = '0';
|
||||||
$array[$x]['default_setting_description'] = 'Set a background (HTML compatible) color.';
|
$array[$x]['default_setting_description'] = 'Set a background (HTML compatible) color.';
|
||||||
@@ -295,7 +295,7 @@ if ($domains_processed == 1) {
|
|||||||
$array[$x]['default_setting_category'] = 'theme';
|
$array[$x]['default_setting_category'] = 'theme';
|
||||||
$array[$x]['default_setting_subcategory'] = 'background_color';
|
$array[$x]['default_setting_subcategory'] = 'background_color';
|
||||||
$array[$x]['default_setting_name'] = 'array';
|
$array[$x]['default_setting_name'] = 'array';
|
||||||
$array[$x]['default_setting_value'] = '#e7ebf1';
|
$array[$x]['default_setting_value'] = '#144794';
|
||||||
$array[$x]['default_setting_order'] = '1';
|
$array[$x]['default_setting_order'] = '1';
|
||||||
$array[$x]['default_setting_enabled'] = 'true';
|
$array[$x]['default_setting_enabled'] = 'true';
|
||||||
$array[$x]['default_setting_description'] = 'Set a secondary background (HTML compatible) color, for a gradient effect.';
|
$array[$x]['default_setting_description'] = 'Set a secondary background (HTML compatible) color, for a gradient effect.';
|
||||||
|
|||||||
Reference in New Issue
Block a user