1,6 → 1,5 |
<?php |
# $Id$ |
|
// written by steweb57, Rexy, Tom HOUDAYER & Pierre RIVAULT |
|
/******************** |
83,6 → 82,7 |
$l_ssh_from = "IP autorisée"; |
$l_ssh_wan_activate = "Activer SSH sur WAN"; |
$l_ssh_lan_activate = "Activer SSH sur LAN"; |
$l_interlan_title = "Autoriser l'accès au réseau situé entre ALCASAR et le routeur d'accès à Internet"; |
$l_cert_expiration = "Date d'expiration :"; |
$l_cert_commonname = "Nom commun :"; |
$l_cert_organization = "Organisation :"; |
151,6 → 151,7 |
$l_ssh_from = "IP autorizada"; |
$l_ssh_wan_activate = "Activar SSH on WAN"; |
$l_ssh_lan_activate = "Activar SSH on LAN"; |
$l_interlan_title = "Permitir el acceso a la red entre ALCASAR y el router de acceso a Internet"; |
$l_cert_expiration = "Fecha de vencimiento:"; |
$l_cert_commonname = "Common name:"; |
$l_cert_organization = "Organización:"; |
218,6 → 219,7 |
$l_ssh_from = "Authorized IP"; |
$l_ssh_wan_activate = "Activate SSH on WAN"; |
$l_ssh_lan_activate = "Activate SSH on LAN"; |
$l_interlan_title = "Authorize access to the network located between ALCASAR and Internet broadband router"; |
$l_cert_expiration = "Expiration date:"; |
$l_cert_commonname = "Common name:"; |
$l_cert_organization = "Organization:"; |
413,6 → 415,16 |
} |
header('Location: '.$_SERVER['PHP_SELF']); |
exit(); |
case 'interlan': |
$CONF_FILE = CONF_FILE; |
if (isset($_POST['interlan'])) { |
exec('/bin/sed -i "s/^INTERLAN=.*/INTERLAN=on/g"'.$CONF_FILE); |
} else { |
exec('/bin/sed -i "s/^INTERLAN=.*/INTERLAN=off/g" '.$CONF_FILE); |
} |
exec('sudo /usr/local/bin/alcasar-iptables.sh'); |
header('Location: '.$_SERVER['PHP_SELF']); |
exit(); |
} |
|
// Network changes |
1199,6 → 1211,17 |
</div> |
<br> |
<div class="panel"> |
<div class="panel-header"><?= $l_interlan_title ?></div> |
<div class="panel-row"> |
<form method="post" action="<?= htmlspecialchars($_SERVER['PHP_SELF']) ?>"> |
<input type="hidden" name="choix" value="interlan"> |
<input type="checkbox" name="interlan" id="interlan" <?= ($conf['INTERLAN'] === 'on')? "checked": "" ?>><b><?= $l_interlan_title ?></b><br> |
<input type="submit" onClick="document.getElementById('ldoverlay').style.display='block';" value="<?= $l_apply ?>"><br> |
</form> |
</div> |
</div> |
<br> |
<div class="panel"> |
<div class="panel-header"><?= $l_ssh_title ?></div> |
<table width="100%" cellspacing="0" cellpadding="5" border="1"> |
<tr> |