Menu

#4 Security Alert always in Spanish

closed
Interface (1)
5
2014-09-17
2007-10-14
MJ Ray
No

The security alert email is always in Spanish, even if the system is configured in English. This upsets monoglot anglophones.

I think the correct English forms in data/include/usuarios.php would be:

    $erros = array\(
        1 => 'Attempt to gather user data',
        2 => 'User data does not exist',
        3 => 'Incorrect user data',
        4 => "Invalid attempt to access the admin area",
    \);

    $t = 'Security alert from '.$vars->server\('SERVER\_NAME'\);
    $m = 'Alert about an attempt to access '.$vars->server\('SERVER\_NAME'\)
        ."\nURL ".$vars->server\('PHP\_SELF'\)
        ."\nOn ".date\('Y-m-d H:i'\)
        ."\nWith IP address ".$vars->ip\(\)
        ."\n\n".$erros\[$erro\];

    ob\_start\(\);
    echo "\n\nContents of GET:\n";
    var\_dump\($vars->get\(''\)\);

    echo "\n\nContents of POST:\n";
    var\_dump\($vars->post\(''\)\);

    echo "\n\nContents of SESSION:\n";
    var\_dump\($vars->session\(''\)\);

Hope that helps -- MJR

Discussion

  • PHPfileNavigator

    • status: open --> closed
     
  • PHPfileNavigator

    Logged In: YES
    user_id=1302455
    Originator: NO

    Thanks

     

Log in to post a comment.