From b218b55b9b4a5bdf1089c0dbd866df231156f94f Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Mon, 27 Sep 2010 10:56:32 +0200 Subject: [PATCH] Remove prefs REST API. --- horde/services/prefs/index.php | 61 ------------------------------------------ 1 file changed, 61 deletions(-) delete mode 100644 horde/services/prefs/index.php diff --git a/horde/services/prefs/index.php b/horde/services/prefs/index.php deleted file mode 100644 index ba9fde87e..000000000 --- a/horde/services/prefs/index.php +++ /dev/null @@ -1,61 +0,0 @@ - - */ - -require_once dirname(__FILE__) . '/../../lib/Application.php'; -Horde_Registry::appInit('horde'); - -/* Which application. */ -$app = Horde_Util::getFormData('app'); -if (!$app) { - echo ''; - exit; -} - -/* Load $app's base environment, but don't request that the app perform - * authentication beyond Horde's. */ -$registry->pushApp($app, array('check_perms' => false)); - -/* Which preference. */ -$pref = Horde_Util::getFormData('pref'); -if (!$pref) { - /* Load prefs config file. */ - try { - extract(Horde::loadConfiguration('prefs.php', array('_prefs'), $app)); - } catch (Horde_Exception $e) { - exit; - } - - echo ''; -} - -/* Which action. */ -if (Horde_Util::getPost('pref') == $pref) { - /* POST for saving a pref. */ - $prefs->setValue($pref, Horde_Util::getPost('value')); -} - -/* GET returns the current value, POST returns the new value. */ -header('Content-type: text/plain'); -echo $prefs->getValue($pref); -- 2.11.0