/scripts/alcasar-iptables.sh |
---|
1,4 → 1,4 |
#!/bin/sh |
#!/bin/bash |
# $Id$ |
# Script de mise en place des regles du parefeu d'Alcasar (mode normal) |
# This script write the netfilter rules for ALCASAR |
/scripts/alcasar-conup.sh |
---|
0,0 → 1,15 |
#!/bin/sh |
# alcasar-conup.sh |
# by Rexy |
# This script is distributed under the Gnu General Public License (GPL) |
# This script is launched after each successfull login |
# Ce script est lancé à chaque connexion d'usager (authentification réussi) |
# Debug : show all the coova parse variables. There are declared in /src/chilli.c |
echo "parse coova variables" > /tmp/debug-conup.txt |
for i in LAYER3 DEV NET MASK ADDR USER_NAME NAS_IP_ADDRESS SERVICE_TYPE FRAMED_IP_ADDRESS FILTER_ID STATE CLASS CUI SESSION_TIMEOUT IDLE_TIMEOUT CALLING_STATION_ID CALLED_STATION_ID NAS_ID NAS_PORT_TYPE ACCT_SESSION_ID ACCT_INTERIM_INTERVAL WISPR_LOCATION_ID WISPR_LOCATION_NAME WISPR_BANDWIDTH_MAX_UP WISPR_BANDWIDTH_MAX_DOWN WISPR-SESSION_TERMINATE_TIME CHILLISPOT_MAX_INPUT_OCTETS CHILLISPOT_MAX_OUTPUT_OCTETS CHILLISPOT_MAX_TOTAL_OCTETS INPUT_OCTETS OUTPUT_OCTETS SESSION_TIME IDLE_TIME LOCATION OLD_LOCATION TERMINATE_CAUSE |
do |
echo "$i : ${!i}" >> /tmp/debug-conup.txt |
done |
Property changes: |
Added: svn:eol-style |
+native |
\ No newline at end of property |
Added: svn:executable |
+* |
\ No newline at end of property |
/scripts/alcasar-urpmi.sh |
---|
1,4 → 1,4 |
#!/bin/sh |
#!/bin/bash |
# $Id$ |
# alcasar-urpmi.sh |
/scripts/alcasar-file-clean.sh |
---|
1,4 → 1,4 |
#/bin/bash |
#!/bin/bash |
# alcasar-file-clean.sh |
# by Rexy |
/web/status.php |
---|
209,12 → 209,12 |
$connection_history.= "<ul>"; |
while(($row = @da_sql_fetch_array($res,$config))){ |
$connected = ""; |
$start_conn = date_create($row[acctstarttime]); |
$start_conn = date_create($row['acctstarttime']); |
$connection_history.="<li>".date_format($start_conn, 'd M Y - H:i:s')." - ("; |
if ($row[acctstoptime] == "") { |
if ($row['acctstoptime'] == "") { |
$connected = $l_connected; |
}else{ |
$connected = secondsToDuration($row[acctsessiontime]); |
$connected = secondsToDuration($row['acctsessiontime']); |
} |
$connection_history.= "$connected)</li>"; |
// $connection_history.="<li>".date_format($start_conn, 'd M Y - H:i:s')." - (".secondsToDuration($row[acctsessiontime]).") $connected</li>"; |
231,7 → 231,7 |
if ($res_2){ |
while(($row_2 = @da_sql_fetch_array($res_2,$config))){ |
$a_connected = 1; |
if ($row_2[acctstoptime] == "") $a_connected = $a_connected + 1; |
if ($row_2['acctstoptime'] == "") $a_connected = $a_connected + 1; |
} |
if ($a_connected > 1){ |
$a_connection = $l_a_connection." ".$a_connected." ".$l_a_connection_time; |