Пример #1
0
 #Test guid
 if (isset($_GET["check_guid"])) {
     echo $operation_succeded;
 }
 #Return WebApp API Version
 if (isset($_GET["check_api_version"])) {
     echo costant::api_version();
 }
 #Delete BankAccount
 if (isset($_GET["delete_bankaccount"])) {
     db_function::bankaccount_delete_all();
     echo $operation_succeded;
 }
 #Import BankAccount
 if (isset($_GET["import_bankaccount"])) {
     db_function::bankaccount_insert_json($_POST["MMEX_Post"]);
     echo $operation_succeded;
 }
 #Delete Payee
 if (isset($_GET["delete_payee"])) {
     db_function::payee_delete_all();
     echo $operation_succeded;
 }
 #Import Payee
 if (isset($_GET["import_payee"])) {
     db_function::payee_insert_json($_POST["MMEX_Post"]);
     echo $operation_succeded;
 }
 #Delete Category
 if (isset($_GET["delete_category"])) {
     db_function::category_delete_all();