mirror of
https://github.com/xevidos/codiad.git
synced 2024-11-13 07:11:14 +01:00
20 lines
No EOL
450 B
Text
Executable file
20 lines
No EOL
450 B
Text
Executable file
s:441:"<?php
|
|
session_start();
|
|
|
|
$secretPassword = "password";
|
|
|
|
// two access levels:
|
|
$deny = 'deny';
|
|
$allow = 'allow';
|
|
|
|
//set to lowest access level before testing:
|
|
$_SESSION["accessLevel"] = $deny;
|
|
|
|
//if the password is secret ...
|
|
if($_POST['userPassword'] === $secretPassword){
|
|
$_SESSION["accessLevel"] = $allow;
|
|
}
|
|
|
|
//return the access level
|
|
exit($_SESSION["accessLevel"])
|
|
?>"; |