This commit is contained in:
szabomarton
2024-09-16 14:34:11 +02:00
commit dc5ff7ddad
12 changed files with 268 additions and 0 deletions

8
20240912/.idea/.gitignore generated vendored Normal file
View File

@@ -0,0 +1,8 @@
# Default ignored files
/shelf/
/workspace.xml
# Editor-based HTTP Client requests
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml

8
20240912/.idea/20240912.iml generated Normal file
View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

8
20240912/.idea/modules.xml generated Normal file
View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/20240912.iml" filepath="$PROJECT_DIR$/.idea/20240912.iml" />
</modules>
</component>
</project>

19
20240912/.idea/php.xml generated Normal file
View File

@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="MessDetectorOptionsConfiguration">
<option name="transferred" value="true" />
</component>
<component name="PHPCSFixerOptionsConfiguration">
<option name="transferred" value="true" />
</component>
<component name="PHPCodeSnifferOptionsConfiguration">
<option name="highlightLevel" value="WARNING" />
<option name="transferred" value="true" />
</component>
<component name="PhpStanOptionsConfiguration">
<option name="transferred" value="true" />
</component>
<component name="PsalmOptionsConfiguration">
<option name="transferred" value="true" />
</component>
</project>

51
20240912/index.php Normal file
View File

@@ -0,0 +1,51 @@
<?php
$method = "GET";
$islogin = false;
if(isset($_GET["kod"])){
switch($_GET["kod"]){
case "1111":
case "2222":
case "3333":
case "4444": $islogin = true;
break;
default:
$islogin = false;
break;
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<?php
if (!$islogin) {
?>
<form action="" method="<?php echo $method; ?>">
<input type="text" name="nev">
<input type="number" name="kod" min="1000" max="9999">
<input type="submit" value="belepes">
</form>
<?php
}
else
echo "<h1>CSAO".$_GET["nev"]."</h1>";
echo "<a href='/PHP_digivagyok/20240912/index.php'>Kijelentkezés</a>";
?>
</body>
</html>