Subversion Repositories ALCASAR

Rev

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

Rev 2175 Rev 2177
Line 88... Line 88...
88
			$pointeur=fopen(DOMAIN_ALLOWED_LIST,"a");
88
			$pointeur=fopen(DOMAIN_ALLOWED_LIST,"a");
89
			fwrite ($pointeur, $line);
89
			fwrite ($pointeur, $line);
90
			fclose ($pointeur);
90
			fclose ($pointeur);
91
			exec ("sudo /usr/local/bin/alcasar-file-clean.sh"); # Clean & sort conf files. Add uamallowed domains to the dns-blackhole conf
91
			exec ("sudo /usr/local/bin/alcasar-file-clean.sh"); # Clean & sort conf files. Add uamallowed domains to the dns-blackhole conf
92
			exec ("sudo /usr/bin/systemctl restart dnsmasq-blackhole");
92
			exec ("sudo /usr/bin/systemctl restart dnsmasq-blackhole");
93
			sleep 1 # be sure that dnsmasq-blackhole is restarted before killing tun0 ! 
93
			sleep (1); # be sure that dnsmasq-blackhole is restarted before killing tun0 ! 
94
			exec ("sudo /usr/bin/systemctl restart chilli");
94
			exec ("sudo /usr/bin/systemctl restart chilli");
95
			}
95
			}
96
		}
96
		}
97
	break;
97
	break;
98
	case 'change_uamdomain' :
98
	case 'change_uamdomain' :
Line 124... Line 124...
124
			}
124
			}
125
		fclose($pointeur);
125
		fclose($pointeur);
126
		}
126
		}
127
	exec ("sudo /usr/local/bin/alcasar-file-clean.sh");
127
	exec ("sudo /usr/local/bin/alcasar-file-clean.sh");
128
	exec ("sudo /usr/bin/systemctl restart dnsmasq-blackhole");
128
	exec ("sudo /usr/bin/systemctl restart dnsmasq-blackhole");
129
	sleep 1 # be sure that dnsmasq-blackhole is restarted before killing tun0 ! 
129
	sleep (1); # be sure that dnsmasq-blackhole is restarted before killing tun0 ! 
130
	exec ("sudo /usr/bin/systemctl restart chilli");
130
	exec ("sudo /usr/bin/systemctl restart chilli");
131
	break;
131
	break;
132
	case 'new_ip' :
132
	case 'new_ip' :
133
	if (trim($_POST['add_ip']) != "") 
133
	if (trim($_POST['add_ip']) != "") 
134
		{
134
		{