Password required
"); function SessionAuth($pagename,$level,$authprompt=true) { global $GroupAttributesFmt,$DefaultPasswords, $AllowPassword,$HTMLBodyFmt,$SessionAuthFmt; $page = ReadPage($pagename); if (!$page) { return false; } @$passwd = $page["passwd$level"]; if ($passwd=="") { $grouppg = ReadPage(FmtPageName($GroupAttributesFmt,$pagename)); @$passwd = $grouppg["passwd$level"]; } if (crypt($AllowPassword,$passwd)==$passwd) return $page; if ($passwd=="") { $passwd=@$DefaultPasswords[$level]; } if ($passwd=="") return $page; $authpw = $_SESSION['authpw']; foreach(array_merge($DefaultPasswords['admin'],$passwd) as $pw) if (crypt($authpw,$pw)==$pw) return $page; if (!$authprompt) return false; $HTMLBodyFmt = str_replace('