refs #5: wrapped licensing errors functions in an if function_exists...
This commit is contained in:
parent
66e5c187be
commit
227de6baf6
@ -1,4 +1,6 @@
|
||||
<?php
|
||||
if (!function_exists('btw_license_error'))
|
||||
{
|
||||
function btw_license_error($code, $message)
|
||||
{
|
||||
// Remove an invalid license file - relevant to index.php as that's the main entry script
|
||||
@ -12,7 +14,7 @@ function btw_license_error($code, $message)
|
||||
$backupFilename = sprintf('%s_invalid.%d', $licenseFile, $number++);
|
||||
} while (file_exists($backupFilename));
|
||||
|
||||
// Rename or remove the file
|
||||
// Rename or remove the invalid file
|
||||
if (!rename($licenseFile, $backupFilename))
|
||||
{
|
||||
@unlink($licenseFile);
|
||||
@ -22,10 +24,14 @@ function btw_license_error($code, $message)
|
||||
header(sprintf('Location: license-required.php?licerror=%d', $code));
|
||||
exit();
|
||||
}
|
||||
}
|
||||
|
||||
if (!function_exists('btw_loader_error'))
|
||||
{
|
||||
function btw_loader_error()
|
||||
{
|
||||
header('Location: loader-required.php');
|
||||
exit();
|
||||
}
|
||||
}
|
||||
?>
|
Loading…
Reference in New Issue
Block a user