Subversion Repositories svnkaklik

Rev

Details | Last modification | View Log

Rev Author Line No. Line
36 kaklik 1
<?php
2
 
3
/*************************************************************
4
*  TorrentFlux - PHP Torrent Manager
5
*  www.torrentflux.com
6
**************************************************************/
7
/*
8
    This file is part of TorrentFlux.
9
 
10
    TorrentFlux is free software; you can redistribute it and/or modify
11
    it under the terms of the GNU General Public License as published by
12
    the Free Software Foundation; either version 2 of the License, or
13
    (at your option) any later version.
14
 
15
    TorrentFlux is distributed in the hope that it will be useful,
16
    but WITHOUT ANY WARRANTY; without even the implied warranty of
17
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18
    GNU General Public License for more details.
19
 
20
    You should have received a copy of the GNU General Public License
21
    along with TorrentFlux; if not, write to the Free Software
22
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
23
*/
24
 
25
include_once("config.php");
26
include_once("functions.php");
27
 
28
 
29
$result = shell_exec("df -h ".$cfg["path"]);
30
$result2 = shell_exec("du -sh ".$cfg["path"]."*");
31
 
32
 
33
DisplayHead(_DRIVESPACE);
34
echo "<table width=\"740\" border=0 cellpadding=0 cellspacing=0><tr><td>";
35
echo displayDriveSpaceBar(getDriveSpace($cfg["path"]));
36
echo "</td></tr></table>";
37
?>
38
 
39
<br>
40
<div align="left" id="BodyLayer" name="BodyLayer" style="border: thin solid <?php echo $cfg["main_bgcolor"] ?>; position:relative; width:740; height:500; padding-left: 5px; padding-right: 5px; z-index:1; overflow: scroll; visibility: visible">
41
 
42
<?php
43
 
44
echo "<pre>";
45
echo $result;
46
echo "<br><hr><br>";
47
echo $result2;
48
echo "</pre>";
49
echo "</div>";
50
 
51
DisplayFoot();
52
 
53
?>