Exemple #1
0
<?php

R302('/#accessing rt main folder: not that good : noindex');
Exemple #2
0
function R303($x, $nc = 0)
{
    #elles passent toutes par ici
    if (J9) {
        FB(debug_backtrace(), 303);
    }
    #$bt=end($bt);
    if (strlen($x) > 200 || preg_match("~phpthumb|image/png|base64,|data:~i", U)) {
        return;
    }
    #db3("r303urldata:");av(func_get_args());#data:;, => ne doit pas générer de r301 car .. bordel !!
    #if(J11)av(debug_backtrace());
    if (STARTER) {
        $lh = $_ENV['yt']['lh'];
        $lr = $_ENV['yt']['lr'];
    }
    Fap(IPF, 'lr', SU . "=>" . $x);
    #la concrétisation
    unset($_SESSION['st1']);
    $_GET['r301'] = 1;
    e(',r301,r303');
    #tracker
    #SU.$x
    if (starter && $lh == 301 && $lr == $x) {
        jx($lh . $lr);
        db('dest' . SU);
        if (U) {
            R302("/#error:301loop:{$x}");
        }
        return;
    }
    if ($nc == 1) {
        Header("Status: 301 Moved Permanently", 1, 301);
        Header("Location:{$x}");
        kill();
    }
    if (!$x) {
        Db("emptyR2:" . SU);
        jx('emptyr2');
        return;
    }
    #jx();
    if (headers_sent($f, $line)) {
        Db("headers!{$f},{$line}");
        return;
    }
    #on n'y peut rien !#@ob_clean();
    Header("Status: 301 Moved Permanently", 1, 301);
    Header("Location:{$x}");
    #av($_ENV['args'].'-'.__line__);
    kill();
}