aboutsummaryrefslogtreecommitdiff
path: root/admin/api/serverTime.php
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2022-01-01 10:37:28 +0100
committerMinteck <contact@minteck.org>2022-01-01 10:37:28 +0100
commitef055e79855cf3be1ad5e1aa5f9ebad480062384 (patch)
treeff074b29a7a87c3ccfc3b10741bbe30cb28e103e /admin/api/serverTime.php
parente3a79df6428799024eac64e9cffbb062317aeb95 (diff)
downloadmain-trunk.tar.gz
main-trunk.tar.bz2
main-trunk.zip
Bye furriesHEADtrunk
Diffstat (limited to 'admin/api/serverTime.php')
-rw-r--r--admin/api/serverTime.php12
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