phpGroupWare - setup' . '
 phpGroupWare version ' . $phpgw_info["server"]["version"] . ' setup
'; } function loginForm($err="") { global $PHP_SELF; echo "phpGroupWare Setup - please Login\n"; echo "\n"; echo "\n"; echo " \n"; echo " \n"; echo " \n"; if ($err != "") { echo " \n"; } echo " \n"; echo " \n"; echo " \n"; echo "
 Setup Login
".$err."
\n"; echo " \n"; echo " \n"; echo "
\n"; echo "\n"; } if (isset($FormPW) ) { if ($FormPW != $phpgw_info["server"]["config_passwd"]) { loginForm("Invalid password."); exit; } // Valid login, fall through and set the cookie $SetupCookie = $FormPW; } else if (isset($SetupCookie)) { if ($SetupCookie != $phpgw_info["server"]["config_passwd"]) { setcookie("SetupCookie",""); // scrub the old one loginForm("Invalid session cookie (cookies must be enabled)"); exit; } } else { loginForm(); exit; } // Auth ok. setcookie("SetupCookie","$SetupCookie"); ?>