Initial commit.
This commit is contained in:
parent
a9c913c9a7
commit
317e1b4e10
13 changed files with 260 additions and 0 deletions
11
uptime/uptime.php
Normal file
11
uptime/uptime.php
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
---
|
||||
permalink: /cgi/uptime/
|
||||
---
|
||||
|
||||
<?php
|
||||
$uptime = shell_exec('uptime');
|
||||
$version = shell_exec('uptime -V');
|
||||
|
||||
header('Content-Type: text/plain');
|
||||
echo('Server ' . substr($version, 0, -1) . ': ' . $uptime);
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue