From dc5ff7ddad6c3018d0f7e89571cb2b8d33453682 Mon Sep 17 00:00:00 2001 From: szabomarton Date: Mon, 16 Sep 2024 14:34:11 +0200 Subject: [PATCH] asd --- 20240905/index.php | 52 ++++++++++++++++++++++++++++++++ 20240909/index.php | 60 +++++++++++++++++++++++++++++++++++++ 20240912/.idea/.gitignore | 8 +++++ 20240912/.idea/20240912.iml | 8 +++++ 20240912/.idea/modules.xml | 8 +++++ 20240912/.idea/php.xml | 19 ++++++++++++ 20240912/index.php | 51 +++++++++++++++++++++++++++++++ 20240916/footer.php | 5 ++++ 20240916/index.php | 24 +++++++++++++++ 20240916/logged.php | 9 ++++++ 20240916/loginform.php | 6 ++++ 20240916/negy.php | 18 +++++++++++ 12 files changed, 268 insertions(+) create mode 100644 20240905/index.php create mode 100644 20240909/index.php create mode 100644 20240912/.idea/.gitignore create mode 100644 20240912/.idea/20240912.iml create mode 100644 20240912/.idea/modules.xml create mode 100644 20240912/.idea/php.xml create mode 100644 20240912/index.php create mode 100644 20240916/footer.php create mode 100644 20240916/index.php create mode 100644 20240916/logged.php create mode 100644 20240916/loginform.php create mode 100644 20240916/negy.php diff --git a/20240905/index.php b/20240905/index.php new file mode 100644 index 0000000..05a45ca --- /dev/null +++ b/20240905/index.php @@ -0,0 +1,52 @@ +"; + +echo $valtozo; +$valtozo = 12; +echo "\n $valtozo"; + +/* +//phpinfo(); + +$html = " + + + + PHP-s html + + + +

+ asd +

+ + + +"; + +echo $html; +*/ +?> + + + + + + + + <?php + $cim = "CÍM"; + echo $cim; + ?> + + + +

+ +

+ + \ No newline at end of file diff --git a/20240909/index.php b/20240909/index.php new file mode 100644 index 0000000..5c7c880 --- /dev/null +++ b/20240909/index.php @@ -0,0 +1,60 @@ +"; + +$tomb = array("hétfő", "kedd", "szerda", "csütörtök", "péntek", "szombat", "vasárnap"); + +var_dump($tomb); +echo "
"; +for ($i=0; $i < count($tomb); $i++) { + echo $tomb[$i]."
"; +} +$tomb[] = "PATAINAP"; + +echo "
"; + +for ($i=0; $i < count($tomb); $i++) { + echo $tomb[$i]."
"; +} + +//$tomb = array("asd"); + +/* +for ($i=0; $i < count($tomb); $i++) { + echo $tomb[$i]."
"; +} + */ + +echo "Last element: " . $tomb[count($tomb) - 1]; + +//unset($tomb); + +foreach ($tomb as $elem) { + echo $elem."
"; +} + +foreach ($_SERVER as $key => $value) { + echo $key." értéke: ".$value."
"; +} + +//var_dump($_SERVER); + + +echo "Asszociatív tömb:
"; + +$atomb = array(); +$atomb["elso"] = "matyi"; +$atomb["masodik"] = "dani"; + +echo $atomb["elso"]."
"; + +echo $_GET["nev"]."
"; + + +if ($_GET["nev"] == "digi") { + echo "Belépés engedéyezve"; +} + +?> \ No newline at end of file diff --git a/20240912/.idea/.gitignore b/20240912/.idea/.gitignore new file mode 100644 index 0000000..13566b8 --- /dev/null +++ b/20240912/.idea/.gitignore @@ -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 diff --git a/20240912/.idea/20240912.iml b/20240912/.idea/20240912.iml new file mode 100644 index 0000000..c956989 --- /dev/null +++ b/20240912/.idea/20240912.iml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/20240912/.idea/modules.xml b/20240912/.idea/modules.xml new file mode 100644 index 0000000..495e8b2 --- /dev/null +++ b/20240912/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/20240912/.idea/php.xml b/20240912/.idea/php.xml new file mode 100644 index 0000000..f324872 --- /dev/null +++ b/20240912/.idea/php.xml @@ -0,0 +1,19 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/20240912/index.php b/20240912/index.php new file mode 100644 index 0000000..f916b20 --- /dev/null +++ b/20240912/index.php @@ -0,0 +1,51 @@ + + + + + + + + + Document + + + +
+ + + +
+ + CSAO".$_GET["nev"].""; + echo "Kijelentkezés"; + ?> + + + + diff --git a/20240916/footer.php b/20240916/footer.php new file mode 100644 index 0000000..e9faeb7 --- /dev/null +++ b/20240916/footer.php @@ -0,0 +1,5 @@ + + Készítette Szabó Márton (c)2024 + '; +?> \ No newline at end of file diff --git a/20240916/index.php b/20240916/index.php new file mode 100644 index 0000000..6b5a871 --- /dev/null +++ b/20240916/index.php @@ -0,0 +1,24 @@ + + + + + + + Alap web valami + + + +

+ POST használata +

+ + + + \ No newline at end of file diff --git a/20240916/logged.php b/20240916/logged.php new file mode 100644 index 0000000..36e737c --- /dev/null +++ b/20240916/logged.php @@ -0,0 +1,9 @@ +

+ Üdvözöllek + + +

+ + KIJELENTKEZÉS diff --git a/20240916/loginform.php b/20240916/loginform.php new file mode 100644 index 0000000..e810e17 --- /dev/null +++ b/20240916/loginform.php @@ -0,0 +1,6 @@ + +
+ Login:
+ Jelszó:
+ +
\ No newline at end of file diff --git a/20240916/negy.php b/20240916/negy.php new file mode 100644 index 0000000..c810711 --- /dev/null +++ b/20240916/negy.php @@ -0,0 +1,18 @@ + 3 && strlen($jelszo) > 4){ + if ($nev == 'admin' && $jelszo == 'admin'){ + $islogin = true; + } + } + +} + + +?> \ No newline at end of file