Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Weitere Informationen zur Bundle Funktion finden Sie im IonCube User Guide (Abschnitt 3.14)


Prüfung auf xt:Commerce Lizenzkey

Bei Plugins empfehlen wir statt der Lizenzierung auf IP,Domain oder Mac, diese an die xt:Commerce Lizenznummer zu binden.

Hierzu kann im Plugin folgender Code verwendet werden:

Code Block
languagephp

if (!function_exists('ioncube_license_properties')) {
	$lic_parms = array();
} else {
	$lic_parms = ioncube_license_properties();
}
if (isset($lic_parms['LICENSEKEY']['value'])) {
	$_lic = _SRV_WEBROOT . 'lic/license.txt';
	if (!file_exists($_lic))
		die('- main lic missing -');
	$val_line = '';
	$bline = '';
	$_file_content = file($_lic);
	foreach ($_file_content as $bline_num => $bline) {
		if (strpos($bline, 'key:', 0) !== FALSE) {
			$val_line = $bline;
			break;
		}
	}
	$val_line = explode(':', $val_line);
	$_shop_lic = '';
	$_shop_lic = trim($val_line[1]);
	unset($val_line);
	unset($_lic);
	
	if ($_shop_lic != md5($lic_parms['LICENSEKEY']['value']))
		die('- Plugin license not matching, contact support -');
}

Fügen Sie hierzu Ihrem Plugin bei der Verschlüsselung eine Property LICENSEKEY hinzu.