Changeset 541
- Timestamp:
- 09/13/06 12:36:04 (2 years ago)
- Files:
-
- devel/login/index.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
devel/login/index.php
r536 r541 10 10 $redirect_url = $CFG->wwwroot . "index.php"; 11 11 } 12 /* 13 TODO: Find a more useful way to restrict redirects to 14 the valid Elgg domain name. 15 12 16 if (substr_count($redirect_url,$CFG->wwwroot) == 0) { 13 17 $redirect_url = substr($CFG->wwwroot,0,strlen($CFG->wwwroot) - 1) . $redirect_url; 14 18 } 15 19 */ 16 20 17 21 // if we're already logged in, redirect away again. … … 31 35 if ($ok) { 32 36 $messages[] = gettext("You have been logged on."); 37 if (md5($p) == md5("password")) { 38 $messages[] = gettext("The password for this account is extremely insecure and represents a major security risk. You should change it immediately."); 39 } 33 40 define('redirect_url', $redirect_url); 34 41 $_SESSION['messages'] = $messages;
