Re-adding support PHP 5.5.9/7.0.x (#915)

Resolves #908.
This commit is contained in:
wienfuchs 2020-05-15 16:55:57 +02:00 committed by GitHub
parent 424fca1eb7
commit 7bee25cc1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 12 additions and 12 deletions

View File

@ -77,7 +77,7 @@ Requirements
* Web server * Web server
* MySQL database * MySQL database
* For PHP5: 5.6.0+ * For PHP5: 5.5.9+
* For PHP7: 7.0.8+ * For PHP7: 7.0.8+
* PHP cURL package * PHP cURL package
* PHP PDO mysql driver * PHP PDO mysql driver

View File

@ -5,7 +5,7 @@ Requirements
* Web server * Web server
* MySQL database * MySQL database
* For PHP5: 5.6.0+ * For PHP5: 5.5.9+
* For PHP7: 7.0.8+ * For PHP7: 7.0.8+
* PHP cURL package * PHP cURL package
* PHP PDO mysql driver * PHP PDO mysql driver

View File

@ -75,11 +75,11 @@ class InstallController extends AbstractController
$phpv = phpversion(); $phpv = phpversion();
if ( if (
version_compare($phpv, '5.6.0', '<') || version_compare($phpv, '5.5.9', '<') ||
(version_compare($phpv, '7.0.8', '<') && version_compare($phpv, '7.0.0', '>=')) (version_compare($phpv, '7.0.8', '<') && version_compare($phpv, '7.0.0', '>='))
) { ) {
$errors++; $errors++;
$this->addMessage('PHP 5.6.0+ or 7.0.8+ is required to run PHP Server Monitor. You\'re using ' . $this->addMessage('PHP 5.5.9+ or 7.0.8+ is required to run PHP Server Monitor. You\'re using ' .
$phpv . '.', 'error'); $phpv . '.', 'error');
} else { } else {
$this->addMessage('PHP version: ' . $phpv, 'success'); $this->addMessage('PHP version: ' . $phpv, 'success');

View File

@ -35,15 +35,15 @@ final class UserEvents
/** /**
* @var string * @var string
*/ */
public const USER_ADD = 'user.add'; const USER_ADD = 'user.add';
/** /**
* @var string * @var string
*/ */
public const USER_EDIT = 'user.edit'; const USER_EDIT = 'user.edit';
/** /**
* @var string * @var string
*/ */
public const USER_DELETE = 'user.delete'; const USER_DELETE = 'user.delete';
} }

View File

@ -67,10 +67,10 @@ class CMBulkSMS extends Core
protected $messageBody; protected $messageBody;
/** @var string JSON Gateway API URL */ /** @var string JSON Gateway API URL */
public const GATEWAY_URL_JSON = "https://gw.cmtelecom.com/v1.0/message"; const GATEWAY_URL_JSON = "https://gw.cmtelecom.com/v1.0/message";
/** @var string XML Gateway API URL */ /** @var string XML Gateway API URL */
public const GATEWAY_URL_XML = "https://sgw01.cm.nl/gateway.ashx"; const GATEWAY_URL_XML = "https://sgw01.cm.nl/gateway.ashx";
/** /**
* Build the message and send cURL request to the sms gateway * Build the message and send cURL request to the sms gateway

View File

@ -32,9 +32,9 @@ namespace psm\Util\Module;
class Modal implements ModalInterface class Modal implements ModalInterface
{ {
public const MODAL_TYPE_OK = 0; const MODAL_TYPE_OK = 0;
public const MODAL_TYPE_OKCANCEL = 1; const MODAL_TYPE_OKCANCEL = 1;
public const MODAL_TYPE_DANGER = 2; const MODAL_TYPE_DANGER = 2;
/** /**
* prefix used for modal dialog box elements * prefix used for modal dialog box elements