aboutsummaryrefslogtreecommitdiff
path: root/edit.php
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2020-10-03 00:10:38 +0200
committerMateja <mail@matejamaric.com>2020-10-03 00:10:38 +0200
commit1e44886d6f53d5bb9621211810fdea247f7fbd71 (patch)
tree07067f1313123908121bac92c8cd0a86f5e98f43 /edit.php
parente01eaf5fe114f47f58ddcd81242af786ee06d425 (diff)
downloadold-php-yota-1e44886d6f53d5bb9621211810fdea247f7fbd71.tar.gz
old-php-yota-1e44886d6f53d5bb9621211810fdea247f7fbd71.zip
moved notes
Diffstat (limited to 'edit.php')
-rw-r--r--edit.php15
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>";
+ }
+
+}