diff --git a/README.md b/README.md
index d6c89cd..19e5d48 100644
--- a/README.md
+++ b/README.md
@@ -1,11 +1,11 @@
# CFPMP
Cloudflare Partner Management Panel
-打开config.php,根据里面的注释进行设置后即可使用
+Open config.php and edit it
-## 功能
-* CNAME接入
+## Functions
+* CNAME
* reCAPTCHA
-* 设置回源地址为IP(基于sslip.io)(默认关闭此功能)
+* Set original address as IP(Based on sslip.io)(Close by default)
-可用示例:[https://cf.yuzu.im/](https://cf.yuzu.im/)
+Demo: [https://cf.yuzu.im/](https://cf.yuzu.im/)
diff --git a/add_domain.php b/add_domain.php
index e60dcab..e3a972d 100644
--- a/add_domain.php
+++ b/add_domain.php
@@ -10,13 +10,13 @@ function msg($s){
}
if (empty($_POST["domain"])){
- msg("域名不能为空");
+ msg("Domain name mustn't be empty.");
}
$r=$cloudflare->zone_set($_POST["domain"],$_POST["domain"],"www:".$_POST["domain"]);
if ($r["result"]=="success"){
- msg("添加成功");
+ msg("Success");
}else{
- msg("添加失败:".$r["msg"]);
+ msg("Error: ".$r["msg"]);
}
\ No newline at end of file
diff --git a/auth.php b/auth.php
index bcdcc3c..1471580 100644
--- a/auth.php
+++ b/auth.php
@@ -14,10 +14,10 @@ function msg($s){
{
if (!($cloudflare->reCAPTCHA($_POST["g-recaptcha-response"])))
{
- msg("请完成验证码");
+ msg("Please complete the captcha.");
}
}else{
- msg("请完成验证码");
+ msg("Please complete the captcha.");
}
}
@@ -30,8 +30,8 @@ function msg($s){
$_SESSION["email"]=$r["response"]["cloudflare_email"];
header("Location: domains.php");
}else{
- msg("登陆 / 注册失败:".$r["msg"]);
+ msg("Failed to sign in/up: ".$r["msg"]);
}
}else{
- msg("用户名和密码不能为空");
+ msg("Username and password mustn't be empty.");
}
\ No newline at end of file
diff --git a/config.php b/config.php
index a1bccde..1869d55 100644
--- a/config.php
+++ b/config.php
@@ -3,13 +3,13 @@
// Cloudflare Partners host key
define("HOST_KEY","");
-// 站点名称
+// Site name
define("SITE_NAME","");
-// reCAPTCHA配置
+// reCAPTCHA
define("Enable_reCAPTCHA",false);
define("reCAPTCHA_Site","");
define("reCAPTCHA_Secret","");
-//A记录解析(基于sslip.io)
+//A Record (Based on sslip.io)
define("Enable_A_Record",false);
\ No newline at end of file
diff --git a/delete_domain.php b/delete_domain.php
index 8ec143d..41b3d22 100644
--- a/delete_domain.php
+++ b/delete_domain.php
@@ -10,13 +10,13 @@ function msg($s){
}
if (empty($_POST["domain"])){
- msg("域名不能为空");
+ msg("Domain name mustn't be empty.");
}
$r=$cloudflare->zone_delete($_POST["domain"]);
if ($r["result"]=="success"){
- msg("删除成功");
+ msg("Deleted successfully.");
}else{
- msg("删除失败:".$r["msg"]);
+ msg("Failed to delete: ".$r["msg"]);
}
\ No newline at end of file
diff --git a/domains.php b/domains.php
index 62ea686..5bdd6cd 100644
--- a/domains.php
+++ b/domains.php
@@ -20,13 +20,13 @@
Cloudflare Partners :
=SITE_NAME?>
>
- 域名管理
+ Domains Management
域名 | +Domain | |||
---|---|---|---|---|
'.$value.' | -管理 | -删除 | +Manage | +Delete |