Esempio n. 1
0
function RQ($GP)
{
    if (Preg_Match("~[?|&](?!({$GP}))(([^=]+)=([^&]+))?~is", SU)) {
        R301(Preg_replace("~[?|&](?!({$GP}))(([^=]+)=([^&]+))?~is", '', SU));
    }
}
Esempio n. 2
0
function R404($m = 1)
{
    if (J9) {
        fb(debug_backtrace(), 'backtrace');
    }
    e(',r404,die,noperf,noindex');
    #av(__line__);
    if (preg_match("~print.css~i", u)) {
        Readfile(R . '!c/print.css');
        kill('/*php*/');
    }
    while ($i < 99) {
        $i++;
        $f .= '&nbsp;';
    }
    #dépasser le tampon d'IE pour page 404
    if ($m == 2) {
        ob_end_clean();
        Header('Status: 404 Not Found', 0, 404);
        kill("<center><script>location.href='/';</script><a href='/'>404 - Page Not Found </a>" . $f);
    }
    if (j9 && $m) {
        FAP(LOGS . "sql.decalees", "update url set header=1 where url='" . SU . "'");
    }
    #SQL for cronjob : flag this url as bad
    if (in_array(substr(U, -3), array('jpg', 'png', 'gif', 'bmp'))) {
        R301('http://x24.fr/404.jpg');
    }
    #if(Preg_Match("~\.(rar|asp|zip)$~is",u))Block('','',1);#;
    if (preg_match("~" . IGNORE404 . "~i", u)) {
        $m = 0;
    }
    #très nombreuses ( hacking attempt, scans ... )
    if ($m) {
        FAP(L2 . "404.ser", SU);
    }
    #ob_end_clean();
    Header('Status: 404 Not Found', 1, 404);
    #headers sent here
    if (!J9 && !BOST && in_array(H, array('1rachat-credit.fr', 'creditimmo.org', 'dc10.fr'))) {
        $f .= "<script>location.href='/';</script>";
    }
    echo "<html><head><title>404 not found</title><style>body{background:#003;color:#AAA;}</style>\n  </head><body><table width=100% height=100% border=0 align=center><tr><td><center><h1>404 - Page Non trouvée<br>" . (is_string($m) ? $m : '') . "<br><a href='/'><img src='http://x24.fr/immologo1.png'><br>Retour à l'accueil</a></h1><br><form action='http://google.fr/search' method=get><input type=hidden name=q value='site:" . H . "'><input name=q><input type=submit value=rechercher></form></td></tr></table>{$f}</body></html>";
    die;
}