diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..409e385 --- /dev/null +++ b/Dockerfile @@ -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" ] diff --git a/data/sqlite3.db b/data/sqlite3.db new file mode 100644 index 0000000..663fa2c Binary files /dev/null and b/data/sqlite3.db differ diff --git a/htdocs/.github/ISSUE_TEMPLATE/bug-report-cn.md b/htdocs/.github/ISSUE_TEMPLATE/bug-report-cn.md new file mode 100644 index 0000000..a5c73e5 --- /dev/null +++ b/htdocs/.github/ISSUE_TEMPLATE/bug-report-cn.md @@ -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. + diff --git a/htdocs/addons/adminloginbg/info.ini b/htdocs/addons/adminloginbg/info.ini index 0ceed57..3bee579 100644 --- a/htdocs/addons/adminloginbg/info.ini +++ b/htdocs/addons/adminloginbg/info.ini @@ -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 diff --git a/htdocs/admin.php b/htdocs/admin.php index 15f2e33..2954e4b 100644 --- a/htdocs/admin.php +++ b/htdocs/admin.php @@ -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'); } diff --git a/htdocs/application/admin/common/auth.php b/htdocs/application/admin/common/auth.php index 9fee46c..cb57249 100644 --- a/htdocs/application/admin/common/auth.php +++ b/htdocs/application/admin/common/auth.php @@ -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( @@ -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'), diff --git a/htdocs/application/admin/view/index/login.html b/htdocs/application/admin/view/index/login.html index 4dad9a6..af553b6 100644 --- a/htdocs/application/admin/view/index/login.html +++ b/htdocs/application/admin/view/index/login.html @@ -18,7 +18,7 @@
{$vo.gbook_content}
+ {if condition="$vo.gbook_reply_time gt 0"} +管理员回复:{$vo.gbook_reply}
+ {/if} +{$vo.gbook_time|date='Y-m-d H:i:s',###}
+