aboutsummaryrefslogtreecommitdiff
path: root/admin/api/serverTime.php
diff options
context:
space:
mode:
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