* [task#135155,done,1h,0h] Adjust plug-in expiration logic.
This commit is contained in:
@@ -11,7 +11,7 @@ function ioncube_event_handler($err_code, $params)
|
||||
/* Display plugin information and permission check */
|
||||
if(!empty($params['license_file']) && preg_match('/([a-zA-Z]+)(\d+\.\d+)/', basename($params['license_file']), $matches))
|
||||
{
|
||||
$extensionInfo = !empty($matches[1]) ? $app->dao->select('*')->from(TABLE_EXTENSION)->where('code')->eq($matches[1])->fetch() : [];
|
||||
$extensionInfo = !empty($matches[1]) ? $app->dao->select('*')->from(TABLE_EXTENSION)->where('code')->like( "%$matches[1]%")->fetch() : [];
|
||||
$pluginName = !empty($extensionInfo->name) ? $extensionInfo->name : '';
|
||||
$pluginNotice = !empty($pluginName) ? "<h3 style='margin: 30px 30px 0px;'><span class='icon icon-exclamation-sign warning-pale rounded-full icon-2x' style='margin-right:10px;'></span>“{$pluginName}”插件暂无授权</h3>" : '';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user