. */ include('functions.php'); include('conf.php'); session_start(); $user = ''; if ($ADMIN_MODE && isset($_POST['create_user'])) { $user = addslashes($_POST['user']); if (create_user($user)) $user = $_POST['user']; else $user = ''; } else { $user = sanitize('user'); $login = sanitize('login'); $shadow_login = sanitize('shadow_login'); $password = sanitize('password'); $access_token = sanitize('access_token'); $access_tokens = sanitize('access_tokens'); $salt = sanitize('salt'); if (isset($_POST['get_secure_passwords']) && isset($_POST['user']) && isset($_POST['access_tokens'])) return get_secure_entries($user, $access_tokens); if (isset($_POST['get_passwords']) && isset($_POST['user'])) return list_entries($user); if (isset($_POST['add_entry']) && isset($_POST['user']) && isset($_POST['login']) && isset($_POST['password']) && isset($_POST['shadow_login']) && isset($_POST['salt']) && isset($_POST['access_token']) ) return add_entry($user, $login, $password, $shadow_login, $salt, $access_token); if (isset($_POST['delete_entry']) && isset($_POST['user']) && isset($_POST['login']) && isset($_POST['access_token'])) return delete_entry($user, $login, $access_token); } ?> gPass : global Password
>
No user found
\n"; else { echo "User \n"; echo ' Master key '; echo "" . "\n"; if (!isset($_SERVER['HTTPS'])) echo "
Current addon address is : http://" . $_SERVER['SERVER_NAME'] . "/" . $user . "
\n"; else echo "
Current addon address is : https://" . $_SERVER['SERVER_NAME'] . "/" . $user . "
\n"; } ?>
Add a new password
\n"; echo 'URL '; echo 'login '; echo 'password '; echo 'master key '; echo ''; echo ""; echo "
"; echo '
Master key strength
0%
 
'; } ?>
Update Masterkey
\n"; echo 'Old master key '; echo 'New master key '; echo ''; } ?>
Export
\n"; echo ''; echo 'Download'; } ?>