Example #1
0
        TraceZ("{$HTTP_X_REAL_IP}  uri:{$_GET['uri']}", $_GET["servername"]);
        while (list($index, $key) = each($_COOKIE)) {
            TraceZ("{$HTTP_X_REAL_IP}  Cookie {$index} \"{$key}\"", $_GET["servername"]);
        }
        while (list($index, $key) = each($_SERVER)) {
            TraceZ("{$HTTP_X_REAL_IP}  _SERVER {$index} \"{$key}\"", $_GET["servername"]);
        }
    }
    if ($type == 4) {
        Debuglogs("NEXT: GroupID: {$index}, type:{$type} -> redirect_rule({$index})", __FUNCTION__, __LINE__);
        if (redirect_rule($gps, $index)) {
            die;
        }
    }
    if ($type == 5) {
        if (cas_auth($index, $_GET["ruleid"])) {
            header("HTTP/1.0 200 OK");
            Debuglogs("{$HTTP_X_REAL_IP}: Auth: Authenticated trough CAS rule {$_GET["ruleid"]}", __FUNCTION__, __LINE__);
            die;
        } else {
            header('HTTP/1.0 403 Unauthorized');
            die;
        }
    }
}
Debuglogs("{$HTTP_X_REAL_IP}: Auth: \"{$_SERVER['PHP_AUTH_USER']}\", uri:{$_GET['uri']}, rule:{$_GET["ruleid"]}", __FUNCTION__, __LINE__);
$banner = base64_decode($_GET["banner"]);
Debuglogs("{$HTTP_X_REAL_IP}: -> INIT", __FUNCTION__, __LINE__);
$GLOBALS["Q"] = new mysql_squid_builder();
if ($MUST_AUTH) {
    if (!isset($_SERVER['PHP_AUTH_USER']) or $_SERVER['PHP_AUTH_USER'] == null) {
Example #2
0
if (!$usersmenus->AsHotSpotManager) {
    $tpl = new templates();
    $alert = $tpl->_ENGINE_parse_body('{ERROR_NO_PRIVS}');
    echo "alert('{$alert}');";
    die;
}
if (isset($_POST["EnableMaintenanceHotSpot2"])) {
    EnableMaintenanceHotSpot2();
    exit;
}
if (isset($_GET["status"])) {
    status();
    exit;
}
if (isset($_GET["cas"])) {
    cas_auth();
    exit;
}
if (isset($_GET["popup"])) {
    popup();
    exit;
}
if (isset($_GET["tabs"])) {
    tabs();
    exit;
}
if (isset($_GET["options"])) {
    options();
    exit;
}
if (isset($_POST["EnableArticaHotSpot"])) {
Example #3
0
	include_once('ressources/class.templates.inc');
	include_once('ressources/class.ldap.inc');
	include_once('ressources/class.users.menus.inc');
	include_once('ressources/class.squid.inc');
	include_once('ressources/class.system.network.inc');

	
$usersmenus=new usersMenus();
if(!$usersmenus->AsHotSpotManager){
	$tpl=new templates();
	$alert=$tpl->_ENGINE_parse_body('{ERROR_NO_PRIVS}');
	echo "alert('$alert');";
	die();	
}
	if(isset($_GET["status"])){status();exit;}
	if(isset($_GET["cas"])){cas_auth();exit;}
	if(isset($_GET["popup"])){popup();exit;}
	if(isset($_GET["tabs"])){tabs();exit;}
	if(isset($_GET["options"])){options();exit;}
	if(isset($_POST["EnableArticaHotSpot"])){SaveEnable();exit;}
	if(isset($_POST["ArticaHotSpotPort"])){EnableArticaHotSpot();exit;}
	if(isset($_POST["EnableArticaHotSpotCAS"])){EnableArticaHotSpotCAS();exit;}
	if(isset($_GET["terme-of-use"])){echo terme_of_use();exit;}
	if(isset($_POST["USETERMSTEXT"])){xSaveOptions();exit;}
	if(isset($_POST["USELDAP"])){xSaveOptions();exit;}
	if(isset($_GET["add-freeweb-js"])){add_freeweb_js();exit;}
	if(isset($_GET["radius"])){radius_config();exit;}
	if(isset($_POST["RAD_SERVER"])){xSaveOptions();exit;}
	if(isset($_GET["hostspot-status"])){services_status();exit;}

js();