Initial project files: BESCMS full source
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
'type' => 'module',
|
||||
'name' => '{name}',
|
||||
'icon' => '{icon}',
|
||||
'system' => '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,41 @@
|
||||
<?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 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,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 recovery_add() {
|
||||
$this->_Admin_Recovery();
|
||||
}
|
||||
|
||||
public function edit() {
|
||||
$this->_Admin_Recycle_Edit();
|
||||
}
|
||||
}
|
||||
@@ -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,21 @@
|
||||
<?php namespace Phpcmf\Controllers\Admin;
|
||||
|
||||
/**
|
||||
* 二次开发时可以修改本文件,不影响升级覆盖
|
||||
*/
|
||||
|
||||
class Verify extends \Phpcmf\Admin\Module
|
||||
{
|
||||
|
||||
public function index() {
|
||||
$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'))
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* 域名api
|
||||
*/
|
||||
|
||||
header('Content-Type: text/html; charset=utf-8');
|
||||
|
||||
if (!is_file('{ROOTPATH}index.php')) {
|
||||
echo '当前服务器无法访问跨目录文件:';
|
||||
echo 'http://help.xunruicms.com/655.html';
|
||||
exit();
|
||||
}
|
||||
|
||||
echo 'phpcmf ok';exit;
|
||||
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* 模块自定义域名入口
|
||||
*/
|
||||
|
||||
define('SITE_ID', '{SITE_ID}');
|
||||
$_GET['s'] = isset($_GET['s']) ? ($_GET['s'] == 'api' ? 'api' : '{MOD_DIR}') : '{MOD_DIR}';
|
||||
|
||||
// 执行主站程序
|
||||
require '{ROOTPATH}index.php';
|
||||
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* 域名api
|
||||
*/
|
||||
|
||||
header('Content-Type: text/html; charset=utf-8');
|
||||
|
||||
if (!is_file('../index.php')) {
|
||||
echo '当前服务器无法访问跨目录文件:';
|
||||
echo 'http://help.xunruicms.com/655.html';
|
||||
exit();
|
||||
}
|
||||
|
||||
echo 'phpcmf ok';exit;
|
||||
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Cms 移动端入口程序
|
||||
*/
|
||||
|
||||
define('IS_MOBILE', 1);
|
||||
|
||||
// 执行主程序
|
||||
require '../index.php';
|
||||
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* 后台管理中心
|
||||
*/
|
||||
|
||||
define('IS_ADMIN', TRUE); // 项目标识
|
||||
define('SELF', pathinfo(__FILE__, PATHINFO_BASENAME)); // 该文件的名称
|
||||
require('index.php'); // 引入主文件
|
||||
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* 域名api
|
||||
*/
|
||||
|
||||
header('Content-Type: text/html; charset=utf-8');
|
||||
|
||||
if (!is_file('{ROOTPATH}index.php')) {
|
||||
echo '当前服务器无法访问跨目录文件:';
|
||||
echo 'http://help.xunruicms.com/655.html';
|
||||
exit();
|
||||
}
|
||||
|
||||
echo 'phpcmf ok';exit;
|
||||
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* 子站入口
|
||||
*/
|
||||
|
||||
!defined('SITE_ID') && define('SITE_ID', '{SITE_ID}');
|
||||
define('WEBPATH', dirname(__FILE__).'/');
|
||||
!defined('FIX_WEB_DIR') && define('FIX_WEB_DIR', '{FIX_WEB_DIR}');
|
||||
|
||||
// 执行主站程序
|
||||
require '{ROOTPATH}index.php';
|
||||
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* 域名api
|
||||
*/
|
||||
|
||||
header('Content-Type: text/html; charset=utf-8');
|
||||
|
||||
if (!is_file('../index.php')) {
|
||||
echo '当前服务器无法访问跨目录文件:';
|
||||
echo 'http://help.xunruicms.com/655.html';
|
||||
exit();
|
||||
}
|
||||
|
||||
echo 'phpcmf ok';exit;
|
||||
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Cms 移动端入口程序
|
||||
*/
|
||||
|
||||
define('IS_MOBILE', 1);
|
||||
define('FIX_WEB_DIR', '{FIX_WEB_DIR}');
|
||||
|
||||
// 执行主程序
|
||||
require '../index.php';
|
||||
Reference in New Issue
Block a user