nextcloud/settings/ajax/setloglevel.php

15 lines
346 B
PHP
Raw Normal View History

2011-10-16 23:08:44 +04:00
<?php
/**
* Copyright (c) 2011, Robin Appelman <icewind1991@gmail.com>
* This file is licensed under the Affero General Public License version 3 or later.
* See the COPYING-README file.
*/
2012-10-16 19:57:07 +04:00
require_once '../../lib/base.php';
2011-10-16 23:08:44 +04:00
OC_Util::checkAdminUser();
2012-07-07 17:27:04 +04:00
OCP\JSON::callCheck();
2011-10-16 23:08:44 +04:00
OC_Config::setValue( 'loglevel', $_POST['level'] );
echo 'true';