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 |
$result = shell_exec("df -h ".$cfg["path"]);
|
|
|
29 |
$result2 = shell_exec("du -sh ".$cfg["path"]."*");
|
|
|
30 |
$result4 = shell_exec("w");
|
|
|
31 |
$result5 = shell_exec("free -mo");
|
|
|
32 |
|
|
|
33 |
DisplayHead(_ALL);
|
|
|
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 |
echo "<pre>";
|
|
|
44 |
echo "<strong>"._DRIVESPACE."</strong>\n\n";
|
|
|
45 |
|
|
|
46 |
echo $result;
|
|
|
47 |
echo "<br><hr><br>";
|
|
|
48 |
echo $result2;
|
|
|
49 |
|
|
|
50 |
echo "<br><hr><br>";
|
|
|
51 |
|
|
|
52 |
echo "<strong>"._SERVERSTATS."</strong>\n\n";
|
|
|
53 |
|
|
|
54 |
echo $result4;
|
|
|
55 |
echo "<br><hr><br>";
|
|
|
56 |
echo $result5;
|
|
|
57 |
echo "</pre>";
|
|
|
58 |
echo "</div>";
|
|
|
59 |
|
|
|
60 |
DisplayFoot();
|
|
|
61 |
|
|
|
62 |
?>
|