2 // Copyright (C) 2011 Brady Miller <brady.g.miller@gmail.com>
4 // This program is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU General Public License
6 // as published by the Free Software Foundation; either version 2
7 // of the License, or (at your option) any later version.
10 // This file contains functions to manage some AMC items.
13 //SANITIZE ALL ESCAPES
14 $sanitize_all_escapes=true;
17 //STOP FAKE REGISTER GLOBALS
18 $fake_register_globals=false;
21 require_once(dirname(__FILE__
) . "/../../interface/globals.php");
22 require_once(dirname(__FILE__
) . "/../amc.php");
24 // If all items are valid(ie. not empty) (note object_category and object_id and date_created can be empty), then proceed.
25 if ( !(empty($_POST['amc_id'])) &&
26 !(empty($_POST['complete'])) &&
27 !(empty($_POST['mode'])) &&
28 !(empty($_POST['patient_id'])) ) {
30 processAmcCall($_POST['amc_id'], $_POST['complete'], $_POST['mode'], $_POST['patient_id'], $_POST['object_category'], $_POST['object_id'], $_POST['date_created']);