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'];