From: Joe Presbrey Date: Thu, 17 Aug 2006 21:33:43 +0000 (+0000) Subject: index redirects to vhost when on home tab X-Git-Url: http://andersk.mit.edu/gitweb/sql-web.git/commitdiff_plain/0e6101d7022291ea99e6c55e586dfc77c67830b6 index redirects to vhost when on home tab signup produces more random password git-svn-id: svn://presbrey.mit.edu/sql/mitsql@108 a142d4bd-2cfb-0310-9673-cb33a7e74f58 --- diff --git a/batch/signup.php b/batch/signup.php index 1bb7cd8..7865542 100755 --- a/batch/signup.php +++ b/batch/signup.php @@ -17,7 +17,7 @@ if (count($hesinfo)>=4) { $myName = $myUsername; } $myEmail = $myUsername.'@mit.edu'; -$myPassword = substr(uniqid(),0,7); +$myPassword = substr(md5(uniqid(),0,8)); if ($myUID<1000) exit('bad UID'); diff --git a/index.php b/index.php index 7cceea0..e825968 100755 --- a/index.php +++ b/index.php @@ -10,6 +10,8 @@ require_once('mitsql.cfg.php'); require_once('mitsql.lib.php'); isLoggedIn() && redirect('main'); +!DEBUG && $_SERVER['SERVER_NAME'] != 'sql.mit.edu' && redirect2('http://sql.mit.edu/'); + //$LoginSSL->canSignup() && redirect('signup'); //redirect('login'); diff --git a/tpl/menu.php b/tpl/menu.php index ea2347c..b96bb46 100644 --- a/tpl/menu.php +++ b/tpl/menu.php @@ -22,7 +22,11 @@ Logged in: @ 
  • Sign up
  • phpMyAdmin
  • +
  • Home
  • + +
  • Home
  • +
    Login via:
  • SQL Password
  • MIT Certificate