Revision 29a272f7
Added by Selman ULUG over 7 years ago
src/etc/inc/captiveportal.inc | ||
---|---|---|
1115 | 1115 |
|
1116 | 1116 |
/* find entry */ |
1117 | 1117 |
if (!empty($result)) { |
1118 |
captiveportal_write_db("DELETE FROM captiveportal WHERE sessionid = '{$sessionid}'"); |
|
1119 | 1118 |
|
1120 | 1119 |
foreach ($result as $cpentry) { |
1121 | 1120 |
if (empty($cpentry[12])) { |
... | ... | |
1124 | 1123 |
captiveportal_disconnect($cpentry, $radiusservers[$cpentry[12]], $term_cause); |
1125 | 1124 |
captiveportal_logportalauth($cpentry[4], $cpentry[3], $cpentry[2], "DISCONNECT"); |
1126 | 1125 |
} |
1126 |
captiveportal_write_db("DELETE FROM captiveportal WHERE sessionid = '{$sessionid}'"); |
|
1127 | 1127 |
unset($result); |
1128 | 1128 |
} |
1129 | 1129 |
} |
Also available in: Unified diff
fix #8441;
ipfw rules must be deleted before cp record delete.