Skip to content

Commit

Permalink
合并提交Mike Wang
Browse files Browse the repository at this point in the history
  • Loading branch information
skyour committed Feb 25, 2024
1 parent 0c9e88a commit 0623cce
Show file tree
Hide file tree
Showing 20 changed files with 180 additions and 144 deletions.
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,8 @@ HELP.md

/sys/dat/settings_6.2.dat
/sys/dat/shif_iv.dat
/sys/tmp/*
/sys/tmp/*
/files/down/*
/files/screens/14/*
/files/screens/48/*
/files/screens/128/*
33 changes: 33 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
本中英文对照版许可证内容由仓库持有人使用阿里云计算有限公司开发的通义大语言模型进行翻译,特此声明该译文仅供参考,并不保证与原始俄文文本在任何细节上完全一致。如需准确引用或执行相关法律权利义务,请以 DCMS 官方网站上发布的原始俄文版本为准。

This bilingual version of the license terms has been translated by the repository holder using the Tongyi Big Language Model developed by Alibaba Cloud Computing Co., Ltd. It is hereby declared that this translation is for reference purposes only and does not guarantee complete correspondence with the original Russian text in every detail. For accurate citation or execution of related legal rights and obligations, please refer to the official Russian version as published on the DCMS website.


安装并使用本 DCMS-Social CMS 引擎,用户明确表示同意以下许可条款:

1. 免责声明:鉴于本软件产品系免费提供,软件分发者不承担任何因使用本软件所导致的直接或间接损失、损害赔偿请求,此规定包括但不限于黑客攻击、垃圾邮件等问题。

2. 技术支持与问题解决:关于本引擎的所有安装和配置问题,用户须仅通过官方指定论坛(http://dcms-social.ru/forum/)寻求解决方案。

3. 版权保留义务:用户在使用本引擎时,必须在所有涉及本软件代码及页面中完整保留对作者、官方网站及引擎名称的适当版权声明。

4. 引用规则:当用户在第三方论坛提及本引擎时,应当参考或提及官方网站地址(http://dcms-social.ru)。

5. 禁止商业化行为:严禁用户将本引擎包含的自定义功能或独立代码片段用于商业销售。

6. 违约处理:若用户违反本协议任一条款,软件著作权人有权要求相关服务器(托管服务提供商)删除由用户部署的所有引擎文件。如用户未及时执行上述删除要求,著作权人保留在适用法律框架下采取其他救济措施的权利,具体措施视具体情况而定。


Upon installation and use of the DCMS-Social CMS Engine, the user explicitly agrees to the following licensing terms:

1. Disclaimer of Liability: Given that this software product is distributed free of charge, the distributor shall not be liable for any direct or indirect losses, damages, or claims arising from its usage, which extends to instances such as hacking attacks and spam activities.

2. Technical Support and Troubleshooting: For all issues related to the installation and configuration of the engine, users are required to seek resolutions exclusively through the officially designated forum at http://dcms-social.ru/forum/.

3. Attribution Obligation: Users must retain complete and proper copyright notices pertaining to the author, official website, and engine name within all code and pages involving the use of this software.

4. Citation Requirement: When referring to the engine on third-party forums, users should reference or cite the official website address (http://dcms-social.ru).

5. Prohibition of Commercialization: The sale of customized features or standalone code segments of the engine is strictly prohibited.

6. Breach Handling: In case of violation of any term of this agreement by the user, the copyright owner reserves the right to request the removal of all engine files deployed by the user from the relevant server (web hosting provider). If the user fails to comply with said deletion request promptly, the copyright owner retains the right under applicable law to pursue other remedies, the specifics of which will depend on the circumstances at hand.
96 changes: 43 additions & 53 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,69 +1,59 @@
手机网站的内容管理系统
# DCMS - 手机网站内容管理系统

安装要求:
DCMS 原是俄罗斯的社交网站和 CMS,后由 [eKing](https://gitee.com/skyour) 进行简中翻译后,通过 [CN_DCMS-Social](http://dcms.net.cn/) 引入中文互联网,以几乎所有老旧手机都能访问闻名怀旧圈,迅速吸引一批 Z 世代扎根。现在,eKing 将 CN_DCMS-Social 的源代码公开,以期获得更好的发展。

PHP5.4-7.0及以上(推荐PHP5)、MySQLi、mod_rewrite支持
(以下内容由 DCMS 原作者 [Alex Borisi](mailto:[email protected]) 编写,eKing 初步翻译,经 [Diamochang](https://gitee.com/Diamochang) 使用[通义千问](https://tongyi.aliyun.com/qianwen)优化翻译并规范 Markdown 格式)

•如果您能够在免费托管中安装和充分使用引擎,请在项目官方网站的论坛上报告:http://dcms-social.ru/forum/
## 安装要求

推荐库(如果没有这些库,可能会缺少一些功能):
- PHP 5.4 至 7.0 或以上版本(推荐使用 PHP 5)
- MySQLi 数据库支持
- Apache mod_rewrite 模块支持

1)iconv
### 免费托管安装反馈
如果您能在免费托管环境中成功安装并充分运行此引擎,请在[项目官方论坛(俄语)](http://dcms-social.ru/forum/)上报告。

2)FFMPEG
### 推荐库
以下库为可选但**强烈建议**安装,以确保所有功能的正常使用:

3)GD
1. iconv
2. FFMPEG
3. GD
4. mcrypt

4)mcrypt
## 功能模块

包含模块:
1. 聊天系统(包含全民答题 +1000 个问题,笑话 +1000 个笑话)
2. 论坛(支持双层嵌套,附件上传,搜索功能,书签)
3. 下载中心(无限子文件夹数量,上传、导入、截图功能,评论及直接统计文件下载次数)
4. 文件交换平台(全面支持中文文件和文件夹名称,无限子文件夹数量,屏幕截图,文件信息,可为每个文件夹自定义上传设置)
5. 图书馆功能
6. RSS新闻订阅
7. 访客统计功能
8. 投票系统

1)聊天(聪明人+1000个问题,笑话+1000个笑话)。
## 主要文件夹与引擎文件

2)论坛(2层,附加文件,搜索,书签)。
- 论坛附件文件:`sys/forum/files/`*.frf 文件)
- 下载中心文件:`sys/down/files/`*.DAT 文件)
- 主题样式文件:`style/themes/`(主题文件夹)
- 网站规则文件:`sys/add/rules.txt`
- 默认主题存档:`sys/add/theme.zip`(用于管理员安装或替换丢失的主题文件)

3)下载中心(无限数量的子文件夹、上传、导入、截图,评论,直接到文件的下载计数器。)
## 安装步骤

4)文件交换(正确支持中文文件和文件夹名称,无限子文件夹数量、屏幕截图、文件信息、自定义设置每个文件夹的上传)。
1. 创建一个 MySQL 数据库(注意是数据库而不是表)。
2. 将所有文件上传至根目录或子域文件夹(请注意,引擎无法在子文件夹内运行)。
3. 访问 `http://[您的网站]/install/`
4. 遵循所有安装步骤进行操作。
5. 如遇安装困难或有任何改进建议,请访问我们的[论坛](http://dcms.net.cn/forum/)

5)图书馆
## 扩展模块
额外模块可以手动下载和安装。

6)RSS新闻
## 开发贡献
如果您对开发引擎有兴趣,可通过[论坛(俄文)](http://dcms-social.ru/forum/)申请编写模块的任务订单。

7)访客

8)投票系统

主要文件夹和引擎文件:

•附加到论坛的文件:sys/forum/files/(*.frf)

•交换机文件:files/down//(*.DAT)

•主题:style/themes/(主题文件夹)

•网站规则:sys/add/rules.txt

•默认主题存档:sys/add/them.zip(用于通过管理员安装主题时替换丢失的主题文件)

安装:

1)创建MySQL数据库(是数据库,而不是表)。

2)将所有文件上载到根目录或子域文件夹。(引擎不会在子文件夹中工作)。

3)访问http://[您的网站]/install/

4)遵循所有安装步骤。

5)如果您在下一步安装方面遇到困难,或者您对引擎的改进有任何建议,请访问我们的论坛http://dcms.net.cn/forum/

额外的模块可以手动下载和安装。

如果您对开发引擎感兴趣,可以通过

请向论坛申请编写模块的订单。

待办事项
删除代码version_stable()
删除token代码
## 待办事项
- 移除代码 `version_stable()`
- 移除 token 相关代码
12 changes: 6 additions & 6 deletions chat/inc/room.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
if (isset($_POST['msg']) && isset($user)) {
$msg = $_POST['msg'];
$mat = antimat($msg);
if ($mat) $err[] = '在消息的文本中发现了一个非法字符: ' . $mat;
if ($mat) $err[] = '在信息的文本中发现了一个非法字符: ' . $mat;
if (strlen2($msg) > 512) {
$err[] = '信息太长了';
$err[] = '信息长于 512 字节。试着压缩一下?';
} elseif (strlen2($msg) < 2) {
$err[] = '短消息';
$err[] = '信息短于 2 字节。试着扩充一下?';
} elseif (dbresult(dbquery("SELECT COUNT(*) FROM `chat_post` WHERE `id_user` = '$user[id]' AND `msg` = '" . my_esc($msg) . "' AND `time` > '" . ($time - 300) . "' LIMIT 1"), 0) != 0) {
$err = '你的留言重复了前面的';
} elseif (!isset($err)) {
Expand All @@ -17,7 +17,7 @@
$priv = 0;
}
dbquery("INSERT INTO `chat_post` (`id_user`, `time`, `msg`, `room`, `privat`) values('$user[id]', '$time', '" . my_esc($msg) . "', '$room[id]', '$priv')");
$_SESSION['message'] = '消息已成功添加';
$_SESSION['message'] = '留言已成功添加';
header("Location: /chat/room/$room[id]/" . rand(1000, 9999) . "/");
exit;
}
Expand All @@ -33,7 +33,7 @@
else
echo "$tPanel<textarea name=\"msg\"></textarea><br />";
echo "<input value=\"发送\" type=\"submit\" />";
echo " <a href='/chat/room/$room[id]/" . rand(1000, 9999) . "/'>更新资料</a><br />";
echo " <a href='/chat/room/$room[id]/" . rand(1000, 9999) . "/'>刷新</a><br />";
echo "</form>";
}
$k_post = dbresult(dbquery("SELECT COUNT(*) FROM `chat_post` WHERE `room` = '$room[id]' AND (`privat`='0'" . (isset($user) ? " OR `privat` = '$user[id]'" : null) . ")"), 0);
Expand All @@ -43,7 +43,7 @@
echo "<table class='post'>";
if ($k_post == 0) {
echo "<div class='mess'>";
echo "没有评论";
echo "目前没有信息。";
echo "</div>";
}
$q = dbquery("SELECT * FROM `chat_post` WHERE `room` = '$room[id]' AND (`privat`='0'" . (isset($user) ? " OR `privat` = '$user[id]'" : null) . ") ORDER BY id DESC LIMIT $start, $set[p_str]");
Expand Down
10 changes: 5 additions & 5 deletions chat/inc/umnik.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,23 @@
$add_balls = 5;
$pods = '使用两个提示';
}
$msg = "干得好, [b]$ank[nick][/b],回答了正确答案 [b]$umnik_vopros[otvet] [/b] 并且 $pods 获得 $add_balls 积分。下一个问题 $set[umnik_new] ";
$msg = "非常好,[b]$ank[nick][/b],回答了正确答案 [b]$umnik_vopros[otvet] [/b] 并且$pods获得 $add_balls 积分。下一个问题将在 $set[umnik_new] 秒后提出。";
dbquery("INSERT INTO `chat_post` (`umnik_st`, `time`, `msg`, `room`, `vopros`, `privat`) values('4', '$time', '$msg', '$room[id]', '$umnik_vopros[id]', '0')");
dbquery("UPDATE `user` SET `balls` = '" . ($ank['balls'] + $add_balls) . "' WHERE `id` = '$ank[id]' LIMIT 1");
}
}
$umnik_last1 = dbassoc(dbquery("SELECT * FROM `chat_post` WHERE `room` = '$room[id]' AND `umnik_st` = '1' ORDER BY id DESC"));
if ($umnik_last1 != NULL && $umnik_last['umnik_st'] != 4 && $umnik_last1['time'] < time() - $set['umnik_time']) {
$umnik_vopros = dbassoc(dbquery("SELECT * FROM `chat_vopros` WHERE `id` = '$umnik_last1[vopros]' LIMIT 1"));
$msg = "没有人回复或答对这个问题。正确答案: $umnik_vopros[otvet]下一个问题 $set[umnik_new] ";
$msg = "没有人回复或答对这个问题。正确答案: $umnik_vopros[otvet]下一个问题将于 $set[umnik_new] 秒后提出。";
dbquery("INSERT INTO `chat_post` (`umnik_st`, `time`, `msg`, `room`, `vopros`, `privat`) values('4', '$time', '$msg', '$room[id]', '$umnik_vopros[id]', '0')");
}
$umnik_last = dbassoc(dbquery("SELECT * FROM `chat_post` WHERE `room` = '$room[id]' AND `umnik_st` <> '0' ORDER BY id DESC"));
if ($umnik_last == NULL || $umnik_last['umnik_st'] == 4 && $umnik_last['time'] < time() - $set['umnik_new']) {
// задается вопрос
$k_vopr = dbresult(dbquery("SELECT COUNT(*) FROM `chat_vopros`"), 0);
$umnik_vopros = dbassoc(dbquery("SELECT * FROM `chat_vopros` LIMIT " . rand(0, $k_vopr) . ", 1"));
$msg = "[b]问题:[/b] \"$umnik_vopros[vopros]\"[b]回复:[/b] " . strlen2($umnik_vopros['otvet']) . "个字";
$msg = "[b]问题[/b] \"$umnik_vopros[vopros]\"[b]回复字数:[/b] " . strlen2($umnik_vopros['otvet']) . "个字";
dbquery("INSERT INTO `chat_post` (`umnik_st`, `time`, `msg`, `room`, `vopros`, `privat`) values('1', '$time', '$msg', '$room[id]', '$umnik_vopros[id]', '0')");
}
if ($umnik_last != NULL && $umnik_last['umnik_st'] == 1 && $umnik_last['time'] < time() - $set['umnik_help']) {
Expand All @@ -46,7 +46,7 @@
for ($i = 0; $i < strlen2($umnik_vopros['otvet']) - 1; $i++) {
$help .= '*';
}
$msg = "[b]问题:[/b] \"$umnik_vopros[vopros]\"[b]第一个提示:[/b] $help (" . strlen2($umnik_vopros['otvet']) . "个字)";
$msg = "[b]问题[/b] \"$umnik_vopros[vopros]\"[b]第一个提示[/b] $help (" . strlen2($umnik_vopros['otvet']) . "个字)";
dbquery("INSERT INTO `chat_post` (`umnik_st`, `time`, `msg`, `room`, `vopros`, `privat`) values('2', '$time', '$msg', '$room[id]', '$umnik_vopros[id]', '0')");
}
if ($umnik_last != NULL && $umnik_last['umnik_st'] == 2 && $umnik_last['time'] < time() - $set['umnik_help']) {
Expand All @@ -58,6 +58,6 @@
for ($i = 0; $i < strlen2($umnik_vopros['otvet']) - 2; $i++) {
$help .= '*';
}
$msg = "[b]问题:[/b] \"$umnik_vopros[vopros]\"[b]第二个提示:[/b] $help (" . strlen2($umnik_vopros['otvet']) . "个字)";
$msg = "[b]问题[/b] \"$umnik_vopros[vopros]\"[b]第二个提示[/b] $help (" . strlen2($umnik_vopros['otvet']) . "个字)";
dbquery("INSERT INTO `chat_post` (`umnik_st`, `time`, `msg`, `room`, `vopros`, `privat`) values('3', '$time', '$msg', '$room[id]', '$umnik_vopros[id]', '0')");
}
2 changes: 1 addition & 1 deletion chat/who.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
if ($k_post == 0) {
echo " <tr>";
echo " <td class='p_t'>";
echo "没有人";
echo "这里并没有人。";
echo " </td>";
echo " </tr>";
}
Expand Down
4 changes: 1 addition & 3 deletions down/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -264,9 +264,7 @@
echo '</div>';
} elseif (!isset($user)) {
echo '<div class="mess">';
echo '<img src="/style/icons/small_adult.gif" alt="*">
此文件包含色情性质的图像。只有18岁以上的注册用户才能查看此类文件。
';
echo '<img src="/style/icons/small_adult.gif" alt="*"> 此文件包含色情性质的图像。只有18岁以上的注册用户才能查看此类文件。';
echo '<a href="/user/aut.php">注册</a> | <a href="/user/reg.php">注册时间</a>';
echo '</div>';
} else {
Expand Down
Loading

0 comments on commit 0623cce

Please sign in to comment.