Exemplo n.º 1
0
 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A |
 | PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT      |
 | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,   |
 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT        |
 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,   |
 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY   |
 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT     |
 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE   |
 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.    |
 |                                                                         |
 +-------------------------------------------------------------------------+
*/
include_once "../../../../include/session.php";
include_once "include/tables.php";
include "modules/base/include/notes.php";
//=================================================================================================
if (isset($_GET["cm"])) {
    $thereturn = "";
    switch ($_GET["cm"]) {
        case "updateTask":
            if (!isset($_GET["id"]) || !isset($_GET["cp"]) || !isset($_GET["ty"])) {
                $error = new appError(200, "passed parameters not set");
            }
            $thetable = new notes($db, 'tbld:a4cdd991-cf0a-916f-1240-49428ea1bdd1');
            $thereturn = $thetable->updateTask((int) $_GET["id"], (int) $_GET["cp"], mysql_real_escape_string($_GET["ty"]));
            break;
    }
    //endswitch
    echo $thereturn;
}
//endif