Updated README to document API calls
This commit is contained in:
@@ -77,6 +77,13 @@
|
|||||||
* EasyMDE forked from SimpleMDE
|
* EasyMDE forked from SimpleMDE
|
||||||
* parsedown
|
* parsedown
|
||||||
|
|
||||||
|
### API Calls
|
||||||
|
* Caller ID lookup (Returns a Name) - /api.php?api_key=[API_KEY]&cid=[PHONE_NUMBER]
|
||||||
|
* XML Phonebook Download - /api.php?api_key=[API_KEY]&phonebook
|
||||||
|
* Client Email (Returns Client Name - Email Address) - /api.php?api_key=[API_KEY]&client_emails
|
||||||
|
* Account Balance for Client (Returns Account Balance) - /api.php?api_key=[API_KEY]&client_id=[CLIENT_ID]
|
||||||
|
NOTE: [API_KEY] - is auto generated when a company is created and shows up in General Settings.
|
||||||
|
|
||||||
### Future Todo
|
### Future Todo
|
||||||
* MeshCentral Integation to assign devices and easily access remote desktop within the app
|
* MeshCentral Integation to assign devices and easily access remote desktop within the app
|
||||||
* HestiaCP Integration for intergrating domains and webclients
|
* HestiaCP Integration for intergrating domains and webclients
|
||||||
|
|||||||
2
post.php
2
post.php
@@ -135,8 +135,6 @@ if(isset($_GET['delete_company'])){
|
|||||||
|
|
||||||
mysqli_query($mysqli,"DELETE FROM settings WHERE company_id = $company_id");
|
mysqli_query($mysqli,"DELETE FROM settings WHERE company_id = $company_id");
|
||||||
|
|
||||||
mysqli_query($mysqli,"INSERT INTO logs SET log_type = 'Company Deleted', log_description = '$company_id', log_created_at = NOW()");
|
|
||||||
|
|
||||||
//logging
|
//logging
|
||||||
mysqli_query($mysqli,"INSERT INTO logs SET log_type = 'Company', log_action = 'Deleted', log_description = '$name', log_created_at = NOW()");
|
mysqli_query($mysqli,"INSERT INTO logs SET log_type = 'Company', log_action = 'Deleted', log_description = '$name', log_created_at = NOW()");
|
||||||
|
|
||||||
|
|||||||
13
ticket.php
13
ticket.php
@@ -1,11 +1,18 @@
|
|||||||
<?php include("config.php"); ?>
|
<?php include("config.php"); ?>
|
||||||
|
<?php include("header.php"); ?>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
if(isset($_GET['ticket_id'])){
|
if(isset($_GET['ticket_id'])){
|
||||||
$ticket_id = intval($_GET['ticket_id']);
|
$ticket_id = intval($_GET['ticket_id']);
|
||||||
|
|
||||||
$sql = mysqli_query($mysqli,"SELECT * FROM tickets, clients WHERE tickets.client_id = clients.client_id AND ticket_id = $ticket_id");
|
$sql = mysqli_query($mysqli,"SELECT * FROM tickets, clients WHERE tickets.client_id = clients.client_id AND ticket_id = $ticket_id AND tickets.company_id = $session_company_id");
|
||||||
|
|
||||||
|
if(mysqli_num_rows($sql) == 0){
|
||||||
|
echo "<center><h1 class='text-secondary mt-5'>Nothing to see here</h1><a class='btn btn-lg btn-secondary mt-3' href='tickets.php'><i class='fa fa-fw fa-arrow-left'></i> Go Back</a></center>";
|
||||||
|
|
||||||
|
include("footer.php");
|
||||||
|
}else{
|
||||||
|
|
||||||
$row = mysqli_fetch_array($sql);
|
$row = mysqli_fetch_array($sql);
|
||||||
$client_id = $row['client_id'];
|
$client_id = $row['client_id'];
|
||||||
@@ -46,7 +53,7 @@ if(isset($_GET['ticket_id'])){
|
|||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<?php include("header.php"); ?>
|
|
||||||
|
|
||||||
<!-- Breadcrumbs-->
|
<!-- Breadcrumbs-->
|
||||||
<ol class="breadcrumb">
|
<ol class="breadcrumb">
|
||||||
@@ -161,6 +168,8 @@ if(isset($_GET['ticket_id'])){
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<?php include("footer.php");
|
<?php include("footer.php");
|
||||||
Reference in New Issue
Block a user