We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1dae7d commit 9faa9b4Copy full SHA for 9faa9b4
backend/sys_infos.php
@@ -1,6 +1,8 @@
1
<?php
2
-error_reporting(E_ALL);
3
-ini_set ('display_errors', 'On');
+if(isset($_GET["debug"])){
+ error_reporting(E_ALL);
4
+ ini_set ('display_errors', 'On');
5
+}
6
// Authorization
7
session_start();
8
if(!isset($_SESSION["rpidbauth"])){
@@ -14,7 +16,7 @@
14
16
// Uptime
15
17
$uptime = shell_exec("cat /proc/uptime");
18
$uptime = explode(" ", $uptime);
-$uptime = $uptime[0];
19
+$uptime = (int) $uptime[0];
20
$y = floor($uptime / 60 / 60 / 24 / 365);
21
$d = floor($uptime / 60 / 60 / 24) % 365;
22
$h = floor(($uptime / 3600) % 24);
0 commit comments