mirror of
https://github.com/pi-hole/web.git
synced 2024-12-06 19:36:21 +01:00
script to run whitelist.sh
This commit is contained in:
@@ -27,7 +27,7 @@
|
||||
$(document).ready(function(){
|
||||
var searchLi = $('#get_whitelist').val();
|
||||
var commandArguments = "li00="+searchLi;
|
||||
$.get("whitelist.php", commandArguments, function (data){
|
||||
$.get("php/whitelist.php", commandArguments, function (data){
|
||||
// Delimiter to split the last echo command from the script
|
||||
dataSplitted = data.split(';');
|
||||
$("#li01").html(dataSplitted[0]);
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
<?php
|
||||
$arg = $_GET['li00'];
|
||||
$shell_cmd = "/usr/local/bin/whitelist.sh ".$arg;
|
||||
$to_show = exec($shell_cmd);
|
||||
print_r($to_show);
|
||||
?>
|
||||
Reference in New Issue
Block a user