Skip to content

Commit

Permalink
'sqlite'
Browse files Browse the repository at this point in the history
  • Loading branch information
ixiumu committed Apr 3, 2022
1 parent 07c2a64 commit c2e5168
Show file tree
Hide file tree
Showing 162 changed files with 13,063 additions and 218 deletions.
24 changes: 24 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
FROM php:7-alpine

COPY . /opt
VOLUME /data

RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.cloud.tencent.com/g' /etc/apk/repositories && \
apk add --no-cache zip libzip-dev libpng-dev libjpeg-turbo-dev freetype-dev && \
docker-php-ext-configure gd --with-freetype --with-jpeg && \
docker-php-ext-configure zip && \
docker-php-ext-install zip gd pdo_mysql && \
chmod +x /opt/mumov && \
mv /opt/mumov /bin && \
mv /opt/htdocs/upload /opt/data && \
ln -s /data/upload /opt/htdocs/upload && \
sed -i "s/ROOT_PATH . \'..\//'\//g" /opt/htdocs/application/database.php && \
mv /opt/htdocs/application/extra /opt/data && \
ln -s /data/extra /opt/htdocs/application/extra && \
mv /opt/htdocs/static/player /opt/data && \
ln -s /data/player /opt/htdocs/static/player

WORKDIR /opt/htdocs
EXPOSE 8088

CMD [ "mumov" ]
Binary file added data/sqlite3.db
Binary file not shown.
35 changes: 35 additions & 0 deletions htdocs/.github/ISSUE_TEMPLATE/bug-report-cn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
name: 问题报告
about: 提交您的问题反馈,帮助我们改进
title: ''
labels: ''
assignees: ''

---

**描述您的问题**
A clear and concise description of what the bug is.

**如何重现**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**预期结果**
A clear and concise description of what you expected to happen.

**截图**
If applicable, add screenshots to help explain your problem.

**版本信息:**
- 程序版本: [如 2022.1000.3026]
- 操作系统: [如 Windows 11]
- 浏览器: [如 chrome, safari]



**其他备注信息**
Add any other context about the problem here.

2 changes: 1 addition & 1 deletion htdocs/addons/adminloginbg/info.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name = adminloginbg
title = 后台登录背景图
intro = 可自定义后台登录背景图
author = MagicBlack
website = http://www.maccms.la
website = http://127.0.0.1
version = 1.0.0
state = 0
url = /addons/adminloginbg.html
8 changes: 4 additions & 4 deletions htdocs/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@
header("Location: ./install.php");
exit;
}
if(strpos($_SERVER["SCRIPT_NAME"],'/admin.php')!==false){
echo '请将后台入口文件admin.php改名,避免被黑客入侵攻击【Please rename the background entry file admin.php to avoid being hacked】';
exit;
}
// if(strpos($_SERVER["SCRIPT_NAME"],'/admin.php')!==false){
// echo '请将后台入口文件admin.php改名,避免被黑客入侵攻击【Please rename the background entry file admin.php to avoid being hacked】';
// exit;
// }
if (!@mb_check_encoding($_SERVER['PATH_INFO'], 'utf-8')){
$_SERVER['PATH_INFO']=@mb_convert_encoding($_SERVER['PATH_INFO'], 'UTF-8', 'GBK');
}
Expand Down
22 changes: 11 additions & 11 deletions htdocs/application/admin/common/auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@
'123' => array("show"=>1,'name' => lang('menu/website_data_lock'), 'controller' => 'website', 'action' => 'data','param'=>'lock=1'),
'124' => array("show"=>1,'name' => lang('menu/website_data_audit'), 'controller' => 'website', 'action' => 'data','param'=>'status=0'),
'129' => array("show"=>1,'name' => lang('menu/website_batch'), 'controller' => 'website', 'action' => 'batch'),
'1291' => array("show"=>1,'name' => lang('menu/website_repeat'), 'controller' => 'website', 'action' => 'data', 'param'=>'repeat=1'),
// '1291' => array("show"=>1,'name' => lang('menu/website_repeat'), 'controller' => 'website', 'action' => 'data', 'param'=>'repeat=1'),
)),

'6' => array('name' => lang('menu/users'), 'icon' => 'xe62c', 'sub' => array(
Expand Down Expand Up @@ -243,22 +243,22 @@
)),

