Subversion Repositories ALCASAR

Rev

Rev 3046 | Rev 3051 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 3046 Rev 3049
Line 1... Line 1...
1
<?php
1
<?php
2
# $Id: network.php 3046 2022-07-30 22:07:33Z rexy $
2
# $Id: network.php 3049 2022-07-31 22:15:30Z rexy $
3
// written by steweb57, Rexy, Tom HOUDAYER & Pierre RIVAULT
3
// written by steweb57, Rexy, Tom HOUDAYER & Pierre RIVAULT
4
 
4
 
5
/********************
5
/********************
6
*  READ CONF FILES  *
6
*  READ CONF FILES  *
7
*********************/
7
*********************/
Line 414... Line 414...
414
			exec('sudo /usr/local/bin/alcasar-https.sh --off');
414
			exec('sudo /usr/local/bin/alcasar-https.sh --off');
415
		}
415
		}
416
		header('Location: '.$_SERVER['PHP_SELF']);
416
		header('Location: '.$_SERVER['PHP_SELF']);
417
		exit();
417
		exit();
418
	case 'interlan':
418
	case 'interlan':
419
		$CONF_FILE = CONF_FILE;
-
 
420
		if (isset($_POST['interlan']))	 {
419
		if (isset($_POST['interlan']))	 {
421
			exec('/bin/sed -i "s/^INTERLAN=.*/INTERLAN=on/g"'.$CONF_FILE);
420
			exec('/bin/sed -i "s/^INTERLAN=.*/INTERLAN=on/g" '.CONF_FILE);
422
		} else {
421
		} else {
423
			exec('/bin/sed -i "s/^INTERLAN=.*/INTERLAN=off/g" '.$CONF_FILE);
422
			exec('/bin/sed -i "s/^INTERLAN=.*/INTERLAN=off/g" '.CONF_FILE);
424
		}
423
		}
425
		exec('sudo /usr/local/bin/alcasar-iptables.sh');
424
		exec('sudo /usr/local/bin/alcasar-iptables.sh');
426
		header('Location: '.$_SERVER['PHP_SELF']);
425
		header('Location: '.$_SERVER['PHP_SELF']);
427
		exit();
426
		exit();
428
}
427
}