From: Jan Schneider Date: Mon, 27 Sep 2010 08:56:32 +0000 (+0200) Subject: Remove prefs REST API. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=b218b55b9b4a5bdf1089c0dbd866df231156f94f;p=horde.git Remove prefs REST API. --- 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);