X-Git-Url: https://git.infodrom.org/?p=infodrom%2Fphone;a=blobdiff_plain;f=index.php;h=b227cf5fbf1533201d0211ca6e378fa9aaa457d1;hp=579282b7401cfbb6a5954aa8b74ec5f12d2295a1;hb=0b8c3ecbb7ea0e61a072d169a52130c87f5c4e11;hpb=c5c7c6c010a32a1cbc281b8e9f555b3db16c7e80 diff --git a/index.php b/index.php index 579282b..b227cf5 100644 --- a/index.php +++ b/index.php @@ -4,9 +4,19 @@ include_once('phone.php'); if (!empty($_POST['func'])) { $data = array(); if ($_POST['func'] == 'incoming') { - $data['incoming'] = get_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); @@ -49,6 +59,10 @@ if (!empty($_POST['func'])) { +
Play message
@@ -57,5 +71,20 @@ if (!empty($_POST['func'])) {
Edit message
+