Example #1
0
    exit;
}
if (isset($_GET["greyhole-pools"])) {
    pools_add();
    exit;
}
if (isset($_GET["logs"])) {
    mounts_events();
    exit;
}
if (isset($_GET["syslog-table"])) {
    mounts_events_query();
    exit;
}
if (isset($_GET["EnableGreyHoleDebug"])) {
    EnableGreyHoleDebugSave();
    exit;
}
js();
function js()
{
    $page = CurrentPageName();
    $html = "\n\t\t\n\t\t\n\t\tfunction GreyHoleConfigLoad(){\n\t\t\t\$('#BodyContent').load('{$page}?tabs=yes');\n\t\t\t}\n\t\t\t\n\t\tGreyHoleConfigLoad();\n\t\t";
    echo $html;
}
function status_service()
{
    $sock = new sockets();
    $tpl = new templates();
    $ini = new Bs_IniHandler();
    $page = CurrentPageName();
Example #2
0
		$tpl=new templates();
		$error=$tpl->_ENGINE_parse_body("{ERROR_NO_PRIVS}");
		echo "alert('$error')";
		die();
	}
}

if(isset($_GET["tabs"])){tabs();exit;}
if(isset($_GET["status"])){status();exit;}
if(isset($_GET["greyhole-status"])){status_service();exit;}
if(isset($_GET["pools"])){pools();exit;}
if(isset($_GET["pools-list"])){pools_list();exit;}
if(isset($_GET["greyhole-pools"])){pools_add();exit;}
if(isset($_GET["logs"])){mounts_events();exit;}
if(isset($_GET["syslog-table"])){mounts_events_query();exit;}
if(isset($_GET["EnableGreyHoleDebug"])){EnableGreyHoleDebugSave();exit;}



js();

function js(){
		$page=CurrentPageName();
		$html="
		
		
		function GreyHoleConfigLoad(){
			$('#BodyContent').load('$page?tabs=yes');
			}
			
		GreyHoleConfigLoad();