]> git.pld-linux.org Git - packages/w3pw.git/commitdiff
do not rename the files. direct to main if session started
authorElan Ruusamäe <glen@delfi.ee>
Mon, 17 Nov 2014 18:49:44 +0000 (20:49 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Mon, 17 Nov 2014 18:49:44 +0000 (20:49 +0200)
authpassword.patch
w3pw.spec

index 9f8d19bf46b089ee6c8172fb3c0a0899ebd40830..4648a3c0a021e31bac351aff6a3024538d7fb4e7 100644 (file)
@@ -1,5 +1,5 @@
 --- ./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 
index 3eb77b486cf34a9db46f2e965d28ffb57600d319..85a72e68ebeffba571af8e1b5419dee37333f664 100644 (file)
--- a/w3pw.spec
+++ b/w3pw.spec
@@ -3,7 +3,7 @@
 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
@@ -54,8 +54,6 @@ Features:
 
 %prep
 %setup -q
-mv index.php login.php
-mv main.php index.php
 %patch0 -p1
 
 # simple sql to create and load db schema
This page took 0.110508 seconds and 4 git commands to generate.