curl_setopt($ch, CURLOPT_URL, $url); //print_r($ch); curl_exec($ch); } $global_webserver = "http://localhost:".$_SERVER["SERVER_PORT"]; */ require "ws.php"; //$ws = new WebService("admin", "admin"); $ws = new WebService($api_token); if ($service == "s_wireless") { //$url = "$global_webserver/scripts/status_wireless.php?service=wireless&action=$action"; //execCurl($url); $url = "scripts/status_wireless.php?service=wireless&action={$action}"; $ws->setGetRequest($url); } else { if ($service == "s_phishing") { //$url = "$global_webserver/scripts/status_phishing.php?service=phishing&action=$action"; //execCurl($url); $url = "scripts/status_phishing.php?service=phishing&action={$action}"; $ws->setGetRequest($url); } else { //$url = "$global_webserver/modules/$service/includes/module_action.php?service=$service&action=$action&page=$page"; //execCurl($url); $url = "modules/{$service}/includes/module_action.php?service={$service}&action={$action}&page={$page}"; $ws->setGetRequest($url); } } if ($action == "start") { $output[0] = "true";