Browse Source

cleanup & modification of tpl-std

* removed the templatevault, instead a new one is created on first start
* added display of username to tpl-std (corresponds to issue #4)
* removed obsolete css-file
* revamped Readme.md a bit
master
R.W 4 years ago
parent
commit
40fad73f10
  1. 42
      README.md
  2. 4
      index.php
  3. 4
      svconfig.php-dist
  4. 4
      tpl-bootstrap/footer.php
  5. 2
      tpl-mobile/entry.php
  6. 6
      tpl-mobile/incl-head.php
  7. 1
      tpl-nicer/css/style_0.1_min.css
  8. 2
      tpl-std/incl-head.php
  9. 24
      tpl-std/incl-titlebar.php
  10. 4
      vault/simplevault.txt

42
README → README.md

@ -1,4 +1,4 @@
SIMPLE VAULT - PASSWORD MANAGER
# SIMPLE VAULT - MULTI-USER PASSWORD MANAGER
SimpleVault is a web-based tool that allows you to manage passwords
or other secret information in a safe way. All secret information is
@ -6,45 +6,42 @@ encrypted using strong encryption algorithms. SimpleVault is particularly
useful if you want to share secret information within a working group
with trusted members.
The website of this Project can be found here: http://simplevault.sourceforge.net/
This project is kindly hosted by sourceforge.net: http://sourceforge.net/projects/simplevault
This fork adds the following features and improvements the original simplevault 1.9:
* added support for multi-user environments with additional environments using webservers basic authentication.
* Added the "nice theme": https://github.com/AndresBott/simplevault-nice-theme ( background based on http://subtlepatterns.com/black-leather/ )
The entire project is available under the terms of the Gnu Public License.
The original simplevault resides on https://github.com/ckujau/simplevault
The project is available under the terms of the GNU Public License v3 (GPL3).
INSTALLATION
## Prerequisites
* webserver with htaccess-support
* PHP5 or newer with the mcrypt library
Prerequisites are: PHP4 or PHP5 with the mcrypt library.
Download and unpack the SimpleVault package to the directory <install-dir>.
By default, /var/lib/simplevault/simplevault.txt is used as the vault file
## Installation
1) Download and unpack the SimpleVault package to the directory <install-dir>.
By default, **/var/lib/simplevault/simplevault.txt** is used as the vault file
where all encrypted and unencrypted data is stored. This file should be
readable and writeable by the web server.
NOTE: You must create the folder /var/lib/simplevault, and assign it permissions
NOTE: You must create the folder **/var/lib/simplevault**, and assign it permissions
so that your web server can read and write to that folder. If you are using
shared hosting and don't have direct access to the web server, you can change
the location of the vault file to "vault/simplevault.txt". Ensure that this
folder is not accessible from the internet!!
Several configuration options, including the path to the vault file, can
2) Several configuration options, including the path to the vault file, can
be overridden by editing svconfig.php. By default this file does not exist
but a sample configuration file exists in svconfig.php-dist.
That's it. Go to <your-host>/<install-dir>/index.php and start creating
3) That's it. Go to <your-host>/<install-dir>/index.php and start creating
entries.
A sample vault file can be found in vault/simplevault.txt. This vault file
by default contains 2 categories and 4 entries for demonstration purposes.
All entries are encrypted with the pass phrase 'toto'. You can delete the
entries interactively, or by emptying the vault file.
SECURITY CONSIDERATIONS
## SECURITY CONSIDERATIONS
1) Always use a strong passphrase.
2) Do **not** use simplevault on unencrypted connections.
2) Ensure that your vault file is NOT accessible from the internet. If you
2) Ensure that your vault file is **not** accessible from the internet. If you
are installing simplevault on your own server, put the simplevault.txt file
in /var/lib/simplevault so that it is not accessible on the internet. If
you are using shared hosting, make sure the "vault" subdirectory is not
@ -52,5 +49,4 @@ accessible from the internet by using .htaccess files, or by making the
directory private or password protected using your web host's control panel.
(c) Rolf Brugger, Oct 2007
(c) Rolf Brugger, Oct 2007 & Rene Wagner, Oct 2017

4
index.php

@ -9,6 +9,8 @@
# Email: mail at rolfb dot ch
#
# Versions - History:
# 2.0 Oct 17 -
#
# 1.8 Jan 12 - Mobile Template: framework iui replaced by jQuery Mobile
# - Mobile Template: can now also create, edit and delete entries.
#
@ -78,7 +80,7 @@ $forcesamepf = '0';
$wrongpfdelay = '2';
$wrongpfalertthreshold = '10';
$vaultfname = "/var/lib/simplevault/simplevault.txt";
$create_missing_vaultfiles = 0;
$create_missing_vaultfiles = 1;
$multiuser = 0;
$multiuser_vaultfname = "/var/lib/simplevault/simplevault-[#Username].txt";
$defaulttemplate = 'tpl-std';

4
svconfig.php-dist

@ -50,12 +50,12 @@ $vaultfname = "/var/lib/simplevault/simplevault.txt"; // good location for a n
// 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 = 0;
$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 = 1;
$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

4
tpl-bootstrap/footer.php

