diff options
author | Mateja <mail@matejamaric.com> | 2020-10-03 00:10:38 +0200 |
---|---|---|
committer | Mateja <mail@matejamaric.com> | 2020-10-03 00:10:38 +0200 |
commit | 1e44886d6f53d5bb9621211810fdea247f7fbd71 (patch) | |
tree | 07067f1313123908121bac92c8cd0a86f5e98f43 /edit.php | |
parent | e01eaf5fe114f47f58ddcd81242af786ee06d425 (diff) | |
download | old-php-yota-1e44886d6f53d5bb9621211810fdea247f7fbd71.tar.gz old-php-yota-1e44886d6f53d5bb9621211810fdea247f7fbd71.zip |
moved notes
Diffstat (limited to 'edit.php')
-rw-r--r-- | edit.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/edit.php b/edit.php new file mode 100644 index 0000000..3ddada5 --- /dev/null +++ b/edit.php @@ -0,0 +1,15 @@ +<?php +session_start(); + +if (isset($_SESSION['admin']) && $_SESSION['admin'] == true) { + try { + $user = "yota_admin"; + $password = "quaequaquagh6ahwoh6Chahx1EiFooGh"; + $database = "yota_call_db"; + $conn = new PDO("mysql:host=localhost;dbname=$database", $user, $password); + $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); + } catch (PDOException $e) { + echo "<p>Error!: " . $e->getMessage() . "</p>"; + } + +} |