Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 3028 → Rev 3022

/web/acc/manager/htdocs/user_by_email.php
273,9 → 273,6
</script>
</head>
<body onLoad="onMailStatusChange();">
<div id="ldoverlay" class="overlay">
<div class="lds-spinner" id="spinner"><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div></div>
</div>
<div class="panel">
<div class="panel-header"><?= $l_mail_title ?></div>
<div class="panel-body">
393,7 → 390,7
</dd>
</dl>
<p>
<input id="submit" onClick="document.getElementById('ldoverlay').style.display='block';" type="submit" value="<?= $l_mail_submit ?>" name="submit">
<input id="submit" type="submit" value="<?= $l_mail_submit ?>" name="submit">
</p>
</fieldset>
</form>
/web/acc/manager/htdocs/activity.php
151,9 → 151,6
<link rel="stylesheet" type="text/css" href="/css/acc.css">
</head>
<body>
<div id="ldoverlay" class="overlay">
<div class="lds-spinner" id="spinner"><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div></div>
</div>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><th><?= $l_activity ?></th></tr>
<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" height="2"></td></tr>
223,12 → 220,12
echo "<input type=\"hidden\" name=\"mac_addr\" value=\"$detail[0]\">";
if($IoT_capture == "on"){
if(exec('sudo /usr/local/bin/alcasar-iot_capture.sh -i '.$detail[0]) == "CaptureON"){
echo "<input type=\"submit\" onClick=\"document.getElementById('ldoverlay').style.display='block';\" name=\"action\" value=\"$l_stop_capture_disconnect\">";
echo "<input type=\"submit\" onClick=\"document.getElementById('ldoverlay').style.display='block';\" name=\"action\" value=\"$l_captureoff\">";
echo "<input type=\"submit\" name=\"action\" value=\"$l_stop_capture_disconnect\">";
echo "<input type=\"submit\" name=\"action\" value=\"$l_captureoff\">";
}
else {
echo "<input type=\"submit\" onClick=\"document.getElementById('ldoverlay').style.display='block';\" name=\"action\" value=\"$l_disconnect\">";
echo "<br><input type=\"submit\" onClick=\"document.getElementById('ldoverlay').style.display='block';\" name=\"action\" value=\"$l_captureonly_on\">";
echo "<input type=\"submit\" name=\"action\" value=\"$l_disconnect\">";
echo "<br><input type=\"submit\" name=\"action\" value=\"$l_captureonly_on\">";
$file = '/var/Save/iot_captures/'.$detail[0].'.pcap';
if (file_exists($file)) {
echo "<br><center><a href=\"/save/iot_captures/$detail[0].pcap\">$detail[0].pcap</a> (";echo taille_fichier("/var/Save/iot_captures/".$detail[0].".pcap");echo ")</center>";
235,7 → 232,7
}
}
}
else echo "<input type=\"submit\" onClick=\"document.getElementById('ldoverlay').style.display='block';\" name=\"action\" value=\"$l_disconnect\">";
else echo "<input type=\"submit\" name=\"action\" value=\"$l_disconnect\">";
echo "</form></td>";
}
}
245,7 → 242,7
echo "<td>";
echo "<form action=\"".$_SERVER['PHP_SELF']."\" method=\"POST\">";
echo "<input type=\"hidden\" name=\"mac_addr\" value=\"$detail[0]\">";
echo "<input type=\"submit\" onClick=\"document.getElementById('ldoverlay').style.display='block';\" name=\"action\" value=\"$l_disconnect\">";
echo "<input type=\"submit\" name=\"action\" value=\"$l_disconnect\">";
echo "</form></td>";
}
}
264,16 → 261,16
echo "<input type=\"hidden\" name=\"mac_addr\" value=\"$detail[0]\">";
exec ("grep $detail[0] /usr/local/etc/alcasar-ethers-info", $mac_in_ether_file);
if (empty($mac_in_ether_file[1])){
echo "<input type=\"submit\" onClick=\"document.getElementById('ldoverlay').style.display='block';\" name=\"action\" value=\"$l_dissociate\">"; // Dissociate only MAC not in ether file (dhcp)
echo "<input type=\"submit\" name=\"action\" value=\"$l_dissociate\">"; // Dissociate only MAC not in ether file (dhcp)
}
echo "<input type=\"submit\" onClick=\"document.getElementById('ldoverlay').style.display='block';\" name=\"action\" value=\"$l_connect\">"; // Enable temporarily @MAC access
echo "<input type=\"submit\" name=\"action\" value=\"$l_connect\">"; // Enable temporarily @MAC access
if($IoT_capture == "on"){
if(exec('sudo /usr/local/bin/alcasar-iot_capture.sh -i '.$detail[0]) == "CaptureON"){
echo "<br><input type=\"submit\" onClick=\"document.getElementById('ldoverlay').style.display='block';\" name=\"action\" value=\"$l_captureoff\">";
echo "<br><input type=\"submit\" name=\"action\" value=\"$l_captureoff\">";
}
else {
echo "<br><input type=\"submit\" onClick=\"document.getElementById('ldoverlay').style.display='block';\" name=\"action\" value=\"$l_captureon\">";
echo "<input type=\"submit\" onClick=\"document.getElementById('ldoverlay').style.display='block';\" name=\"action\" value=\"$l_captureonly_on\">";
echo "<br><input type=\"submit\" name=\"action\" value=\"$l_captureon\">";
echo "<input type=\"submit\" name=\"action\" value=\"$l_captureonly_on\">";
$file = '/var/Save/iot_captures/'.$detail[0].'.pcap';
if (file_exists($file)) {
echo "<br><center><a href=\"/save/iot_captures/$detail[0].pcap\">$detail[0].pcap</a> (";echo taille_fichier("/var/Save/iot_captures/".$detail[0].".pcap");echo ")</center>";
/web/acc/manager/htdocs/import_user.php
6,9 → 6,6
<link rel="stylesheet" href="/css/acc.css" type="text/css">
</HEAD>
<body>
<div id="ldoverlay" class="overlay">
<div class="lds-spinner" id="spinner"><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div></div>
</div>
<?php
// Choice of language
$Language = 'en';
329,7 → 326,7
echo "<br>";
echo "<input type='hidden' name='choix' value='csv'>";
if (($choix == "csv") && isset($result)) echo "<b>".$result."</b><BR>";
echo "<input type=\"submit\" onClick=\"this.disabled=true; document.getElementById('ldoverlay').style.display='block'; value=\"$l_send\">";
echo "<input type=\"submit\" value=\"$l_send\">";
echo "</FORM></td>";
echo "<td>";
$ImportFileList = getImportFileList();
352,7 → 349,7
echo "$l_file (.sql or .sql.gz) : <input type=\"file\" name=\"import-users\"><br>";
echo "<input type='hidden' name='choix' value='bdd'>";
if (($choix == "bdd") && isset($result)) echo "<b>".$result."</b><BR>";
echo "<input type=\"submit\" onClick=\"this.disabled=true; document.getElementById('ldoverlay').style.display='block'; value=\"$l_send\">";
echo "<input type=\"submit\" value=\"$l_send\">";
echo "</FORM>";
echo "</td></tr>";
echo "<tr><td valign=\"middle\" align=\"left\">";
360,7 → 357,7
echo "$l_db_import_help<br><br>";
echo "<FORM onsubmit=\"return confirm('$l_empty_warn');\" action='$_SERVER[PHP_SELF]' method=POST>";
echo "<input type='hidden' name='choix' value='raz'>";
echo "<input type=\"submit\" onClick=\"this.disabled=true; document.getElementById('ldoverlay').style.display='block'; value=\"$l_empty\">";
echo "<input type=\"submit\" value=\"$l_empty\">";
echo "</FORM>";
echo "</TD></TR></TABLE>";
?>