back_EN.php:
Code: Select all
//class.Database.php
$msg['NoDB'] = 'Unable to connect to database.';
//class.Authorization.php
$msg['InvalidLogin'] = 'Invalid username or password.';
//class.Validator.php
$msg['EmptyField'] = '<b>{field}</b> field is empty.';
$msg['InvalidField'] = '<b>{field}</b> field is invalid.';
/* ... */Code: Select all
include(languages . '/back_EN.php'); //The file above, it includes fine, no errors
//Class includes
/* ... */
if ($authorization->error())
{
$_SESSION['msg'] = $msg[$authorization->getError()]; //Error is here, $authorization->getError() IS 'InvalidLogin', I echoed it
include('pages/index.php');
exit;
}---EDIT---
Sorry, this doesn't work, I accidently checked that on my local machine, so it doesn't apply to this host, it still doesn't work, even if pasted in index.php.
---EDIT---The interesting thing is, that if I delete $msg['InvalidLogin'] = 'Invalid username or password.'; from the back_EN.php and paste it into index.php, then I get no error and it prints the message!
I'm really not sure what is wrong here. Something unbelievable. Any info greatly appreciated.