Skip to content

Commit

Permalink
chore: add data security alerts
Browse files Browse the repository at this point in the history
  • Loading branch information
yanranxiaoxi committed Sep 2, 2022
1 parent c6beaae commit 83087a9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Class/GlobalHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,7 @@ public function deleteCategory_AuthRequired($category_id) {
/**
* 删除链接「Auth Required」
*
* @param int $link_id 链接 ID
* @param int $link_id 链接 ID
*/
public function deleteLink_AuthRequired($link_id) {
$this->database->delete('on_links', [
Expand Down Expand Up @@ -749,7 +749,7 @@ public function getOptionsTheme() {
/**
* 修改主题选项「Auth Required」
*
* @param string $options_theme 主题
* @param string $options_theme 主题
*/
public function setOptionsTheme_AuthRequired($options_theme) {
$options_theme = $this->database->update('on_options', [
Expand All @@ -775,7 +775,7 @@ public function getOptionsSettingsSite() {
/**
* 修改站点设置选项「Auth Required」
*
* @param array $options_settings_site 站点设置
* @param array $options_settings_site 站点设置
*/
public function setOptionsSettingsSite_AuthRequired($options_settings_site) {
$options_settings_site = serialize($options_settings_site);
Expand All @@ -802,7 +802,7 @@ public function getOptionsSettingsTransitionPage() {
/**
* 修改过渡页设置选项「Auth Required」
*
* @param array $options_settings_transition_page 过渡页设置
* @param array $options_settings_transition_page 过渡页设置
*/
public function setOptionsSettingsTransitionPage_AuthRequired($options_settings_transition_page) {
$options_settings_transition_page = serialize($options_settings_transition_page);
Expand All @@ -829,7 +829,7 @@ public function getOptionsSettingsSubscribe_AuthRequired() {
/**
* 修改订阅设置选项「Auth Required」
*
* @param array $options_settings_subscribe 订阅设置
* @param array $options_settings_subscribe 订阅设置
*/
public function setOptionsSettingsSubscribe_AuthRequired($options_settings_subscribe) {
$options_settings_subscribe = serialize($options_settings_subscribe);
Expand Down
9 changes: 9 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<h2>安全警示 / Security Alerts / Оповещения о безопасности</h2>
<br />
为了保证运行安全,请将站点根目录设置为 /Public 文件夹。<br />
To ensure operational security, set the site root to the /Public folder.<br />
Чтобы обеспечить операционную безопасность, задайте для корневого каталога папку /Public.<br />
<br />
如果不进行此操作,请至少确保 /Data 目录不能被直接访问,否则您的 SQLITE 数据库将能够被直接下载。<br />
If you do not do this, at a minimum, make sure that the /Data directory is not directly accessible, or your SQLITE database will be able to be downloaded directly.<br />
Если этого не сделать, как минимум, убедитесь, что каталог /Data недоступен напрямую, иначе базу данных SQLITE можно будет загрузить напрямую.<br />

0 comments on commit 83087a9

Please sign in to comment.