Initial project files: BESCMS full source
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
if (!method_exists(\Phpcmf\Service::M('table'), 'install_schema')) {
|
||||
return dr_return_data(0, '请先升级迅睿系统后再安装本插件');
|
||||
}
|
||||
|
||||
if (\Phpcmf\Service::M()->is_table_exists('module')) {
|
||||
// 表示模块表已经操作,手动安装模块
|
||||
$rs = file_put_contents(dr_get_app_dir('module').'/install.lock', 'fix');
|
||||
if (!$rs) {
|
||||
return dr_return_data(0, '目录('.dr_get_app_dir('module').')无法写入');
|
||||
}
|
||||
return dr_return_data(0, '【建站系统】插件已被安装');
|
||||
}
|
||||
|
||||
return dr_return_data(1, 'ok');
|
||||
Reference in New Issue
Block a user