X-Git-Url: https://git.infodrom.org/?p=infodrom%2Fphone;a=blobdiff_plain;f=index.php;h=b227cf5fbf1533201d0211ca6e378fa9aaa457d1;hp=7c08877ab80c996c439e8881f802ee7bbb8bb36e;hb=0b8c3ecbb7ea0e61a072d169a52130c87f5c4e11;hpb=8f5336efb804d87e433a8c72acb5ce116dddbb0f diff --git a/index.php b/index.php index 7c08877..b227cf5 100644 --- a/index.php +++ b/index.php @@ -1,3 +1,32 @@ + +include_once('phone.php'); + +if (!empty($_POST['func'])) { + $data = array(); + if ($_POST['func'] == 'incoming') { + $data['incoming'] = read_directory('incoming'); + } elseif ($_POST['func'] == 'archive') { + $data['archive'] = read_directory('archive'); + } elseif ($_POST['func'] == 'archive_call') { + archive_call($_POST['call']); + } elseif ($_POST['func'] == 'delete_call') { + delete_call($_POST['dir'],$_POST['call']); + } elseif ($_POST['func'] == 'callinfo') { + $data = callinfo($_POST['dir'],$_POST['call']); + $data['dir'] = $_POST['dir']; + $data['call'] = $_POST['call']; + } elseif ($_POST['func'] == 'save') { + save_call(); + } + header('Content-type: application/json; charset=UTF-8'); + echo json_encode($data); + exit; +} elseif (!empty($_GET['dir']) && !empty($_GET['call'])) { + send_call($_GET['dir'], $_GET['call']); + exit; +} + +?>
Incoming Calls
+Archived Calls
+Play message
++ +
+ +
Edit message
+