UPDATE Suddenly - without changing anything - it works again ON SOME PAGES, on others it doesn't even show the result of my function function_exists('decod'), any ideas why?
I get this error:
Fatal error: Call to undefined function decod() in database.php on line 10
It worked fine before, here's database.php:
//Decode base64
function decod($string){
$string = base64_decode($string);
return ($string);
}
//Data double-coded with base64, just to prevent people reading
$host = "localhost";
$user = decod(DOUBLE_ENCRYPTED_USERNAME);
$pass = decod(DOUBLE_ENCRYPTED_PASSWORD);
$db = decod(DOUBLE_ENCRYPTED_DATABASE);
//Connect or print error
$con = mysql_connect($host, decod($user), decod($pass));
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
//Select database
mysql_select_db(decod($db), $con);