summaryrefslogtreecommitdiffstats
path: root/ajax/usersettings.php
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-01-27 04:15:53 +0100
committerBernhard Posselt <nukeawhale@gmail.com>2013-01-27 04:15:53 +0100
commitae7393db3d99a7ac223ae917129cccd9f49888e3 (patch)
tree7f54b72b0d01c38afd1378365a67e4f192922423 /ajax/usersettings.php
parent483784caa38bd6131405ac474347a215584e30a5 (diff)
merged the angularjs branch
Diffstat (limited to 'ajax/usersettings.php')
-rw-r--r--ajax/usersettings.php28
1 files changed, 0 insertions, 28 deletions
diff --git a/ajax/usersettings.php b/ajax/usersettings.php
deleted file mode 100644
index 2602230dd..000000000
--- a/ajax/usersettings.php
+++ /dev/null
@@ -1,28 +0,0 @@
-<?php
-/**
-* ownCloud - News app
-*
-* @author Bernhard Posselt
-* Copyright (c) 2012 - Bernhard Posselt <nukeawhale@gmail.com>
-*
-* This file is licensed under the Affero General Public License version 3 or later.
-* See the COPYING-README file
-*
-*/
-
-// Check if we are a user
-OCP\JSON::checkLoggedIn();
-OCP\JSON::checkAppEnabled('news');
-OCP\JSON::callCheck();
-session_write_close();
-
-if(isset($_POST['showAll'])) {
- if($_POST['showAll'] === 'false') {
- $showAll = false;
- } else {
- $showAll = true;
- }
- OCP\Config::setUserValue(OCP\USER::getUser(), 'news', 'showAll', $showAll);
-}
-
-OCP\JSON::success();