Quote Originally Posted by websmith View Post
Code:
require(DIR_WS_LANGUAGES . $_SESSION['language'] . '/' . 'lang.' .  FILENAME_MAIL . '.php');
require(DIR_WS_CLASSES . 'currencies.php');
$currencies = new currencies();

if##(!function_exists('defineIfNot'))##{
########function##defineIfNot(string##$name,##string##$definition)
########{
################if##(!defined($name))##{
########################define($name,##$definition);
################}
########}
}

foreach##($define##as##$key##=>##$value)##{
########defineIfNot($key,##$value);
}

$action##=##$_GET['action']##??##'noAction';
The error indicates the error is in line 41 if##(!function_exists('defineIfNot'))##{
After seeing how this pasted in with all the # signs apparently I have a problem with pasting from my machine. This was copied out from the server using nano. It does not show the number signs but when I turn on the white space I can see spaces are not there. I modified the file with nano and now the spaces show and the error changes so it is something with the way I am editing files. I am working to identify that and will update when I know more.