If the event socket information is not set then use the defaults.
This commit is contained in:
parent
3efb6881db
commit
49a53db5d1
|
|
@ -43,13 +43,28 @@ if (!class_exists('switch_settings')) {
|
||||||
|
|
||||||
//define the variables
|
//define the variables
|
||||||
if (!isset($this->event_socket_ip_address)) {
|
if (!isset($this->event_socket_ip_address)) {
|
||||||
$this->event_socket_ip_address = $_SESSION['event_socket_ip_address'];
|
if (strlen($_SESSION['event_socket_ip_address']) > 0) {
|
||||||
|
$this->event_socket_ip_address = $_SESSION['event_socket_ip_address'];
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$this->event_socket_ip_address = '127.0.0.1';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (!isset($this->event_socket_port)) {
|
if (!isset($this->event_socket_port)) {
|
||||||
$this->event_socket_port = $_SESSION['event_socket_port'];
|
if (strlen($_SESSION['event_socket_ip_address']) > 0) {
|
||||||
|
$this->event_socket_port = $_SESSION['event_socket_port'];
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$this->event_socket_port = '8021';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (!isset($this->event_socket_password)) {
|
if (!isset($this->event_socket_password)) {
|
||||||
$this->event_socket_password = $_SESSION['event_socket_password'];
|
if (strlen($_SESSION['event_socket_ip_address']) > 0) {
|
||||||
|
$this->event_socket_password = $_SESSION['event_socket_password'];
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$this->event_socket_password = 'ClueCon';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//connect to event socket
|
//connect to event socket
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue