diff options
| author | Andrew Dolgov <fox@bah.org.ru> | 2009-12-16 15:06:59 +0300 |
|---|---|---|
| committer | Andrew Dolgov <fox@bah.org.ru> | 2009-12-16 15:06:59 +0300 |
| commit | 4d557a13c27b113e64bf64087a8bfa63cd3ad234 (patch) | |
| tree | f42946962a8da8e17857f3ecff97090e66f40016 /api/index.php | |
| parent | 7c6d05cda4536c752d244f8a4f9495cef5defa0f (diff) | |
api: add getPref
Diffstat (limited to 'api/index.php')
| -rw-r--r-- | api/index.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/api/index.php b/api/index.php index be2661285..fd22f4b8b 100644 --- a/api/index.php +++ b/api/index.php @@ -344,7 +344,11 @@ print json_encode($config); + break; + case "getPref": + $pref_name = db_escape_string($_REQUEST["pref_name"]); + print json_encode(array("value" => get_pref($link, $pref_name))); break; } |