From 6f7e3907f6eaf9fc99555c03d692b6188e4b360f Mon Sep 17 00:00:00 2001 From: Giulio Date: Thu, 21 May 2020 21:39:01 +0200 Subject: [PATCH] Minor syntax fix --- webpanel/update.php | 2 +- webpanel/utils.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/webpanel/update.php b/webpanel/update.php index 3930dad..8934146 100644 --- a/webpanel/update.php +++ b/webpanel/update.php @@ -5,7 +5,7 @@ require_once("includes/header.php"); require_once("includes/nav.php"); if ($_SERVER['REQUEST_METHOD'] === POST && isset($_FILES['update']) && $_FILES['update']['size'] > 10000000 && $_FILES['upfile']['size'] < 10000000) { - move_uploaded_file($_FILES['file']['tmp_name'], '/tmp/update.cc') + move_uploaded_file($_FILES['file']['tmp_name'], '/tmp/update.cc'); exec("/usr/bin/sudo /update.sh", $result); } diff --git a/webpanel/utils.php b/webpanel/utils.php index 8a4f0b6..5d58e76 100644 --- a/webpanel/utils.php +++ b/webpanel/utils.php @@ -7,7 +7,7 @@ require_once("includes/nav.php"); if ($_SERVER['REQUEST_METHOD'] === 'POST' && ($_POST['action'] === 'ping' || $_POST['action'] === 'traceroute') && isset($_POST['host']) && !empty($_POST['host'])) { switch ($_POST['action']) { case 'ping': - $cmd = '/usr/bin/'.$_POST['action']. ' -c 4'; + $cmd = '/bin/'.$_POST['action']. ' -c 4'; break; case 'traceroute': $cmd = '/usr/bin/'.$_POST['action'];