Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复了loader.php报错的bug #38

Open
wants to merge 6 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@

一个轻量化的留言板 / 记事本 / 社交系统 / 博客,没有明确的作用定义,一切都随心所欲。

- 演示 demo:https://pigeon.ssr.wine/
- 演示 demo:https://pigeon.ssr.wine/ (已关闭,请看下面这个)
- 博客示例:https://tql.ink/

> 上面链接为本人博客,可以测试发布内容,无意义内容请设置仅自己可见,或者发布后删除,避免影响版面整洁。

## 简介

你是否有些临时的想法,或者一小段代码,想找一个地方记下来?
Expand Down Expand Up @@ -52,6 +54,8 @@ php install.php

安装程序是没有界面的,请通过命令行执行 `install.php`,而不是通过网页访问它。

> 如需手动安装(不使用安装程序),请 [点击这里阅读安装方法](https://github.com/kasuganosoras/Pigeon/wiki/Install#%E6%89%8B%E5%8A%A8%E5%AE%89%E8%A3%85-pigeon)

## 未来计划

- [x] 管理员后台系统(已实现)
Expand Down
18 changes: 11 additions & 7 deletions install.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,16 @@
echo "是否启用注册功能 (y/n)> ";
$enable_registe = trim(fgets(STDIN));
$enable_registe = empty($enable_registe) ? "y" : strtolower($enable_registe);

// https://github.com/kasuganosoras/Pigeon/issues/31
$enable_smtp = 'false';
$smtp_host = "";
$smtp_port = 25;
$smtp_user = "";
$smtp_pass = "";
$smtp_name = "";
$smtp_mail = "";

if($enable_registe == "y") {
$enable_registe = 'true';
echo "是否启用注册邮箱验证 (y/n)> ";
Expand All @@ -45,17 +55,11 @@
echo "请输入 SMTP 邮箱 (noreply@example.com)> ";
$smtp_mail = trim(fgets(STDIN));
$smtp_mail = empty($smtp_mail) ? "noreply@example.com" : $smtp_mail;
} else {
$enable_smtp = 'false';
$smtp_host = "";
$smtp_port = 25;
$smtp_user = "";
$smtp_pass = "";
$smtp_name = "";
}
} else {
$enable_registe = 'false';
}

echo "请输入站点名称 (Pigeon)> ";
$sitename = trim(fgets(STDIN));
$sitename = empty($sitename) ? "Pigeon" : $sitename;
Expand Down
Loading