aboutsummaryrefslogtreecommitdiff
path: root/edit.php
diff options
context:
space:
mode:
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>";
+ }
+
+}