Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 3027 → Rev 3028

/web/acc/manager/auth_exceptions.php
6,6 → 6,9
<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>
<?
/********************
* TEST CONF FILES *
252,7 → 255,7
if ($tab)
{
echo "<input type='hidden' name='choix' value='change_uamdomain'>";
echo "<input type='submit' onClick=\"this.disabled=true; this.value='$l_load';submit();\" value='$l_apply'>";
echo "<input type='submit' onClick=\"this.disabled=true; document.getElementById('ldoverlay').style.display='block'; this.value='$l_load';submit();\" value='$l_apply'>";
}
?>
</form>
266,7 → 269,7
<tr><td><input type='text' name='add_uamdomain' size='20'>
<td><input type='text' name='add_domain_comment' size='15'>
<input type='hidden' name='choix' value='new_uamdomain'></td>
<td><input type='submit' onClick="this.disabled=true; this.value='<?echo $l_load;?>';submit();" value='<?echo "$l_add_to_list";?>'>
<td><input type='submit' onClick="this.disabled=true; document.getElementById('ldoverlay').style.display='block'; this.value='<?echo $l_load;?>';submit();" value='<?echo "$l_add_to_list";?>'>
</tr></table>
</form>
</tr>
308,7 → 311,7
if ($tab)
{
echo "<input type='hidden' name='choix' value='change_ip'>";
echo "<input type='submit' onClick=\"this.disabled=true; this.value='$l_load';submit();\" value='$l_apply'>";
echo "<input type='submit' onClick=\"this.disabled=true; document.getElementById('ldoverlay').style.display='block'; this.value='$l_load';submit();\" value='$l_apply'>";
}
?>
</form>
322,7 → 325,7
<tr><td><input type='text' name='add_ip' size='20'></td>
<td><input type='text' name='add_ip_comment' size='15'>
<input type='hidden' name='choix' value='new_ip'></td>
<td><input type='submit' onClick="this.disabled=true; this.value='<?echo $l_load;?>';submit();" value='<?echo "$l_add_to_list";?>'></td>
<td><input type='submit' onClick="this.disabled=true; document.getElementById('ldoverlay').style.display='block'; this.value='<?echo $l_load;?>';submit();" value='<?echo "$l_add_to_list";?>'></td>
</tr></table>
</form>
</table>
/web/acc/manager/htdocs/activity.php
151,6 → 151,9
<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>
220,12 → 223,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\" name=\"action\" value=\"$l_stop_capture_disconnect\">";
echo "<input type=\"submit\" name=\"action\" value=\"$l_captureoff\">";
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\">";
}
else {
echo "<input type=\"submit\" name=\"action\" value=\"$l_disconnect\">";
echo "<br><input type=\"submit\" name=\"action\" value=\"$l_captureonly_on\">";
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\">";
$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>";
232,7 → 235,7
}
}
}
else echo "<input type=\"submit\" name=\"action\" value=\"$l_disconnect\">";
else echo "<input type=\"submit\" onClick=\"document.getElementById('ldoverlay').style.display='block';\" name=\"action\" value=\"$l_disconnect\">";
echo "</form></td>";
}
}
242,7 → 245,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\" name=\"action\" value=\"$l_disconnect\">";
echo "<input type=\"submit\" onClick=\"document.getElementById('ldoverlay').style.display='block';\" name=\"action\" value=\"$l_disconnect\">";
echo "</form></td>";
}
}
261,16 → 264,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\" 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_dissociate\">"; // Dissociate only MAC not in ether file (dhcp)
}
echo "<input type=\"submit\" name=\"action\" value=\"$l_connect\">"; // Enable temporarily @MAC access
echo "<input type=\"submit\" onClick=\"document.getElementById('ldoverlay').style.display='block';\" 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\" name=\"action\" value=\"$l_captureoff\">";
echo "<br><input type=\"submit\" onClick=\"document.getElementById('ldoverlay').style.display='block';\" name=\"action\" value=\"$l_captureoff\">";
}
else {
echo "<br><input type=\"submit\" name=\"action\" value=\"$l_captureon\">";
echo "<input type=\"submit\" name=\"action\" value=\"$l_captureonly_on\">";
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\">";
$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,6 → 6,9
<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';
326,7 → 329,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\" value=\"$l_send\">";
echo "<input type=\"submit\" onClick=\"this.disabled=true; document.getElementById('ldoverlay').style.display='block'; value=\"$l_send\">";
echo "</FORM></td>";
echo "<td>";
$ImportFileList = getImportFileList();
349,7 → 352,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\" value=\"$l_send\">";
echo "<input type=\"submit\" onClick=\"this.disabled=true; document.getElementById('ldoverlay').style.display='block'; value=\"$l_send\">";
echo "</FORM>";
echo "</td></tr>";
echo "<tr><td valign=\"middle\" align=\"left\">";
357,7 → 360,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\" value=\"$l_empty\">";
echo "<input type=\"submit\" onClick=\"this.disabled=true; document.getElementById('ldoverlay').style.display='block'; value=\"$l_empty\">";
echo "</FORM>";
echo "</TD></TR></TABLE>";
?>
/web/acc/manager/htdocs/user_by_email.php
273,6 → 273,9
</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">
390,7 → 393,7
</dd>
</dl>
<p>
<input id="submit" type="submit" value="<?= $l_mail_submit ?>" name="submit">
<input id="submit" onClick="document.getElementById('ldoverlay').style.display='block';" type="submit" value="<?= $l_mail_submit ?>" name="submit">
</p>
</fieldset>
</form>