diff options
author | Minteck <contact@minteck.org> | 2022-01-01 10:37:28 +0100 |
---|---|---|
committer | Minteck <contact@minteck.org> | 2022-01-01 10:37:28 +0100 |
commit | ef055e79855cf3be1ad5e1aa5f9ebad480062384 (patch) | |
tree | ff074b29a7a87c3ccfc3b10741bbe30cb28e103e /admin/api/serverTime.php | |
parent | e3a79df6428799024eac64e9cffbb062317aeb95 (diff) | |
download | main-trunk.tar.gz main-trunk.tar.bz2 main-trunk.zip |
Diffstat (limited to 'admin/api/serverTime.php')
-rw-r--r-- | admin/api/serverTime.php | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/admin/api/serverTime.php b/admin/api/serverTime.php deleted file mode 100644 index a64a39e..0000000 --- a/admin/api/serverTime.php +++ /dev/null @@ -1,12 +0,0 @@ -<?php
-
-require_once $_SERVER['DOCUMENT_ROOT'] . "/admin/private/header.api.php";
-
-$str = file_get_contents('/proc/uptime');
-$num = floatval($str);
-$secs = fmod($num, 60); $num = intdiv($num, 60);
-$mins = $num % 60; $num = intdiv($num, 60);
-$hours = $num % 24; $num = intdiv($num, 24);
-$days = $num;
-
-echo(l($days . " day·s, " . $hours . " hour·s, " . $mins . " minute·s, " . ceil($secs) . " second·s", $days . " jour·s, " . $hours . " heure·s, " . $mins . " minute·s, " . ceil($secs) . " seconde·s"));
\ No newline at end of file |