我爱自学网 · 源码
发现乱码?点我试试!
<?php
goto d327J; 
npVyM: $ret["fopen"]["ok"] = @ini_get("allow_url_fopen") && function_exists("fsockopen"); 
goto yF7Z8; 
k_GrP: $post = array("access_token" => $accesstoken, "chunk" => $chunk_num); 
goto yTFNT; 
HH_ku: $data = we7_request_api(API_SITE_REGISTER_EXIST, array("url" => $siteroot)); 
goto D6Xx1; 
G7owi: header("content-type: text/html; charset=utf-8"); 
goto zT3vI; 
eF7tK: foreach ($ret as $key => $value) { goto IlzQl; 
KhSw8: yngcx: goto niDnu; 
d5jWb: $result[] = $value; 
goto KhSw8; 
IlzQl: if (!(version_compare(PHP_VERSION, "7.0.0") >= 0 && in_array($key, array("mcrypt", "always_populate_raw_post_data")))) { goto TlsUI; } 
goto q6L4i; 
q6L4i: goto egFrV; 
goto wV1cs; 
wV1cs: TlsUI: goto bE9x6; 
niDnu: egFrV: goto ehEwW; 
iB5d1: $value["handle"] = !empty($value["handle"]) ? $value["handle"] : "https://bbs.we7.cc/thread-3564-1-1.html"; 
goto d5jWb; 
bE9x6: if (!$value["failed"]) { goto yngcx; } 
goto iB5d1; 
ehEwW: } 
goto fPWxi; 
huw0b: we7_finish(); 
goto ywVOL; 
j2DBf: $chunk_total = we7_getcookie("chunk_total"); 
goto i2vSf; 
nnXZr: function we7_get_accesstoken() { goto n6nBP; 
Y3LWj: return ''; 
goto cVKSX; 
n6nBP: $cookie_accesstoken = we7_getcookie("accesstoken"); 
goto w7z0p; 
w7z0p: $accesstoken = json_decode($cookie_accesstoken, true); 
goto zuhFU; 
ICzHQ: return $accesstoken["accessToken"]; 
goto m7n_t; 
m7n_t: gpdQF: goto Y3LWj; 
zuhFU: if (!(!empty($accesstoken) && !empty($accesstoken["accessToken"]) && $accesstoken["expireTime"] > time())) { goto gpdQF; } 
goto ICzHQ; 
cVKSX: } 
goto vYcKD; 
yTFNT: $data = we7_request_api(API_GET_CHUNK_PACKAGE, $post); 
goto T24We; 
hC6I6: $is_https = $_SERVER["SERVER_PORT"] == 443 || isset($_SERVER["HTTPS"]) && strtolower($_SERVER["HTTPS"]) != "off" || strtolower($_SERVER["HTTP_X_FORWARDED_PROTO"]) == "https" || strtolower($_SERVER["HTTP_X_CLIENT_SCHEME"]) == "https" ? true : false; 
goto nWwvU; 
d66NV: if (!($finished === true)) { goto Vtg66; } 
goto GvrLq; 
bXzx5: VUkgm: goto Svn6r; 
uRauU: hV86e: goto rPQB1; 
mUnDj: $fh = fopen("./we7source.zip", "wb"); 
goto yhGgZ; 
OgLgO: $site = array("key" => $auth["key"], "token" => $auth["token"]); 
goto nQHCv; 
rGtiT: if (!(is_array($data) && isset($data["error"]))) { goto LbEXi; } 
goto tB4lY; 
T24We: if (!(is_array($data) && isset($data["error"]))) { goto rQvr_; } 
goto n2UK0; 
yGxvX: $ret["dom"]["ok"] = class_exists("DOMDocument"); 
goto eUAOs; 
oOKyF: $result = array(); 
goto eF7tK; 
d327J: ini_set("display_errors", 0); 
goto w3QLQ; 
zRNH5: $ret["data"]["ok"] = local_writeable(IA_INSTALL_ROOT . "/data"); 
goto H8bWv; 
EZUwz: tyjDT: goto wmIte; 
blqYJ: $server["upload"] = strtolower($server["upload"]); 
goto nQ0z6; 
XkkmG: $i++; 
goto ZjsLr; 
B4Azl: function we7_update_user($username, $password) { goto L01tx; 
TJAB4: $cookie["uid"] = $userinfo["uid"]; 
goto jbyTk; 
U3kKq: $cookie = array("lastvisit" => '', "lastip" => ''); 
goto TJAB4; 
QkT9t: $secure = $is_https ? 1 : 0; 
goto bodhv; 
yKZy_: load()->model("user"); 
goto f1N2K; 
erjyL: $result = pdo_update("users", array("username" => $username, "password" => $password), array("uid" => $userinfo["uid"])); 
goto U3kKq; 
L01tx: global $_W, $is_https; 
goto yKZy_; 
ha3PY: return $result ? true : false; 
goto CA6y_; 
bodhv: setcookie($_W["config"]["cookie"]["pre"] . "__session", $session, 0, "/", '', $secure, true); 
goto ha3PY; 
HKYNP: $password = user_hash($password, $userinfo["salt"]); 
goto erjyL; 
Yfo8R: $session = install_authcode(json_encode($cookie), "encode", $_W["config"]["setting"]["authkey"]); 
goto QkT9t; 
f1N2K: $userinfo = pdo_get("users", array("username" => "admin")); 
goto HKYNP; 
jbyTk: $cookie["hash"] = md5($password . $userinfo["salt"]); 
goto Yfo8R; 
CA6y_: } 
goto gG_IZ; 
EVRBu: aiNA2: goto SbJbV; 
pS16k: exit; 
goto WH6Eo; 
HmG4m: $dbfile = IA_INSTALL_ROOT . "/data/db.php"; 
goto yLwNC; 
lB1YG: exit(we7_error(400, "chunk大于最大值")); 
goto xnPix; 
Y9_B1: $post = file_get_contents("php://input"); 
goto o4vgk; 
nQ0z6: if (!($server["upload"] == "unknow" || !strstr($server["upload"], "m"))) { goto pNdA6; } 
goto iAUI9; 
iKU4A: clearstatcache(); 
goto EgmM9; 
Mm2er: mqxe3: goto GGPxA; 
AM1Do: function we7_build_config($server, $db_username, $db_password, $db_name, $db_prefix) { goto pDiR2; 
BqzIy: $result = file_put_contents(IA_INSTALL_ROOT . "/data/config.php", $config); 
goto sUBgw; 
TXA31: return $error; 
goto ppyBU; 
JrJAY: local_mkdirs(IA_INSTALL_ROOT . "/data"); 
goto BqzIy; 
xiDJT: $cookiepre = local_salt(4) . "_"; 
goto m1jgz; 
TNBNW: return false; 
goto E2cu0; 
E2cu0: fEvu4: goto GoXgy; 
MTnsz: $db = array("server" => $pieces[0] == "127.0.0.1" ? "localhost" : $pieces[0], "port" => !empty($pieces[1]) ? $pieces[1] : "3306", "username" => $db_username, "password" => $db_password, "prefix" => $db_prefix, "name" => $db_name); 
goto Dgffe; 
SlyfV: if (empty($error)) { goto ROMBi; } 
goto TXA31; 
m1jgz: $authkey = local_salt(8); 
goto X7E2I; 
YxDte: $config = local_config(); 
goto xiDJT; 
X7E2I: $config = str_replace(array("{db-server}", "{db-username}", "{db-password}", "{db-port}", "{db-name}", "{db-tablepre}", "{cookiepre}", "{authkey}", "{attachdir}"), array($db["server"], $db["username"], $db["password"], $db["port"], $db["name"], $db["prefix"], $cookiepre, $authkey, "attachment"), $config); 
goto JrJAY; 
ppyBU: ROMBi: goto YxDte; 
Dgffe: try { goto OirYK; 
seBlw: if (!$statement->fetch()) { goto VhSYi; } 
goto kkF3v; 
kkF3v: return "您的数据库不为空,请重新建立数据库或是清空该数据库或更改表前缀!"; 
goto N63vN; 
P4k51: $link->query("CREATE DATABASE IF NOT EXISTS `{$db["name"]}`"); 
goto emln3; 
HrLPR: DN5cA: goto WfJ0K; 
yfxv0: if (!empty($fetch)) { goto qipWY; } // DN5cA
goto gi3hH; 
gi3hH: if (substr($link->getAttribute(PDO::ATTR_SERVER_VERSION), 0, 3) > "4.1") { goto jMtLl; } 
goto P4k51; 
pk1Nk: SGie1: goto MuTSL; 
e5cEQ: if (!empty($fetch)) { goto Vc4Jt; } 
goto mh3fg; 
MuTSL: $errorInfo = $link->errorInfo(); 
goto OmZNR; 
FS528: if (!($link->errorCode() != "00000")) { goto qf87l; } 
goto LUvBa; 
rqP3d: if ($link->errorCode() != "00000") { goto SGie1; } 
goto CbSrZ; 
trrTx: goto vlOZN; 
goto pk1Nk; 
qipWY: $link->exec("USE {$db["name"]}"); 
goto YMWDi; 
jQvge: qf87l: goto trrTx; 
SAs8s: vlOZN: goto qipWY; 
LUvBa: $errorInfo = $link->errorInfo(); 
goto c71JN; 
YMWDi: $statement = $link->query("SHOW TABLES LIKE '{$db["prefix"]}%';"); 
goto seBlw; 
mh3fg: $error .= "数据库不存在且创建数据库失败."; 
goto gVK9s; 
OirYK: $link = new PDO("mysql:host={$db["server"]};dbname={$db['name']};port={$db["port"]}", $db["username"], $db["password"]); 
goto EVMV8; 
gVK9s: Vc4Jt: goto FS528; 
wahLf: $link->query("CREATE DATABASE IF NOT EXISTS `{$db["name"]}` DEFAULT CHARACTER SET utf8"); 
goto ITmur; 
JQmWz: $fetch = $statement->fetch(); 
$statement = null;
goto yfxv0; 
EVMV8: $link->exec("SET character_set_connection=utf8, character_set_results=utf8, character_set_client=binary"); 
goto eIiFq; 
eIiFq: $link->exec("SET sql_mode=''"); 
goto rqP3d; 
emln3: goto hA3hv; 
goto SIAHn; 
ITmur: hA3hv: goto HrLPR; 
SIAHn: jMtLl: goto wahLf; 
CbSrZ: $statement = $link->query("SHOW DATABASES LIKE '{$db["name"]}';"); 
goto JQmWz; 
SKz0L: $fetch = $statement->fetch(); 
goto e5cEQ; 
WfJ0K: $statement = $link->query("SHOW DATABASES LIKE '{$db["name"]}';"); 
goto SKz0L; 
N63vN: VhSYi: goto r7vfq; 
OmZNR: $error = $errorInfo[2]; 
goto SAs8s; 
c71JN: $error .= $errorInfo[2]; 
goto jQvge; 
r7vfq: } catch (PDOException $e) { goto mgyHr; 
mgyHr: $error = $e->getMessage(); 
goto BPKwl; 
NYnk9: $error = "您的数据库访问用户名或是密码错误."; 
goto KkPfd; 
KkPfd: PiMsJ: goto M9gNB; 
FqzG1: $error = iconv("gbk", "utf8", $error); 
goto t4_3B; 
t4_3B: goto PiMsJ; 
goto eBHOL; 
BPKwl: if (strpos($error, "Access denied for user") !== false) { goto LQv8u; } 
goto FqzG1; 
eBHOL: LQv8u: goto NYnk9; 
M9gNB: } 
goto SlyfV; 
sUBgw: return $result !== false ? true : false; 
goto tZoKe; 
pDiR2: if (!(empty($server) || empty($db_username) || empty($db_password) || empty($db_name))) { goto fEvu4; } 
goto TNBNW; 
GoXgy: $pieces = explode(":", $server); 
goto MTnsz; 
tZoKe: } 
goto gUB3R; 
CnaNE: if (!($chunk_num > $chunk_total)) { goto e8owp; } 
goto lB1YG; 
rgVJY: function local_salt($length = 8) { goto CefVK; 
nTR7r: return $result; 
goto jhXZZ; 
hWTzG: $result = substr(str_shuffle($strs), mt_rand(0, strlen($strs) - ($length + 1)), $length); 
goto nTR7r; 
CefVK: $strs = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklnmopqrstuvwxyz0123456789"; 
goto hWTzG; 
jhXZZ: } 
goto Ha558; 
grZK5: Yxu5_: goto hWJ0N; 
VKvQ1: $db_prefix = trim($_POST["prefix"]); 
goto nGphp; 
f_PVe: pNdA6: goto XB1dA; 
TfuFf: goto VUkgm; 
goto b7sJf; 
dQBai: exit; 
goto XgSJZ; 
F4uHh: z11Qv: goto yGxvX; 
GlZuD: if (!($registered_site == 1)) { goto D1QZT; } 
goto SJRNO; 
tB4lY: exit(we7_error(400, "获取accesstoken失败,请重新登录.")); 
goto Pd5kx; 
Ddvp5: exit(we7_error(421, "安装包不完整.")); 
goto s5Cyd; 
DY1Eg: $result = intval($download_size / $source_size * 100); 
goto LTSXh; 
jJ0v_: $sitename = trim($_POST["sitename"]); 
goto dPsj1; 
k5INR: if (!($database_result !== true)) { goto DKqDv; } 
goto teIoO; 
GCSIS: function install_authcode($string, $operation = "DECODE", $key = '', $expiry = 0) { goto U5JbK; 
oHvew: $box[$j] = $tmp; 
goto mmZPp; 
GYYMu: $box = range(0, 255); 
goto Uy0u6; 
k1anr: $a = ($a + 1) % 256; 
goto eaD2x; 
U5JbK: $ckey_length = 4; 
goto wuCRj; 
yBw5i: $j = $i = 0; 
goto SgC9Q; 
hD1GN: goto hu2zL; 
goto cpFBl; 
b7wMH: KjoEs: goto VE01C; 
EvXC5: $a = $j = $i = 0; 
goto ilebB; 
Mb5DL: $rndkey[$i] = ord($cryptkey[$i % $key_length]); 
goto Yev1i; 
Ou6ir: $i++; 
goto hD1GN; 
CyHYM: $box[$a] = $box[$j]; 
goto oHvew; 
PGtVc: SaU_E: goto GMq1Y; 
mAboN: goto fDWsd; 
goto tYg90; 
Sk705: $string = $operation == "DECODE" ? base64_decode(substr($string, $ckey_length)) : sprintf("%010d", $expiry ? $expiry + time() : 0) . substr(md5($string . $keyb), 0, 16) . $string; 
goto fZpW6; 
CHRbF: $cryptkey = $keya . md5($keya . $keyc); 
goto uzj5C; 
TB1vp: $box[$i] = $box[$j]; 
goto v51K1; 
C2b9K: goto xiD3F; 
goto PGtVc; 
apO7Q: hu2zL: goto eaHk3; 
s9ApJ: if ($operation == "DECODE") { goto PDiyL; } 
goto oJGy3; 
SgC9Q: x9rfG: goto OKYXX; 
JrLT5: return ''; 
goto C2b9K; 
oJGy3: return $keyc . str_replace("=", '', base64_encode($result)); 
goto mAboN; 
LWMVG: goto x9rfG; 
goto k945V; 
OqpJ_: $j = ($j + $box[$i] + $rndkey[$i]) % 256; 
goto x7aQf; 
cDQfx: fDWsd: goto shOXS; 
gxm3Z: $i++; 
goto GEeL3; 
x7aQf: $tmp = $box[$i]; 
goto TB1vp; 
eaHk3: if (!($i <= 255)) { goto LzoV3; } 
goto Mb5DL; 
GslEe: omHjq: goto gxm3Z; 
GMq1Y: return substr($result, 26); 
goto sp8Tu; 
k945V: XerbU: goto EvXC5; 
sp8Tu: xiD3F: goto cDQfx; 
eaD2x: $j = ($j + $box[$a]) % 256; 
goto Togxv; 
BZDfX: Zq2CD: goto s9ApJ; 
zomX3: if (!($i < $string_length)) { goto Zq2CD; } 
goto k1anr; 
ayKve: if ((substr($result, 0, 10) == 0 || substr($result, 0, 10) - time() > 0) && substr($result, 10, 16) == substr(md5(substr($result, 26) . $keyb), 0, 16)) { goto SaU_E; } 
goto JrLT5; 
OKYXX: if (!($i < 256)) { goto XerbU; } 
goto OqpJ_; 
fZpW6: $string_length = strlen($string); 
goto REyMd; 
REyMd: $result = ''; 
goto GYYMu; 
uzj5C: $key_length = strlen($cryptkey); 
goto Sk705; 
Yev1i: pcRt8: goto Ou6ir; 
lM_w1: $keyc = $ckey_length ? $operation == "DECODE" ? substr($string, 0, $ckey_length) : substr(md5(microtime()), -$ckey_length) : ''; 
goto CHRbF; 
VE01C: $i++; 
goto LWMVG; 
v51K1: $box[$j] = $tmp; 
goto b7wMH; 
ApV4z: $keya = md5(substr($key, 0, 16)); 
goto IIBVM; 
Uy0u6: $rndkey = array(); 
goto Pmj2g; 
ilebB: B_cRG: goto zomX3; 
mmZPp: $result .= chr(ord($string[$i]) ^ $box[($box[$a] + $box[$j]) % 256]); 
goto GslEe; 
IIBVM: $keyb = md5(substr($key, 16, 16)); 
goto lM_w1; 
Togxv: $tmp = $box[$a]; 
goto CyHYM; 
tYg90: PDiyL: goto ayKve; 
wuCRj: $key = md5($key != '' ? $key : $GLOBALS["_W"]["config"]["setting"]["authkey"]); 
goto ApV4z; 
Pmj2g: $i = 0; 
goto apO7Q; 
cpFBl: LzoV3: goto yBw5i; 
GEeL3: goto B_cRG; 
goto BZDfX; 
shOXS: } 
goto AF8NJ; 
ZAmsE: goto ZZjzA; 
goto o1BUp; 
LgdPi: fclose($hostfile); 
goto p2Lhj; 
UA0Pc: $sitepath = str_replace("/install.php", '', $sitepath); 
goto yPmO1; 
WLxMB: $verfile = IA_INSTALL_ROOT . "/framework/version.inc.php"; 
goto HmG4m; 
EgmM9: $source_size = we7_getcookie("cdn_source_size"); 
goto KFOFE; 
dPsj1: $username = trim($_POST["username"]); 
goto pQZuF; 
HIrjJ: yJVzS: goto sQM2L; 
ybwy3: KPweY: goto Rb8j2; 
IW_8F: $filesize = filesize($filename); 
goto Mf_n2; 
b2cIm: $finished = false; 
goto f3T3l; 
yhGgZ: jHjua: goto GoHFA; 
KJ7zG: $ret["session"]["ok"] = ini_get("session.auto_start"); 
goto pQLTL; 
ZrQ5T: ukuJD: goto GGguC; 
GGguC: $hostfile = fopen($cdn_source_file, "rb"); 
goto mUnDj; 
NEuyP: oUfVF: goto Px607; 
j22EB: $ret["always_populate_raw_post_data"]["result"] = @ini_get("always_populate_raw_post_data"); 
goto FsrQP; 
OS6jr: exit(we7_error(0, $chunk_num)); 
goto hp3zN; 
DM3iX: we7_setcookie("chunk_total", $data["chunk_total"]); 
goto uY4sk; 
ZjsLr: goto mKmmF; 
goto UPnxQ; 
a2h1b: z7U6l: goto KJ7zG; 
isQ5b: Dbv3f: goto dWvHu; 
OeBeD: xyW9B: goto ybwy3; 
yPmO1: $siteroot = ($is_https ? "https://" : "http://") . $_SERVER["SERVER_NAME"] . $sitepath; 
goto sa0xE; 
KDlXx: $ret["fopen"]["result"] = "不支持fopen"; 
goto F4uHh; 
TfCsS: Vtg66: goto X2iQq; 
Sj71Q: $ret["root"]["result"] = "本地目录无法写入"; 
goto XCnfI; 
m3S58: $ret["version"]["failed"] = true; 
goto GwJuQ; 
dK5tf: exit(we7_error(433, "accesstoken expired.")); 
goto LQ9O3; 
s5Cyd: yb1xD: goto x5yMa; 
IF8mc: goto Psamv; 
goto FDCae; 
dponV: $ret["root"]["ok"] = local_writeable(IA_INSTALL_ROOT); 
goto NJR7j; 
Tw6Jv: require IA_INSTALL_ROOT . "/framework/bootstrap.inc.php"; 
goto OgLgO; 
fLUKm: $data = we7_request_api(API_OAUTH_LOGIN_URL, array("redirect" => $callback)); 
goto rC5aW; 
iNyeD: if ($result) { goto q24dd; } 
goto oTzYi; 
UdaSY: $url = $siteroot . "/install.php?step=oauth"; 
goto l_SWN; 
pQZuF: $password = trim($_POST["password"]); 
goto huw0b; 
o1BUp: H_faS: goto LgdPi; 
pQLTL: if (!(!empty($ret["session"]["ok"]) && strtolower($ret["session"]["ok"]) == "on")) { goto Kzo3j; } 
goto dkrfY; 
yGhTM: $sitename_result = we7_update_sitename($sitename); 
goto v9QVM; 
OnXVA: $header_array = get_headers($cdn_source_file, 1); 
goto YqV99; 
YMvcQ: $ret["fopen"]["failed"] = true; 
goto b9e7c; 
kDcmH: OhAaQ: goto ZcnDq; 
QIYv_: $ret["dom"]["result"] = "没有启用DOMDocument"; 
goto a2h1b; 
Yl1Q5: $actions = array("check_site", "oauth", "environment", "install", "chunktotal", "download_percent", "download", "install", "register_callback", "login"); 
goto BW5mH; 
vYcKD: function we7_handle_chunk() { goto ael4m; 
eyWGC: zAVF8: goto WQmWY; 
IcXEA: if (!($res === TRUE)) { goto X2aL1; } 
goto MEleo; 
ael4m: $tmpfile = "./we7source.zip"; 
goto zbaDg; 
lv2v2: X2aL1: goto eyWGC; 
e0s0L: $zip = new ZipArchive(); 
goto azBYm; 
MEleo: $zip->extractTo(IA_INSTALL_ROOT); 
goto i3rt6; 
azBYm: $res = $zip->open($tmpfile); 
goto IcXEA; 
i3rt6: $zip->close(); 
goto dCZiB; 
zbaDg: $result = false; 
goto F8496; 
F8496: if (!file_exists($tmpfile)) { goto zAVF8; } 
goto e0s0L; 
WQmWY: return $result; 
goto o1rwi; 
dCZiB: $result = true; 
goto lv2v2; 
o1rwi: } 
goto AM1Do; 
Px_dP: function local_run($sql, $link, $db) { goto wPRWQ; 
vUHkM: HRU2c: goto hvKQ8; 
nS9Nr: foreach (explode(";\12", trim($sql)) as $query) { goto tF6D3; 
tF6D3: $ret[$num] = ''; 
goto AqqfW; 
LsyTU: foreach ($queries as $query) { $ret[$num] .= isset($query[0]) && $query[0] == "#" || isset($query[1]) && isset($query[1]) && $query[0] . $query[1] == "--" ? '' : $query; 
ifOFI: } 
goto xUmfN; 
Mdg71: UnX2v: goto ibj6S; 
bV9DH: $num++; 
goto Mdg71; 
AqqfW: $queries = explode("\xa", trim($query)); 
goto LsyTU; 
xUmfN: wWhUq: goto bV9DH; 
ibj6S: } 
goto dtTZE; 
DpJJ0: foreach ($ret as $query) { goto Mkxge; 
wlDfJ: t4yfw: goto CoSc1; 
cdKBP: exit($query); 
goto Im983; 
LugcM: if (!$query) { goto t4yfw; } 
goto PO8UR; 
fLpAh: if (!($link->errorCode() != "00000")) { goto rRTq_; } 
goto ocnjf; 
U8OUI: echo $errorInfo[0] . ": " . $errorInfo[2] . "<br />"; 
goto cdKBP; 
Mkxge: $query = trim($query); 
goto LugcM; 
CoSc1: IHmI7: goto C8pLr; 
Im983: rRTq_: goto wlDfJ; 
ocnjf: $errorInfo = $link->errorInfo(); 
goto U8OUI; 
PO8UR: $link->exec($query); 
goto fLpAh; 
C8pLr: } 
goto iIhEh; 
iIhEh: RS9mF: goto Q0Q7e; 
kdaiO: unset($sql); 
goto DpJJ0; 
hvKQ8: $sql = str_replace("\xd", "\xa", str_replace(" ims_", " " . $db["prefix"], $sql)); 
goto mnQr3; 
QIDAO: return; 
goto vUHkM; 
wPRWQ: if (!(!isset($sql) || empty($sql))) { goto HRU2c; } 
goto QIDAO; 
BnZRs: $ret = array(); 
goto WTtCd; 
dtTZE: H6lr9: goto kdaiO; 
mnQr3: $sql = str_replace("\xd", "\xa", str_replace(" `ims_", " `" . $db["prefix"], $sql)); 
goto BnZRs; 
WTtCd: $num = 0; 
goto nS9Nr; 
Q0Q7e: } 
goto y7hAO; 
w3nr7: we7_setcookie("registered_site", 1); 
goto Y6YtE; 
zxw2A: function we7_update_sitename($sitename) { goto vL70a; 
SapGN: VKBD_: goto wBlla; 
wGgwG: FtHHF: goto XibF1; 
AHr8z: return "站点信息不存在,请重新注册站点."; 
goto SapGN; 
v0IL8: jJZry: goto qj_XK; 
SPMdI: if (!(empty($site_info["site"]) || empty($site_info["site"]["key"]))) { goto VKBD_; } 
goto AHr8z; 
ceE9I: return true; 
goto kVaXv; 
PAkv0: $site_info = setting_load("site"); 
goto SPMdI; 
FVFGI: if (is_array($data) && isset($data["error"])) { goto jJZry; } 
goto ceE9I; 
wBlla: $data = we7_request_api(API_UPDATE_SITENAME, array("access_token" => $accesstoken, "site_name" => $sitename, "site_key" => $site_info["site"]["key"])); 
goto FVFGI; 
qj_XK: return $data["error"]; 
goto wGgwG; 
vL70a: global $accesstoken, $_W; 
goto PAkv0; 
kVaXv: goto FtHHF; 
goto v0IL8; 
XibF1: } 
goto B4Azl; 
FqjPC: goto xyW9B; 
goto isQ5b; 
f1BlJ: $download_size = filesize("./we7source.zip"); 
goto DY1Eg; 
IFUS3: if (!($action == "download")) { goto yJVzS; } 
goto Q96fx; 
FDCae: q24dd: goto XPxLd; 
WMixt: $filename = IA_INSTALL_ROOT . "/chunk_" . $chunk_num; 
goto IW_8F; 
wegBL: $result = file_put_contents("./chunk_" . $chunk_num, $data); 
goto iNyeD; 
cY9mJ: v4V7N: goto wegBL; 
nWwvU: $sitepath = substr($_SERVER["PHP_SELF"], 0, strrpos($_SERVER["PHP_SELF"], "/")); 
goto UA0Pc; 
GoDZV: $action = in_array($action, $actions) ? $action : ''; 
goto LGY44; 
b7sJf: QNSWR: goto t4mcC; 
ihgSf: define("API_GET_CHUNK_PACKAGE", API_HOST . "/util/package/install"); 
goto cVPno; 
SzMju: we7_handle_chunk(); 
goto Mm2er; 
BHlM9: we7_setcookie("accesstoken", $data); 
goto nV5jw; 
KTKte: if (!(!empty($ret["asp_tags"]["ok"]) && strtolower($ret["asp_tags"]["ok"]) == "on")) { goto XvTQ7; } 
goto U2V6t; 
SnHYe: fwrite($fh, $output); 
goto JH9Uc; 
uAjMq: if (!(empty($accesstoken) && !$registered_site && $action != "register_callback")) { goto hV86e; } 
goto ipjEs; 
nGb5d: $ret["upload"]["name"] = "上传限制"; 
goto U0R7K; 
S7OyQ: if (!($action == "oauth")) { goto tyjDT; } 
goto npUMM; 
GvrLq: $handle_result = we7_handle_chunk(); 
goto D6yBi; 
tBLYn: KTw4e: goto AgI2S; 
SxCLc: $database_result = we7_build_config($server, $db_username, $db_password, $db_name, $db_prefix); 
goto k5INR; 
INNwV: oJxqw: goto chU4M; 
o4vgk: $auth = @json_decode(base64_decode($post), true); 
goto p1H8r; 
w3QLQ: error_reporting(E_ALL); 
goto hKkNW; 
hp3zN: Q7mvr: goto k_GrP; 
x5yMa: if (file_exists(IA_INSTALL_ROOT . "/data/db.lock")) { goto F2KMJ; } 
goto Wp1pZ; 
MA1Ey: $forward = $data["url"]; 
goto Qk88C; 
M1a0R: goto q9ufe; 
goto b64mi; 
IxQlw: if (!(!file_exists(IA_INSTALL_ROOT . "/data/config.php") || !empty($_POST))) { goto U0faP; } 
goto dQIzy; 
l_SWN: $callback = urlencode($url); 
goto fLUKm; 
FsrQP: $ret["always_populate_raw_post_data"]["handle"] = "https://bbs.w7.cc/thread-33148-1-1.html"; 
goto fyd29; 
YroQB: rQvr_: goto SkQ2_; 
YI3t4: t_3Fl: goto IFUS3; 
nQHCv: setting_save($site, "site"); 
goto N8_NT; 
Z5BrQ: D1QZT: goto sDimW; 
bdxJl: define("IN_SYS", true); 
goto Tw6Jv; 
USKda: AELc7: goto MA1Ey; 
nwHQ4: if (!($database_result !== true)) { goto KTuad; } 
goto MlBtI; 
SJWBg: $ret["asp_tags"]["ok"] = ini_get("asp_tags"); 
goto KTKte; 
ZaZEH: exit(we7_error(421, $handle_result)); 
goto QMJW3; 
N8_NT: exit(we7_error(0, "success")); 
goto kDcmH; 
H6WGP: hDljb: goto YroQB; 
GwJuQ: $ret["version"]["name"] = "PHP版本"; 
goto QjG28; 
GtL_Q: PAl0O: goto oOKyF; 
SXAxn: if (!($chunk_num == 1)) { goto S8Zwc; } 
goto sXfDc; 
OZwYA: $action = "oauth"; 
goto Jw6Ky; 
V8SIl: exit(we7_error(400, $data["error"])); 
goto M1a0R; 
ACiXB: $i = 1; 
goto gLVMN; 
Hj_SN: exit(we7_error(0, "success")); 
goto C2rH3; 
o5tN4: vhRmu: goto HeTV2; 
IkVAC: we7_setcookie("cdn_source_size", $source_size); 
goto Hnb9x; 
q41CA: $ret["data"]["name"] = "data目录写入"; 
goto EXOd1; 
Lt34j: $accesstoken = we7_get_accesstoken(); 
goto GLI9B; 
qg9LJ: exit(we7_error(432, "请先获取分卷总量.")); 
goto tlBhY; 
gUB3R: function we7_db() { goto mRb9A; 
G7812: $engines = $link->query("SHOW ENGINES;"); 
goto G3APA; 
Y3hBu: $cookiepre = $config["cookie"]["pre"]; 
goto m9BSr; 
Df4QB: foreach ($all_engines as $engine) { goto W1zCD; 
tTs1p: $support_innodb = true; 
goto rMtJN; 
rMtJN: WkkCx: goto ykG3f; 
W1zCD: if (!(strtolower($engine["Engine"]) == "innodb" && in_array(strtolower($engine["Support"]), array("default", "yes")))) { goto WkkCx; } 
goto tTs1p; 
ykG3f: ayeh0: goto KWE8Y; 
KWE8Y: } 
goto gZHRc; 
ZJWUA: setcookie("{$cookiepre}__session", $session, 0, "/", '', $secure, true); 
goto jfWLk; 
xaKVh: $cookie = array("lastvisit" => '', "lastip" => ''); 
goto yypff; 
ohmd4: $db = array("server" => $config["db"]["master"]["host"], "port" => $config["db"]["master"]["port"], "username" => $config["db"]["master"]["username"], "password" => $config["db"]["master"]["password"], "prefix" => $config["db"]["master"]["tablepre"], "name" => $config["db"]["master"]["database"]); 
goto Y3hBu; 
mRb9A: global $is_https; 
goto yw0QU; 
UbLyA: $link->exec("SET sql_mode=''"); 
goto AxjXn; 
DrIBE: Bpgj2: goto HKr5I; 
yypff: $cookie["uid"] = $link->lastInsertId(); 
goto aP84d; 
jfWLk: return true; 
goto a8KCB; 
kAZuY: if (file_exists(IA_INSTALL_ROOT . "/index.php") && is_dir(IA_INSTALL_ROOT . "/web") && file_exists(IA_INSTALL_ROOT . "/framework/version.inc.php") && file_exists($dbfile)) { goto pdIJq; } 
goto FqfZ5; 
vs7KR: require IA_INSTALL_ROOT . "/data/config.php"; 
goto ohmd4; 
yLnV3: $link = new PDO("mysql:dbname={$db["name"]};host={$db["server"]};port={$db["port"]}", $db["username"], $db["password"]); 
goto qPfS8; 
qPfS8: $link->exec("SET character_set_connection=utf8, character_set_results=utf8, character_set_client=binary"); 
goto UbLyA; 
FqfZ5: return "安装包不正确."; 
goto fGoh8; 
DBIDV: pdIJq: goto g92K9; 
FmUkb: INu2n: goto BgmDc; 
G3APA: $all_engines = $engines->fetchAll(); 
goto Df4QB; 
mFQiv: $support_innodb = false; 
goto G7812; 
aP84d: $cookie["hash"] = md5($password . $salt); 
goto EnB6D; 
HKr5I: Ti26_: goto Ar7C0; 
nREoS: bNoi2: goto mFQiv; 
gZHRc: Oc9Wd: goto Rzd64; 
EnB6D: $session = install_authcode(json_encode($cookie), "encode", $authkey); 
goto rYb7H; 
BgmDc: foreach ($dat["datas"] as $data) { local_run($data, $link, $db); 
vTnrn: } 
goto DrIBE; 
yw0QU: define("IN_IA", true); 
goto vs7KR; 
rYb7H: $secure = $is_https ? 1 : 0; 
goto ZJWUA; 
chePu: if (!(empty($dat) || !is_array($dat))) { goto bNoi2; } 
goto F_S9a; 
fGoh8: goto Ti26_; 
goto DBIDV; 
YMEKE: $salt = local_salt(8); 
goto v8hir; 
g92K9: $dat = (require $dbfile); 
goto chePu; 
AxjXn: $dbfile = IA_INSTALL_ROOT . "/data/db.php"; 
goto kAZuY; 
F_S9a: return "安装包不正确, 数据安装脚本缺失."; 
goto nREoS; 
v8hir: $password = sha1("{$user["password"]}-{$salt}-{$authkey}"); 
goto pYJqg; 
m9BSr: $authkey = $config["setting"]["authkey"]; 
goto yLnV3; 
Rzd64: foreach ($dat["schemas"] as $schema) { goto ogfWN; 
ogfWN: $sql = local_create_sql($schema, $support_innodb); 
goto NRlTs; 
NRlTs: local_run($sql, $link, $db); 
goto aPAQG; 
aPAQG: ZJamF: goto qMy0i; 
qMy0i: } 
goto FmUkb; 
pYJqg: $link->exec("INSERT INTO {$db["prefix"]}users (username, password, salt, joindate, groupid, status, founder_groupid) VALUES('{$user["username"]}', '{$password}', '{$salt}', '" . time() . "', 1, 2, 1)"); 
goto xaKVh; 
Ar7C0: $user = array("username" => "admin", "password" => "123456"); 
goto YMEKE; 
a8KCB: } 
goto q2T1G; 
arryM: define("API_UPDATE_SITENAME", API_HOST . "/site/register/rename"); 
goto Yl1Q5; 
Svn6r: ZxYnF: goto M2RLg; 
Vpr8t: if (!($action == "register_callback")) { goto Uh4v5; } 
goto Y9_B1; 
wroVe: $server["upload"] = @ini_get("file_uploads") ? ini_get("upload_max_filesize") : "unknow"; 
goto blqYJ; 
XgSJZ: Jz8qP: goto WFVso; 
I4ibK: U0faP: goto WLxMB; 
YywrG: $db_name = trim($_POST["name"]); 
goto VKvQ1; 
X2iQq: exit(we7_error(0, $chunk_num)); 
goto vzUyq; 
JH9Uc: goto jHjua; 
goto EVRBu; 
gl1yq: exit(we7_error(430, $register_site_result)); 
goto vFYVE; 
Ed1fr: $ret["always_populate_raw_post_data"]["failed"] = @ini_get("always_populate_raw_post_data") != "-1"; 
goto MjHXX; 
iAUI9: $ret["upload"]["failed"] = true; 
goto nGb5d; 
q2T1G: function we7_register_site() { goto XaI0d; 
AGD0g: $data = we7_request_api(API_OAUTH_REGISTER_SITE, $post); 
goto SUh2U; 
UCkrq: return true; 
goto AV4Ea; 
SUh2U: if (is_array($data) && isset($data["error"])) { goto HFmhY; } 
goto UCkrq; 
VZAtA: require IA_INSTALL_ROOT . "/framework/version.inc.php"; 
goto alvS1; 
JlpxV: $callback = urlencode($siteroot . "/install.php?step=register_callback"); 
goto hMM2j; 
hMM2j: $post = array("access_token" => $accesstoken, "name" => $siteroot . "的站点", "url" => $siteroot, "version" => $version, "release" => $release, "callback" => $callback); 
goto AGD0g; 
XaI0d: global $siteroot, $accesstoken; 
goto kfNdY; 
AV4Ea: goto inN0g; 
goto UbISE; 
UbISE: HFmhY: goto WyE_H; 
WyE_H: return $data["error"]; 
goto IourU; 
kfNdY: define("IN_IA", true); 
goto VZAtA; 
Iuceb: $release = IMS_RELEASE_DATE; 
goto JlpxV; 
alvS1: $version = IMS_VERSION; 
goto Iuceb; 
IourU: inN0g: goto kdXb3; 
kdXb3: } 
goto kVg_W; 
CjfnR: function we7_setcookie($key, $value) { goto wkdtj; 
wkdtj: $secure = $_SERVER["SERVER_PORT"] == 443 ? 1 : 0; 
goto f52yd; 
f52yd: if (!is_array($value)) { goto I1kAS; } 
goto SDCER; 
w2Qmz: I1kAS: goto TKvZX; 
TKvZX: return setcookie(COOKIE_PRE . $key, $value, 0, '', '', $secure, true); 
goto t_nZV; 
SDCER: $value = json_encode($value); 
goto w2Qmz; 
t_nZV: } 
goto qn6LU; 
Wp1pZ: $database_result = we7_db(); 
goto nwHQ4; 
i2vSf: if (!empty($chunk_total)) { goto h6GP2; } 
goto qg9LJ; 
HgNXW: Uh4v5: goto G7owi; 
ywVOL: if (!($sitename != $siteroot . "的站点")) { goto KTw4e; } 
goto yGhTM; 
HU39r: goto mqxe3; 
goto ZrQ5T; 
cVPno: define("API_OAUTH_REGISTER_SITE", API_HOST . "/site/register/index"); 
goto arryM; 
XPxLd: $finished = true; 
goto ACiXB; 
GGPxA: exit(we7_error(0, $chunk_num)); 
goto CnaNE; 
zc_Af: CsiWa: goto tBLYn; 
yCN8a: if (empty($code)) { goto MEFcX; } 
goto Ivsw5; 
fyd29: CBT7t: goto npVyM; 
ZcnDq: exit(we7_error(400, "数据错误.")); 
goto HgNXW; 
LGY44: if (!(file_exists(IA_INSTALL_ROOT . "/data/install.lock") && !in_array($action, array("oauth", "login")))) { goto iDltS; } 
goto uhrpd; 
uY4sk: exit(we7_error(0, array("total" => $data["chunk_total"]))); 
goto TfuFf; 
MlBtI: exit(we7_error(420, $database_result)); 
goto AfqMn; 
ThKFH: $ret["dom"]["failed"] = true; 
goto pllP3; 
U2V6t: $ret["asp_tags"]["failed"] = true; 
goto qET9q; 
dQIzy: $server = trim($_POST["server"]); 
goto WJP7n; 
dkrfY: $ret["session"]["failed"] = true; 
goto LwChm; 
lMrRy: we7_setcookie("package_md5", $data["md5"]); 
goto DM3iX; 
bFb93: zV6ue: goto w3nr7; 
FX_1w: define("API_OAUTH_LOGIN_URL", API_HOST . "/oauth/login-url/index"); 
goto qUU81; 
jupWf: exit(we7_error(400, $chunk_num)); 
goto cY9mJ; 
kpr1P: exit(we7_error(400, "请重新登录.")); 
goto USKda; 
rvhht: ZZjzA: goto JCNm_; 
v9QVM: if ($sitename_result) { goto CsiWa; } 
goto pd86s; 
sXfDc: $hostfile = fopen($cdn_source_file, "rb"); 
goto Z6KyV; 
smKvz: $ret["data"]["failed"] = true; 
goto q41CA; 
wMqsK: if (!($register_site_result !== true)) { goto i_BtZ; } 
goto gl1yq; 
kVg_W: function we7_upgrade() { goto rUDrZ; 
zKr1a: if (!empty($packet)) { goto DrkHG; } 
goto yOtRa; 
aykar: onhK5: goto wfvSZ; 
s060C: $cversion = IMS_VERSION; 
goto Vyy40; 
CzsPe: mkdirs($updatedir); 
goto s060C; 
I17kx: require IA_INSTALL_ROOT . "/web/common/bootstrap.sys.inc.php"; 
goto hgRSO; 
yamO0: load()->func("db"); 
goto FGW7H; 
s7943: $updatedir = IA_INSTALL_ROOT . "/data/update/"; 
goto ytram; 
zus82: i430Q: goto cV1DK; 
y9Ups: foreach ($packet["schemas"] as $schema) { goto R3IPa; 
s5J7D: $sqls = db_table_fix_sql($local, $schema); 
goto XRshq; 
oB4O2: CILs3: goto vOBto; 
XRshq: foreach ($sqls as $sql) { pdo_query($sql); 
t65ph: } 
goto j01oF; 
j01oF: Ve7OO: goto oB4O2; 
YIdZ8: $local = db_table_schema(pdo(), $tablename); 
goto s5J7D; 
R3IPa: $tablename = substr($schema["tablename"], 4); 
goto YIdZ8; 
vOBto: } 
goto CPRFk; 
avQQj: if (!(!empty($packet["schemas"]) && is_array($packet["schemas"]))) { goto onhK5; } 
goto y9Ups; 
cV1DK: QLTnC: goto raLH7; 
ay7yl: require IA_INSTALL_ROOT . "/framework/bootstrap.inc.php"; 
goto I17kx; 
eGi2a: if (empty($updatefiles)) { goto i430Q; } 
goto luH5T; 
BIBas: bQKSz: goto zus82; 
zHSwi: $updatefiles = array(); 
goto s7943; 
CPRFk: jl2ZQ: goto aykar; 
GOReK: define("IN_SYS", true); 
goto ay7yl; 
rUDrZ: global $_W; 
goto GOReK; 
Vyy40: $crelease = IMS_RELEASE_DATE; 
goto EqNFR; 
e0g3z: DrkHG: goto sEBZ1; 
wfvSZ: if (!(!empty($packet["scripts"]) && is_array($packet["scripts"]))) { goto QLTnC; } 
goto zHSwi; 
sEBZ1: if (!(!empty($packet["files"]) && is_array($packet["files"]))) { goto xqCpn; } 
goto tQYnS; 
raLH7: return true; 
goto jWkYk; 
z_GpZ: xqCpn: goto avQQj; 
yOtRa: return true; 
goto e0g3z; 
ytram: rmdirs($updatedir, true); 
goto CzsPe; 
luH5T: foreach ($updatefiles as $file) { goto q1bC0; 
o8o94: cache_build_users_struct(); 
goto kNDbt; 
Pefew: Dp1c7: goto ihUWW; 
q1bC0: if (!(!is_file($file) || !preg_match("/^update\(\d{12}\-\d{12}\)\.php$/", $file))) { goto Dp1c7; } 
goto hw_q4; 
FB5Xm: @unlink($entry); 
goto u5H9R; 
ihUWW: $evalret = (include $entry); 
goto Ziss2; 
Ziss2: if (empty($evalret)) { goto YH30p; } 
goto o8o94; 
kNDbt: cache_build_setting(); 
goto FB5Xm; 
u5H9R: YH30p: goto BmKg4; 
BmKg4: ghXIW: goto evZ2q; 
hw_q4: goto ghXIW; 
goto Pefew; 
evZ2q: } 
goto BIBas; 
gHt8T: yxccv: goto z_GpZ; 
EqNFR: foreach ($packet["scripts"] as $script) { goto wSUdV; 
kcq5t: $script["script"] = @base64_decode($script["script"]); 
goto lah95; 
IZow2: K5A9c: goto c9iR8; 
J5nyG: $updatefile = $updatedir . $fname; 
goto ZEhUj; 
Omze9: $script["script"] = <<<DAT
<?php
load()->model('setting');
setting_upgrade_version('{$packet["family"]}', '{$script["version"]}', '{$script["release"]}');
return true;
DAT;
goto cFXfI; 
cFXfI: tRQgw: goto J5nyG; 
lah95: if (!empty($script["script"])) { goto tRQgw; } 
goto Omze9; 
ZEhUj: file_put_contents($updatefile, $script["script"]); 
goto LU6yV; 
lHAaT: REf9J: goto F3fpx; 
F3fpx: $fname = "update({$crelease}-{$script["release"]}).php"; 
goto LQxPT; 
LU6yV: $updatefiles[] = $updatefile; 
goto IZow2; 
wSUdV: if (!($script["release"] <= $crelease)) { goto REf9J; } 
goto PjslC; 
LQxPT: $crelease = $script["release"]; 
goto kcq5t; 
PjslC: goto K5A9c; 
goto lHAaT; 
c9iR8: } 
goto xSIZG; 
dgorS: $packet = cloud_build(); 
goto zKr1a; 
tQYnS: foreach ($packet["files"] as $file) { cloud_download($file, "files"); 
j0qbb: } 
goto gHt8T; 
hgRSO: load()->model("cloud"); 
goto yamO0; 
xSIZG: MGkoZ: goto eGi2a; 
FGW7H: load()->func("file"); 
goto dgorS; 
jWkYk: } 
goto zxw2A; 
JCNm_: if (feof($hostfile)) { goto H_faS; } 
goto HSlHr; 
GLI9B: $registered_site = we7_getcookie("registered_site"); 
goto uAjMq; 
UuvWG: exit(we7_error(0, "success")); 
goto INNwV; 
b9e7c: $ret["fopen"]["name"] = "fopen"; 
goto KDlXx; 
B2J8X: exit; 
goto nL3C4; 
t4mcC: if ($data["error"] == 401) { goto QKpDy; } 
goto V8SIl; 
D0ur4: if (!(version_compare(PHP_VERSION, "7.0.0") == -1 && version_compare(PHP_VERSION, "5.6.0") >= 0)) { goto CBT7t; } 
goto Ed1fr; 
BtC_p: $ret["asp_tags"]["result"] = "asp_tags开启状态"; 
goto s_hhe; 
wmIte: if (!($action == "environment")) { goto KPweY; } 
goto wroVe; 
hWJ0N: touch(IA_INSTALL_ROOT . "/data/install.lock"); 
goto UuvWG; 
MjHXX: $ret["always_populate_raw_post_data"]["name"] = "always_populate_raw_post_data配置"; 
goto j22EB; 
Q96fx: $chunk_num = max(1, intval($_POST["chunk"])); 
goto j2DBf; 
bQuJ8: BI4kD: goto k27tG; 
bMZHL: F2KMJ: goto jPYtq; 
G1l_u: CN8_m: goto XkkmG; 
Hnb9x: N2gsM: goto f1BlJ; 
HeTV2: foreach (we7_need_extension() as $extension) { goto JBHDs; 
gFoQa: $ret[$extension]["name"] = $extension . "扩展"; 
goto QBer3; 
IKrTb: RZHk5: goto gzhJY; 
QWBSU: KDhke: goto IKrTb; 
QBer3: $ret[$extension]["result"] = "不支持" . $extension; 
goto QWBSU; 
NPtxi: $ret[$extension]["failed"] = true; 
goto gFoQa; 
LeAfu: if ($if_ok) { goto KDhke; } 
goto NPtxi; 
JBHDs: $if_ok = extension_loaded($extension); 
goto LeAfu; 
gzhJY: } 
goto GtL_Q; 
Qk88C: header("Location: " . $forward); 
goto B2J8X; 
QGODK: define("API_HOST", "http://api.w7.cc"); 
goto pEl8X; 
ZHIlQ: function local_mkdirs($path) { goto Xifqk; 
jGC0l: local_mkdirs(dirname($path)); 
goto MNGWa; 
Xifqk: if (is_dir($path)) { goto aZCm2; } 
goto jGC0l; 
qOBEb: aZCm2: goto KGyiR; 
MNGWa: mkdir($path); 
goto qOBEb; 
KGyiR: return is_dir($path); 
goto bW8VT; 
bW8VT: } 
goto Px_dP; 
oTzYi: exit(we7_error(400, $chunk_num)); 
goto IF8mc; 
g2Rvv: exit(we7_error(400, $chunk_num)); 
goto gFbpB; 
UPnxQ: mLADF: goto d66NV; 
tlBhY: h6GP2: goto y7RzT; 
Ee4RB: if ($user_result) { goto BI4kD; } 
goto LPHH_; 
eUAOs: if ($ret["dom"]["ok"]) { goto z7U6l; } 
goto ThKFH; 
vzUyq: Psamv: goto HIrjJ; 
E8wtl: function we7_error($num, $message = "success") { $num = intval($num); 
return json_encode(array("errno" => $num, "data" => $message)); } 
goto CjfnR; 
p1H8r: if (!(!empty($auth["url"]) && $auth["url"] == $siteroot)) { goto OhAaQ; } 
goto bdxJl; 
fPWxi: SLEsm: goto pbfIf; 
AfqMn: KTuad: goto SNDB4; 
AF8NJ: function we7_need_extension() { return array("zip", "pdo", "pdo_mysql", "openssl", "gd", "mbstring", "mcrypt", "curl"); } 
goto nnXZr; 
b64mi: QKpDy: goto dK5tf; 
WH6Eo: iDltS: goto hC6I6; 
LSE31: exit(we7_error(434, $result)); 
goto FqjPC; 
chU4M: if (!($action == "login")) { goto CBpvo; } 
goto jJ0v_; 
WJP7n: $db_username = trim($_POST["username"]); 
goto VE2ZU; 
nV5jw: header("Location: " . $siteroot . "/install.php"); 
goto GuGOn; 
qMZl1: S8Zwc: goto HU39r; 
Z6KyV: $fh = fopen("./we7source.zip", "wb"); 
goto rvhht; 
SkQ2_: if (!empty($data)) { goto v4V7N; } 
goto jupWf; 
D6yBi: if (!($handle_result !== true)) { goto yavaZ; } 
goto ZaZEH; 
ThGcp: goto OT_pC; 
goto irKVK; 
pbfIf: if (empty($result)) { goto Dbv3f; } 
goto LSE31; 
oNCXr: $register_site_result = we7_register_site(); 
goto wMqsK; 
p2Lhj: we7_handle_chunk(); 
goto qMZl1; 
pd86s: exit(we7_error(400, "修改站点名称失败.")); 
goto zc_Af; 
Ju0P3: AiTR0: goto D0ur4; 
LQ9O3: q9ufe: goto bXzx5; 
EXOd1: $ret["data"]["result"] = "data目录无法写入"; 
goto o5tN4; 
C2rH3: CBpvo: goto Vpr8t; 
sDimW: $data = we7_request_api(API_GET_PACKAGE_MD5_AND_CHUNKTOTAL, array("access_token" => $accesstoken)); 
goto TxOG1; 
rC5aW: if (!(is_array($data) && isset($data["error"]))) { goto AELc7; } 
goto kpr1P; 
KFOFE: if (!empty($source_size)) { goto N2gsM; } 
goto OnXVA; 
oIfbk: exit(we7_error(0, array("total" => 1))); 
goto Z5BrQ; 
H8bWv: if ($ret["data"]["ok"]) { goto vhRmu; } 
goto smKvz; 
yLwNC: if (file_exists(IA_INSTALL_ROOT . "/index.php") && is_dir(IA_INSTALL_ROOT . "/web") && file_exists($verfile) && file_exists($dbfile)) { goto yb1xD; } 
goto Ddvp5; 
zKJEr: DKqDv: goto I4ibK; 
oK_n1: $ret["session"]["result"] = "系统session.auto_start开启"; 
goto UGEtM; 
dcX1q: function local_writeable($dir) { goto xhoeG; 
Qm9FH: lCqfJ: goto oOQ6K; 
TvGXK: return $writeable; 
goto fyQ1s; 
hUikr: fclose($fp); 
goto SuTa7; 
oOQ6K: x36tj: goto TvGXK; 
yQvDv: $writeable = 0; 
goto enna8; 
dVERh: hMWxz: goto hUikr; 
gMYRI: $writeable = 1; 
goto Qm9FH; 
kZeYT: @mkdir($dir, 0777); 
goto IF8w8; 
enna8: goto lCqfJ; 
goto dVERh; 
NvdtG: if ($fp = fopen("{$dir}/test.txt", "w")) { goto hMWxz; } 
goto yQvDv; 
xhoeG: $writeable = 0; 
goto uDNVe; 
q8oTF: if (!is_dir($dir)) { goto x36tj; } 
goto NvdtG; 
uDNVe: if (is_dir($dir)) { goto IRjj6; } 
goto kZeYT; 
IF8w8: IRjj6: goto q8oTF; 
SuTa7: unlink("{$dir}/test.txt"); 
goto gMYRI; 
fyQ1s: } 
goto rgVJY; 
k27tG: uj3HC: goto Hj_SN; 
s_hhe: XvTQ7: goto dponV; 
nL3C4: OT_pC: goto EZUwz; 
QMJW3: yavaZ: goto TfCsS; 
SJRNO: we7_setcookie("chunk_total", 1); 
goto oIfbk; 
zT3vI: echo "\x3c\41\x64\x6f\143\164\x79\x70\x65\40\x68\164\x6d\154\x3e\15\xa\x3c\x68\x74\x6d\154\40\x6c\141\156\147\x3d\42\145\156\42\76\15\xa\74\150\x65\x61\144\76\xd\xa\x20\40\x3c\155\x65\164\x61\40\143\x68\x61\162\163\145\x74\75\42\165\164\146\x2d\70\42\76\xd\xa\40\x20\x3c\x74\151\x74\154\145\76\x57\145\67\x49\156\x73\x74\x61\x6c\x6c\74\57\x74\151\164\x6c\x65\76\xd\xa\40\40\x3c\x62\x61\x73\x65\40\150\x72\145\x66\75\42" . $sitepath . "\57\x69\x6e\163\164\141\154\x6c\x2e\160\x68\x70\42\76\15\12\xd\xa\x20\x20\74\155\145\164\x61\x20\156\141\x6d\145\x3d\x22\166\151\x65\x77\x70\x6f\162\164\42\40\143\x6f\x6e\164\x65\156\x74\75\42\167\x69\x64\x74\x68\x3d\144\x65\x76\151\143\145\x2d\167\151\144\164\x68\x2c\x20\x69\x6e\x69\x74\151\x61\154\x2d\x73\143\x61\x6c\145\x3d\x31\42\x3e\15\12\x20\40\x3c\154\151\156\153\40\x72\x65\x6c\x3d\x22\151\x63\157\156\x22\x20\164\171\x70\145\75\42\151\155\141\x67\x65\x2f\x78\55\151\x63\x6f\x6e\x22\40\150\x72\x65\x66\75\57\57\x63\144\156\56\x77\x37\56\x63\143\x2f\x77\145\x37\55\151\x6e\163\x74\x61\x6c\x6c\x2f\x31\x2e\x31\x2f\146\x61\166\x69\x63\157\x6e\x2e\x69\x63\157\42\76\15\12\x3c\154\x69\x6e\153\x20\162\145\154\x3d\x22\x73\164\x79\x6c\x65\163\x68\x65\145\164\42\40\x68\x72\x65\x66\75\x22\x2f\57\x63\144\x6e\x2e\167\67\56\143\x63\x2f\x77\145\x37\x2d\151\x6e\x73\x74\141\x6c\154\57\61\x2e\61\x2f\x73\x74\171\x6c\145\163\56\143\x73\x73\77\166\x3d" . time() . "\42\76\x3c\57\x68\x65\141\x64\x3e\15\xa\74\x62\x6f\144\x79\76\xd\xa\x20\x20\74\x61\x70\x70\x2d\x72\157\x6f\x74\76\x3c\x2f\x61\160\160\55\x72\157\x6f\164\x3e\15\12\74\163\143\x72\151\160\x74\40\x74\171\160\145\x3d\42\164\145\x78\164\57\152\141\x76\x61\163\x63\162\151\x70\164\42\x20\x73\162\x63\75\42\x2f\x2f\x63\x64\x6e\56\167\x37\56\x63\x63\57\x77\x65\x37\x2d\151\x6e\x73\x74\x61\x6c\x6c\57\61\x2e\x31\x2f\x72\165\156\x74\151\x6d\x65\x2e\152\163\77\166\75" . time() . "\x22\76\x3c\57\163\x63\x72\x69\160\x74\76\x3c\163\143\162\151\x70\164\x20\164\171\160\145\75\42\164\145\170\164\x2f\x6a\141\166\141\163\143\x72\x69\160\164\42\40\163\162\143\75\42\57\57\143\x64\156\x2e\167\67\x2e\143\x63\57\x77\145\67\x2d\151\156\x73\x74\x61\x6c\154\x2f\61\x2e\x31\x2f\x70\x6f\x6c\171\x66\x69\x6c\x6c\x73\x2e\152\x73\x3f\x76\75" . time() . "\x22\76\74\57\163\143\162\151\x70\x74\76\74\x73\x63\162\151\160\164\40\164\x79\x70\x65\75\x22\164\145\x78\x74\57\152\141\x76\x61\163\143\x72\x69\x70\164\42\x20\163\x72\143\75\42\x2f\57\143\144\x6e\56\x77\x37\56\143\143\57\x77\145\x37\55\x69\156\163\x74\141\x6c\154\57\x31\x2e\x31\x2f\x6d\141\x69\156\56\152\163\77\166\75" . time() . "\x22\x3e\x3c\x2f\x73\x63\x72\151\160\x74\x3e\74\x2f\x62\157\144\x79\76\15\12\74\57\x68\164\x6d\154\76"; 
goto dcX1q; 
gLVMN: mKmmF: goto gbiP2; 
D6Xx1: if (!empty($data) && $data["status"] == 1) { goto zV6ue; } 
goto OZwYA; 
SbJbV: fclose($hostfile); 
goto SzMju; 
teIoO: exit(we7_error(419, $database_result)); 
goto zKJEr; 
ipjEs: $action = "check_site"; 
goto uRauU; 
y7RzT: if ($registered_site == 1) { goto ukuJD; } 
goto SXAxn; 
U0R7K: $ret["upload"]["result"] = $server["upload"]; 
goto f_PVe; 
bzuQg: define("IA_INSTALL_ROOT", str_replace("\\", "/", dirname(__FILE__))); 
goto plJfy; 
Ha558: function local_config() { $cfg = "\x3c\x3f\x70\x68\x70\15\12\x64\145\x66\x69\156\145\144\x28\47\x49\x4e\137\111\101\47\51\x20\x6f\x72\x20\145\170\x69\x74\50\47\101\143\143\x65\x73\163\40\104\x65\156\151\x65\x64\47\x29\x3b\15\12\xd\12\x24\143\157\x6e\x66\151\x67\x20\75\x20\141\162\x72\x61\x79\x28\51\x3b\15\12\15\xa\44\143\157\x6e\x66\151\147\x5b\x27\144\x62\x27\135\133\47\155\141\x73\164\x65\162\x27\x5d\133\47\150\x6f\x73\164\47\135\x20\x3d\x20\x27\x7b\144\x62\55\163\145\162\x76\x65\162\x7d\x27\73\15\xa\x24\143\x6f\156\x66\x69\x67\133\x27\x64\x62\x27\135\x5b\47\155\x61\x73\x74\145\162\x27\x5d\133\x27\165\163\x65\x72\x6e\141\x6d\145\47\135\40\x3d\40\47\173\144\x62\x2d\x75\x73\145\162\x6e\x61\155\x65\x7d\x27\x3b\15\xa\44\143\157\x6e\146\151\147\133\x27\144\142\47\x5d\x5b\x27\x6d\141\163\164\145\162\47\x5d\133\47\x70\141\x73\x73\167\x6f\162\x64\x27\135\40\x3d\x20\x27\x7b\x64\x62\55\x70\x61\163\x73\x77\x6f\162\x64\175\x27\73\15\xa\x24\143\x6f\156\146\x69\147\x5b\x27\144\142\47\x5d\x5b\x27\155\141\x73\164\145\162\47\x5d\x5b\47\160\157\162\164\x27\135\40\x3d\40\47\x7b\x64\x62\55\160\x6f\162\x74\x7d\47\73\xd\12\44\x63\157\x6e\146\151\147\x5b\47\x64\142\x27\x5d\133\47\155\141\x73\x74\x65\162\x27\135\133\x27\x64\x61\x74\141\142\x61\x73\145\47\135\40\75\40\47\x7b\x64\x62\x2d\156\x61\155\145\x7d\47\x3b\15\xa\x24\143\157\156\146\151\147\x5b\47\144\x62\47\x5d\133\x27\x6d\x61\163\x74\145\162\47\x5d\133\x27\143\150\141\x72\x73\145\x74\47\x5d\40\75\40\47\165\164\146\x38\47\73\15\12\x24\x63\x6f\x6e\x66\151\x67\x5b\x27\x64\142\x27\135\133\x27\x6d\x61\x73\164\x65\162\x27\135\133\x27\x70\x63\x6f\156\156\145\143\x74\47\x5d\x20\x3d\x20\60\73\15\xa\44\143\x6f\x6e\146\x69\x67\133\x27\144\142\x27\135\133\47\155\141\163\164\x65\x72\47\135\x5b\47\164\x61\x62\154\x65\x70\x72\145\x27\135\40\x3d\x20\x27\x7b\144\142\x2d\x74\x61\142\x6c\x65\x70\x72\145\175\47\73\xd\xa\15\12\44\x63\157\x6e\146\x69\147\x5b\x27\x64\142\47\135\x5b\47\x73\x6c\141\166\145\x5f\163\164\141\x74\x75\163\47\135\40\x3d\40\x66\141\154\163\x65\73\15\12\44\143\157\156\146\151\x67\133\47\144\142\x27\135\x5b\47\x73\x6c\141\166\x65\x27\135\133\x27\61\47\x5d\133\x27\x68\157\x73\x74\47\x5d\40\x3d\x20\47\47\x3b\xd\xa\x24\143\x6f\156\x66\x69\147\x5b\x27\x64\142\47\135\x5b\x27\x73\x6c\141\166\x65\x27\x5d\133\47\61\x27\135\x5b\x27\165\163\x65\x72\156\141\155\x65\x27\x5d\x20\x3d\40\x27\x27\73\15\xa\x24\143\157\x6e\146\151\147\133\47\x64\x62\47\135\x5b\47\x73\x6c\x61\x76\145\47\x5d\133\x27\61\x27\135\133\x27\160\141\163\x73\x77\157\162\x64\47\135\x20\75\x20\47\47\x3b\xd\12\x24\143\157\x6e\146\151\x67\x5b\x27\x64\x62\47\x5d\133\x27\163\x6c\141\x76\x65\47\135\133\x27\x31\x27\135\133\47\x70\x6f\x72\x74\47\x5d\40\75\x20\47\63\x33\60\67\x27\73\15\xa\x24\x63\x6f\156\146\x69\x67\133\x27\144\x62\47\x5d\133\x27\x73\x6c\x61\x76\145\47\x5d\x5b\x27\61\x27\x5d\x5b\47\144\x61\x74\x61\142\x61\x73\145\x27\x5d\x20\x3d\40\47\47\x3b\15\xa\x24\x63\157\x6e\146\151\147\133\47\x64\x62\x27\135\133\47\163\154\x61\166\145\47\135\x5b\x27\61\47\x5d\x5b\47\143\x68\x61\162\163\x65\x74\47\x5d\x20\75\40\x27\165\164\x66\70\47\73\xd\12\x24\x63\157\156\146\x69\x67\133\47\x64\142\47\x5d\x5b\x27\163\154\141\x76\145\47\135\133\47\61\x27\135\133\47\x70\x63\157\156\x6e\x65\x63\164\47\x5d\40\x3d\40\x30\x3b\15\12\x24\x63\x6f\156\x66\x69\147\133\47\x64\x62\x27\x5d\x5b\x27\163\x6c\x61\166\x65\x27\135\x5b\47\x31\x27\135\133\47\164\141\142\154\x65\160\162\x65\47\135\40\75\x20\47\151\x6d\163\137\x27\73\15\12\x24\x63\157\x6e\x66\151\x67\x5b\x27\x64\x62\47\x5d\133\x27\x73\x6c\x61\x76\145\x27\135\133\47\x31\47\x5d\x5b\47\x77\145\x69\147\x68\164\x27\x5d\x20\75\x20\x30\x3b\15\xa\15\12\44\143\157\x6e\146\x69\x67\x5b\47\144\x62\x27\x5d\133\x27\x63\x6f\x6d\x6d\x6f\156\x27\135\x5b\x27\x73\x6c\x61\x76\x65\x5f\145\170\143\x65\160\164\x5f\164\141\142\154\145\47\x5d\x20\75\40\x61\x72\x72\141\171\50\x27\x63\x6f\162\x65\x5f\163\145\x73\163\x69\157\x6e\163\47\x29\73\xd\12\xd\xa\x2f\57\x20\55\55\x2d\x2d\55\55\x2d\55\55\55\55\55\55\55\55\55\x2d\55\x2d\55\x2d\55\55\x2d\55\55\40\x20\103\117\116\x46\111\107\40\103\117\117\x4b\111\x45\x20\x20\55\x2d\55\55\55\55\55\x2d\55\x2d\x2d\55\x2d\55\55\55\x2d\x2d\x2d\55\55\x2d\x2d\x2d\x2d\55\55\x20\x2f\x2f\15\12\44\143\x6f\156\146\151\x67\133\x27\143\157\x6f\153\x69\145\x27\135\x5b\x27\160\x72\145\x27\135\40\x3d\x20\x27\x7b\143\157\157\153\151\x65\160\x72\145\x7d\47\73\15\xa\44\x63\157\156\x66\x69\x67\133\47\143\x6f\x6f\x6b\151\145\x27\135\133\47\144\x6f\x6d\x61\x69\156\47\x5d\x20\x3d\x20\x27\x27\x3b\15\xa\44\143\x6f\156\x66\151\x67\x5b\x27\x63\x6f\x6f\x6b\x69\145\47\135\133\47\160\141\x74\150\47\135\x20\75\40\x27\57\47\73\xd\xa\xd\12\x2f\57\x20\x2d\x2d\55\x2d\55\55\x2d\x2d\55\x2d\55\55\55\55\55\x2d\x2d\x2d\x2d\55\55\x2d\55\x2d\x2d\x2d\x20\40\103\117\x4e\x46\x49\x47\x20\123\105\124\124\111\x4e\107\40\x20\x2d\55\x2d\x2d\55\x2d\x2d\55\x2d\x2d\x2d\55\55\55\x2d\x2d\x2d\55\x2d\x2d\x2d\x2d\55\x2d\55\55\55\40\x2f\57\15\xa\x24\x63\x6f\x6e\146\x69\x67\x5b\x27\x73\x65\164\x74\151\156\147\x27\135\133\47\x63\150\x61\x72\x73\x65\164\x27\135\40\75\40\x27\x75\164\x66\x2d\x38\47\73\15\12\44\x63\x6f\x6e\146\151\x67\133\x27\163\x65\164\x74\x69\x6e\147\x27\135\133\47\x63\141\143\x68\x65\x27\135\x20\x3d\x20\x27\x6d\171\163\161\154\x27\73\15\xa\x24\143\x6f\x6e\146\151\x67\133\x27\163\145\164\164\x69\x6e\147\x27\135\133\x27\x74\x69\155\145\172\x6f\x6e\x65\x27\135\40\x3d\x20\47\x41\x73\151\141\57\123\150\x61\156\147\x68\141\151\x27\x3b\15\12\44\143\157\x6e\x66\151\x67\133\47\x73\145\x74\164\x69\x6e\147\x27\x5d\x5b\x27\155\145\x6d\x6f\162\x79\x5f\154\151\155\x69\x74\47\135\x20\x3d\40\x27\x32\x35\66\x4d\47\73\xd\12\x24\143\x6f\x6e\146\x69\x67\133\x27\163\145\x74\164\151\156\147\47\135\133\x27\x66\151\x6c\145\x6d\x6f\144\x65\x27\135\x20\x3d\40\x30\x36\x34\64\x3b\xd\xa\44\x63\x6f\x6e\146\x69\147\x5b\x27\x73\x65\x74\164\151\x6e\147\x27\135\x5b\x27\x61\x75\164\150\153\x65\x79\x27\x5d\x20\75\x20\47\x7b\141\x75\x74\150\x6b\145\x79\x7d\47\x3b\15\12\44\x63\157\x6e\x66\x69\147\133\x27\x73\145\164\x74\151\156\x67\x27\x5d\x5b\x27\146\x6f\165\156\144\x65\162\x27\135\x20\x3d\x20\47\x31\47\73\15\xa\44\x63\157\156\146\151\147\x5b\x27\x73\x65\x74\x74\x69\x6e\147\47\x5d\133\x27\x64\145\166\145\x6c\x6f\160\155\x65\x6e\x74\x27\x5d\40\75\x20\x30\73\xd\xa\x24\143\x6f\156\146\151\147\133\x27\163\x65\x74\164\x69\x6e\x67\47\x5d\133\47\162\x65\146\145\162\162\x65\x72\x27\x5d\40\x3d\40\60\73\15\xa\15\xa\x2f\57\x20\55\55\x2d\55\55\x2d\x2d\55\55\x2d\x2d\x2d\55\x2d\55\x2d\x2d\x2d\x2d\x2d\x2d\55\55\55\x2d\55\40\40\x43\117\116\x46\111\x47\40\125\x50\114\117\101\x44\40\40\x2d\x2d\x2d\x2d\x2d\x2d\55\x2d\x2d\x2d\x2d\x2d\55\x2d\x2d\55\x2d\x2d\55\x2d\55\55\x2d\x2d\x2d\x2d\x2d\40\57\57\xd\xa\44\143\157\x6e\x66\x69\x67\133\47\165\160\154\x6f\x61\x64\47\x5d\133\x27\x69\155\141\147\145\x27\x5d\133\x27\x65\170\164\145\156\x74\151\x6f\x6e\x73\x27\x5d\40\75\40\141\x72\162\x61\x79\50\47\x67\151\146\x27\x2c\x20\x27\x6a\160\x67\47\x2c\40\47\x6a\x70\x65\x67\x27\54\x20\x27\160\x6e\147\47\x29\73\xd\xa\x24\143\157\x6e\146\151\x67\x5b\x27\x75\x70\154\x6f\x61\144\47\x5d\x5b\47\151\155\141\147\145\47\x5d\133\47\154\151\x6d\x69\164\47\135\40\x3d\x20\x35\x30\60\60\x3b\15\12\x24\143\157\156\146\x69\147\133\47\x75\x70\x6c\x6f\141\144\x27\135\133\47\x61\164\x74\141\x63\x68\x64\x69\x72\47\x5d\x20\x3d\x20\x27\x7b\141\164\x74\x61\x63\x68\x64\151\162\x7d\47\x3b\xd\xa\x24\143\157\x6e\x66\x69\147\133\x27\165\160\x6c\157\x61\x64\x27\135\133\x27\141\x75\144\x69\x6f\x27\x5d\133\x27\145\170\x74\x65\x6e\x74\151\157\156\x73\47\x5d\x20\x3d\x20\x61\162\162\141\x79\50\47\155\x70\x33\47\x29\73\xd\12\44\x63\157\x6e\x66\151\x67\133\47\165\x70\x6c\x6f\x61\144\x27\135\x5b\47\141\165\144\151\x6f\x27\x5d\133\x27\x6c\151\155\x69\164\47\x5d\x20\75\x20\x35\x30\60\60\73\xd\xa\15\12\x2f\57\x20\55\55\55\55\x2d\55\x2d\x2d\55\x2d\55\x2d\x2d\x2d\55\x2d\55\x2d\55\55\55\x2d\x2d\55\55\55\x20\x20\103\x4f\x4e\106\111\x47\40\x4d\105\115\x43\x41\x43\x48\x45\x20\x20\x2d\x2d\x2d\55\55\x2d\x2d\55\x2d\55\x2d\x2d\x2d\55\55\x2d\55\x2d\x2d\x2d\x2d\x2d\55\x2d\55\x2d\55\x20\57\x2f\15\12\x24\x63\157\x6e\146\151\147\133\x27\x73\145\x74\164\x69\156\x67\47\135\133\x27\x6d\x65\155\x63\x61\x63\150\x65\x27\135\x5b\47\163\145\162\166\145\162\47\135\40\x3d\x20\47\x27\73\15\12\44\x63\x6f\x6e\x66\151\x67\133\x27\163\145\164\164\x69\156\x67\x27\135\133\x27\155\145\x6d\x63\x61\143\x68\x65\x27\135\x5b\x27\160\x6f\162\x74\47\x5d\40\75\40\61\x31\x32\61\x31\x3b\15\xa\x24\143\x6f\156\146\151\x67\x5b\x27\163\x65\x74\164\151\156\147\x27\x5d\x5b\47\x6d\145\x6d\x63\141\143\150\x65\47\x5d\133\x27\x70\143\x6f\x6e\156\x65\x63\x74\x27\135\x20\75\x20\x31\x3b\xd\xa\44\x63\157\x6e\x66\x69\x67\x5b\47\x73\145\x74\x74\151\x6e\x67\47\x5d\133\47\155\x65\x6d\x63\141\143\150\x65\47\x5d\x5b\x27\164\151\155\145\x6f\x75\164\x27\x5d\x20\75\40\x33\60\73\15\12\x24\x63\x6f\156\x66\151\x67\x5b\x27\x73\x65\164\x74\151\156\147\x27\135\133\47\x6d\x65\155\143\x61\x63\x68\145\x27\x5d\133\x27\x73\x65\x73\x73\x69\x6f\x6e\47\x5d\x20\x3d\40\61\x3b\15\12\15\12\57\x2f\40\55\x2d\x2d\55\x2d\55\x2d\55\55\x2d\55\x2d\55\55\x2d\55\x2d\x2d\55\x2d\55\x2d\x2d\x2d\55\55\x20\40\103\x4f\116\x46\111\x47\40\120\x52\x4f\x58\131\40\40\55\x2d\x2d\x2d\x2d\x2d\x2d\x2d\x2d\x2d\x2d\x2d\x2d\55\55\55\x2d\55\x2d\x2d\55\x2d\x2d\x2d\55\55\55\40\x2f\57\xd\xa\x24\143\x6f\156\x66\x69\147\133\47\163\x65\x74\x74\x69\x6e\147\x27\135\133\47\160\x72\157\x78\x79\x27\x5d\x5b\x27\150\157\x73\x74\47\x5d\40\75\x20\47\47\x3b\15\12\x24\x63\157\x6e\146\151\x67\x5b\47\x73\x65\164\164\151\156\x67\x27\x5d\133\47\160\x72\x6f\170\x79\x27\135\x5b\x27\141\165\164\x68\x27\135\x20\x3d\40\47\47\73"; 
return trim($cfg); } 
goto ZHIlQ; 
qUU81: define("API_OAUTH_ACCESSTOKEN", API_HOST . "/oauth/access-token/code"); 
goto S2V4T; 
XB1dA: if (!(version_compare(PHP_VERSION, "5.3.0") == -1)) { goto AiTR0; } 
goto m3S58; 
BW5mH: $action = trim($_GET["step"]); 
goto GoDZV; 
xnPix: e8owp: goto WMixt; 
HSlHr: $output = fread($hostfile, 8192); 
goto c3XwR; 
AgI2S: if (!($username != "admin" || $password != "123456")) { goto uj3HC; } 
goto j685m; 
f3T3l: RmGq3: goto G1l_u; 
GzHD8: function we7_http_request($url, $post = array()) { goto xbGwt; 
VhUI7: curl_setopt($ch, CURLOPT_TIMEOUT, 60); 
goto fsXPA; 
xbGwt: $ch = curl_init(); 
goto qMXim; 
e1Gfc: curl_setopt($ch, CURLOPT_HEADER, 1); 
goto csKPG; 
iIrMK: curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER["HTTP_USER_AGENT"]); 
goto oaqjz; 
ioG66: @curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); 
goto e1Gfc; 
qjmGW: curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 
goto ioG66; 
pNzcq: $errno = curl_errno($ch); 
goto dw_oQ; 
qMXim: curl_setopt($ch, CURLOPT_URL, $url); 
goto qjmGW; 
vIWoM: Rg3KT: goto pBR6e; 
pBR6e: curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60); 
goto VhUI7; 
b0tTd: curl_close($ch); 
goto uRNeK; 
VmNkB: xjPDL: goto OpvQh; 
EVcID: curl_setopt($ch, CURLOPT_POSTFIELDS, $post); 
goto vIWoM; 
fsXPA: curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); 
goto kexvm; 
kexvm: curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); 
goto iIrMK; 
dw_oQ: $error = curl_error($ch); 
goto b0tTd; 
Utzdq: return we7_http_response_parse($data); 
goto kUaFl; 
OpvQh: return array("errno" => $errno, "error" => $error); 
goto cA3aG; 
csKPG: if (!$post) { goto Rg3KT; } 
goto v9pob; 
oaqjz: $data = curl_exec($ch); 
goto pNzcq; 
kUaFl: goto ybmgq; 
goto VmNkB; 
uRNeK: if ($errno || empty($data)) { goto xjPDL; } 
goto Utzdq; 
v9pob: curl_setopt($ch, CURLOPT_POST, 1); 
goto EVcID; 
cA3aG: ybmgq: goto hN2Gf; 
hN2Gf: } 
goto WatcT; 
yF7Z8: if ($ret["fopen"]["ok"]) { goto z11Qv; } 
goto YMvcQ; 
YqV99: $source_size = $header_array["Content-Length"]; 
goto IkVAC; 
ow9pA: $ret["root"]["name"] = "本地目录写入"; 
goto Sj71Q; 
GoHFA: if (feof($hostfile)) { goto aiNA2; } 
goto KYJkO; 
nGphp: $db_prefix = !empty($db_prefix) ? $db_prefix : "ims_"; 
goto SxCLc; 
npUMM: $code = trim($_GET["code"]); 
goto yCN8a; 
M2RLg: if (!($action == "download_percent")) { goto t_3Fl; } 
goto iKU4A; 
Jw6Ky: goto Jz8qP; 
goto bFb93; 
plJfy: define("COOKIE_PRE", "we7install_"); 
goto QGODK; 
SNDB4: touch(IA_INSTALL_ROOT . "/data/db.lock"); 
goto bMZHL; 
XCnfI: Kef3i: goto zRNH5; 
NJR7j: if ($ret["root"]["ok"]) { goto Kef3i; } 
goto xPmvK; 
Mf_n2: if (!(file_exists($filename) && !empty($filesize))) { goto Q7mvr; } 
goto OS6jr; 
uhrpd: header("location: ./index.php"); 
goto pS16k; 
LPHH_: exit(we7_error(400, "修改用户名密码失败.")); 
goto bQuJ8; 
gFbpB: goto hDljb; 
goto NEuyP; 
KYJkO: $output = fread($hostfile, 8192); 
goto SnHYe; 
pllP3: $ret["dom"]["name"] = "DOMDocument"; 
goto QIYv_; 
gG_IZ: function we7_finish() { goto gmzoA; 
NHr1a: goto y9HYs; 
goto WuOgt; 
ljs0u: cache_build_frame_menu(); 
goto Eatua; 
VaLAT: $chunk_num = we7_getcookie("chunk_total"); 
goto C91ly; 
p6IBo: ZqNI9: goto BdAoE; 
zMyp1: @unlink(IA_INSTALL_ROOT . "/data/db.php"); 
goto AzIz1; 
GKErd: load()->model("setting"); 
goto BYD65; 
CyMIe: define("IN_SYS", true); 
goto hfOVe; 
AzIz1: @unlink(IA_INSTALL_ROOT . "/data/db.lock"); 
goto CyMIe; 
BdAoE: $i++; 
goto NHr1a; 
kP1xP: $i = 1; 
goto Mm5ba; 
Q5rsu: we7_setcookie("package_md5", '', -10); 
goto RIp9u; 
C91ly: @unlink("./we7source.zip"); 
goto kP1xP; 
vFYq7: if (!($i <= $chunk_num)) { goto wRf35; } 
goto hgGCV; 
sPTja: require IA_INSTALL_ROOT . "/web/common/bootstrap.sys.inc.php"; 
goto LnXJG; 
RrsdU: load()->web("common"); 
goto Az299; 
hgGCV: @unlink("./chunk_" . $i); 
goto p6IBo; 
o8b4o: return true; 
goto FITg2; 
UK5PG: cache_build_module_subscribe_type(); 
goto o8b4o; 
gmzoA: global $_W; 
goto VaLAT; 
RIp9u: we7_setcookie("chunk_total", '', -10); 
goto zMyp1; 
Az299: load()->web("template"); 
goto GKErd; 
OHcZC: cache_build_users_struct(); 
goto UK5PG; 
qu0Ju: we7_setcookie("ims_family", '', -10); 
goto ljs0u; 
WuOgt: wRf35: goto Q5rsu; 
Mm5ba: y9HYs: goto vFYq7; 
LnXJG: $_W["uid"] = $_W["isfounder"] = 1; 
goto RrsdU; 
Eatua: cache_build_setting(); 
goto OHcZC; 
Jcl3c: setting_upgrade_version(we7_getcookie("ims_family"), IMS_VERSION, IMS_RELEASE_DATE); 
goto qu0Ju; 
BYD65: load()->model("cache"); 
goto Jcl3c; 
hfOVe: require IA_INSTALL_ROOT . "/framework/bootstrap.inc.php"; 
goto sPTja; 
FITg2: } 
goto GzHD8; 
y7hAO: function local_create_sql($schema, $local_create_sql) { goto XuxmJ; 
OT7hs: $sql = rtrim($sql, ","); 
goto pA_VA; 
pA_VA: $sql .= "\xa) ENGINE={$engine} DEFAULT CHARSET={$charset};\12\12"; 
goto GceH3; 
a9AFz: $sql = "CREATE TABLE IF NOT EXISTS `{$schema["tablename"]}` (\xa"; 
goto nrMPD; 
FJ5uV: $charset = $pieces[0]; 
goto ku7oX; 
HFsb_: TN2QR: goto EN0KI; 
nrMPD: foreach ($schema["fields"] as $value) { goto Xqk9f; 
RXb0e: goto PIYEj; 
goto LrwJV; 
klHly: $sql .= "`{$value["name"]}` {$value["type"]}{$length}{$signed}{$null}{$default}{$increment},\12"; 
goto SOfOR; 
QBb3m: h7BzX: goto drulg; 
B0EvX: goto WHD6y; 
goto td2Wb; 
l4H0r: TZfu7: goto tNla4; 
kmqBR: if (isset($value["default"])) { goto sYVq7; } 
goto FA6F0; 
RDh7i: $null = ''; 
goto B0EvX; 
SOfOR: iK2Yt: goto GzLOp; 
td2Wb: R38My: goto Zqn8v; 
VtMpP: tWJTH: goto tR6gW; 
ewQLa: $increment = ''; 
goto RXb0e; 
Zqn8v: $null = " NOT NULL"; 
goto vebcz; 
drulg: $length = "({$value["length"]})"; 
goto l4H0r; 
tR6gW: if ($value["increment"]) { goto poWlL; } 
goto ewQLa; 
kcYvI: goto TZfu7; 
goto QBb3m; 
tNla4: $signed = empty($value["signed"]) ? " unsigned" : ''; 
goto ySqoe; 
d_QtC: $length = ''; 
goto kcYvI; 
ySqoe: if (empty($value["null"])) { goto R38My; } 
goto RDh7i; 
k1S64: $default = " DEFAULT '" . $value["default"] . "'"; 
goto VtMpP; 
vebcz: WHD6y: goto kmqBR; 
FA6F0: $default = ''; 
goto NEXw4; 
D3xW2: PIYEj: goto klHly; 
LrwJV: poWlL: goto jTT1J; 
jTT1J: $increment = " AUTO_INCREMENT"; 
goto D3xW2; 
D1cf4: sYVq7: goto k1S64; 
Xqk9f: if (!empty($value["length"])) { goto h7BzX; } 
goto d_QtC; 
NEXw4: goto tWJTH; 
goto D1cf4; 
GzLOp: } 
goto y2Ymq; 
lMKQ2: foreach ($schema["indexes"] as $value) { goto y7QRP; 
Bvs_h: QC6US: goto iW5Hk; 
RRnsr: $sql .= "KEY `{$value["name"]}` (`{$fields}`),\xa"; 
goto TOm1T; 
iW5Hk: if (!($value["type"] == "primary")) { goto YeznE; } 
goto yHQfF; 
c23BN: nVV0V: goto gdfXD; 
y7QRP: $fields = implode("`,`", $value["fields"]); 
goto ZQvfW; 
ZQvfW: if (!($value["type"] == "index")) { goto Re7Dz; } 
goto RRnsr; 
FIugU: $sql .= "UNIQUE KEY `{$value["name"]}` (`{$fields}`),\xa"; 
goto Bvs_h; 
yHQfF: $sql .= "PRIMARY KEY (`{$fields}`),\12"; 
goto mlrVg; 
TOm1T: Re7Dz: goto A9uKs; 
A9uKs: if (!($value["type"] == "unique")) { goto QC6US; } 
goto FIugU; 
mlrVg: YeznE: goto c23BN; 
gdfXD: } 
goto HFsb_; 
GceH3: return $sql; 
goto huamX; 
ku7oX: $engine = $local_create_sql ? $schema["engine"] : "MyISAM"; 
goto a9AFz; 
y2Ymq: mN9lR: goto lMKQ2; 
XuxmJ: $pieces = explode("_", $schema["charset"]); 
goto FJ5uV; 
EN0KI: $sql = rtrim($sql); 
goto OT7hs; 
huamX: } 
goto GCSIS; 
Rb8j2: if (!($action == "chunktotal")) { goto ZxYnF; } 
goto GlZuD; 
GuGOn: exit; 
goto ThGcp; 
SmnJu: ob_start(); 
goto bzuQg; 
sQM2L: if (!($action == "install")) { goto oJxqw; } 
goto IxQlw; 
UGEtM: Kzo3j: goto SJWBg; 
LwChm: $ret["session"]["name"] = "session.auto_start开启"; 
goto oK_n1; 
Y6YtE: we7_setcookie("ims_family", in_array($data["family"], array("l", "v", "s", "x")) ? $data["family"] : "v"); 
goto EK4hu; 
Pd5kx: LbEXi: goto BHlM9; 
gbiP2: if (!($i <= $chunk_total)) { goto mLADF; } 
goto OvEP7; 
WatcT: function we7_http_response_parse($data) { goto f51QW; 
aGARd: $rlt["status"] = !empty($matches[3]) ? $matches[3] : "OK"; 
goto Uuwbj; 
x1Vgg: $rlt["meta"] = $data; 
goto VzYxU; 
SdXyd: if (!($isgzip && function_exists("gzdecode"))) { goto IErY0; } 
goto zQ62U; 
F7VJA: return we7_http_response_parse($rlt["content"]); 
goto ol8nC; 
p3VKk: IErY0: goto x1Vgg; 
eQx5b: preg_match("/^(\S+) (\S+) (.*)$/", $split2[0], $matches); 
goto ZIoyW; 
wu67l: zTpOu: goto DGxaS; 
f51QW: $rlt = array(); 
goto PWuKn; 
ZIoyW: $rlt["code"] = !empty($matches[2]) ? $matches[2] : 200; 
goto aGARd; 
zQ62U: $rlt["content"] = gzdecode($rlt["content"]); 
goto p3VKk; 
Y1pl5: $isgzip = false; 
goto Z3Mtk; 
UQWnE: $split2 = explode("
\12", $split1[0], 2); 
goto eQx5b; 
Uuwbj: $rlt["responseline"] = !empty($split2[0]) ? $split2[0] : ''; 
goto PpR16; 
VzYxU: if (!($rlt["code"] == "100")) { goto QYalo; } 
goto F7VJA; 
Z3Mtk: foreach ($header as $v) { goto brqDu; 
zbLiH: jnGr6: goto V5T7V; 
fQXo_: if (!(!$isgzip && strtolower($key) == "content-encoding" && strtolower($value) == "gzip")) { goto HHEZv; } 
goto LemWP; 
OvjR_: if (is_array($rlt["headers"][$key])) { goto YALZ6; } 
goto iXaEq; 
dmzCY: goto ax5zo; 
goto zbLiH; 
W2HxS: $rlt["headers"][$key][] = $value; 
goto F8Feh; 
V5T7V: $temp = $rlt["headers"][$key]; 
goto KB0uy; 
KB0uy: unset($rlt["headers"][$key]); 
goto Deo7v; 
Z4ZNi: YALZ6: goto zIiCt; 
UkHGY: goto ax5zo; 
goto Z4ZNi; 
flsI9: $value = trim(substr($v, $pos + 1)); 
goto OvjR_; 
LFKzc: $rlt["headers"][$key] = $value; 
goto UkHGY; 
brqDu: $pos = strpos($v, ":"); 
goto m1I06; 
F8Feh: ax5zo: goto fQXo_; 
j77hp: HHEZv: goto z1eKg; 
iXaEq: if (!empty($rlt["headers"][$key])) { goto jnGr6; } 
goto LFKzc; 
m1I06: $key = substr($v, 0, $pos); 
goto flsI9; 
LemWP: $isgzip = true; 
goto j77hp; 
z1eKg: trrRo: goto Fssyq; 
Deo7v: $rlt["headers"][$key][] = $temp; 
goto W2HxS; 
zIiCt: $rlt["headers"][$key][] = $value; 
goto dmzCY; 
Fssyq: } 
goto wu67l; 
DGxaS: $rlt["content"] = $split1[1]; 
goto SdXyd; 
PWuKn: $pos = strpos($data, "\xd\12\xd\xa"); 
goto ct4Cs; 
PpR16: $header = explode("
\12", $split2[1]); 
goto Y1pl5; 
ct4Cs: $split1[0] = substr($data, 0, $pos); 
goto rfn1h; 
rfn1h: $split1[1] = substr($data, $pos + 4, strlen($data)); 
goto UQWnE; 
ol8nC: QYalo: goto EStUA; 
EStUA: return $rlt; 
goto glpsM; 
glpsM: } 
goto D4S5h; 
fz4MH: if (!(!file_exists(IA_INSTALL_ROOT . "/chunk_" . $i) || empty($chunk_i_filesize))) { goto RmGq3; } 
goto b2cIm; 
qET9q: $ret["asp_tags"]["name"] = "asp_tags"; 
goto BtC_p; 
irKVK: MEFcX: goto UdaSY; 
jPYtq: if (!(!file_exists(IA_INSTALL_ROOT . "/data/install.lock") && !$registered_site)) { goto Yxu5_; } 
goto oNCXr; 
hKkNW: set_time_limit(0); 
goto SmnJu; 
n2UK0: if ($data["error"] == 401) { goto oUfVF; } 
goto g2Rvv; 
pEl8X: define("API_SITE_REGISTER_EXIST", API_HOST . "/site/register/exist"); 
goto FX_1w; 
c3XwR: fwrite($fh, $output); 
goto ZAmsE; 
j685m: $user_result = we7_update_user($username, $password); 
goto Ee4RB; 
xPmvK: $ret["root"]["failed"] = true; 
goto ow9pA; 
OvEP7: $chunk_i_filesize = filesize(IA_INSTALL_ROOT . "/chunk_" . $i); 
goto fz4MH; 
Ivsw5: $data = we7_request_api(API_OAUTH_ACCESSTOKEN, array("code" => $code)); 
goto rGtiT; 
sa0xE: $cdn_source_file = "https://cdn.w7.cc/download/install.zip?v=" . time(); 
goto Lt34j; 
LTSXh: exit(we7_error(0, $result)); 
goto YI3t4; 
VE2ZU: $db_password = trim($_POST["password"]); 
goto YywrG; 
WFVso: mVReu: goto S7OyQ; 
rPQB1: if (!($action == "check_site")) { goto mVReu; } 
goto HH_ku; 
QjG28: $ret["version"]["result"] = PHP_VERSION; 
goto Ju0P3; 
vFYVE: i_BtZ: goto grZK5; 
TxOG1: if (is_array($data) && isset($data["error"])) { goto QNSWR; } 
goto lMrRy; 
D4S5h: function we7_request_api($url, $post = array()) { goto e4rMe; 
e4rMe: $response = we7_http_request($url, $post); 
goto cyeJd; 
kzKKa: GCJKx: goto o0GQW; 
A24m6: pS0bR: goto QFCgy; 
o0GQW: if (!($response["code"] != 200 || isset($response["errno"]))) { goto Hadre; } 
goto BslYy; 
YtkKk: goto pS0bR; 
goto H9fDy; 
rNG1E: $result = json_decode($response["content"], true); 
goto L7BV8; 
O3dW2: return $response["content"]; 
goto YtkKk; 
L7BV8: if (is_array($result)) { goto w8Cpq; } 
goto O3dW2; 
BslYy: return array("error" => $response["content"]); 
goto jaL_P; 
EwQpK: return $result; 
goto A24m6; 
cyeJd: if (!($response["code"] == 401)) { goto GCJKx; } 
goto BF4mm; 
jaL_P: Hadre: goto rNG1E; 
H9fDy: w8Cpq: goto EwQpK; 
BF4mm: return array("error" => 401); 
goto kzKKa; 
QFCgy: } 
goto E8wtl; 
EK4hu: header("Location: " . $siteroot . "/install.php"); 
goto dQBai; 
S2V4T: define("API_GET_PACKAGE_MD5_AND_CHUNKTOTAL", API_HOST . "/util/package/install"); 
goto ihgSf; 
dWvHu: exit(we7_error(0, "success")); 
goto OeBeD; 
Px607: exit(we7_error(433, "accesstoken expired.")); 
goto H6WGP; 
qn6LU: function we7_getcookie($key) { goto WkgsV; 
yZ_N3: Ri1b8: goto RaqT1; 
RaqT1: $key = COOKIE_PRE . $key; 
goto iMaLS; 
ofLbS: return ''; 
goto yZ_N3; 
WkgsV: if (!empty($key)) { goto Ri1b8; } 
goto ofLbS; 
iMaLS: return $_COOKIE[$key]; 
goto yp4TD; 
yp4TD: }