public function actionLicense($path)
{
$module = zotop::model('zotop.module');
$modules = $module->getUnInstalled();
if (empty($path) || !dir::exists($path)) {
msg::error(array('content' => zotop::t('模块不存在,请确认是否已经上传该模块?'), 'description' => zotop::t("路径:{$path}")));
}
$licenseFile = $path . DS . 'license.txt';
if (!file::exists($licenseFile)) {
zotop::redirect('zotop/module/install', array('path' => url::encode($path)));
exit;
}
$license = file::read($licenseFile);
$page = new dialog();
$page->set('title', '许可协议');
$page->set('license', html::decode($license));
$page->set('next', zotop::url('zotop/module/install', array('path' => url::encode($path))));
$page->display();
}