aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2015-05-06 18:01:02 -0300
committerRenato Botelho <garga@FreeBSD.org>2015-05-06 18:01:02 -0300
commit010c3de68456466e02ca8405e952bf4e774b9ac0 (patch)
treea223f3208daeb59b8b49ac7f3c1b7b758bedeeca /config
parentad53e9380b5d8d7d4ce95fba971472df93f3301b (diff)
downloadpfsense-packages-010c3de68456466e02ca8405e952bf4e774b9ac0.tar.gz
pfsense-packages-010c3de68456466e02ca8405e952bf4e774b9ac0.tar.bz2
pfsense-packages-010c3de68456466e02ca8405e952bf4e774b9ac0.zip
Remove unused file squid_cpauth.php
Diffstat (limited to 'config')
-rw-r--r--config/squid3/34/squid_cpauth.php24
1 files changed, 0 insertions, 24 deletions
diff --git a/config/squid3/34/squid_cpauth.php b/config/squid3/34/squid_cpauth.php
deleted file mode 100644
index 98be9946..00000000
--- a/config/squid3/34/squid_cpauth.php
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/usr/local/bin/php -q
-<?php
-
-$NONINTERACTIVE_SCRIPT = TRUE;
-
-$fp = fopen('php://stdin', 'r');
-while($args = split(" ",trim(fgets($fp, 4096)))){
- print captive_ip_to_username($args);
-}
-
-function captive_ip_to_username($args){
- $current_sessions = file("/var/db/captiveportal.db");
- foreach($current_sessions as $session){
- list($a, $b, $IP_Address, $Mac_Address, $Username) = explode(",", $session,5);
- #this test allow access if user's ip is listed on captive portal
- #args array has (ip, site, protocol and port) passed by squid helper
- #include a more complex test here to allow or deny access based on username returned
- # this script will not return username to squid logs
- if($IP_Address == $args[0]) return "OK\n";
- }
- return "ERR\n";
-}
-
-?> \ No newline at end of file