<commit_before><?php

include_once('glpi.php');
include_once('common.php');
loadEnv();
/**
 * This script make a simple redirect to 
 **/
if ($_SERVER['SERVER_ADDR'] == $_SERVER['HTTP_HOST']) {
    if (ADMINACTIVE == 1) {
        die(header("Location: /admin/"));
    }
}

$ignore = array(
    "client-lb.dropbox.com",
    "configuration.apple.com",
    "d.dropbox.com",
    "download.windowsupdate.com",
    "e-cdn-proxy-9.deezer.com",
    "enablers.bouygtel.fr",
    "gllto.glpals.com",
    "images.apple.com",
    "iphone-wu.apple.com",
    "live.deezer.com",
    "mesu.apple.com",
    "notify1.dropbox.com",
    "notify2.dropbox.com",
    "notify4.dropbox.com",
    "notify5.dropbox.com",
    "notify9.dropbox.com",
    "phobos.apple.com",
    "safebrowsing.clients.google.com",
    "samsung-mobile.query.yahooapis.com",
    "www.update.microsoft.com",
    "ctldl.windowsupdate.com",
    "cdn.samsungcloudsolution.com",
);

$version = "";
$dest = $_SERVER['HTTP_HOST'];

if (in_array($dest, $ignore)) {
    exit;
}

$cf = '/etc/wifi_rover.conf';
# redirect corporate
$CORPORATENET = getValueFromConf($cf, 'CORPORATENET');
$CORPORATE_REDIRECT = getValueFromConf($cf, 'CORPORATE_REDIRECT');
if( $CORPORATE_REDIRECT != "" and $CORPORATENET != "" and IPBelongsToNetwork(IP, $CORPORATENET) )
{<commit_msg>fix: rapatriement de la variable GTW<commit_after><?php

include_once('glpi.php');
include_once('common.php');
loadEnv();
/**
 * This script make a simple redirect to 
 **/
if ($_SERVER['SERVER_ADDR'] == $_SERVER['HTTP_HOST']) {
    if (ADMINACTIVE == 1) {
        die(header("Location: /admin/"));
    }
}

$ignore = array(
    "client-lb.dropbox.com",
    "configuration.apple.com",
    "d.dropbox.com",
    "download.windowsupdate.com",
    "e-cdn-proxy-9.deezer.com",
    "enablers.bouygtel.fr",
    "gllto.glpals.com",
    "images.apple.com",
    "iphone-wu.apple.com",
    "live.deezer.com",
    "mesu.apple.com",
    "notify1.dropbox.com",
    "notify2.dropbox.com",
    "notify4.dropbox.com",
    "notify5.dropbox.com",
    "notify9.dropbox.com",
    "phobos.apple.com",
    "safebrowsing.clients.google.com",
    "samsung-mobile.query.yahooapis.com",
    "www.update.microsoft.com",
    "ctldl.windowsupdate.com",
    "cdn.samsungcloudsolution.com",
);

$version = "";
$dest = $_SERVER['HTTP_HOST'];

if (in_array($dest, $ignore)) {
    exit;
}

$gtw=GTW;
$cf = '/etc/wifi_rover.conf';
# redirect corporate
$CORPORATENET = getValueFromConf($cf, 'CORPORATENET');
$CORPORATE_REDIRECT = getValueFromConf($cf, 'CORPORATE_REDIRECT');
if( $CORPORATE_REDIRECT != "" and $CORPORATENET != "" and IPBelongsToNetwork(IP, $CORPORATENET) )
{
{'fraction_non_alphanumeric': 0.19083680424081786, 'fraction_numerical': 0.005301022340022719, 'mean_word_length': 3.829981718464351, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6571236', 'n_tokens_mistral': 1078, 'n_tokens_neox': 1037, 'n_words': 140}