├── .gitignore
├── icons
├── C00.png
├── C01.png
├── C02.png
├── C03.png
├── C04.png
├── C05.png
├── C06.png
├── C07.png
├── C08.png
├── C09.png
├── C10.png
├── C11.png
├── C12.png
├── C13.png
├── C14.png
├── C15.png
├── C16.png
├── C17.png
├── C18.png
├── C19.png
├── C20.png
├── C21.png
├── C22.png
├── C23.png
├── C24.png
├── C25.png
├── C26.png
├── C27.png
├── C28.png
├── C29.png
├── C30.png
├── C31.png
├── C32.png
├── C33.png
├── C34.png
├── C35.png
├── C36.png
├── C37.png
├── C38.png
├── C39.png
├── C40.png
├── C41.png
├── C42.png
├── C43.png
├── C44.png
├── C45.png
├── C46.png
├── C47.png
├── C48.png
├── C49.png
├── C50.png
├── C51.png
├── C52.png
├── C53.png
├── C54.png
├── C55.png
├── C56.png
├── C57.png
├── C58.png
├── C59.png
├── C60.png
├── C61.png
├── C62.png
├── C63.png
├── C64.png
├── C65.png
├── C66.png
├── C67.png
└── C68.png
├── composer.json
├── LICENSE.md
├── css
├── main.css
└── bootstrap.min.css
├── README.md
├── keepassphpui
├── main.php
├── lang
│ ├── en.php
│ ├── de.php
│ └── fr.php
└── kphpui.php
├── ajaxopen.php
├── js
├── main.js
└── bootstrap.min.js
├── index.php
└── bootstrap-config.json
/.gitignore:
--------------------------------------------------------------------------------
1 | /nbproject
2 | /keepassphp
3 | sftp-config.json
--------------------------------------------------------------------------------
/icons/C00.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shkdee/KeePassPHP-UI/HEAD/icons/C00.png
--------------------------------------------------------------------------------
/icons/C01.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shkdee/KeePassPHP-UI/HEAD/icons/C01.png
--------------------------------------------------------------------------------
/icons/C02.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shkdee/KeePassPHP-UI/HEAD/icons/C02.png
--------------------------------------------------------------------------------
/icons/C03.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shkdee/KeePassPHP-UI/HEAD/icons/C03.png
--------------------------------------------------------------------------------
/icons/C04.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shkdee/KeePassPHP-UI/HEAD/icons/C04.png
--------------------------------------------------------------------------------
/icons/C05.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shkdee/KeePassPHP-UI/HEAD/icons/C05.png
--------------------------------------------------------------------------------
/icons/C06.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shkdee/KeePassPHP-UI/HEAD/icons/C06.png
--------------------------------------------------------------------------------
/icons/C07.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shkdee/KeePassPHP-UI/HEAD/icons/C07.png
--------------------------------------------------------------------------------
/icons/C08.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shkdee/KeePassPHP-UI/HEAD/icons/C08.png
--------------------------------------------------------------------------------
/icons/C09.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shkdee/KeePassPHP-UI/HEAD/icons/C09.png
--------------------------------------------------------------------------------
/icons/C10.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shkdee/KeePassPHP-UI/HEAD/icons/C10.png
--------------------------------------------------------------------------------
/icons/C11.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shkdee/KeePassPHP-UI/HEAD/icons/C11.png
--------------------------------------------------------------------------------
/icons/C12.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shkdee/KeePassPHP-UI/HEAD/icons/C12.png
--------------------------------------------------------------------------------
/icons/C13.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shkdee/KeePassPHP-UI/HEAD/icons/C13.png
--------------------------------------------------------------------------------
/icons/C14.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shkdee/KeePassPHP-UI/HEAD/icons/C14.png
--------------------------------------------------------------------------------
/icons/C15.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shkdee/KeePassPHP-UI/HEAD/icons/C15.png
--------------------------------------------------------------------------------
/icons/C16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shkdee/KeePassPHP-UI/HEAD/icons/C16.png
--------------------------------------------------------------------------------
/icons/C17.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shkdee/KeePassPHP-UI/HEAD/icons/C17.png
--------------------------------------------------------------------------------
/icons/C18.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shkdee/KeePassPHP-UI/HEAD/icons/C18.png
--------------------------------------------------------------------------------
/icons/C19.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shkdee/KeePassPHP-UI/HEAD/icons/C19.png
--------------------------------------------------------------------------------
/icons/C20.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shkdee/KeePassPHP-UI/HEAD/icons/C20.png
--------------------------------------------------------------------------------
/icons/C21.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shkdee/KeePassPHP-UI/HEAD/icons/C21.png
--------------------------------------------------------------------------------
/icons/C22.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shkdee/KeePassPHP-UI/HEAD/icons/C22.png
--------------------------------------------------------------------------------
/icons/C23.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shkdee/KeePassPHP-UI/HEAD/icons/C23.png
--------------------------------------------------------------------------------
/icons/C24.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shkdee/KeePassPHP-UI/HEAD/icons/C24.png
--------------------------------------------------------------------------------
/icons/C25.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shkdee/KeePassPHP-UI/HEAD/icons/C25.png
--------------------------------------------------------------------------------
/icons/C26.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shkdee/KeePassPHP-UI/HEAD/icons/C26.png
--------------------------------------------------------------------------------
/icons/C27.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shkdee/KeePassPHP-UI/HEAD/icons/C27.png
--------------------------------------------------------------------------------
/icons/C28.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shkdee/KeePassPHP-UI/HEAD/icons/C28.png
--------------------------------------------------------------------------------
/icons/C29.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shkdee/KeePassPHP-UI/HEAD/icons/C29.png
--------------------------------------------------------------------------------
/icons/C30.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shkdee/KeePassPHP-UI/HEAD/icons/C30.png
--------------------------------------------------------------------------------
/icons/C31.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shkdee/KeePassPHP-UI/HEAD/icons/C31.png
--------------------------------------------------------------------------------
/icons/C32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shkdee/KeePassPHP-UI/HEAD/icons/C32.png
--------------------------------------------------------------------------------
/icons/C33.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shkdee/KeePassPHP-UI/HEAD/icons/C33.png
--------------------------------------------------------------------------------
/icons/C34.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shkdee/KeePassPHP-UI/HEAD/icons/C34.png
--------------------------------------------------------------------------------
/icons/C35.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shkdee/KeePassPHP-UI/HEAD/icons/C35.png
--------------------------------------------------------------------------------
/icons/C36.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shkdee/KeePassPHP-UI/HEAD/icons/C36.png
--------------------------------------------------------------------------------
/icons/C37.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shkdee/KeePassPHP-UI/HEAD/icons/C37.png
--------------------------------------------------------------------------------
/icons/C38.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shkdee/KeePassPHP-UI/HEAD/icons/C38.png
--------------------------------------------------------------------------------
/icons/C39.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shkdee/KeePassPHP-UI/HEAD/icons/C39.png
--------------------------------------------------------------------------------
/icons/C40.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shkdee/KeePassPHP-UI/HEAD/icons/C40.png
--------------------------------------------------------------------------------
/icons/C41.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shkdee/KeePassPHP-UI/HEAD/icons/C41.png
--------------------------------------------------------------------------------
/icons/C42.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shkdee/KeePassPHP-UI/HEAD/icons/C42.png
--------------------------------------------------------------------------------
/icons/C43.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shkdee/KeePassPHP-UI/HEAD/icons/C43.png
--------------------------------------------------------------------------------
/icons/C44.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shkdee/KeePassPHP-UI/HEAD/icons/C44.png
--------------------------------------------------------------------------------
/icons/C45.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shkdee/KeePassPHP-UI/HEAD/icons/C45.png
--------------------------------------------------------------------------------
/icons/C46.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shkdee/KeePassPHP-UI/HEAD/icons/C46.png
--------------------------------------------------------------------------------
/icons/C47.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shkdee/KeePassPHP-UI/HEAD/icons/C47.png
--------------------------------------------------------------------------------
/icons/C48.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shkdee/KeePassPHP-UI/HEAD/icons/C48.png
--------------------------------------------------------------------------------
/icons/C49.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shkdee/KeePassPHP-UI/HEAD/icons/C49.png
--------------------------------------------------------------------------------
/icons/C50.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shkdee/KeePassPHP-UI/HEAD/icons/C50.png
--------------------------------------------------------------------------------
/icons/C51.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shkdee/KeePassPHP-UI/HEAD/icons/C51.png
--------------------------------------------------------------------------------
/icons/C52.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shkdee/KeePassPHP-UI/HEAD/icons/C52.png
--------------------------------------------------------------------------------
/icons/C53.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shkdee/KeePassPHP-UI/HEAD/icons/C53.png
--------------------------------------------------------------------------------
/icons/C54.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shkdee/KeePassPHP-UI/HEAD/icons/C54.png
--------------------------------------------------------------------------------
/icons/C55.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shkdee/KeePassPHP-UI/HEAD/icons/C55.png
--------------------------------------------------------------------------------
/icons/C56.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shkdee/KeePassPHP-UI/HEAD/icons/C56.png
--------------------------------------------------------------------------------
/icons/C57.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shkdee/KeePassPHP-UI/HEAD/icons/C57.png
--------------------------------------------------------------------------------
/icons/C58.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shkdee/KeePassPHP-UI/HEAD/icons/C58.png
--------------------------------------------------------------------------------
/icons/C59.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shkdee/KeePassPHP-UI/HEAD/icons/C59.png
--------------------------------------------------------------------------------
/icons/C60.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shkdee/KeePassPHP-UI/HEAD/icons/C60.png
--------------------------------------------------------------------------------
/icons/C61.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shkdee/KeePassPHP-UI/HEAD/icons/C61.png
--------------------------------------------------------------------------------
/icons/C62.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shkdee/KeePassPHP-UI/HEAD/icons/C62.png
--------------------------------------------------------------------------------
/icons/C63.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shkdee/KeePassPHP-UI/HEAD/icons/C63.png
--------------------------------------------------------------------------------
/icons/C64.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shkdee/KeePassPHP-UI/HEAD/icons/C64.png
--------------------------------------------------------------------------------
/icons/C65.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shkdee/KeePassPHP-UI/HEAD/icons/C65.png
--------------------------------------------------------------------------------
/icons/C66.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shkdee/KeePassPHP-UI/HEAD/icons/C66.png
--------------------------------------------------------------------------------
/icons/C67.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shkdee/KeePassPHP-UI/HEAD/icons/C67.png
--------------------------------------------------------------------------------
/icons/C68.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shkdee/KeePassPHP-UI/HEAD/icons/C68.png
--------------------------------------------------------------------------------
/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "keepassphp/keepassphp-ui",
3 | "description": "User interface for KeePassPHP",
4 | "keywords": ["keepass","password manager", "keepassphp"],
5 | "homepage": "https://github.com/shkdee/KeePassPHP-UI",
6 | "license": "MIT",
7 | "authors": [
8 | {
9 | "name": "Louis Traynard",
10 | "email": "louis.traynard@m4x.org",
11 | "homepage": "https://github.com/shkdee"
12 | }
13 | ],
14 | "require": {
15 | "php": ">=5.3.0",
16 | "keepassphp/keepassphp": "@dev"
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/LICENSE.md:
--------------------------------------------------------------------------------
1 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
2 |
3 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
4 |
5 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--------------------------------------------------------------------------------
/css/main.css:
--------------------------------------------------------------------------------
1 | body
2 | {
3 | margin-top: 1em;
4 | }
5 |
6 | input.verysmall
7 | {
8 | font-size:3px !important;
9 | width:35px !important;
10 | }
11 |
12 | .nav-tabs > li > a.close
13 | {
14 | line-height: 21px !important;
15 | }
16 |
17 | .tab-content
18 | {
19 | margin-top: 1.5em;
20 | }
21 |
22 | .row-between-tab
23 | {
24 | margin-top: 1em;
25 | margin-bottom: -1em;
26 | }
27 |
28 | .loading-button {
29 | display: none;
30 | }
31 |
32 | .btn-primary.loading-button span.spinner
33 | {
34 | display: inline-block;
35 | width: 16px;
36 | height: 16px;
37 | background-repeat: no-repeat;
38 | background-image: url(data:image/gif;base64,R0lGODlhEAAQAPIAAAV2j////z+Wqb3a4f///53J0364xW6vviH/C05FVFNDQVBFMi4wAwEAAAAh/hpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh+QQJCgAAACwAAAAAEAAQAAADMwi63P4wyklrE2MIOggZnAdOmGYJRbExwroUmcG2LmDEwnHQLVsYOd2mBzkYDAdKa+dIAAAh+QQJCgAAACwAAAAAEAAQAAADNAi63P5OjCEgG4QMu7DmikRxQlFUYDEZIGBMRVsaqHwctXXf7WEYB4Ag1xjihkMZsiUkKhIAIfkECQoAAAAsAAAAABAAEAAAAzYIujIjK8pByJDMlFYvBoVjHA70GU7xSUJhmKtwHPAKzLO9HMaoKwJZ7Rf8AYPDDzKpZBqfvwQAIfkECQoAAAAsAAAAABAAEAAAAzMIumIlK8oyhpHsnFZfhYumCYUhDAQxRIdhHBGqRoKw0R8DYlJd8z0fMDgsGo/IpHI5TAAAIfkECQoAAAAsAAAAABAAEAAAAzIIunInK0rnZBTwGPNMgQwmdsNgXGJUlIWEuR5oWUIpz8pAEAMe6TwfwyYsGo/IpFKSAAAh+QQJCgAAACwAAAAAEAAQAAADMwi6IMKQORfjdOe82p4wGccc4CEuQradylesojEMBgsUc2G7sDX3lQGBMLAJibufbSlKAAAh+QQJCgAAACwAAAAAEAAQAAADMgi63P7wCRHZnFVdmgHu2nFwlWCI3WGc3TSWhUFGxTAUkGCbtgENBMJAEJsxgMLWzpEAACH5BAkKAAAALAAAAAAQABAAAAMyCLrc/jDKSatlQtScKdceCAjDII7HcQ4EMTCpyrCuUBjCYRgHVtqlAiB1YhiCnlsRkAAAOwAAAAAAAAAAAA==);
39 | }
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | KeePassPHP-UI
2 | =============
3 |
4 | A nice user interface for [KeePassPHP](//github.com/shkdee/KeePassPHP), built with jQuery (3.x) and Bootstrap (3.3.7), available in several languages (French, English and partly German so far). KeePassPHP can store and read KeePass password databases, so that you can access your passwords from any device, simply through a web browser. It never stores your text password - in agreement with the KeePass philosophy - so your password database is always kept encrypted, and only you can access it.
5 |
6 | See [KeePassPHP](//github.com/shkdee/KeePassPHP) project for more information.
7 |
8 |
9 | How to use it?
10 | -------------------
11 |
12 | The `keepassphp` directory from the [KeePassPHP](//github.com/shkdee/KeePassPHP) project must be added next to the others. If you want to put it somewhere else, just change the value of `KEEPASSPHP_LOCATION` in `keepassphpui/main.php`. And voilà!
13 |
14 | You will also find some more configuration options in `keepassphpui/main.php` that you can change if you have specific needs:
15 | * `KEEPASSPHP_DEBUG`: whether you want to activate KeePassPHP debug mode. It just temporarily logs execution data, useful when developing.
16 | * `MAX_FILE_SIZE`: the maximum size for kdbx files uploaded to KeePassPHP. The default value is roughly 1 Mb; you may want to change it if you expect heavy databases.
17 |
18 |
19 | Web server configuration
20 | -------------------
21 |
22 | The directories `icons`, `css` and `js` contain only web resources, so you may want to configure your web server to cache those files and serve them statically. Beside these directories, the web server should only be able to serve `index.php` and `ajaxopen.php`; you can deny the access to other files through the web server.
23 |
24 |
25 | Translation
26 | -------------------
27 |
28 | KeePassPHP-UI can be easily translated: create a new file in `keepassphpui/lang/` containing an array of translated strings (see `keepassphpui/lang/fr.php` and `keepassphpui/lang/en.php` for, respectively, French and English versions). Then, include this file from `keepassphpui/main.php` and add a line to have the UI register the language.
29 |
--------------------------------------------------------------------------------
/keepassphpui/main.php:
--------------------------------------------------------------------------------
1 | = 1M in case our method fails.
12 | // That's already a quite big size for a password database.
13 | $post_max_size = parse_ini_size(ini_get('post_max_size'), 8388608);
14 | $upload_max_filesize = parse_ini_size(ini_get('upload_max_filesize'), 2097152);
15 | // If $post_max_size is 0, it should actually be ignored.
16 | define("MAX_FILE_SIZE", max(1048576, $post_max_size === 0
17 | ? $upload_max_filesize : min($post_max_size, $upload_max_filesize)));
18 |
19 | /**
20 | * Parses the value of a configuration directive containing a size.
21 | * Returns the result as an integer, defaulting to $default if the
22 | * argument $ini_size is empty.
23 | */
24 | function parse_ini_size($ini_size, $default)
25 | {
26 | if(empty($ini_size) || $ini_size === false)
27 | return $default;
28 | switch(substr($ini_size, -1))
29 | {
30 | case 'M': case 'm': return (int)$ini_size * 1048576;
31 | case 'K': case 'k': return (int)$ini_size * 1024;
32 | case 'G': case 'g': return (int)$ini_size * 1073741824;
33 | case 'B': case 'b': return parse_ini_size(substr($ini_size, 0, -1),
34 | $default);
35 | default: return intval($ini_size);
36 | }
37 | }
38 |
39 |
40 | // We'll need this
41 | require_once "kphpui.php";
42 |
43 |
44 | /*************************
45 | * Languages declaration *
46 | *************************/
47 |
48 | // register german
49 | require_once "lang/de.php";
50 | KPHPUI::registerLang("de", $lang_de);
51 |
52 | // register english
53 | require_once "lang/en.php";
54 | KPHPUI::registerLang("en", $lang_en);
55 |
56 | // register french
57 | require_once "lang/fr.php";
58 | KPHPUI::registerLang("fr", $lang_fr);
59 |
60 |
61 | /**********************
62 | * language selection *
63 | **********************/
64 |
65 | // select the language, depending on the query string or HTTP header
66 | if(!isset($_GET["l"]) || !KPHPUI::setLang($_GET["l"]))
67 | KPHPUI::setLang(KPHPUI::getPreferredLanguage($_SERVER["HTTP_ACCEPT_LANGUAGE"]));
68 |
69 | ?>
70 |
--------------------------------------------------------------------------------
/keepassphpui/lang/en.php:
--------------------------------------------------------------------------------
1 | KeePass in PHP. It can store and read KeePass password databases, so that you can access your passwords on any device, just through a Web browser.",
31 | /* LANG_MODAL_ERROR_TITLE */ "Err, this is embarassing.",
32 | /* LANG_MODAL_ERROR_TEXT */ "An internal error occurred. KeePassPHP generated the following information:",
33 | /* LANG_MODAL_CLOSE */ "Close",
34 | /* LANG_MODAL_SUCCESS_TITLE */ "Password database stored!",
35 | /* LANG_MODAL_SUCCESS_TEXT */ "The password database has been successfully added. You can now read it with the ID and password(s) you gave to store it.",
36 | /* LANG_FORM_ERROR_EMPTY */ "That's empty!",
37 | /* LANG_FORM_ERROR_NOOTHERKEY */ "If the password is not used as a database key, you need to give one.",
38 | /* LANG_FORM_ERROR_NOSUCHID */ "The given ID does not exist.",
39 | /* LANG_FORM_ERROR_PADPWD */ "The given password seems incorrect.",
40 | /* LANG_FORM_ERROR_FILETOOBIG */ "The file is too big.",
41 | /* LANG_FORM_ERROR_FILEERROR */ "An error occurred when uploading the file.",
42 | /* LANG_FORM_ERROR_IDEXISTS */ "This ID already exists, and the given password is not this ID's password.",
43 | /* LANG_SEE_PWD_DOES_NOT_EXIST */ "Error",
44 | /* LANG_SEE_ENTRY_TITLE */ "Title",
45 | /* LANG_SEE_ENTRY_URL */ "URL",
46 | /* LANG_SEE_ENTRY_USERNAME */ "Username",
47 | /* LANG_SEE_ENTRY_PASSWORD */ "Password",
48 | /* LANG_SEE_ENTRY_LOAD */ "Show",
49 | /* LANG_TAB_CLOSE_TOOLTIP */ "Close the opened database",
50 | /* LANG_MODAL_TIMEOUT_TITLE */ "It's taking a long time...",
51 | /* LANG_MODAL_TIMEOUT_TEXT */ "The server is taking a long time to answer. It may mean that the password database is hard to decrypt, in which case everything is normal and you should just wait a bit more. But it may also be due to a poor connection between you and the server. You can either try again and wait longer, or cancel.",
52 | /* LANG_MODAL_TIMEOUT_TRYAGAIN */ "Try again",
53 | /* LANG_MODAL_TIMEOUT_CANCEL */ "Cancel",
54 | /* LANG_UNSECURE_TITLE */ "Untrusted connection!",
55 | /* LANG_UNSECURE_TEXT */ "It seems that you are not accessing this page through a trusted connection. If you are not absolutely confident in the confidentiality of your connection, do not use KeePassPHP now! Instead, try to access it through HTTPS.",
56 | /* LANG_INTERNAL_ERROR */ "An internal error occurred."
57 | );
58 | ?>
59 |
--------------------------------------------------------------------------------
/keepassphpui/lang/de.php:
--------------------------------------------------------------------------------
1 | KeePass in PHP. Es kann KeePass Passwort-Datenbanken lesen und speichern, um diese auf jedem Gerät mit Webbrowser zugänglich zu machen.",
31 | /* LANG_MODAL_ERROR_TITLE */ "Fehler...",
32 | /* LANG_MODAL_ERROR_TEXT */ "Ein interner Fehler ist aufgetreten. KeePassPHP generiert dazu Folgendes:",
33 | /* LANG_MODAL_CLOSE */ "Schließen",
34 | /* LANG_MODAL_SUCCESS_TITLE */ "Passwort-Datenbank gespeichert!",
35 | /* LANG_MODAL_SUCCESS_TEXT */ "Die Passwort-Datenbank wurde erfolgreich hinzugefügt. Sie kann jetzt mittels ID und Passwort ausgelesen werden.",
36 | /* LANG_FORM_ERROR_EMPTY */ "Leerer Eintrag!",
37 | /* LANG_FORM_ERROR_NOOTHERKEY */ "Wenn das Passwort nicht als Datenbank-Schlüssel genutzt wird, muss einer vergeben werden.",
38 | /* LANG_FORM_ERROR_NOSUCHID */ "Diese ID existiert nicht",
39 | /* LANG_FORM_ERROR_PADPWD */ "Falsches Passwort.",
40 | /* LANG_FORM_ERROR_FILETOOBIG */ "Die Datei ist zu groß.",
41 | /* LANG_FORM_ERROR_FILEERROR */ "Beim Hochladen trat ein Fehler auf auf.",
42 | /* LANG_FORM_ERROR_IDEXISTS */ "Diese ID existiert bereits, und das eingegebene Passwort passt nicht dazu.",
43 | /* LANG_SEE_PWD_DOES_NOT_EXIST */ "Fehler",
44 | /* LANG_SEE_ENTRY_TITLE */ "Titel",
45 | /* LANG_SEE_ENTRY_URL */ "URL",
46 | /* LANG_SEE_ENTRY_USERNAME */ "Nutzername",
47 | /* LANG_SEE_ENTRY_PASSWORD */ "Passwort",
48 | /* LANG_SEE_ENTRY_LOAD */ "Anzeigen",
49 | /* LANG_TAB_CLOSE_TOOLTIP */ "Schließe geöffnete Datenbank",
50 | /* LANG_MODAL_TIMEOUT_TITLE */ "It's taking a long time...",
51 | /* LANG_MODAL_TIMEOUT_TEXT */ "The server is taking a long time to answer. It may mean that the password database is hard to decrypt, in which case everything is normal and you should just wait a bit more. But it may also be due to a poor connection between you and the server. You can either try again and wait longer, or cancel.",
52 | /* LANG_MODAL_TIMEOUT_TRYAGAIN */ "Versuche erneut",
53 | /* LANG_MODAL_TIMEOUT_CANCEL */ "Cancel",
54 | /* LANG_UNSECURE_TITLE */ "Untrusted connection!",
55 | /* LANG_UNSECURE_TEXT */ "It seems that you are not accessing this page through a trusted connection. If you are not absolutely confident in the confidentiality of your connection, do not use KeePassPHP now! Instead, try to access it through HTTPS.",
56 | /* LANG_INTERNAL_ERROR */ "An internal error occurred."
57 | );
58 | ?>
59 |
--------------------------------------------------------------------------------
/keepassphpui/lang/fr.php:
--------------------------------------------------------------------------------
1 | KeePass en PHP. Il peut stocker et lire votre base de données de mots de passe de KeePass, pour vous permettre d'y accéder depuis n'importe quel appareil relié à Internet.",
31 | /* LANG_MODAL_ERROR_TITLE */ "Hm, c'est embarassant...",
32 | /* LANG_MODAL_ERROR_TEXT */ "Une erreur inattendue s'est produite. KeePassPHP a généré les informations suivantes :",
33 | /* LANG_MODAL_CLOSE */ "Fermer",
34 | /* LANG_MODAL_SUCCESS_TITLE */ "Base de donnée ajoutée !",
35 | /* LANG_MODAL_SUCCESS_TEXT */ "La base de donnée a été ajoutée avec succès. Vous pouvez maintenant y accéder avec l'ID et le(s) mot(s) de passe que vous avez renseignés pour l'enregistrer.",
36 | /* LANG_FORM_ERROR_EMPTY */ "C'est vide !",
37 | /* LANG_FORM_ERROR_NOOTHERKEY */ "Si le mot de passe n'est pas utilisé comme clé de la base de données, il en faut en donner une.",
38 | /* LANG_FORM_ERROR_NOSUCHID */ "L'ID utilisé n'existe pas.",
39 | /* LANG_FORM_ERROR_PADPWD */ "Le mot de passe utilisé ne semble pas bon.",
40 | /* LANG_FORM_ERROR_FILETOOBIG */ "Le fichier est trop gros.",
41 | /* LANG_FORM_ERROR_FILEERROR */ "Une erreur est survenue lors du téléchargement du fichier.",
42 | /* LANG_FORM_ERROR_IDEXISTS */ "Cet ID existe déjà, et le mot de passe utilisé ne correspond pas.",
43 | /* LANG_SEE_PWD_DOES_NOT_EXIST */ "Erreur",
44 | /* LANG_SEE_ENTRY_TITLE */ "Titre",
45 | /* LANG_SEE_ENTRY_URL */ "URL",
46 | /* LANG_SEE_ENTRY_USERNAME */ "Nom d'utilisateur",
47 | /* LANG_SEE_ENTRY_PASSWORD */ "Mot de passe",
48 | /* LANG_SEE_ENTRY_LOAD */ "Voir",
49 | /* LANG_TAB_CLOSE_TOOLTIP */ "Fermer la base de données ouverte",
50 | /* LANG_MODAL_TIMEOUT_TITLE */ "C'est long...",
51 | /* LANG_MODAL_TIMEOUT_TEXT */ "Le serveur semble mettre du temps à répondre. Cela peut arriver si la base de données de mots de passe est dure à déchiffrer, dans quel cas c'est tout à fait normal et vous devriez juste attendre encore. Mais cela peut aussi signifier que la connexion entre vous et le serveur fonctionne mal. Vous pouvez ré-essayer en attendant plus longtemps, ou annuler.",
52 | /* LANG_MODAL_TIMEOUT_TRYAGAIN */ "Ré-essayer",
53 | /* LANG_MODAL_TIMEOUT_CANCEL */ "Annuler",
54 | /* LANG_UNSECURE_TITLE */ "Connexion non sécurisée !",
55 | /* LANG_UNSECURE_TEXT */ "Il semble que vous n'êtes pas en train d'accéder à cette page par une connexion sécurisée. Si vous n'êtes pas absolument sûrs de la confidentialité de votre connexion, n'utilisez pas KeePassPHP maintenant ! Essayez plutôt d'y accéder par HTTPS.",
56 | /* LANG_INTERNAL_ERROR */ "Une erreur interne est survenue."
57 | );
58 | ?>
59 |
--------------------------------------------------------------------------------
/ajaxopen.php:
--------------------------------------------------------------------------------
1 | status = self::FAIL;
36 | $this->result = null;
37 | $this->debug = null;
38 | }
39 |
40 | /**
41 | * Sets the 'status' and 'result' fields of the answer.
42 | */
43 | public function set($status, $result = "")
44 | {
45 | $this->status = $status;
46 | $this->result = $result;
47 | }
48 |
49 | /**
50 | * Sets the 'debug' field of the answer.
51 | */
52 | public function setDebug($debug)
53 | {
54 | $this->debug = $debug;
55 | }
56 |
57 | /**
58 | * Sends the answer. You should not output something anymore after
59 | * calling this method.
60 | */
61 | public function send()
62 | {
63 | header('Content-Type: application/json; charset=utf-8');
64 | $out = array("status" => $this->status, "result" => $this->result);
65 | if(!empty($this->debug))
66 | $out["debug"] = $this->debug;
67 | echo json_encode($out);
68 | }
69 | }
70 |
71 | function visitDatabase(\KeePassPHP\Database $db)
72 | {
73 | $s = '