diff --git a/public/license-required.php b/public/license-required.php index 7933ae6..52b3bd3 100644 --- a/public/license-required.php +++ b/public/license-required.php @@ -46,6 +46,23 @@ if (strtolower($_SERVER['REQUEST_METHOD']) == 'post' && isset($_FILES['upload-li } /* END UPLOAD PROCESSING */ +/* START LICENSE ERROR */ +$licenseError = null; +if (isset($_GET['licerror'])) +{ + $licenseErrorNumber = intval($_GET['licerror']); + + if (isset($lang['license_errors'][$licenseErrorNumber])) + { + $licenseError = $lang['license_errors'][$licenseErrorNumber]; + } + else + { + $licenseError = $lang['license_errors'][99]; + } +} +/* END LICENSE ERROR */ + ob_start(); ?> @@ -59,6 +76,11 @@ ob_start();

+ +
+

+
+
diff --git a/public/raw/lang.en.php b/public/raw/lang.en.php index 3f7dca3..2cf01ad 100644 --- a/public/raw/lang.en.php +++ b/public/raw/lang.en.php @@ -2,6 +2,17 @@ return [ 'app_name' => 'Blue Twilight - Install', 'copyright' => sprintf('© %s Andy Heathershaw.', (date('Y') == 2016 ? 2016 : '2016-' . date('Y'))), + 'license_errors' => [ + 1 => 'The application is not licensed to run on this machine or domain.', + 2 => 'The application is not licensed to run on this machine or domain.', + 3 => 'The application is not licensed to run on this machine or domain.', + 6 => 'The license file provided is invalid.', + 7 => 'This version of PHP is not supported. Please upgrade to a supported version of PHP or contact support.', + 9 => 'The application/license has expired.', + 13 => 'No license is currently available.', + 20 => 'The application requires an Internet connection that was not available.', + 99 => 'An unexpected error occurred, please contact support.' + ], 'license_required_p1' => 'Blue Twilight requires a license to run correctly. You can generate and download a license file from the My Orders page.', 'license_required_p2' => 'Your license file must match the hostname: :host_name.', 'license_required_title' => 'License Required', diff --git a/public/raw/sg-license-error.php b/public/raw/sg-license-error.php index 00b352c..050c756 100644 --- a/public/raw/sg-license-error.php +++ b/public/raw/sg-license-error.php @@ -1,6 +1,24 @@ " --catch ERR_ALL="btw_license_error" "*.php"',