--- ./main.php 2014-11-16 14:53:38.235094774 +0200
-+++ ./index.php 2014-11-16 14:52:37.000000000 +0200
++++ ./main.php 2014-11-16 14:52:37.000000000 +0200
@@ -15,6 +15,20 @@
<?php
// don't report Database-Errors on Frontend
//error_reporting(E_ERROR);
?>
+--- w3pw-1.40/index.php 2014-11-17 20:42:31.565202759 +0200
++++ w3pw-1.40/index.php 2014-11-17 20:45:06.000000000 +0200
+@@ -1,4 +1,10 @@
+-<html>
++<?php
++session_start();
++if (!empty($_SESSION['logged_in'])) {
++ header("Location: main.php");
++ exit;
++}
++?><html>
+ <head>
+ <title>w3pw Login</title>
+ <?php
Summary: Web-based password wallet manager
Name: w3pw
Version: 1.40
-Release: 0.11
+Release: 0.14
License: GPL v2
Group: Applications/WWW
Source0: http://downloads.sourceforge.net/w3pw/%{name}-%{version}.tar.gz
%prep
%setup -q
-mv index.php login.php
-mv main.php index.php
%patch0 -p1
# simple sql to create and load db schema