- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
final public static function getSomething($version_line = "pro") {
$default_domain = domainsCollection::getInstance()->getDefaultDomain();
if($_SERVER['SERVER_ADDR']) {
$cs2 = md5($_SERVER['SERVER_ADDR']);
} else {
$cs2 = md5(str_replace("\\","",$_SERVER['DOCUMENT_ROOT']));
}
switch($version_line) {
case "pro":
$cs3 = md5(md5(md5(md5(md5(md5(md5(md5(md5(md5($default_domain->getHost()))))))))));
break;
case "free":
$cs3 = md5(md5(md5($default_domain->getHost())));
break;
case "lite":
$cs3 = md5(md5(md5(md5(md5($default_domain->getHost())))));
break;
case "freelance":
$cs3 = md5(md5(md5(md5(md5(md5(md5($default_domain->getHost())))))));
break;
case "trial": {
$cs3 = md5(md5(md5(md5(md5(md5($default_domain->getHost()))))));
}
}
$licenseKeyCode = strtoupper(substr($cs2, 0, 11) . "-" . substr($cs3, 0, 11));
return $licenseKeyCode;
}