outdated password vault using deprecated php versions
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 

71 lines
3.4 KiB

<?php
// ----------------------------------------------------------------------------------------
// *** Simplevault Settings
// ----------------------------------------------------------------------------------------
// date format string as used by php function 'date'
$dateformat = 'd.m.y G:i'; // "09.09.07 15:11"
date_default_timezone_set('Europe/Berlin');
// select the template you want simplevault to use
// mobile template is automatically applied to mobile devices
// available templates are: tpl-std, tpl-bootstrap, tpl-nicer
$defaulttemplate = 'tpl-bootstrap';
// Checks if the pass phrase that was entered to encode an entry has already
// been used to encode other entries. Depending on the usage scenario a re-used
// pass phrase may be wanted or unwanted.
// 1 to enable check, 0 to disable check.
$checkexistingpf = 1;
// When an incorrect passphrase is entered, hang the script for this many seconds.
// A small delay here greatly reduces the effectiveness of a brute force attack
$wrongpfdelay = 2;
// If the visitor enters the wrong passphrase too many times, an error will be logged
// in the webserver's logfile about the failure and the visitor will be sternly warned.
// Set this to 0 to disable this feature entirely.
$wrongpfalertthreshold = 10;
// Restictions to be applied for a pass phrase when an entry is saved.
// 0: No restrictions. Any entry can be saved with any pass phrase
// a: An entry can only be saved with a pass phrase that has been used to encode
// all other entries. All entries will have the same pass phrase.
// c: An entry can only be saved with a pass phrase that has been used to encode
// all other entries of the same category. All entries in a category will have the same
// pass phrase.
$forcesamepf = 'c';
// Place where the vault file is stored.
//
// IMPORTANT: This should be a location that is not web readable.
//
// If you are using shared hosting, ensure that the subdirectory you store the vault in is
// private or password protected using your web host's control panel.
$vaultfname = "/var/lib/simplevault/simplevault.txt"; // good location for a not web readable vault file
//$vaultfname = "vault/simplevault.txt"; // possible location for a web readable vault file (this is less secure)
// enable this setting (set to 1), when vault-files should automatically be created if not existent
// if set to 0 (zero), simplevault will stop with an error when the vaultfile is missing
$create_missing_vaultfiles = 1;
// enable multi-user environment
// you need to set up "basic authentication" with you webserver (see link below) and modify the setting $multiuser_vaultfname to your needs
// https://wiki.selfhtml.org/wiki/Webserver/htaccess/Passwortschutz
$multiuser = 0;
// path to user specific vault-files
// use the placeholder [#Username] to distinguish vaultfiles between users, [#Username] will be replaced with the name the user authenticates
// e.g.
// "/var/lib/simplevault/[#Username]/simplevault.txt"
// "/var/lib/simplevault/simplevault-[#Username].txt"
$multiuser_vaultfname = "/var/lib/simplevault/simplevault-[#Username].txt";
// Suppress warnings about unsecure non-SSL HTTP connections. Normally SimpleVault will
// put a warning up if the connection is not encrypted. You can silence this warning by
// setting this field to "1"
$suppresshttpswarning = "0";
// bootstrap, mobile, std, tpl-nicer
// $defaulttemplate = 'tpl-bootstrap';
?>