Blame view

php/reload.php 348 Bytes
cf76164e6   Ting Chan   20190709
1
2
3
4
5
6
7
8
9
10
  <?php
   shell_exec("sudo ./reload &");
   shell_exec("sudo bash /home/pi/Desktop/vAlert/bin/status.sh &");
   echo "<script>alert('Reload OK!!')</script>";
   if($_GET['item']!=""){
    echo "<script>location.href='../index.php?item=".$_GET['item']."';</script>";
   }else{
    echo "<script>location.href='../index.php?item=config';</script>";
   }
  ?>