. */ include('functions.php'); session_start(); $VIEW_CIPHERED_PASSWORDS=true; $ADMIN_MODE=true; $user = ""; if ($ADMIN_MODE && isset($_POST['create_user'])) { if (create_user($_POST['user'])) $user = $_POST['user']; } else { if (isset($_POST['get_passwords']) && isset($_POST['user'])) return list_entries($_POST['user']); if (isset($_POST['add_entry']) && isset($_POST['user']) && isset($_POST['login']) && isset($_POST['password'])) return add_entry($_POST['user'], $_POST['login'], $_POST['password']); if (isset($_POST['delete_entry']) && isset($_POST['user']) && isset($_POST['login'])) return delete_entry($_POST['user'], $_POST['login']); } ?>