if (empty($_CONFIG['file_hash'])) {
// Create filename from hashed random string
$file_hash = generateHash(GEN_PASS(rand(128, 256)));
- $file = PATH."inc/.secret/.".$file_hash;
+ $file = sprintf("%sinc/.secret/.%s", PATH, $file_hash);
// File hash was never created
$fp = @fopen($file, 'w') or mxchange_die("Cannot write secret key file!");