delete unused files
This commit is contained in:
parent
33caa64cce
commit
56f12cbfb1
|
@ -1,11 +0,0 @@
|
||||||
<?php
|
|
||||||
/**
|
|
||||||
* Copyright (c) 2011 Georg Ehrke <ownclouddev at georgswebsite dot de>
|
|
||||||
* This file is licensed under the Affero General Public License version 3 or
|
|
||||||
* later.
|
|
||||||
* See the COPYING-README file.
|
|
||||||
*/
|
|
||||||
require_once('../../../lib/base.php');
|
|
||||||
OC_JSON::checkLoggedIn();
|
|
||||||
echo OC_Preferences::getValue( OC_User::getUser(), 'calendar', 'weekend', '{"Monday":"false","Tuesday":"false","Wednesday":"false","Thursday":"false","Friday":"false","Saturday":"true","Sunday":"true"}');
|
|
||||||
?>
|
|
|
@ -1,12 +0,0 @@
|
||||||
<?php
|
|
||||||
/**
|
|
||||||
* Copyright (c) 2011 Georg Ehrke <ownclouddev at georgswebsite dot de>
|
|
||||||
* This file is licensed under the Affero General Public License version 3 or
|
|
||||||
* later.
|
|
||||||
* See the COPYING-README file.
|
|
||||||
*/
|
|
||||||
require_once('../../../lib/base.php');
|
|
||||||
OC_JSON::checkLoggedIn();
|
|
||||||
$duration = OC_Preferences::getValue( OC_User::getUser(), 'calendar', 'duration', "60");
|
|
||||||
OC_JSON::encodedPrint(array("duration" => $duration));
|
|
||||||
?>
|
|
|
@ -1,12 +0,0 @@
|
||||||
<?php
|
|
||||||
/**
|
|
||||||
* Copyright (c) 2011 Georg Ehrke <ownclouddev at georgswebsite dot de>
|
|
||||||
* This file is licensed under the Affero General Public License version 3 or
|
|
||||||
* later.
|
|
||||||
* See the COPYING-README file.
|
|
||||||
*/
|
|
||||||
require_once('../../../lib/base.php');
|
|
||||||
OC_JSON::checkLoggedIn();
|
|
||||||
$firstdayofweek = OC_Preferences::getValue( OC_User::getUser(), 'calendar', 'firstdayofweek', "1");
|
|
||||||
OC_JSON::encodedPrint(array("firstdayofweek" => $firstdayofweek));
|
|
||||||
?>
|
|
|
@ -1,30 +0,0 @@
|
||||||
<?php
|
|
||||||
/**
|
|
||||||
* Copyright (c) 2011 Georg Ehrke <ownclouddev at georgswebsite dot de>
|
|
||||||
* This file is licensed under the Affero General Public License version 3 or
|
|
||||||
* later.
|
|
||||||
* See the COPYING-README file.
|
|
||||||
*/
|
|
||||||
require_once('../../../lib/base.php');
|
|
||||||
OC_JSON::checkLoggedIn();
|
|
||||||
$weekenddays = array("Monday"=>"false", "Tuesday"=>"false", "Wednesday"=>"false", "Thursday"=>"false", "Friday"=>"false", "Saturday"=>"false", "Sunday"=>"false");
|
|
||||||
for($i = 0;$i < count($_POST["weekend"]); $i++){
|
|
||||||
switch ($_POST["weekend"][$i]){
|
|
||||||
case "Monday":
|
|
||||||
case "Tuesday":
|
|
||||||
case "Wednesday":
|
|
||||||
case "Thursday":
|
|
||||||
case "Friday":
|
|
||||||
case "Saturday":
|
|
||||||
case "Sunday":
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
OC_JSON::error();
|
|
||||||
exit;
|
|
||||||
}
|
|
||||||
$weekenddays[$_POST["weekend"][$i]] = "true";
|
|
||||||
}
|
|
||||||
$setValue = json_encode($weekenddays);
|
|
||||||
OC_Preferences::setValue(OC_User::getUser(), 'calendar', 'weekend', $setValue);
|
|
||||||
OC_JSON::success();
|
|
||||||
?>
|
|
|
@ -1,17 +0,0 @@
|
||||||
<?php
|
|
||||||
/**
|
|
||||||
* Copyright (c) 2011 Georg Ehrke <ownclouddev at georgswebsite dot de>
|
|
||||||
* This file is licensed under the Affero General Public License version 3 or
|
|
||||||
* later.
|
|
||||||
* See the COPYING-README file.
|
|
||||||
*/
|
|
||||||
require_once('../../../lib/base.php');
|
|
||||||
OC_JSON::checkLoggedIn();
|
|
||||||
if(isset($_POST["duration"])){
|
|
||||||
OC_Preferences::setValue(OC_User::getUser(), 'calendar', 'duration', $_POST["duration"]);
|
|
||||||
OC_JSON::success();
|
|
||||||
}else{
|
|
||||||
OC_JSON::error();
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
|
|
|
@ -1,16 +0,0 @@
|
||||||
<?php
|
|
||||||
/**
|
|
||||||
* Copyright (c) 2011 Georg Ehrke <ownclouddev at georgswebsite dot de>
|
|
||||||
* This file is licensed under the Affero General Public License version 3 or
|
|
||||||
* later.
|
|
||||||
* See the COPYING-README file.
|
|
||||||
*/
|
|
||||||
require_once('../../../lib/base.php');
|
|
||||||
OC_JSON::checkLoggedIn();
|
|
||||||
if(isset($_POST["firstdayofweek"])){
|
|
||||||
OC_Preferences::setValue(OC_User::getUser(), 'calendar', 'firstdayofweek', $_POST["firstdayofweek"]);
|
|
||||||
OC_JSON::success();
|
|
||||||
}else{
|
|
||||||
OC_JSON::error();
|
|
||||||
}
|
|
||||||
?>
|
|
Loading…
Reference in New Issue