savemenu();
        break;
    case "saveforum":
        require_once "admin/admin_forum_lib.php";
        saveforum();
        break;
}
$section = isset($_GET["section"]) ? $_GET["section"] : NULL;
switch ($section) {
    case "databases":
        require_once "admin/admin_databases_lib.php";
        database();
        break;
    case "servers":
        require_once "admin/admin_servers_lib.php";
        servers();
        break;
    case "menus":
        require_once "admin/admin_menus_lib.php";
        menus();
        break;
    case "forum":
        require_once "admin/admin_forum_lib.php";
        forum();
        break;
    case "accounts":
        require_once "admin/admin_accounts_lib.php";
        accounts();
        break;
    case "pointsystem":
        require_once "admin/admin_pointsystem_lib.php";
Example #2
0
		
		<div class="container">
			<div class="row">
				<div class="col-lg-12">
					<h1>Manage Servers <a href="servers.php?create" class="btn btn-sm btn-info">Create Server</a></h1>
					<div class="well">
						<table class="table table-striped">
							<tr>
								<th>Name</th>
								<th>Type</th>
								<th>Location</th>
								<th>URL</th>
								<th></th>
							</tr>
							<?php 
$servers = servers();
foreach ($servers as $server) {
    ?>
							<tr>
								<td><?php 
    echo '<a href="' . $basedir . 'admin/servers.php?edit=' . $server['id'] . '">' . $server['name'] . '</a>';
    ?>
</td>
								<td><?php 
    echo $server['type'];
    ?>
</td>
								<td><?php 
    echo $server['location'];
    ?>
</td>
	include_once('ressources/class.users.menus.inc');
	include_once('ressources/class.mysql.inc');
	include_once('ressources/class.groups.inc');
	include_once('ressources/class.squid.inc');
	include_once('ressources/class.blackboxes.inc');
	
$usersmenus=new usersMenus();
if(!$usersmenus->AsSquidAdministrator){
	$tpl=new templates();
	$alert=$tpl->_ENGINE_parse_body('{ERROR_NO_PRIVS}');
	echo "alert('$alert');";
	die();	
}

if(isset($_GET["listonly"])){servers();exit;}
if(isset($_GET["servers"])){servers();exit;}
if(isset($_GET["nodes-list"])){serverlist();exit;}
if(isset($_GET["events"])){events();exit;}
if(isset($_GET["statsremoteservers-list-search"])){events_search();exit;}
if(isset($_POST["BuildRemoteConfig"])){BuildRemoteConfig();exit;}
if(isset($_POST["AddArticaAgent"])){AddArticaAgent();exit;}
if(isset($_POST["refresh-node"])){RefreshNode();exit;}




tabs();


function tabs(){
	$squid=new squidbee();
Example #4
0
function isOperational()
{
    global $flag;
    $servers = servers();
    foreach ($servers as $server) {
        if ($flag == False) {
            $output = get_data($server['url']);
            if ($output == NULL || $output === false) {
                $flag = True;
            } else {
                $flag = False;
            }
        }
    }
}