Compare commits

...

2 Commits

Author SHA1 Message Date
crt 14e882cfef More extension creation research 2022-09-09 15:44:52 +02:00
crt 7ffc9fa60e Inspected extension creation 2022-09-09 15:44:19 +02:00
4 changed files with 9 additions and 2 deletions

4
api-stuff.txt Normal file
View File

@ -0,0 +1,4 @@
https://github.com/gruz/fusionpbx-api/wiki/02.Restful-API-docs#create-an-extension-sip-phone-number
This could make extension Creation very easy

View File

@ -72,7 +72,7 @@
} }
} }
//get the http values and set them as php variables //get the http values and set them as php variables
if (count($_POST) > 0) { if (count($_POST) > 0) {
//get the values from the HTTP POST and save them as PHP variables //get the values from the HTTP POST and save them as PHP variables
@ -818,7 +818,7 @@
} }
} }
//pre-populate the form //pre-populate the form Hmmm this seems like something I will need
if (count($_GET) > 0 && $_POST["persistformvar"] != "true") { if (count($_GET) > 0 && $_POST["persistformvar"] != "true") {
$extension_uuid = $_GET["id"]; $extension_uuid = $_GET["id"];
$sql = "select * from v_extensions "; $sql = "select * from v_extensions ";

View File

@ -354,6 +354,8 @@
} }
} }
//Hmm I mean this seems to be easier to implement
//create token //create token
$object = new token; $object = new token;
$token = $object->create($_SERVER['PHP_SELF']); $token = $object->create($_SERVER['PHP_SELF']);

1
design-changes.txt Normal file
View File

@ -0,0 +1 @@
linear-gradient(to bottom, #ff6102 0%, #6c49ea 100%)