Initial project files: BESCMS full source

This commit is contained in:
bes
2026-08-13 23:37:46 +08:00
parent fa6cddb540
commit 2e26f85723
2166 changed files with 396625 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
<?php namespace Phpcmf\Model\Copy;
// 权限验证
class Auth_mform extends \Phpcmf\Model
{
// 判断底部链接的显示权限
public function is_bottom_auth($mid) {
return 1;
}
// 判断右侧链接的显示权限
public function is_link_auth($mid) {
// $mid 模块目录
$fid = \Phpcmf\Service::C()->form['table']; // fid是表单表名称
// 这里的程序体,显示返回1,不显示返回0
// 不存在
if (!\Phpcmf\Service::C()->_is_admin_auth($mid.'/'.$fid.'/edit')) {
return 0;
}
return 1;
}
}