Subversion Repositories ALCASAR

Rev

Rev 2883 | Rev 2886 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 2883 Rev 2884
Line 1... Line 1...
1
#!/bin/sh
1
#!/bin/sh
2
#
2
#
3
# $Id: alcasar-conup.sh 2883 2020-11-15 21:14:52Z rexy $
3
# $Id: alcasar-conup.sh 2884 2020-11-16 22:12:53Z rexy $
4
#
4
#
5
# alcasar-conup.sh
5
# alcasar-conup.sh
6
# by Rexy
6
# by Rexy
7
# This script is distributed under the Gnu General Public License (GPL)
7
# This script is distributed under the Gnu General Public License (GPL)
8
 
8
 
Line 56... Line 56...
56
ipset add $set_filter      $FRAMED_IP_ADDRESS
56
ipset add $set_filter      $FRAMED_IP_ADDRESS
57
ipset add $set_filterProto $FRAMED_IP_ADDRESS
57
ipset add $set_filterProto $FRAMED_IP_ADDRESS
58
 
58
 
59
# If status page isn't required, add user_IP with flag PERM in /tmp/current_users.txt
59
# If status page isn't required, add user_IP with flag PERM in /tmp/current_users.txt
60
if [ "$statusPageRequired" == '2' ]; then	# Status page is not required
60
if [ "$statusPageRequired" == '2' ]; then	# Status page is not required
-
 
61
	current_users_file="/tmp/current_users.txt"
61
	if [ ! -e /tmp/current_users.txt ]; then
62
	if [ ! -e $current_users_file ]; then
62
		touch /tmp/current_users.txt && chown apache:apache /tmp/current_users.txt
63
		touch $current_users_file && chown root:apache $current_users_file && chmod 660 $current_users_file
63
	fi
64
    fi
64
	echo "$FRAMED_IP_ADDRESS:PERM" >> /tmp/current_users.txt
65
	echo "$FRAMED_IP_ADDRESS:PERM" >> $current_users_file
65
fi
66
fi
66
 
67
 
67
#############################
68
#############################
68
## Debug : show all the coova parse variables (+ $set_filter + $set_filterProto).
69
## Debug : show all the coova parse variables (+ $set_filter + $set_filterProto).
69
## see "/src/chilli.c" for the complete list of parse variables
70
## see "/src/chilli.c" for the complete list of parse variables