diff --git a/cli/app.py b/cli/app.py index 67ac894..f6bf3c2 100644 --- a/cli/app.py +++ b/cli/app.py @@ -126,9 +126,6 @@ while not (command == "quit" or command == "exit" or command == "q"): elif command[0:1] == "/": action = "grep" command = command[1:] - elif command[0:4] == "sms ": - action = "sms" - command = command[4:] elif command[0:7] == "export ": action = "export" command = command[7:] @@ -151,9 +148,6 @@ while not (command == "quit" or command == "exit" or command == "q"): if newname: note["title"] = newname savedata() - elif action == "sms": - if note and ask("send '" + note["title"] + "' by sms? "): - subprocess.call(["curl", "-s", "-X", "POST", "-F", "action=sms", "-F", "password=" + settings["password"], "-F", "data=" + urllib.parse.quote_plus(note["content"]), settings["url"] + "/handler.php"]) elif action == "export": if note: writetextfile("session/" + note["title"] + ".md", note["content"]) diff --git a/handler.php b/handler.php index 30f2a74..5d726a7 100644 --- a/handler.php +++ b/handler.php @@ -12,11 +12,6 @@ else if (isset($_POST['action'])) $action = $_POST['action']; switch ($action) { - case 'sms': - $res = file_get_contents($smsurl . $_POST['data']); - echo '{"result": "' . $res . '"}'; - break; - case 'fetch': if (file_exists($datafile)) { diff --git a/main.js b/main.js index 995d755..269a2ce 100644 --- a/main.js +++ b/main.js @@ -229,12 +229,6 @@ var commands = [ hint: "Insert text in todo", action: inserttodo }, -{ - hint: "Send an SMS", - action: sms, - remoteonly: true, - allowunsaved: true -}, { hint: "Edit pgp keys", action: editpgpkeys @@ -393,19 +387,6 @@ function decryptstring(str) }) } -function sms() -{ - var messsage = prompt("Type your message:"); - if (messsage) - { - queryremote({action: "sms", data: messsage}) - .then(data => - { - showtemporaryinfo("SMS sent. Result: '" + data.result + "'"); - }); - } -} - function getnote(title) { return localdata.find(note => note.title == title); diff --git a/settingssample.php b/settingssample.php index 741b1e4..6a12dae 100644 --- a/settingssample.php +++ b/settingssample.php @@ -2,5 +2,4 @@ $datafile = '../data/data.acs'; $icsfile = ''; $password = ''; - $smsurl = ''; ?> \ No newline at end of file