From 548e11e863e906bb80695fe7b2789fe4af3f0f39 Mon Sep 17 00:00:00 2001 From: moehm Date: Wed, 17 Sep 2014 00:16:08 +0200 Subject: init --- files/PLACEHOLDER | 1 + public_html/class/mysql.php | 28 ++++++++++++++++++++++++++++ public_html/index.php | 3 +++ public_html/vfs_config.php | 28 ++++++++++++++++++++++++++++ 4 files changed, 60 insertions(+) create mode 100644 files/PLACEHOLDER create mode 100644 public_html/class/mysql.php create mode 100644 public_html/index.php create mode 100644 public_html/vfs_config.php diff --git a/files/PLACEHOLDER b/files/PLACEHOLDER new file mode 100644 index 0000000..a979f67 --- /dev/null +++ b/files/PLACEHOLDER @@ -0,0 +1 @@ +Placeholder for Git diff --git a/public_html/class/mysql.php b/public_html/class/mysql.php new file mode 100644 index 0000000..b2d2983 --- /dev/null +++ b/public_html/class/mysql.php @@ -0,0 +1,28 @@ +dbhost=$dbhost; + $this->dbuser=$dbuser; + $this->dbname=$dbname; + $this->dbpassword=$dbpassword; + $this->dbprefix=$dbprefix; + } + + public function open(){ + try { + $this->db = new mysqli($this->dbhost, $this->dbuser, $this->dbpassword, $this->dbname); + } catch (Exception $e){ + echo $e->getMessage(); + exit; + } + } +} diff --git a/public_html/index.php b/public_html/index.php new file mode 100644 index 0000000..5d705b8 --- /dev/null +++ b/public_html/index.php @@ -0,0 +1,3 @@ +