You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
788 B
PHP

<?php
// error_reporting(0);
set_include_path('.');
session_start();
$_dom = $_SERVER['SERVER_NAME'];
$_path = substr( $_SERVER['PHP_SELF'], 0, strrpos( $_SERVER['PHP_SELF'], '/' )).'/';
$_self = 'http://'.$_dom.$_path;
$link = $_GET['link'];
$anker = $_GET['anker'];
if ($link == '' || $_self == ''){
echo $_link."<br>";
echo $_self."<br>";
echo "Fehler";
exit;
}
$CookieBasisName = 'l3lib-';
$Cookie_letzteSeite = $CookieBasisName.'letzteSeite-';
$Cookie_Anker = $CookieBasisName.'anker';
setcookie($Cookie_letzteSeite,$link,time() + 40000000);
if ($anker == '') {
setcookie($Cookie_Anker,'nixda',time() - 4200);
}else{
setcookie($Cookie_Anker,$anker,time() + 40000000);
}
header ("Location: ".$_self); /* Umleitung des Browsers */
?>