forked from carpenox/CyburPhone
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcp_interpreter.php
More file actions
43 lines (38 loc) · 1.26 KB
/
cp_interpreter.php
File metadata and controls
43 lines (38 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
// default Cyburphone variables
$layout = "css/default.css";
$cid_name = "100";
$sip_uri = "100@192.168.0.100";
$auth_user = "100";
$password = "1234";
$ws_server = "wss://yourdialerurl.com/8089";
$debug_enabled = false;
$hide_dialpad = false;
$hide_dialbox = false;
$hide_mute = false;
$hide_volume = false;
$auto_answer= false;
// get / post data retrieval
$layout = get_post( "layout", $layout );
$cid_name = get_post( "cid_name", $cid_name ) ;
$sip_uri = get_post( "sip_uri", $sip_uri ) ;
$auth_user = get_post( "auth_user", $auth_user ) ;
$password = get_post( "password", $password ) ;
$ws_server = get_post( "ws_server", $ws_server ) ;
$debug_enabled = get_post( "debug_enabled", $debug_enabled ) ;
$hide_dialpad = get_post( "hide_dialpad", $hide_dialpad) ;
$hide_dialbox = get_post( "hide_dialbox", $hide_dialbox ) ;
$hide_mute = get_post( "hide_mute", $hide_mute ) ;
$hide_volume = get_post( "hide_volume", $hide_volume ) ;
$auto_answer= get_post( "auto_answer", $auto_answer ) ;
// call the template
require_once('cp_template.php');
function get_post( $string, $variable ) {
if (isset($_GET[$string])) {
$variable = $_GET[$string];
} elseif (isset($_POST[$string])) {
$variable = $_POST[$string];
}
return $variable;
}
?>