From 0a92a484554f214d0e499c872807e6b0a3e865ad Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Fri, 1 Jan 2016 16:50:22 -0500 Subject: + Added class file for setting table --- app/class/setting.class.php | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 app/class/setting.class.php (limited to 'app/class/setting.class.php') diff --git a/app/class/setting.class.php b/app/class/setting.class.php new file mode 100644 index 0000000..ea5fac3 --- /dev/null +++ b/app/class/setting.class.php @@ -0,0 +1,28 @@ +esc($key); + + $query = "SELECT `value` FROM `setting` WHERE `key` = '" . $escdKey . "'"; + $res = $db->query($query); + + if (count($res) == 0) + return false; + + return $res[0]['value']; + } +} + +?> -- cgit v1.2.3