'10' => array('name' => lang('menu/db'), 'icon' => 'xe621', 'sub' => array(
'101' => array("show"=>1,'name' => lang('menu/database'), 'controller' => 'database', 'action' => 'index'),
'10001' => array("show"=>0,'name' => '--数据库备份', 'controller' => 'database', 'action' => 'export'),
'10002' => array("show"=>0,'name' => '--数据库还原', 'controller' => 'database', 'action' => 'import'),
'10003' => array("show"=>0,'name' => '--数据库优化', 'controller' => 'database', 'action' => 'optimize'),
'10004' => array("show"=>0,'name' => '--数据库修复', 'controller' => 'database', 'action' => 'repair'),
'10005' => array("show"=>0,'name' => '--数据库删除备份', 'controller' => 'database', 'action' => 'del'),
'10006' => array("show"=>0,'name' => '--数据库表信息', 'controller' => 'database', 'action' => 'columns'),
// '101' => array("show"=>1,'name' => lang('menu/database'), 'controller' => 'database', 'action' => 'index'),
// '10001' => array("show"=>0,'name' => '--数据库备份', 'controller' => 'database', 'action' => 'export'),
// '10002' => array("show"=>0,'name' => '--数据库还原', 'controller' => 'database', 'action' => 'import'),
// '10003' => array("show"=>0,'name' => '--数据库优化', 'controller' => 'database', 'action' => 'optimize'),
// '10004' => array("show"=>0,'name' => '--数据库修复', 'controller' => 'database', 'action' => 'repair'),
// '10005' => array("show"=>0,'name' => '--数据库删除备份', 'controller' => 'database', 'action' => 'del'),
// '10006' => array("show"=>0,'name' => '--数据库表信息', 'controller' => 'database', 'action' => 'columns'),

'102' => array("show"=>1,'name' => lang('menu/database_sql'), 'controller' => 'database', 'action' => 'sql'),
'103' => array("show"=>1,'name' => lang('menu/database_rep'), 'controller' => 'database', 'action' => 'rep'),
// '103' => array("show"=>1,'name' => lang('menu/database_rep'), 'controller' => 'database', 'action' => 'rep'),
)),
'11' => array('name' => lang('menu/apps'), 'icon' => 'xe621', 'sub' => array(
'111' => array("show"=>1,'name' => lang('menu/addon'), 'controller' => 'addon', 'action' => 'index', 'param'=>''),
// '111' => array("show"=>1,'name' => lang('menu/addon'), 'controller' => 'addon', 'action' => 'index', 'param'=>''),
'112' => array("show"=>1,'name' => lang('menu/urlsend'), 'controller' => 'urlsend', 'action' => 'index', 'param'=>''),
'113' => array("show"=>1,'name' => lang('menu/safety_file'), 'controller' => 'safety', 'action' => 'file', 'param'=>''),
'114' => array("show"=>1,'name' => lang('menu/safety_data'), 'controller' => 'safety', 'action' => 'data', 'param'=>''),
// '114' => array("show"=>1,'name' => lang('menu/safety_data'), 'controller' => 'safety', 'action' => 'data', 'param'=>''),
'11200' => array("show"=>0,'name' => '--推送入口', 'controller' => 'urlsend', 'action' => 'push'),
'11201' => array("show"=>0,'name' => '--百度主动推送', 'controller' => 'urlsend', 'action' => 'baidu_push'),
'11202' => array("show"=>0,'name' => '--百度熊掌推送', 'controller' => 'urlsend', 'action' => 'baidu_bear'),
Expand Down
2 changes: 1 addition & 1 deletion htdocs/application/admin/view/index/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
</head>
<body class="login-body body">
<div class="login-head">
<h1><a href="//www.maccms.la/">{:lang('admin/index/login/tip_welcome')}</a></h1>
<h1><a href="/">{:lang('admin/index/login/tip_welcome')}</a></h1>
</div>
<div class="login-box">
<form class="layui-form layui-form-pane" method="post" action="">
Expand Down
2 changes: 1 addition & 1 deletion htdocs/application/admin/view/public/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title>{$title} - {:lang('admin/public/head/title')}</title>
<title>{$title}</title>
<link rel="stylesheet" href="__STATIC__/layui/css/layui.css">
<link rel="stylesheet" href="__STATIC__/css/admin_style.css?{$MAC_VERSION}">
<script type="text/javascript" src="__STATIC__/js/jquery.js"></script>
Expand Down
Empty file.
93 changes: 0 additions & 93 deletions htdocs/application/data/update/database.php

This file was deleted.

12 changes: 6 additions & 6 deletions htdocs/application/database.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@
// +----------------------------------------------------------------------
return [
// 数据库类型
'type' => 'mysql',
'type' => 'sqlite',
// 服务器地址
'hostname' => '127.0.0.1',
'hostname' => '',
// 数据库名
'database' => 'maccms10',
'database' => ROOT_PATH . '../data/sqlite3.db',
// 用户名
'username' => 'root',
'username' => '',
// 密码
'password' => 'root',
'password' => '',
// 端口
'hostport' => '3306',
'hostport' => '',
// 连接dsn
'dsn' => '',
// 数据库连接参数
Expand Down
Loading

0 comments on commit c2e5168

Please sign in to comment.