Skip to content

Commit

Permalink
Merge pull request #439 from nodogsplash/4.2.1beta
Browse files Browse the repository at this point in the history
Create fas-hid example script and add missing gateway address.
  • Loading branch information
bluewavenet committed Sep 25, 2019
2 parents 1f37745 + 8694cca commit 21ab5f3
Show file tree
Hide file tree
Showing 3 changed files with 440 additions and 7 deletions.
7 changes: 7 additions & 0 deletions forward_authentication_service/fas-aes/fas-aes.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@

} else if (isset($_GET["status"])) {
$gatewayname=$_GET["gatewayname"];
$gatewayaddress=$_GET["gatewayaddress"];
$originurl="";
$loggedin=true;
} else {
Expand Down Expand Up @@ -162,6 +163,7 @@
echo "<p><big-red>You are already logged in and have access to the Internet.</big-red></p>";
echo "<hr>";
echo "<p><italic-black>You can use your Browser, Email and other network Apps as you normally would.</italic-black></p>";
read_terms($me,$gatewayname);
footer();
exit(0);
}
Expand Down Expand Up @@ -214,6 +216,11 @@
# By default $logpath is null so the logfile will be written to the folder this script resides in.

$logpath="";

if (is_writable("/tmp")) {
$logpath="/tmp/";
}

$log=date('d/m/Y H:i:s', $_SERVER['REQUEST_TIME'])." Username=".$fullname." emailaddress=".$email." macaddress=".$clientmac."\n";

$gwname=str_replace(" ", "_", trim($gatewayname));
Expand Down

0 comments on commit 21ab5f3

Please sign in to comment.