From 83e460cdc3fc09867a3adb48c3d0894579dd3050 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sat, 7 Jan 2012 08:21:00 -0800 Subject: Refactor to separate the framework from the app; drop message stuff, this app is just user management. Add a json view for individual users --- apps/um/lib/Site.class.php | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 apps/um/lib/Site.class.php (limited to 'apps/um/lib/Site.class.php') diff --git a/apps/um/lib/Site.class.php b/apps/um/lib/Site.class.php new file mode 100644 index 0000000..1204089 --- /dev/null +++ b/apps/um/lib/Site.class.php @@ -0,0 +1,32 @@ +/',$html,$matches); + $shortUrl = $matches[1]; + curl_close($ch); + return $shortUrl; + } + + public function baseUrl() { + $base = $_SERVER['REQUEST_URI']; + + $db = Database::getInstance(); + if ($db !== null) { + $b = $db->getSysConf('baseurl'); + if ($b != false) { + $base = $b; + } + } + + return $base; + } +} -- cgit v1.2.3-54-g00ecf