Skip to content

Commit

Permalink
Removed POST due to conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
Fmstrat committed Feb 6, 2015
1 parent e48dd15 commit ff892cc
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions controller/ownnoteapicontroller.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ public function edit() {
require_once 'ownnote/lib/backend.php';
if (isset($_GET["note"]))
return editNote("Notes", $_GET["note"].".htm");
elseif (isset($_POST["note"]))
return editNote("Notes", $_POST["note"].".htm");
}

/**
Expand All @@ -64,8 +62,6 @@ public function del() {
require_once 'ownnote/lib/backend.php';
if (isset($_GET["note"]))
return deleteNote("Notes", $_GET["note"].".htm");
elseif (isset($_POST["note"]))
return deleteNote("Notes", $_POST["note"].".htm");
}

/**
Expand All @@ -77,8 +73,6 @@ public function ren() {
require_once 'ownnote/lib/backend.php';
if (isset($_GET["note"]) && isset($_GET["newnote"]))
return renameNote("Notes", $_GET["note"], $_GET["newnote"]);
elseif (isset($_POST["note"]) && isset($_POST["newnote"]))
return renameNote("Notes", $_POST["note"], $_POST["newnote"]);
}

/**
Expand All @@ -90,8 +84,6 @@ public function save() {
require_once 'ownnote/lib/backend.php';
if (isset($_GET["note"]) && isset($_GET["content"]))
return saveNote("Notes", $_GET["note"], $_GET["content"]);
elseif (isset($_POST["note"]) && isset($_POST["content"]))
return saveNote("Notes", $_POST["note"], $_POST["content"]);
}

/**
Expand All @@ -103,8 +95,6 @@ public function create() {
require_once 'ownnote/lib/backend.php';
if (isset($_GET["note"]))
return createNote("Notes", $_GET["note"]);
elseif (isset($_POST["note"]))
return createNote("Notes", $_POST["note"]);
}

/**
Expand All @@ -116,8 +106,6 @@ public function delgroup() {
require_once 'ownnote/lib/backend.php';
if (isset($_GET["group"]))
return deleteGroup("Notes", $_GET["group"]);
if (isset($_POST["group"]))
return deleteGroup("Notes", $_POST["group"]);
}

/**
Expand All @@ -129,7 +117,5 @@ public function rengroup() {
require_once 'ownnote/lib/backend.php';
if (isset($_GET["group"]) && isset($_GET["newgroup"]))
return renameGroup("Notes", $_GET["group"], $_GET["newgroup"]);
elseif (isset($_POST["group"]) && isset($_POST["newgroup"]))
return renameGroup("Notes", $_POST["group"], $_POST["newgroup"]);
}
}

0 comments on commit ff892cc

Please sign in to comment.