-
displayconfig
sccpgeneral
diff --git a/install.php b/install.php
index 42052df..84e3a59 100644
--- a/install.php
+++ b/install.php
@@ -1,8 +1,8 @@
'mysql,sccp,sccpdeviceconfig', 'sccpline' => ' mysql,sccp,sccpline');
$def_bd_config = array('dbhost' => $amp_conf['AMPDBHOST'], 'dbname' => $amp_conf['AMPDBNAME'],
'dbuser' => $amp_conf['AMPDBUSER'], 'dbpass' => $amp_conf['AMPDBPASS'],
@@ -664,8 +666,13 @@ function Setup_RealTime() {
$res_conf_sql = ini_get('pdo_mysql.default_socket');
$res_conf = '';
$ext_conf = '';
- if (file_exists($dir . '/extconfig.conf')) {
- $ext_conf = $cnf_read->getConfig('extconfig.conf');
+ $ext_conf_file = 'extconfig.conf';
+ foreach ($backup_ext as $value) {
+ if (file_exists($dir . '/extconfig' . $value)) {
+ $ext_conf_file = 'extconfig' . $value;
+ $ext_conf = $cnf_read->getConfig($ext_conf_file);
+ break;
+ }
}
if (!empty($res_conf_sql)) {
if (file_exists($res_conf_sql)) {
@@ -713,7 +720,7 @@ function Setup_RealTime() {
// $res_conf['general']['dbsock'] = $def_bd_config['dbsock'];
$cnf_wr->writeConfig('res_config_mysql.conf', $res_conf, false);
}
- $cnf_wr->writeConfig('extconfig.conf', $ext_conf, false);
+ $cnf_wr->writeConfig($ext_conf_file, $ext_conf, false);
}
CheckSCCPManagerDBTables($table_req);
diff --git a/views/form.buttons.php b/views/form.buttons.php
index 2bd8663..160c19b 100644
--- a/views/form.buttons.php
+++ b/views/form.buttons.php
@@ -27,9 +27,6 @@ ksort($data_sort);
foreach ($data_sort as $key => $value) {
$hint_list[$value] = $hint_list1[$value];
}
-
-
-
//print_r($hint_list);
//ksort($hint_list);
//natsort($hint_list);
@@ -100,9 +97,9 @@ if (!empty($_REQUEST['new_id'])) {
$defaul_tv = (empty($db_buttons[$line_id])) ? "empty": $db_buttons[$line_id]['type'];
$defaul_btn = (empty($db_buttons[$line_id])) ? "": $db_buttons[$line_id]['name'];
$defaul_opt = (empty($db_buttons[$line_id])) ? array(''): explode(',',$db_buttons[$line_id]['options']);
+// print_r($defaul_btn);
// print_r($defaul_opt);
-
-
+
$show_form_mode = $defaul_tv;
$def_hint = '';
$def_silent = '';
@@ -127,19 +124,18 @@ if (!empty($_REQUEST['new_id'])) {
// print_r($defaul_fcod);
}
foreach ($defaul_opt as $data_i) {
- if (strpos($data_i,'@') >0) {
- $defaul_btn = strtok($data_i,'@');
+ if (strpos($data_i,'@')>0) {
+ $test_btn = strtok($data_i,'@');
$def_hint = 'checked';
- if ($defaul_btn == $defaul_opt[0]) {
+ $defaul_btn = $data_i;
+ if ($test_btn == $defaul_opt[0]) {
foreach ($lines_list as $data){
- if ($data['name']==$defaul_btn) {
+ if ($data['name']==$test_btn) {
$show_form_mode = 'line';
$defaul_tv = 'monitor';
break;
}
}
- } else {
- $defaul_btn = $data_i;
}
}
}
diff --git a/views/server.info.php b/views/server.info.php
index b5b0c1d..f9fdc6d 100644
--- a/views/server.info.php
+++ b/views/server.info.php
@@ -62,7 +62,7 @@ if (empty($conf_realtime)) {
} else {
$rt_info = '';
foreach ($conf_realtime as $key => $value) {
- if ($value != 'OK') {
+ if (($value != 'OK') && ($key != 'extconfigfile')) {
$rt_info .= '
Found error in section '.$key.' :'. $value. '
';
}
}
@@ -71,20 +71,19 @@ if (empty($conf_realtime)) {
}
}
/*
- global $amp_conf;
+ //global $amp_conf;
print_r("
Request:
");
$json = '';
print_r("
");
+ //print_r($conf_realtime);
print_r("
");
print_r("
");
- print_r($amp_conf);
- print_r("DIRECT START");
+ //print_r($amp_conf);
+// print_r("DIRECT START");
print_r("
");
// print_r($this->srvinterface->t_get_meta_data());
- //print_r($this->extconfigs->validate_RealTime());
-print("
");
+ print("");
*/
-
// $lang_arr = $this->extconfigs->getextConfig('sccp_lang','sk_SK');
// print_r('
');
// print_r(timezone_identifiers_list());