if (getConfig('file_hash') == "") {
// Create filename from hashed random string
$file_hash = sha1(GEN_PASS(mt_rand(128, 256)));
- $file = PATH."inc/.secret/.".$file_hash;
+ $file = sprintf("%sinc/.secret/.%s",
+ constant('PATH'),
+ $file_hash
+ );
// Count of chars to be taken from back of the string
$nums = mt_rand(40, 45);
array($file_hash), __FILE__, __LINE__);
// Generate FQFN for .htaccess file
- $FQFN = PATH."inc/.secret/.htaccess";
+ $FQFN = sprintf("%sinc/.secret/.htaccess",
+ constant('PATH')
+ );
// Is the .htaccess file there?
if (!FILE_READABLE($FQFN)) {