Changeset View
Changeset View
Standalone View
Standalone View
core/install/install_toolkit.php
Show First 20 Lines • Show All 169 Lines • ▼ Show 20 Line(s) | |||||
/** | /** | ||||
* Processes one license, received from server | * Processes one license, received from server | ||||
* | * | ||||
* @param string $file_data | * @param string $file_data | ||||
*/ | */ | ||||
function processLicense($file_data) | function processLicense($file_data) | ||||
{ | { | ||||
$modules_helper = $this->Application->recallObject('ModulesHelper'); | $modules_helper = $this->Application->recallObject('kModulesHelper'); | ||||
/* @var $modules_helper kModulesHelper */ | /* @var $modules_helper kModulesHelper */ | ||||
$file_data = explode('Code==:', $file_data); | $file_data = explode('Code==:', $file_data); | ||||
$file_data[0] = str_replace('In-Portal License File - do not edit!' . "\n", '', $file_data[0]); | $file_data[0] = str_replace('In-Portal License File - do not edit!' . "\n", '', $file_data[0]); | ||||
$file_data = array_map('trim', $file_data); | $file_data = array_map('trim', $file_data); | ||||
if ($modules_helper->verifyLicense($file_data[0])) { | if ($modules_helper->verifyLicense($file_data[0])) { | ||||
$this->systemConfig->set('License', 'Intechnic', $file_data[0]); | $this->systemConfig->set('License', 'Intechnic', $file_data[0]); | ||||
▲ Show 20 Lines • Show All 833 Lines • ▼ Show 20 Line(s) | |||||
} | } | ||||
else { | else { | ||||
unset($compression_engines['yui']); | unset($compression_engines['yui']); | ||||
} | } | ||||
} | } | ||||
return $compression_engines; | return $compression_engines; | ||||
} | } | ||||
} | } | ||||
No newline at end of file |