diff --git a/hs20/server/hs20-osu-server.txt b/hs20/server/hs20-osu-server.txt
index 9c63da24b..70f13135e 100644
--- a/hs20/server/hs20-osu-server.txt
+++ b/hs20/server/hs20-osu-server.txt
@@ -95,6 +95,12 @@ sqlite3 /home/user/hs20-server/AS/DB/eap_user.db < sql-example.txt
# the examples as-is for initial testing).
cp -r www /home/user/hs20-server
+# Create /home/user/hs20-server/terms-and-conditions file (HTML segment to be
+# inserted within the BODY section of the page).
+cat > /home/user/hs20-server/terms-and-conditions <
Failed to update user account.
"; + } else { + $res = $db->prepare("DELETE FROM pending_tc WHERE mac_addr=?"); + $res->execute(array($addr)); + + echo "Terms and conditions were accepted.
"; + } +} + +?> + + + diff --git a/hs20/server/www/users.php b/hs20/server/www/users.php index c340a33e7..c2653727c 100644 --- a/hs20/server/www/users.php +++ b/hs20/server/www/users.php @@ -107,6 +107,10 @@ if ($cmd == "set-osu-cred" && $id > 0) { $db->exec("UPDATE users SET osu_user='$osu_user', osu_password='$osu_password' WHERE rowid=$id"); } +if ($cmd == 'clear-t-c' && $id > 0) { + $db->exec("UPDATE users SET t_c_timestamp=NULL WHERE rowid=$id"); +} + $dump = 0; if ($id > 0) { @@ -234,6 +238,13 @@ echo "password: \n"; echo "\n"; echo "\n"; +if (strlen($row['t_c_timestamp']) > 0) { + echo "User | Realm | Remediation | Policy | Account type | Phase 2 method(s) | DevId\n"; +echo " | ||
---|---|---|---|---|---|---|---|---|
User | Realm | Remediation | Policy | Account type | Phase 2 method(s) | DevId | T&C\n"; $res = $db->query('SELECT rowid,* FROM users WHERE phase2=1'); foreach ($res as $row) { @@ -338,6 +349,7 @@ foreach ($res as $row) { break; } } + echo " | " . $row['t_c_timestamp']; echo "\n"; } echo " |