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("w");
30
$result2 = shell_exec("free -mo");
31
 
32
 
33
DisplayHead(_SERVERSTATS);
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
 
41
<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">
42
 
43
<?php
44
 
45
echo "<pre>";
46
echo $result;
47
echo "<br><hr><br>";
48
echo $result2;
49
echo "</pre>";
50
 
51
if (IsAdmin())
52
{
53
    echo "<br><hr><br>";
54
    echo "<pre>";
55
    RunningProcessInfo();
56
    echo "</pre>";
57
}
58
 
59
echo "</div>";
60
 
61
DisplayFoot();
62
 
63
?>