Blame view

sources/apps/files/ajax/getstoragestats.php 231 Bytes
03e52840d   Kload   Init
1
  <?php
31b7f2792   Kload   Upgrade to ownclo...
2
3
4
5
6
  $dir = '/';
  
  if (isset($_GET['dir'])) {
  	$dir = $_GET['dir'];
  }
03e52840d   Kload   Init
7
  OCP\JSON::checkLoggedIn();
6d9380f96   Cédric Dupont   Update sources OC...
8
  \OC::$session->close();
03e52840d   Kload   Init
9
10
  
  // send back json
31b7f2792   Kload   Upgrade to ownclo...
11
  OCP\JSON::success(array('data' => \OCA\Files\Helper::buildFileStorageStatistics($dir)));