<?php # Import configuration file require_once "functions.php"; $operation_succeded = "Operation has succeeded"; $wrong_guid = "Wrong GUID"; header("Content-Type: text/plain; charset=utf-8"); if (isset($_GET["guid"]) && $_GET["guid"] == costant::desktop_guid()) { #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; }
<link rel="apple-touch-icon" href="res/apple-touch-icon.png" /> <link rel="stylesheet" type="text/css" href="res/bootstrap-3.2.0.min.css" /> <link rel="stylesheet" type="text/css" href="res/bootstrap-theme-3.2.0.min.css" /> <link rel="stylesheet" type="text/css" href="res/style_global-0.9.9.css" /> </head> <body> <div class="container text_align_center"> <br /> <img src="res/mmex.ico" alt="Money Manager Ex Logo" height="150" width="150"/> <br /> <h2><strong>Money Manager Ex - Web App</strong></h2> <?php echo "<h4> Version " . costant::app_version() . "</h4>"; echo "<h5> API Version " . costant::api_version() . "</h5>"; ?> <br /> <h4> Developer: Gabriele [Gabriele-V]</h4> <a href="https://github.com/moneymanagerex/web-money-manager-ex"><h4> GitHub WebPage</h4></a> <br /> <p> Used components: <br /> <a href="http://getbootstrap.com/">Bootstrap</a> <br /> <a href="http://jquery.com//">jQuery</a> <br /> <a href="http://modernizr.com/">Modernizr</a> <br /> <a href="http://www.sqlite.org/">SQLite</a>