You should have received a copy of the GNU General Public License along with accounts. If not, see <http://www.gnu.org/licenses/>. -------------------------------------------------------------------------- */ include '../../../inc/includes.php'; if (!isset($_GET["id"])) { $_GET["id"] = ""; } if (!isset($_GET["withtemplate"])) { $_GET["withtemplate"] = ""; } $account = new PluginAccountsAccount(); $account_item = new PluginAccountsAccount_Item(); if (isset($_POST["add"])) { $account->check(-1, 'w', $_POST); $newID = $account->add($_POST); Html::back(); } else { if (isset($_POST["update"])) { $account->check($_POST['id'], 'w'); $account->update($_POST); Html::back(); } else { if (isset($_POST["delete"])) { $account->check($_POST['id'], 'w'); $account->delete($_POST); $account->redirectToList(); } else { if (isset($_POST["restore"])) { $account->check($_POST['id'], 'w'); $account->restore($_POST);