# You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. #************************************************************************** header("Content-Type: text/xml"); error_reporting(1); session_name('CentreSIS'); session_start(); require '../../../config.inc.php'; require '../../../database.inc.php'; require '../../../functions/Current.php'; require '../../../functions/PopTable.php'; require '../../../functions/DrawTab.fnc.php'; require '../../../functions/DBGet.fnc.php'; require '../../../functions/User.fnc.php'; require '../../../functions/ParseML.fnc.php'; require '../../../functions/ProgramTitle.fnc.php'; require '../classes/Auth.php'; require '../classes/PaymentType.php'; $auth = new Auth(); $staffId = User('STAFF_ID'); $profile = User('PROFILE'); if ($auth->checkAdmin($profile, $staffId)) { $id = $_REQUEST['ID']; if (PaymentType::deleteType($id)) { echo '{"result":[{"success":true}]}'; } else { echo '{"result":[{"success":false}]}'; } } else { echo '{"result":[{"success":false}]}'; }