16 if (!file_exists(getcwd().
"/ilias.ini.php"))
18 header(
"Location: ./setup/setup.php");
26 $cookie_domain = $_SERVER[
'SERVER_NAME'];
27 $cookie_path = dirname( $_SERVER[
'PHP_SELF'] );
34 $cookie_path .= (!preg_match(
"/[\/|\\\\]$/", $cookie_path)) ?
"/" :
"";
36 if($cookie_path ==
"\\") $cookie_path =
'/';
40 setcookie(
"ilClientId",
$_GET[
"client_id"], 0, $cookie_path, $cookie_domain);
45 require_once
"include/inc.header.php";
47 $ilCtrl->initBaseClass(
"ilStartUpGUI");
49 $ilCtrl->setTargetScript(
"ilias.php");