phpGroupWare setup ' . $title . '' . '
 phpGroupWare version ' . $phpgw_info["server"]["version"] . ' setup
'; } function loginForm($err="") { global $PHP_SELF; setup_header("Please login"); 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"); ?>