Ported network.lp

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2023-05-07 10:57:02 +02:00
parent 943bd93efa
commit 3b9a677a1f
6 changed files with 68 additions and 210 deletions

View File

@@ -27,6 +27,18 @@ function GET(name)
return mg.request_info.query_string:match(name.."=([^&]*)")
-- mg.get_var(mg.request_info.query_string, "REQUEST_URI")
end
-- Function checking if val is in tab
function in_array (val, tab)
for index, value in ipairs(tab) do
if value == val then
return true
end
end
return false
end
?>
<html lang="en">
<head>