Файл: RootPanel 1.7.0 FreeCode/RootPanel 1.7.0 FreeCode/pl.php
Строк: 23
<?
$full_home_path = dirname(__FILE__);
require_once($full_home_path."/_rootload.php");
$userid=intval(getenv("QUERY_STRING"));
if ($userid > 0) {
mconnect();
$partnerCookieTime=GetSetting("partnerCookieTime");
$url=GetSetting("partnerUrl");
mclose();
$domain = getenv('HTTP_HOST');
$domain = preg_replace("/^www./ui","",$domain);
setcookie("partnerRootPanelCookie", $userid, time()+3600*24*$partnerCookieTime, "/", ".".$domain);
if ($url) {Header("Location: $url");}
else {Header("Location: order.php");}
} else {
Header("Location: order.php");
}
?>