Open_Session(0,$verified["uid"]); /* $sql = new Owl_DB; $sql->query("select * from $default->owl_folders_table where parent = '2' and name = '$loginname'"); while($sql->next_record()) $id = $sql->f("id"); */ $id = 1; /* BEGIN Admin Change */ /* If an admin signs on We want to se the admin menu Not the File Browser. */ if ( $verified["group"] == 0) { // if admin logs on..goto the admin main page // else goto the normal file browser page if(!isset($fileid)) { header("Location: admin/index.php?sess=". $uid->sessdata["sessid"]); } else { header("Location: browse.php?sess=". $uid->sessdata["sessid"]."&parent=$parent&fileid=$fileid"); } } else { if(!isset($fileid)) { header("Location: browse.php?sess=". $uid->sessdata["sessid"]); } else { header("Location: browse.php?sess=". $uid->sessdata["sessid"]."&parent=$parent&fileid=$fileid"); } } /* END Admin Change */ } else {//normal user..check failures if ($verified["bit"] == 2) { header("Location: index.php?login=1&failure=2"); } else if ($verified["bit"] == 3 ) { header("Location: index.php?login=1&failure=3"); } else { header("Location: index.php?login=1&failure=1"); } } } // if(($login == 1) || ($failure == 1)) { include("./lib/header.inc"); print("
"); // BUG Number: 457588 // This is to display the version inforamation // BEGIN print("
$lang_engine
$lang_version: $default->version

"); // END if($failure == 1) { print("
$lang_loginfail
"); } if($failure == 2) { print("
$lang_logindisabled
"); } if($failure == 3) { print("
$lang_toomanysessions
"); } print "
"; if (isset($fileid)) { print ""; print ""; } print ""; print "
$lang_username:
$lang_password:
"; print "\n"; print "


"; exit; } // when the user logouts the session is deleted from the session table if($login == "logout") { include("./lib/header.inc"); print("
"); // BUG Number: 457588 // This is to display the version inforamation // BEGIN print("
$lang_engine
$lang_version: $default->version

"); // END $sql = new Owl_DB; $sql->query("delete from $default->owl_sessions_table where sessid = '$sess'"); print("
$lang_successlogout
"); print ""; print ""; print "
$lang_username:
$lang_password:
"; print "\n"; print "


"; exit; } include("./lib/footer.inc"); ?>