Initial project files: BESCMS full source
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
'type' => 'module',
|
||||
'name' => '内容',
|
||||
'icon' => 'fa fa-sticky-note',
|
||||
'system' => '1',
|
||||
'mtype' => '1'
|
||||
|
||||
];
|
||||
@@ -0,0 +1,4 @@
|
||||
<?php
|
||||
|
||||
// 加载主程序的路由
|
||||
require COREPATH.'Config/Routes.php';
|
||||
@@ -0,0 +1,49 @@
|
||||
<?php namespace Phpcmf\Controllers\Admin;
|
||||
|
||||
/**
|
||||
* 二次开发时可以修改本文件,不影响升级覆盖
|
||||
*/
|
||||
|
||||
class Category extends \Phpcmf\Admin\Category
|
||||
{
|
||||
|
||||
public function index() {
|
||||
$this->_Admin_List();
|
||||
}
|
||||
|
||||
public function all_add() {
|
||||
$this->_Admin_All_Add();
|
||||
}
|
||||
|
||||
public function add() {
|
||||
$this->_Admin_Add();
|
||||
}
|
||||
|
||||
public function edit() {
|
||||
$this->_Admin_Edit();
|
||||
}
|
||||
|
||||
public function url_edit() {
|
||||
$this->_Admin_Url_Edit();
|
||||
}
|
||||
|
||||
public function move_edit() {
|
||||
$this->_Admin_Move_Edit();
|
||||
}
|
||||
|
||||
public function show_edit() {
|
||||
$this->_Admin_Show_Edit();
|
||||
}
|
||||
|
||||
public function displayorder_edit() {
|
||||
$this->_Admin_Order();
|
||||
}
|
||||
|
||||
public function html_edit() {
|
||||
$this->_Admin_Html_Edit();
|
||||
}
|
||||
|
||||
public function del() {
|
||||
$this->_Admin_Del();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
<?php namespace Phpcmf\Controllers\Admin;
|
||||
|
||||
/**
|
||||
* 二次开发时可以修改本文件,不影响升级覆盖
|
||||
*/
|
||||
|
||||
class Draft extends \Phpcmf\Admin\Module
|
||||
{
|
||||
|
||||
public function index() {
|
||||
$this->_Admin_Draft_List();
|
||||
}
|
||||
|
||||
public function del() {
|
||||
$this->_Admin_Draft_Del();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
<?php namespace Phpcmf\Controllers\Admin;
|
||||
|
||||
/**
|
||||
* 二次开发时可以修改本文件,不影响升级覆盖
|
||||
*/
|
||||
|
||||
class Flag extends \Phpcmf\Admin\Module
|
||||
{
|
||||
|
||||
public function index() {
|
||||
$this->_Admin_Flag_List();
|
||||
}
|
||||
|
||||
public function edit() {
|
||||
$this->_Admin_Edit();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
<?php namespace Phpcmf\Controllers\Admin;
|
||||
|
||||
/**
|
||||
* 二次开发时可以修改本文件,不影响升级覆盖
|
||||
*/
|
||||
|
||||
class Home extends \Phpcmf\Admin\Module
|
||||
{
|
||||
|
||||
public function index() {
|
||||
$this->_Admin_List();
|
||||
}
|
||||
|
||||
public function add() {
|
||||
$this->_Admin_Add();
|
||||
}
|
||||
|
||||
public function edit() {
|
||||
$this->_Admin_Edit();
|
||||
}
|
||||
|
||||
public function show_index() {
|
||||
$this->_Admin_Show();
|
||||
}
|
||||
|
||||
public function order_edit() {
|
||||
$this->_Admin_Order();
|
||||
}
|
||||
|
||||
public function move_edit() {
|
||||
$this->_Admin_Move();
|
||||
}
|
||||
|
||||
public function tui_edit() {
|
||||
$this->_Admin_Send();
|
||||
}
|
||||
|
||||
public function syncat_edit() {
|
||||
$this->_Admin_Syncat();
|
||||
}
|
||||
|
||||
public function del() {
|
||||
$this->_Admin_Del();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
<?php namespace Phpcmf\Controllers\Admin;
|
||||
|
||||
/**
|
||||
* 二次开发时可以修改本文件,不影响升级覆盖
|
||||
*/
|
||||
|
||||
class Html extends \Phpcmf\Home\Module
|
||||
{
|
||||
|
||||
public function index() {
|
||||
parent::_Admin_Html();
|
||||
}
|
||||
|
||||
public function index_del() {
|
||||
parent::_Admin_Index_Del();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
<?php namespace Phpcmf\Controllers\Admin;
|
||||
|
||||
/**
|
||||
* 二次开发时可以修改本文件,不影响升级覆盖
|
||||
*/
|
||||
|
||||
class Member extends \Phpcmf\Admin\Member
|
||||
{
|
||||
|
||||
public function index() {
|
||||
$this->_Index();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
<?php namespace Phpcmf\Controllers\Admin;
|
||||
|
||||
/**
|
||||
* 二次开发时可以修改本文件,不影响升级覆盖
|
||||
*/
|
||||
|
||||
class Recycle extends \Phpcmf\Admin\Module
|
||||
{
|
||||
|
||||
public function index() {
|
||||
$this->_Admin_Recycle_List();
|
||||
}
|
||||
|
||||
public function del() {
|
||||
$this->_Admin_Recycle_Del();
|
||||
}
|
||||
|
||||
public function show() {
|
||||
$this->_Admin_Recycle_Show();
|
||||
}
|
||||
|
||||
public function edit() {
|
||||
$this->_Admin_Recycle_Edit();
|
||||
}
|
||||
|
||||
public function recovery_add() {
|
||||
$this->_Admin_Recovery();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
<?php namespace Phpcmf\Controllers\Admin;
|
||||
|
||||
/**
|
||||
* 二次开发时可以修改本文件,不影响升级覆盖
|
||||
*/
|
||||
|
||||
class Time extends \Phpcmf\Admin\Module
|
||||
{
|
||||
|
||||
public function index() {
|
||||
$this->_Admin_Time_List();
|
||||
}
|
||||
|
||||
public function add() {
|
||||
$this->_Admin_Time_add();
|
||||
}
|
||||
|
||||
public function edit() {
|
||||
$this->_Admin_Time_Edit();
|
||||
}
|
||||
|
||||
public function del() {
|
||||
$this->_Admin_Time_Del();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
<?php namespace Phpcmf\Controllers\Admin;
|
||||
|
||||
/**
|
||||
* 二次开发时可以修改本文件,不影响升级覆盖
|
||||
*/
|
||||
|
||||
class Verify extends \Phpcmf\Admin\Module
|
||||
{
|
||||
|
||||
public function index() {
|
||||
$this->_Admin_Verify_List();
|
||||
}
|
||||
|
||||
public function s9_index() {
|
||||
$_GET['status'] = 9;
|
||||
$this->_Admin_Verify_List();
|
||||
}
|
||||
|
||||
public function s1_index() {
|
||||
$_GET['status'] = 1;
|
||||
$this->_Admin_Verify_List();
|
||||
}
|
||||
|
||||
public function s2_index() {
|
||||
$_GET['status'] = 2;
|
||||
$this->_Admin_Verify_List();
|
||||
}
|
||||
|
||||
public function s3_index() {
|
||||
$_GET['status'] = 3;
|
||||
$this->_Admin_Verify_List();
|
||||
}
|
||||
|
||||
public function s4_index() {
|
||||
$_GET['status'] = 4;
|
||||
$this->_Admin_Verify_List();
|
||||
}
|
||||
|
||||
public function edit() {
|
||||
$this->_Admin_Verify_Edit();
|
||||
}
|
||||
|
||||
public function del() {
|
||||
$this->_Admin_Verify_Del();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
<?php namespace Phpcmf\Controllers;
|
||||
|
||||
/**
|
||||
* 二次开发时可以修改本文件,不影响升级覆盖
|
||||
*/
|
||||
|
||||
class Category extends \Phpcmf\Home\Module
|
||||
{
|
||||
|
||||
public function index() {
|
||||
// 初始化模块
|
||||
$this->_module_init();
|
||||
// 调用栏目方法
|
||||
$this->_Category(
|
||||
(int)\Phpcmf\Service::L('Input')->get('id'),
|
||||
dr_safe_replace(\Phpcmf\Service::L('Input')->get('dir')),
|
||||
max(1, (int)\Phpcmf\Service::L('Input')->get('page'))
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
<?php namespace Phpcmf\Controllers;
|
||||
|
||||
/**
|
||||
* 二次开发时可以修改本文件,不影响升级覆盖
|
||||
*/
|
||||
|
||||
class Home extends \Phpcmf\Home\Module
|
||||
{
|
||||
|
||||
public function index() {
|
||||
$this->_Index();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
<?php namespace Phpcmf\Controllers;
|
||||
|
||||
/**
|
||||
* 二次开发时可以修改本文件,不影响升级覆盖
|
||||
*/
|
||||
|
||||
class Html extends \Phpcmf\Home\Module
|
||||
{
|
||||
|
||||
// 生成首页
|
||||
public function index() {
|
||||
parent::_Index_Html();
|
||||
}
|
||||
|
||||
// 生成栏目
|
||||
public function category() {
|
||||
parent::_Category_Html();
|
||||
}
|
||||
|
||||
// 生成内容
|
||||
public function show() {
|
||||
parent::_Show_Html();
|
||||
}
|
||||
|
||||
// 生成栏目单页
|
||||
public function categoryfile() {
|
||||
parent::_Category_Html_File();
|
||||
}
|
||||
|
||||
// 生成内容单页
|
||||
public function showfile() {
|
||||
parent::_Show_Html_File();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
<?php namespace Phpcmf\Controllers\Member;
|
||||
|
||||
class Draft extends \Phpcmf\Member\Module
|
||||
{
|
||||
// 内容列表
|
||||
public function index() {
|
||||
$this->_Member_Draft_List();
|
||||
}
|
||||
|
||||
public function del() {
|
||||
$this->_Member_Draft_Del();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
<?php namespace Phpcmf\Controllers\Member;
|
||||
|
||||
class Home extends \Phpcmf\Member\Module
|
||||
{
|
||||
|
||||
// 内容列表
|
||||
public function index() {
|
||||
$this->_Member_List();
|
||||
}
|
||||
|
||||
public function add() {
|
||||
$this->_Member_Add();
|
||||
}
|
||||
|
||||
public function edit() {
|
||||
$this->_Member_Edit();
|
||||
}
|
||||
|
||||
public function del() {
|
||||
$this->_Member_Del();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
<?php namespace Phpcmf\Controllers\Member;
|
||||
|
||||
class Verify extends \Phpcmf\Member\Module
|
||||
{
|
||||
|
||||
// 内容列表
|
||||
public function index() {
|
||||
$this->_Member_Verify_List();
|
||||
}
|
||||
|
||||
public function edit() {
|
||||
$this->_Member_Verify_Edit();
|
||||
}
|
||||
|
||||
public function del() {
|
||||
$this->_Member_Verify_Del();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
<?php namespace Phpcmf\Controllers;
|
||||
|
||||
/**
|
||||
* 二次开发时可以修改本文件,不影响升级覆盖
|
||||
*/
|
||||
|
||||
class Search extends \Phpcmf\Home\Module
|
||||
{
|
||||
|
||||
public function index() {
|
||||
// 初始化模块
|
||||
$this->_module_init();
|
||||
// 调用搜索方法
|
||||
$this->_Search();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,58 @@
|
||||
<?php namespace Phpcmf\Controllers;
|
||||
|
||||
/**
|
||||
* 二次开发时可以修改本文件,不影响升级覆盖
|
||||
*/
|
||||
|
||||
class Show extends \Phpcmf\Home\Module
|
||||
{
|
||||
|
||||
public function index() {
|
||||
$this->_module_init();
|
||||
$this->_Show(
|
||||
(int)\Phpcmf\Service::L('Input')->get('id'),
|
||||
[
|
||||
'field' => dr_safe_replace(\Phpcmf\Service::L('Input')->get('field')),
|
||||
'value' => dr_safe_replace(\Phpcmf\Service::L('Input')->get('value')),
|
||||
],
|
||||
max(1, (int)\Phpcmf\Service::L('Input')->get('page'))
|
||||
);
|
||||
}
|
||||
|
||||
public function time() {
|
||||
$this->_module_init();
|
||||
$this->_MyShow(
|
||||
'time',
|
||||
(int)\Phpcmf\Service::L('Input')->get('id'),
|
||||
max(1, (int)\Phpcmf\Service::L('Input')->get('page'))
|
||||
);
|
||||
}
|
||||
|
||||
public function recycle() {
|
||||
$this->_module_init();
|
||||
$this->_MyShow(
|
||||
'recycle',
|
||||
(int)\Phpcmf\Service::L('Input')->get('id'),
|
||||
max(1, (int)\Phpcmf\Service::L('Input')->get('page'))
|
||||
);
|
||||
}
|
||||
|
||||
public function draft() {
|
||||
$this->_module_init();
|
||||
$this->_MyShow(
|
||||
'draft',
|
||||
(int)\Phpcmf\Service::L('Input')->get('id'),
|
||||
max(1, (int)\Phpcmf\Service::L('Input')->get('page'))
|
||||
);
|
||||
}
|
||||
|
||||
public function verify() {
|
||||
$this->_module_init();
|
||||
$this->_MyShow(
|
||||
'verify',
|
||||
(int)\Phpcmf\Service::L('Input')->get('id'),
|
||||
max(1, (int)\Phpcmf\Service::L('Input')->get('page'))
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user