Update of /cvsroot/leaf/src/config/webconf/var/webconf/lib
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv2638
Added Files:
passcheck.sh
Log Message:
Initial version
--- NEW FILE: passcheck.sh ---
#! /bin/sh
#
# Copyleft 2008 Erich Titl ([EMAIL PROTECTED])
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# for more details.
#
# $Id: passcheck.sh,v 1.1 2008/11/28 13:42:19 etitl Exp $
HTPASSWD=/var/webconf/www/.htpasswd
HTPASS_FLAG=/var/webconf/www/.htpasswd.flag
# this is to avoid endless loops
[ -f $HTPASS_FLAG ] && rm $HTPASS_FLAG && exit
if [ ! -s $HTPASSWD ]; then
touch $HTPASS_FLAG
else
passwd=`cat $HTPASSWD | cut -f2 -d:`
[ "$passwd" == "" ] && touch $HTPASS_FLAG
fi
[ -f $HTPASS_FLAG ] && echo '<META http-equiv="refresh"
content="0;URL=/wc-passwd.cgi">'
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
leaf-cvs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/leaf-cvs-commits