Skip to content

Commit

Permalink
Merge pull request #21 from funktechno/f/updates
Browse files Browse the repository at this point in the history
F/updates
  • Loading branch information
lastlink committed Mar 6, 2021
2 parents 4878e82 + c1b22c5 commit cd765a3
Show file tree
Hide file tree
Showing 9 changed files with 858 additions and 150 deletions.
24 changes: 24 additions & 0 deletions conversations/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php
$action = filter_input(INPUT_POST, 'action');
if ($action == NULL) {
$action = filter_input(INPUT_GET, 'action');
}
$GLOBALS['root'] = "../";
require_once '../config/connections.php';
require_once '../library/functions.php';
require_once '../model/configuration-model.php';
require_once '../model/conversations-model.php';
require_once '../library/error_responses.php';
header("Access-Control-Allow-Origin: " . Allowed_Origins);
header("Access-Control-Allow-Methods: " . Allowed_Methods);
header("Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept");
header('Content-type: application/json');

$errorStatus = App\errorStatus::getInstance();
$input = json_decode(file_get_contents('php://input'), true);
if (!isset($input)) // if null then set to $_POST for simple posts
{
$input = $_POST;
}

$directoryURI = $_SERVER['REQUEST_URI'];
Loading

0 comments on commit cd765a3

Please sign in to comment.