Welcome to mirror list, hosted at ThFree Co, Russian Federation.

setquota.php « ajax « settings - github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: edbf5b74516d4f4010746f561e7bab2b348dc3ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php

// Init owncloud
require_once('../../lib/base.php');

OC_JSON::checkAdminUser();

$username = $_POST["username"];
$quota= OC_Helper::computerFileSize($_POST["quota"]);

// Return Success story
OC_Preferences::setValue($username,'files','quota',$quota);
OC_JSON::success(array("data" => array( "username" => $username ,'quota'=>$quota)));

?>