From a8e5cc44a2ebb12a33eb8d911cbece90e2938e10 Mon Sep 17 00:00:00 2001
From: "zhenjiang.dou"
Date: Wed, 28 Dec 2016 16:38:27 +0800
Subject: [PATCH] update
---
core.php | 20 +++++++++++++++++++-
post.php | 27 +++++++++++++++++++++++++++
remote_reg.php | 11 +++++++++++
resources/background.png | Bin 0 -> 951 bytes
signup.php | 4 ++--
test.php | 3 +++
6 files changed, 62 insertions(+), 3 deletions(-)
create mode 100644 post.php
create mode 100644 remote_reg.php
create mode 100644 resources/background.png
create mode 100644 test.php
diff --git a/core.php b/core.php
index 2833d20..1eb3d61 100644
--- a/core.php
+++ b/core.php
@@ -6,4 +6,22 @@
$rooturl = $_SERVER['HTTP_HOST'];
$domain = preg_replace('/^www\./', '', $rooturl);
$static_release = "2016122717430333";
-?>
\ No newline at end of file
+ function curlrequest($url, $data, $method="post") {
+ $ch = curl_init(); // 初始化CURL句柄
+ curl_setopt($ch, CURLOPT_URL, $url); // 设置请求的URL
+ curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); // 设为TRUE把curl_exec()结果转化为字串,而不是直接输出
+ curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method); // 设置请求方式
+ curl_setopt($ch, CURLOPT_REFERER,$url); // 构造来路
+ curl_setopt($ch, CURLOPT_HTTPHEADER,array("X-HTTP-Method-Override: $method")); // 设置HTTP头信息
+ curl_setopt($ch, CURLOPT_POSTFIELDS, $data); // 设置提交的字符串
+ $document = curl_exec($ch); // 执行预定义的CURL
+ if(!curl_errno($ch)) {
+ $info = curl_getinfo($ch);
+ echo 'Took ' . $info['total_time'] . ' seconds to send a request to ' . $info['url'];
+ } else {
+ echo 'Curl error: ' . curl_error($ch);
+ }
+ curl_close($ch);
+ // $document=preg_replace("/[\t\n\r]+/","",$document);
+ return $document;
+ }
\ No newline at end of file
diff --git a/post.php b/post.php
new file mode 100644
index 0000000..1ff5a25
--- /dev/null
+++ b/post.php
@@ -0,0 +1,27 @@
+
\ No newline at end of file
diff --git a/remote_reg.php b/remote_reg.php
new file mode 100644
index 0000000..6e63dc1
--- /dev/null
+++ b/remote_reg.php
@@ -0,0 +1,11 @@
+InhFu+dl31xd#-0!-3l{9)
zWB35NKw^hjvO(J<$4dA-lOY{+L$Oi|5a1B#o0Gol^pc=K0ZXceIy;`jQzZ=dNd3j`;_2x$-j
z8=>lP8aeKSay+0TKQzd%t4{>`op9s8$?n06Pfp1YX16^|T0!PQg;fq-%c
zr@>{I=&3O0tYKO_0^Hrpb@6BFTyo@ko>_l}e_eC`CXNlX=LUv=}A_
zxq?L#H})g$vk+&B&VWt1L7>u`EdR|xX0LKev0ie<187o2%B9EAD;W6$7adH72dY>
zW|(j%bZOHv2q*}?@9FB1R8o#4)ii60EZ4Qi4XI(BSQSaLG}Wq^IoD$DG@v2Rx!x_e
zyp@|-A&4NeMPvUp^%^k?@M_Dtzr7Y^tKORHZLg)Yl`BFqV%FHd8l8v0J=t_)TUcz2
zPeX8f47PrM{qZ+kiM#EyUVXV-!t}-GZ*O2I@J_3Xo?d?+!s1@js`b(zgA24PA#?{7
So(C^~LL4>gE$hR{#oIq}HX)k;
literal 0
HcmV?d00001
diff --git a/signup.php b/signup.php
index 4ec36ed..10e00c9 100644
--- a/signup.php
+++ b/signup.php
@@ -36,7 +36,7 @@
-->