Example #1
0
     } else {
         if (isset($_GET['int'])) {
             echo getListInterface();
         } else {
             if (isset($_GET['mon'])) {
                 echo getListMonitor();
             }
         }
     }
 } else {
     if (isset($_GET['log'])) {
         if (isVariableValable($_GET['action'])) {
             $action = $_GET['action'];
             if ($action == "delete") {
                 if (isVariableValable($_GET['bssid'])) {
                     echo deleteLogFile($_GET['bssid']);
                 } else {
                     echo "No BSSID provided";
                 }
             } else {
                 if ($action == "check") {
                     if (isVariableValable($_GET['bssid'])) {
                         echo logFileExists($_GET['bssid']);
                     } else {
                         echo "No BSSID provided";
                     }
                 } else {
                     if ($action == "move") {
                         if (isVariableValable($_GET["dest"])) {
                             $dest = $_GET['dest'];
                             $logPath = getConf('logPath');
Example #2
0
getExtraParams(array("DeleteButton"));
// set the title name
$title = "View/delete log file";
// output the basic header HTML
include_once "../Includes/Header.php";
// include the dump helper
include_once '../Common/DumpLogFile.php';
// create the form in HTML
echo "<form method='post' action='LogFile.php'>";
// show the buttons
echo '<input type="submit" name="DeleteButton" value="Delete the log file"/>&nbsp;&nbsp;&nbsp;';
echo '<input type="submit" name="RefreshButton" value="Refresh"/> </br></br>';
// what just happened
if (isset($_POST['DeleteButton'])) {
    // delete the log file
    deleteLogFile();
} else {
    // dump out the log file
    dumpLogFile();
}
// close the form
echo "</form>";
// finish up the form
include_once 'Footer.php';
/****************************************************************************
RENCI Open Source Software License
The University of North Carolina at Chapel Hill

The University of North Carolina at Chapel Hill (the "Licensor") through
its Renaissance Computing Institute (RENCI) is making an original work of
authorship (the "Software") available through RENCI upon the terms set