From 13f00311d17a98f440750ba8f127f9ce694cad45 Mon Sep 17 00:00:00 2001 From: tornikegoguadze93 Date: Tue, 17 May 2022 18:43:21 +0400 Subject: [PATCH] first week task --- tornike_goguadze/1 project/index.php | 104 ++++++++++++++++++++++ tornike_goguadze/2 project/index.php | 127 +++++++++++++++++++++++++++ 2 files changed, 231 insertions(+) create mode 100644 tornike_goguadze/1 project/index.php create mode 100644 tornike_goguadze/2 project/index.php diff --git a/tornike_goguadze/1 project/index.php b/tornike_goguadze/1 project/index.php new file mode 100644 index 0000000..c7952a6 --- /dev/null +++ b/tornike_goguadze/1 project/index.php @@ -0,0 +1,104 @@ + + + + + + + + + Document + + + + + + +
+
+ + * +
+
+ + * +

+ + + * +

+ +
+ + +
"; + } + + unset($_SESSION['postdata'], $_SESSION['filepath'] ,$_SESSION['file_tmp_name'] ); + } +?> + + + + + + \ No newline at end of file diff --git a/tornike_goguadze/2 project/index.php b/tornike_goguadze/2 project/index.php new file mode 100644 index 0000000..e525c75 --- /dev/null +++ b/tornike_goguadze/2 project/index.php @@ -0,0 +1,127 @@ + + + + + + + + + Document + + + + + + + $url , + CURLOPT_RETURNTRANSFER => true, + CURLOPT_HTTPHEADER => array('Accept: application/json', 'Content-Type: application/json', 'User-Agent: Gvele') + ]); + + $data = curl_exec($ch); + $_SESSION['status_code'] = curl_getinfo($ch, CURLINFO_HTTP_CODE); + curl_close($ch); + $_SESSION['api'] = json_decode($data); + + + unset($_POST); + header("Location: ".$_SERVER['PHP_SELF']); + exit; + + } +?> + + +
+
+ + +
+
+ + + + + +
+
+ + + $value) : ?> +
+
+
+ +
+
+
+ + + + + + +
+
+
+ avatar_url) ?> width="50" height="150" alt="Card image cap"> + +
+
+
+ + +
+ + + + + + + + \ No newline at end of file