Home » Projects » Mambo CMS » SVN » Browse repository
Diff of /mambo/branches/4.6/includes/authenticator.php
Parent Directory
|
Revision Log
|
Patch
| 167 |
if ($admins == 0) echo "<script>alert(\"".T_('You cannot login. There are no administrators set up.')."\"); window.history.go(-1); </script>\n"; |
if ($admins == 0) echo "<script>alert(\"".T_('You cannot login. There are no administrators set up.')."\"); window.history.go(-1); </script>\n"; |
| 168 |
/** find the user group (or groups in the future) */ |
/** find the user group (or groups in the future) */ |
| 169 |
elseif (isset($my)) { |
elseif (isset($my)) { |
|
// $authoriser = new mosAuthoriser($database); |
|
| 170 |
if (strcmp( $my->password, $pass ) |
if (strcmp( $my->password, $pass ) |
| 171 |
OR !$acl->acl_check( 'administration', 'login', 'users', $my->usertype )) { |
OR !$acl->acl_check( 'administration', 'login', 'users', $my->usertype )) { |
| 172 |
echo "<script>alert('".T_('Incorrect Username, Password, or Access Level. Please try again')."'); document.location.href='index.php';</script>\n"; |
echo "<script>alert('".T_('Incorrect Username, Password, or Access Level. Please try again')."'); document.location.href='index.php';</script>\n"; |
| 173 |
return; |
return; |
| 174 |
} |
} |
|
session_name( md5(mamboCore::get('mosConfig_live_site'))); |
|
|
session_start(); |
|
| 175 |
$logintime = time(); |
$logintime = time(); |
| 176 |
$session_id = md5( "$my->id$my->username$my->usertype$logintime" ); |
$session_id = md5( "$my->id$my->username$my->usertype$logintime" ); |
| 177 |
$query = "INSERT INTO #__session" |
$query = "INSERT INTO #__session" |
|
|
Legend:
| Removed from v.417 |
|
| changed lines |
| |
Added in v.422 |
|
|

Web Hosting provided by Network
Redux.