*/ if( extension_loaded('xdebug') || Configuration::get('SEI_BLOCK_seigitagmanager') == 1 || !extension_loaded('ionCube Loader') || ioncube_loader_iversion() < 100202 || PHP_VERSION_ID < 50600 || PHP_VERSION_ID > 70499 ){ if (PHP_SAPI === 'cli') { $message = ""; if (extension_loaded('xdebug')) { $message .= "------- ERROR: Xdebug jest zainstalowany. Powoduje on konflikty z IONCube Loader.\n"; } if (!extension_loaded('ionCube Loader')) { $message .= "------- ERROR: ionCube Loader nie jest zainstalowany.\n"; } if($message) { die($message); } } class seigitagmanager extends Module { public function __construct() { $this->name = 'seigitagmanager'; $this->version = 'x.x.x'; $this->author = 'SEIGI'; $this->need_instance = 1; parent::__construct(); $this->displayName = 'seigitagmanager'; $this->description = 'Nie można było zainstalować modułu / Unable to install module'; } public function install() { // Blokada jest tylko po to, ażeby klient napewno odinstalował moduł. // Znając życie, to nikt nie przeczyta tego do końca, a procedury instalacyjne muszę zostać wykonane Configuration::updateGlobalValue('SEI_BLOCK_seigitagmanager', 1); return parent::install(); } public function uninstall() { Configuration::deleteByName('SEI_BLOCK_seigitagmanager'); return parent::uninstall(); } public function getContent() { $minimum_io_v = '10.2.2'; $is_ok = true; $return = ''; $return .= '
Prosimy o zapoznanie się z wymagniami modułu Więcej informacji na temat wymagań zanajduje się pod tym adresem
'; $ic_version = 0; $errors = []; if( extension_loaded('xdebug')){ $errors[] = $this->displayError('Rozszerzenie xDebug i IonCube nie są kompatybilne i nie mogą współdziałać. Aby moduł działał poprawnie, niezbędne jest odinstalowanie rozszerzenia xDebug, które powoduje błędy typu 500.| Wymagana | Zainstalowana | Status | |
|---|---|---|---|
| Ioncube | '.$minimum_io_v.' | '.implode('.', array_map('intval',str_split(str_pad($ic_version, 6, 0, STR_PAD_LEFT),2))).' | '. $ic_message .' |
| PHP | 5.6.0 - 7.4.99 | '.phpversion(). ' | '.$php_message.' |
Testing {$domain} / IP: ".gethostbyname($domain).': '; $return .= (Tools::file_get_contents('http://'.$domain.'/xyz.txt') == 'xyz' ? 'Connection OK' : 'Not xyz - connection error'); $return .= "
"; }; $test_xyz('seigi.eu'); $test_xyz('s1.license.seigi.eu'); $test_xyz('s2.license.seigi.eu'); $test_xyz('s3.license.seigi.eu'); $test_xyz('s4.license.seigi.eu'); if($is_ok && Configuration::get('SEI_BLOCK_seigirequestreview') == 1){ $return .= '