mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-24 01:18:27 +00:00
Use the settings class to get event_socket details
This commit is contained in:
@@ -106,16 +106,13 @@
|
||||
//$ip_address = '10.7.0.253';
|
||||
//$result = access_allowed($ip_address);
|
||||
|
||||
//get the settings
|
||||
//$setting_name = $_SESSION['category']['subcategory']['text'];
|
||||
//initialize the settings object
|
||||
$setting = new settings(["category" => 'switch']);
|
||||
|
||||
//set the event socket variables
|
||||
$event_socket_ip_address = $_SESSION['event_socket_ip_address'];
|
||||
$event_socket_port = $_SESSION['event_socket_port'];
|
||||
$event_socket_password = $_SESSION['event_socket_password'];
|
||||
|
||||
//end the session
|
||||
session_destroy();
|
||||
$event_socket_ip_address = $setting->get('switch','event_socket_ip_address');
|
||||
$event_socket_port = $setting->get('switch', 'event_socket_port');
|
||||
$event_socket_password = $setting->get('switch', 'event_socket_password');
|
||||
|
||||
//connect to event socket
|
||||
$socket = new event_socket;
|
||||
|
||||
Reference in New Issue
Block a user