@ -1,7 +1,3 @@
<?php if(count($records)==0){ ?>
<div class="footer"><span>Password manager powered by <a href="http://simplevault.sourceforge.net">SimpleVault</a></span></div>
<?php } ?>
</div>
</body>

2
tpl-mobile/entry.php

@ -9,7 +9,7 @@
<div data-role="header" data-theme="b">
<h1><?php echo escape_for_html($_POST["cat"]); ?></h1>
<a href="index.php" data-icon="home" data-iconpos="notext" data-direction="reverse" class="ui-btn-left jqm-home" data-ajax='false'>Home</a>
</div><!-- /header -->
</div>
<div data-role="content">
<?php include "$template/incl-titlebar.php"; ?>

6
tpl-mobile/incl-head.php

@ -1,9 +1,9 @@
<title><?= $pgtitle ?> - Simple Vault</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.css" />
<link rel="stylesheet" href="https://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.css" />
<link rel="stylesheet" href="tpl-mobile/tpl.css" />
<script type="text/javascript" src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
<script type="text/javascript" src="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.js"></script>
<script type="text/javascript" src="https://code.jquery.com/jquery-1.6.4.min.js"></script>
<script type="text/javascript" src="https://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.js"></script>
<!-- script type="text/javascript" src="sv.js"></script -->

1
tpl-nicer/css/style_0.1_min.css
File diff suppressed because it is too large
View File

2
tpl-std/incl-head.php

@ -1,7 +1,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="robots" content="noarchive,nofollow" />
<meta http-equiv="cache-control" content="no-cache" />
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
<title><?= $pgtitle ?> - Simple Vault</title>
<link href="tpl-std/tpl.css" rel="stylesheet" type="text/css" media="screen" />
<link rel="shortcut icon" href="img/favicon.ico" />

24
tpl-std/incl-titlebar.php

@ -4,7 +4,7 @@
<div class="topbar">
<div class="leftblock">
<span>
<a href="index.php"><b>Home</b></a> &nbsp; &nbsp;
<a href="index.php"><b>Home</b></a>&nbsp;&nbsp;
<input type="text" name="s" value="<?= htmlspecialchars ($filter) ?>" size ="7" id="inpfield" />
<input type="image" src="img/go-arr.png" name="image" title="run filter" />
</span>
@ -12,11 +12,23 @@
<div class="rightblock"><span><a href="?tools">Tools</a></span></div>
</div>
<div class="catbar">
<span>Categories: &nbsp;
<?php foreach ($cats as $currcat){ ?>
<a href="?cat=<?php echo urlencode($currcat); ?>"><?php echo escape_for_html($currcat); ?></a> <?php echo " (".svcountcatentries($currcat).")"; ?> &nbsp;
<?php } ?>
</span>
<div class="leftblock">
<span>Categories:&nbsp;
<?php foreach ($cats as $currcat){ ?>
<a href="?cat=<?php echo urlencode($currcat); ?>"><?php echo escape_for_html($currcat); ?></a> <?php echo " (".svcountcatentries($currcat).")"; ?>&nbsp;
<?php } ?>
</span>
</div>
<div class="rightblock">
<span>
<?php
if ( $multiuser == 1 && isset($_SERVER['PHP_AUTH_USER']) ) {
?>User:&nbsp;<b><?php echo $_SERVER['PHP_AUTH_USER'] ?></b>
<?php
}
?>
</span>
</div>
</div>
</form>

4
vault/simplevault.txt

@ -1,4 +0,0 @@
Home Servers host jupiter mysql user for PHP 1191191342 q%D8%01%95%D5Q%97%B2z%09%04%E6%9E%DFw%91%AD%26z%BE%5E%891%0D%FA%5E%B1%C4%87S%D5%D0%E7%0C%8A%F1%D3%EB%25%AC1%24%FA+%10%98YO%0E%C6%93%3B%02%B6%C2%AAJ%EDq%C37%90r%F2
Home Servers host saturn forum admin 1191224454 W%09%953%FD%FBV%9C%22%19%1ETL-%86%E0%C5%D0%8B5%FFd%CE%8E%AD%D5%D2%97%E9%3A0%F9nc%7F%04%8D%F3%BA%B3%7D%A3%00jk.%FC%E61%FF%F9CGf%7B%E8%8E%0Fg%15%C0%F8%BD%24VOo%9CR%E4%C4%A3%AB%8E%22%7Ce%D2%7C%FB4N%E0%7E%D8%B0%5DZ%2Ap%8B%91v%96%99%06
Work - Development host matterhorn ssh - user heinrich 1191224611 %97%EC%15%2A%85%7E%E3%0D%DA%088%FDr%5E%AF%BEq%B35+%04XF%17%80%C8%1Df%B1%C1%EA%3Bp%BFL%C2%E1g7%9E%DEy%C5%0D%D6%1Bld_%1D%257%F9%CD%CE%07%0D%1F%09%F8l%D1%D88
Work - Development host montblanc root 1191224537 2%B9%99%9Ao%3F%C8luN%D6u%A6%E3%22%E8%F2%90%7D%C5%9DTmG%96Wk%3E%8D%22%A3%E0VOo%9CR%E4%C4%A3%AB%8E%22%7Ce%D2%7C%FB4N%E0%7E%D8%B0%5DZ%2Ap%8B%91v%96%99%06
Loading…
Cancel
Save