Cleaned up messages
Improved message readability. Atom removed extraneous white spaces and lines
This commit is contained in:
parent
2f69bdb3fa
commit
6ccc9bbccb
|
@ -72,7 +72,6 @@ abstract class Response extends IncomingMessage
|
|||
$this->setKey('ActionId', $actionId);
|
||||
}
|
||||
|
||||
|
||||
public function getVariable($_rawContent, $_fields = '')
|
||||
{
|
||||
$lines = explode(Message::EOL, $_rawContent);
|
||||
|
@ -119,7 +118,6 @@ class Login_Response extends Response
|
|||
class Command_Response extends Response
|
||||
{
|
||||
private $_temptable;
|
||||
|
||||
public function __construct($rawContent)
|
||||
{
|
||||
// print_r('<br>---- r --<br>');
|
||||
|
@ -127,7 +125,6 @@ class Command_Response extends Response
|
|||
// print_r('<br>---- re --<br>');
|
||||
$this->_temptable = array();
|
||||
parent::__construct($rawContent);
|
||||
|
||||
$lines = explode(Message::EOL, $rawContent);
|
||||
foreach ($lines as $line) {
|
||||
$content = explode(':', $line);
|
||||
|
|
|
@ -463,14 +463,14 @@ class extconfigs
|
|||
$res['extconfig'] = 'OK';
|
||||
|
||||
if (empty($res['sccpdevice'])) {
|
||||
$res['extconfig'] = ' Options "Sccpdevice" not config ';
|
||||
$res['extconfig'] = ' Option "Sccpdevice" is not configured ';
|
||||
}
|
||||
if (empty($res['sccpline'])) {
|
||||
$res['extconfig'] = ' Options "Sccpline" not config ';
|
||||
$res['extconfig'] = ' Option "Sccpline" is not configured ';
|
||||
}
|
||||
|
||||
if (empty($res['extconfigfile'])) {
|
||||
$res['extconfig'] = 'File extconfig.conf not exist';
|
||||
$res['extconfig'] = 'File extconfig.conf does not exist';
|
||||
}
|
||||
|
||||
|
||||
|
@ -482,10 +482,10 @@ class extconfigs
|
|||
if (file_exists($dir . '/res_mysql.conf')) {
|
||||
$res_conf = $cnf_read->getConfig('res_mysql.conf');
|
||||
if (empty($res_conf[$realm])) {
|
||||
$res['mysqlconfig'] = 'Not Config in file: res_mysql.conf';
|
||||
$res['mysqlconfig'] = 'Config not found in file: res_mysql.conf';
|
||||
} else {
|
||||
if ($res_conf[$realm]['dbsock'] != $def_bd_config['dbsock']) {
|
||||
$res['mysqlconfig'] = 'Mysql Soket Error in file: res_mysql.conf';
|
||||
$res['mysqlconfig'] = 'Mysql Socket Error in file: res_mysql.conf';
|
||||
}
|
||||
}
|
||||
if (empty($res['mysqlconfig'])) {
|
||||
|
@ -499,7 +499,7 @@ class extconfigs
|
|||
$res['mysqlconfig'] = 'Not Config in file: res_config_mysql.conf';
|
||||
} else {
|
||||
if ($res_conf[$realm]['dbsock'] != $def_bd_config['dbsock']) {
|
||||
$res['mysqlconfig'] = 'Mysql Soket Error in file: res_config_mysql.conf';
|
||||
$res['mysqlconfig'] = 'Mysql Socket Error in file: res_config_mysql.conf';
|
||||
}
|
||||
}
|
||||
if (empty($res['mysqlconfig'])) {
|
||||
|
|
|
@ -14,6 +14,7 @@ $ast_realtime = $this->srvinterface->sccp_realtime_status();
|
|||
|
||||
$ast_realm = (empty($ast_realtime['sccp']) ? '' : 'sccp');
|
||||
|
||||
// if there are multiple connections, this will only return the first.
|
||||
foreach ($ast_realtime as $key => $value) {
|
||||
if (empty($ast_realm)) {
|
||||
if ($value['status'] == 'OK') {
|
||||
|
@ -61,7 +62,7 @@ if ($db_Schema == 0) {
|
|||
}
|
||||
|
||||
if (empty($ast_realtime)) {
|
||||
$info['RealTime'] = array('Version' => 'Error', 'about' => '<div class="alert signature alert-danger"> No found Real Time connections</div>');
|
||||
$info['RealTime'] = array('Version' => 'Error', 'about' => '<div class="alert signature alert-danger"> No RealTime connections found</div>');
|
||||
} else {
|
||||
$rt_info = '';
|
||||
$rt_sccp = 'Failed';
|
||||
|
@ -82,7 +83,7 @@ if (empty($ast_realtime)) {
|
|||
}
|
||||
|
||||
if (empty($conf_realtime)) {
|
||||
$info['ConfigsRealTime'] = array('Version' => 'Error', 'about' => '<div class="alert signature alert-danger"> No found Real Time Configs</div>');
|
||||
$info['ConfigsRealTime'] = array('Version' => 'Error', 'about' => '<div class="alert signature alert-danger"> Realtime configuration was not found</div>');
|
||||
} else {
|
||||
$rt_info = '';
|
||||
foreach ($conf_realtime as $key => $value) {
|
||||
|
@ -517,4 +518,3 @@ foreach ($info as $key => $value) {
|
|||
</div>
|
||||
</div>
|
||||
<?php echo $this->showGroup('sccp_info', 0); ?>
|
||||
|
||||
|
|
Loading…
Reference in a new issue