@@ -177,9 +177,9 @@ |
||
177 | 177 | |
178 | 178 | private function inteliAudit($uid, $content) |
179 | 179 | { |
180 | - if (strpos($content, '```')!==false){ |
|
180 | + if (strpos($content, '```')!==false) { |
|
181 | 181 | $userSolutionHistory=DB::table("problem_solution")->where(['uid'=>$uid])->orderByDesc('updated_at')->first(); |
182 | - if (!empty($userSolutionHistory) && $userSolutionHistory["audit"]==1){ |
|
182 | + if (!empty($userSolutionHistory) && $userSolutionHistory["audit"]==1) { |
|
183 | 183 | return 1; |
184 | 184 | } |
185 | 185 | } |
@@ -12,19 +12,19 @@ |
||
12 | 12 | |
13 | 13 | public function search($key) |
14 | 14 | { |
15 | - $result = []; |
|
15 | + $result=[]; |
|
16 | 16 | //group name or gcode find |
17 | - if(strlen($key) >= 2){ |
|
18 | - $ret = self::where(function($query) use ($key){ |
|
19 | - $query->whereRaw('MATCH(`name`) AGAINST (? IN BOOLEAN MODE)',[$key]) |
|
17 | + if (strlen($key)>=2) { |
|
18 | + $ret=self::where(function($query) use ($key){ |
|
19 | + $query->whereRaw('MATCH(`name`) AGAINST (? IN BOOLEAN MODE)', [$key]) |
|
20 | 20 | ->orWhere('gcode', $key); |
21 | 21 | }) |
22 | - ->where('public',1) |
|
23 | - ->select('gid','gcode', 'img', 'name', 'description') |
|
22 | + ->where('public', 1) |
|
23 | + ->select('gid', 'gcode', 'img', 'name', 'description') |
|
24 | 24 | ->limit(120) |
25 | 25 | ->get()->all(); |
26 | - if(!empty($ret)){ |
|
27 | - $result += $ret; |
|
26 | + if (!empty($ret)) { |
|
27 | + $result+=$ret; |
|
28 | 28 | } |
29 | 29 | } |
30 | 30 |
@@ -13,20 +13,20 @@ |
||
13 | 13 | |
14 | 14 | public function search($key) |
15 | 15 | { |
16 | - $result = []; |
|
17 | - if(strlen($key) >= 2){ |
|
18 | - $ret = self::where('pcode', $key) |
|
19 | - ->orWhereRaw('MATCH(`title`) AGAINST (? IN BOOLEAN MODE)',[$key]) |
|
16 | + $result=[]; |
|
17 | + if (strlen($key)>=2) { |
|
18 | + $ret=self::where('pcode', $key) |
|
19 | + ->orWhereRaw('MATCH(`title`) AGAINST (? IN BOOLEAN MODE)', [$key]) |
|
20 | 20 | ->select('pcode', 'title') |
21 | 21 | ->limit(120) |
22 | 22 | ->get()->all(); |
23 | - if(!empty($ret)){ |
|
24 | - $result += $ret; |
|
23 | + if (!empty($ret)) { |
|
24 | + $result+=$ret; |
|
25 | 25 | } |
26 | 26 | } |
27 | - $problemModel = new ProblemModel(); |
|
27 | + $problemModel=new ProblemModel(); |
|
28 | 28 | foreach ($result as $p_index => $p) { |
29 | - if($problemModel->isBlocked($p['pid'])){ |
|
29 | + if ($problemModel->isBlocked($p['pid'])) { |
|
30 | 30 | unset($result[$p_index]); |
31 | 31 | } |
32 | 32 | } |
@@ -15,26 +15,26 @@ |
||
15 | 15 | |
16 | 16 | public function search($key) |
17 | 17 | { |
18 | - $result = []; |
|
18 | + $result=[]; |
|
19 | 19 | //contest name find |
20 | - if(strlen($key) >= 2){ |
|
21 | - $ret = self::whereRaw('MATCH(`name`) AGAINST (? IN BOOLEAN MODE)',[$key]) |
|
20 | + if (strlen($key)>=2) { |
|
21 | + $ret=self::whereRaw('MATCH(`name`) AGAINST (? IN BOOLEAN MODE)', [$key]) |
|
22 | 22 | ->select('cid', 'gid', 'name', 'rule', 'public', 'verified', 'practice', 'rated', 'anticheated', 'begin_time', 'end_time') |
23 | - ->orderBy('end_time','DESC') |
|
23 | + ->orderBy('end_time', 'DESC') |
|
24 | 24 | ->limit(120) |
25 | 25 | ->get()->all(); |
26 | - $user_id = Auth::user()->id; |
|
27 | - $contestModel = new ContestModel(); |
|
28 | - foreach($ret as $c_index => $c){ |
|
29 | - if(!$contestModel->judgeClearance($c['cid'],$user_id)){ |
|
26 | + $user_id=Auth::user()->id; |
|
27 | + $contestModel=new ContestModel(); |
|
28 | + foreach ($ret as $c_index => $c) { |
|
29 | + if (!$contestModel->judgeClearance($c['cid'], $user_id)) { |
|
30 | 30 | unset($ret[$c_index]); |
31 | 31 | } |
32 | 32 | } |
33 | - if(!empty($ret)){ |
|
34 | - $result += $ret; |
|
33 | + if (!empty($ret)) { |
|
34 | + $result+=$ret; |
|
35 | 35 | } |
36 | 36 | } |
37 | - if(!empty($result)) { |
|
37 | + if (!empty($result)) { |
|
38 | 38 | foreach ($result as &$contest) { |
39 | 39 | $contest["rule_parsed"]=$this->rule[$contest["rule"]]; |
40 | 40 | $contest["date_parsed"]=[ |
@@ -10,16 +10,16 @@ |
||
10 | 10 | |
11 | 11 | public function search($key) |
12 | 12 | { |
13 | - $result = []; |
|
14 | - if(strlen($key) >= 2){ |
|
15 | - $ret = self::where('email',$key) |
|
16 | - ->orWhereRaw('MATCH(`name`) AGAINST (? IN BOOLEAN MODE)',[$key]) |
|
17 | - ->select('id','avatar', 'name', 'describes', 'professional_rate') |
|
18 | - ->orderBy('professional_rate','DESC') |
|
13 | + $result=[]; |
|
14 | + if (strlen($key)>=2) { |
|
15 | + $ret=self::where('email', $key) |
|
16 | + ->orWhereRaw('MATCH(`name`) AGAINST (? IN BOOLEAN MODE)', [$key]) |
|
17 | + ->select('id', 'avatar', 'name', 'describes', 'professional_rate') |
|
18 | + ->orderBy('professional_rate', 'DESC') |
|
19 | 19 | ->limit(120) |
20 | 20 | ->get()->all(); |
21 | - if(!empty($ret)){ |
|
22 | - $result += $ret; |
|
21 | + if (!empty($ret)) { |
|
22 | + $result+=$ret; |
|
23 | 23 | } |
24 | 24 | } |
25 | 25 | return $result; |
@@ -21,8 +21,8 @@ discard block |
||
21 | 21 | { |
22 | 22 | $ret=[]; |
23 | 23 | $marketspaceRaw=self::getRemote(); |
24 | - if(empty($marketspaceRaw)) return []; |
|
25 | - foreach($marketspaceRaw["packages"] as $extension){ |
|
24 | + if (empty($marketspaceRaw)) return []; |
|
25 | + foreach ($marketspaceRaw["packages"] as $extension) { |
|
26 | 26 | $temp=[ |
27 | 27 | "details"=>$extension, |
28 | 28 | "status"=>0, |
@@ -31,11 +31,11 @@ discard block |
||
31 | 31 | "settings"=>null, |
32 | 32 | "available"=>null |
33 | 33 | ]; |
34 | - $temp["details"]["typeParsed"]=$temp["details"]["type"]=="virtual-judge"?"VirtualJudge":"OnlineJudge"; |
|
34 | + $temp["details"]["typeParsed"]=$temp["details"]["type"]=="virtual-judge" ? "VirtualJudge" : "OnlineJudge"; |
|
35 | 35 | try { |
36 | 36 | try { |
37 | 37 | $BabelConfig=json_decode(file_get_contents(babel_path("Extension/{$extension['code']}/babel.json")), true); |
38 | - }catch (Throwable $e){ |
|
38 | + } catch (Throwable $e) { |
|
39 | 39 | $BabelConfig=[]; |
40 | 40 | } |
41 | 41 | if (!empty($BabelConfig)) { |
@@ -47,12 +47,12 @@ discard block |
||
47 | 47 | $temp["updatable"]=$remoteVersion->isGreaterThan($downloadedVersion); |
48 | 48 | |
49 | 49 | $installedConfig=OJModel::where(["ocode"=>$extension["code"]])->first(); |
50 | - if (is_null($installedConfig)){ |
|
50 | + if (is_null($installedConfig)) { |
|
51 | 51 | $temp["status"]=1; |
52 | 52 | } else { |
53 | 53 | $temp["version"]=$installedConfig->version; // local installed version |
54 | 54 | $installedVersion=new Version($temp["version"]); |
55 | - if ($downloadedVersion->isGreaterThan($installedVersion)){ |
|
55 | + if ($downloadedVersion->isGreaterThan($installedVersion)) { |
|
56 | 56 | $temp["status"]=1; |
57 | 57 | } else { |
58 | 58 | $temp["status"]=2; |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | $temp["available"]=$installedConfig->status; |
62 | 62 | } |
63 | 63 | } |
64 | - }catch (Throwable $e){ |
|
64 | + } catch (Throwable $e) { |
|
65 | 65 | $temp["status"]=-1; |
66 | 66 | } |
67 | 67 | $ret[]=$temp; |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | { |
75 | 75 | try { |
76 | 76 | return json_decode(file_get_contents(env("BABEL_MIRROR", "https://acm.njupt.edu.cn/babel")."/babel.json"), true); |
77 | - }catch(Throwable $e){ |
|
77 | + } catch (Throwable $e) { |
|
78 | 78 | return []; |
79 | 79 | } |
80 | 80 | } |
@@ -21,7 +21,9 @@ discard block |
||
21 | 21 | { |
22 | 22 | $ret=[]; |
23 | 23 | $marketspaceRaw=self::getRemote(); |
24 | - if(empty($marketspaceRaw)) return []; |
|
24 | + if(empty($marketspaceRaw)) { |
|
25 | + return []; |
|
26 | + } |
|
25 | 27 | foreach($marketspaceRaw["packages"] as $extension){ |
26 | 28 | $temp=[ |
27 | 29 | "details"=>$extension, |
@@ -35,7 +37,7 @@ discard block |
||
35 | 37 | try { |
36 | 38 | try { |
37 | 39 | $BabelConfig=json_decode(file_get_contents(babel_path("Extension/{$extension['code']}/babel.json")), true); |
38 | - }catch (Throwable $e){ |
|
40 | + } catch (Throwable $e){ |
|
39 | 41 | $BabelConfig=[]; |
40 | 42 | } |
41 | 43 | if (!empty($BabelConfig)) { |
@@ -61,7 +63,7 @@ discard block |
||
61 | 63 | $temp["available"]=$installedConfig->status; |
62 | 64 | } |
63 | 65 | } |
64 | - }catch (Throwable $e){ |
|
66 | + } catch (Throwable $e){ |
|
65 | 67 | $temp["status"]=-1; |
66 | 68 | } |
67 | 69 | $ret[]=$temp; |
@@ -74,7 +76,7 @@ discard block |
||
74 | 76 | { |
75 | 77 | try { |
76 | 78 | return json_decode(file_get_contents(env("BABEL_MIRROR", "https://acm.njupt.edu.cn/babel")."/babel.json"), true); |
77 | - }catch(Throwable $e){ |
|
79 | + } catch(Throwable $e){ |
|
78 | 80 | return []; |
79 | 81 | } |
80 | 82 | } |
@@ -24,7 +24,7 @@ |
||
24 | 24 | "name"=>$versionInfo[0]["name"], |
25 | 25 | "updatable"=>$updatable |
26 | 26 | ]; |
27 | - }catch(Throwable $e){ |
|
27 | + } catch (Throwable $e) { |
|
28 | 28 | return null; |
29 | 29 | } |
30 | 30 | } |
@@ -24,7 +24,7 @@ |
||
24 | 24 | "name"=>$versionInfo[0]["name"], |
25 | 25 | "updatable"=>$updatable |
26 | 26 | ]; |
27 | - }catch(Throwable $e){ |
|
27 | + } catch(Throwable $e){ |
|
28 | 28 | return null; |
29 | 29 | } |
30 | 30 | } |
@@ -23,7 +23,7 @@ |
||
23 | 23 | } catch (ErrorException $e) { |
24 | 24 | } catch (Exception $e) { |
25 | 25 | } |
26 | - $className = "App\\Babel\\Extension\\$oj\\$synchronizerProvider"; |
|
26 | + $className="App\\Babel\\Extension\\$oj\\$synchronizerProvider"; |
|
27 | 27 | if (class_exists($className)) { |
28 | 28 | return new $className($all_data); |
29 | 29 | } else { |
@@ -18,11 +18,11 @@ discard block |
||
18 | 18 | |
19 | 19 | public function login($all_data) |
20 | 20 | { |
21 | - if(isset($all_data["url"])) $url = $all_data["url"]; else throw new Exception("url is not exist in all_data"); |
|
22 | - if(isset($all_data["data"])) $data = $all_data["data"]; else throw new Exception("data is not exist in all_data"); |
|
23 | - if(isset($all_data["oj"])) $oj = $all_data["oj"]; else throw new Exception("oj is not exist in all_data"); |
|
24 | - if(isset($all_data["ret"])) $ret = $all_data["ret"]; else $ret = 'false'; |
|
25 | - if(isset($all_data["handle"])) $handle = $all_data["handle"]; else $handle = "default"; |
|
21 | + if (isset($all_data["url"])) $url=$all_data["url"]; else throw new Exception("url is not exist in all_data"); |
|
22 | + if (isset($all_data["data"])) $data=$all_data["data"]; else throw new Exception("data is not exist in all_data"); |
|
23 | + if (isset($all_data["oj"])) $oj=$all_data["oj"]; else throw new Exception("oj is not exist in all_data"); |
|
24 | + if (isset($all_data["ret"])) $ret=$all_data["ret"]; else $ret='false'; |
|
25 | + if (isset($all_data["handle"])) $handle=$all_data["handle"]; else $handle="default"; |
|
26 | 26 | |
27 | 27 | $datapost=curl_init(); |
28 | 28 | $headers=array("Expect:"); |
@@ -54,11 +54,11 @@ discard block |
||
54 | 54 | |
55 | 55 | public function grab_page($all_data) |
56 | 56 | { |
57 | - if(isset($all_data["site"])) $site = $all_data["site"]; else throw new Exception("site is not exist in all_data"); |
|
58 | - if(isset($all_data["oj"])) $oj = $all_data["oj"]; else throw new Exception("oj is not exist in all_data"); |
|
59 | - if(isset($all_data["headers"])) $headers = $all_data["headers"]; else $headers = []; |
|
60 | - if(isset($all_data["handle"])) $handle = $all_data["handle"]; else $handle = "default"; |
|
61 | - if(isset($all_data["follow"])) $follow = $all_data["follow"]; else $handle = false; |
|
57 | + if (isset($all_data["site"])) $site=$all_data["site"]; else throw new Exception("site is not exist in all_data"); |
|
58 | + if (isset($all_data["oj"])) $oj=$all_data["oj"]; else throw new Exception("oj is not exist in all_data"); |
|
59 | + if (isset($all_data["headers"])) $headers=$all_data["headers"]; else $headers=[]; |
|
60 | + if (isset($all_data["handle"])) $handle=$all_data["handle"]; else $handle="default"; |
|
61 | + if (isset($all_data["follow"])) $follow=$all_data["follow"]; else $handle=false; |
|
62 | 62 | |
63 | 63 | $handle=urlencode($handle); |
64 | 64 | |
@@ -85,15 +85,15 @@ discard block |
||
85 | 85 | |
86 | 86 | public function post_data($all_data) |
87 | 87 | { |
88 | - if(isset($all_data["site"])) $site = $all_data["site"]; else throw new Exception("site is not exist in all_data"); |
|
89 | - if(isset($all_data["data"])) $data = $all_data["data"]; else throw new Exception("data is not exist in all_data"); |
|
90 | - if(isset($all_data["oj"])) $oj = $all_data["oj"]; else throw new Exception("oj is not exist in all_data"); |
|
91 | - if(isset($all_data["ret"])) $ret = $all_data["ret"]; else $ret = false; |
|
92 | - if(isset($all_data["follow"])) $follow = $all_data["follow"]; else $follow = true; |
|
93 | - if(isset($all_data["returnHeader"])) $returnHeader = $all_data["returnHeader"]; else $returnHeader = true; |
|
94 | - if(isset($all_data["postJson"])) $postJson = $all_data["postJson"]; else $postJson = false; |
|
95 | - if(isset($all_data["extraHeaders"])) $extraHeaders = $all_data["extraHeaders"]; else $extraHeaders = []; |
|
96 | - if(isset($all_data["handle"])) $handle = $all_data["handle"]; else $handle = "default"; |
|
88 | + if (isset($all_data["site"])) $site=$all_data["site"]; else throw new Exception("site is not exist in all_data"); |
|
89 | + if (isset($all_data["data"])) $data=$all_data["data"]; else throw new Exception("data is not exist in all_data"); |
|
90 | + if (isset($all_data["oj"])) $oj=$all_data["oj"]; else throw new Exception("oj is not exist in all_data"); |
|
91 | + if (isset($all_data["ret"])) $ret=$all_data["ret"]; else $ret=false; |
|
92 | + if (isset($all_data["follow"])) $follow=$all_data["follow"]; else $follow=true; |
|
93 | + if (isset($all_data["returnHeader"])) $returnHeader=$all_data["returnHeader"]; else $returnHeader=true; |
|
94 | + if (isset($all_data["postJson"])) $postJson=$all_data["postJson"]; else $postJson=false; |
|
95 | + if (isset($all_data["extraHeaders"])) $extraHeaders=$all_data["extraHeaders"]; else $extraHeaders=[]; |
|
96 | + if (isset($all_data["handle"])) $handle=$all_data["handle"]; else $handle="default"; |
|
97 | 97 | |
98 | 98 | $handle=urlencode($handle); |
99 | 99 |
@@ -18,11 +18,31 @@ discard block |
||
18 | 18 | |
19 | 19 | public function login($all_data) |
20 | 20 | { |
21 | - if(isset($all_data["url"])) $url = $all_data["url"]; else throw new Exception("url is not exist in all_data"); |
|
22 | - if(isset($all_data["data"])) $data = $all_data["data"]; else throw new Exception("data is not exist in all_data"); |
|
23 | - if(isset($all_data["oj"])) $oj = $all_data["oj"]; else throw new Exception("oj is not exist in all_data"); |
|
24 | - if(isset($all_data["ret"])) $ret = $all_data["ret"]; else $ret = 'false'; |
|
25 | - if(isset($all_data["handle"])) $handle = $all_data["handle"]; else $handle = "default"; |
|
21 | + if(isset($all_data["url"])) { |
|
22 | + $url = $all_data["url"]; |
|
23 | + } else { |
|
24 | + throw new Exception("url is not exist in all_data"); |
|
25 | + } |
|
26 | + if(isset($all_data["data"])) { |
|
27 | + $data = $all_data["data"]; |
|
28 | + } else { |
|
29 | + throw new Exception("data is not exist in all_data"); |
|
30 | + } |
|
31 | + if(isset($all_data["oj"])) { |
|
32 | + $oj = $all_data["oj"]; |
|
33 | + } else { |
|
34 | + throw new Exception("oj is not exist in all_data"); |
|
35 | + } |
|
36 | + if(isset($all_data["ret"])) { |
|
37 | + $ret = $all_data["ret"]; |
|
38 | + } else { |
|
39 | + $ret = 'false'; |
|
40 | + } |
|
41 | + if(isset($all_data["handle"])) { |
|
42 | + $handle = $all_data["handle"]; |
|
43 | + } else { |
|
44 | + $handle = "default"; |
|
45 | + } |
|
26 | 46 | |
27 | 47 | $datapost=curl_init(); |
28 | 48 | $headers=array("Expect:"); |
@@ -54,11 +74,31 @@ discard block |
||
54 | 74 | |
55 | 75 | public function grab_page($all_data) |
56 | 76 | { |
57 | - if(isset($all_data["site"])) $site = $all_data["site"]; else throw new Exception("site is not exist in all_data"); |
|
58 | - if(isset($all_data["oj"])) $oj = $all_data["oj"]; else throw new Exception("oj is not exist in all_data"); |
|
59 | - if(isset($all_data["headers"])) $headers = $all_data["headers"]; else $headers = []; |
|
60 | - if(isset($all_data["handle"])) $handle = $all_data["handle"]; else $handle = "default"; |
|
61 | - if(isset($all_data["follow"])) $follow = $all_data["follow"]; else $handle = false; |
|
77 | + if(isset($all_data["site"])) { |
|
78 | + $site = $all_data["site"]; |
|
79 | + } else { |
|
80 | + throw new Exception("site is not exist in all_data"); |
|
81 | + } |
|
82 | + if(isset($all_data["oj"])) { |
|
83 | + $oj = $all_data["oj"]; |
|
84 | + } else { |
|
85 | + throw new Exception("oj is not exist in all_data"); |
|
86 | + } |
|
87 | + if(isset($all_data["headers"])) { |
|
88 | + $headers = $all_data["headers"]; |
|
89 | + } else { |
|
90 | + $headers = []; |
|
91 | + } |
|
92 | + if(isset($all_data["handle"])) { |
|
93 | + $handle = $all_data["handle"]; |
|
94 | + } else { |
|
95 | + $handle = "default"; |
|
96 | + } |
|
97 | + if(isset($all_data["follow"])) { |
|
98 | + $follow = $all_data["follow"]; |
|
99 | + } else { |
|
100 | + $handle = false; |
|
101 | + } |
|
62 | 102 | |
63 | 103 | $handle=urlencode($handle); |
64 | 104 | |
@@ -85,15 +125,51 @@ discard block |
||
85 | 125 | |
86 | 126 | public function post_data($all_data) |
87 | 127 | { |
88 | - if(isset($all_data["site"])) $site = $all_data["site"]; else throw new Exception("site is not exist in all_data"); |
|
89 | - if(isset($all_data["data"])) $data = $all_data["data"]; else throw new Exception("data is not exist in all_data"); |
|
90 | - if(isset($all_data["oj"])) $oj = $all_data["oj"]; else throw new Exception("oj is not exist in all_data"); |
|
91 | - if(isset($all_data["ret"])) $ret = $all_data["ret"]; else $ret = false; |
|
92 | - if(isset($all_data["follow"])) $follow = $all_data["follow"]; else $follow = true; |
|
93 | - if(isset($all_data["returnHeader"])) $returnHeader = $all_data["returnHeader"]; else $returnHeader = true; |
|
94 | - if(isset($all_data["postJson"])) $postJson = $all_data["postJson"]; else $postJson = false; |
|
95 | - if(isset($all_data["extraHeaders"])) $extraHeaders = $all_data["extraHeaders"]; else $extraHeaders = []; |
|
96 | - if(isset($all_data["handle"])) $handle = $all_data["handle"]; else $handle = "default"; |
|
128 | + if(isset($all_data["site"])) { |
|
129 | + $site = $all_data["site"]; |
|
130 | + } else { |
|
131 | + throw new Exception("site is not exist in all_data"); |
|
132 | + } |
|
133 | + if(isset($all_data["data"])) { |
|
134 | + $data = $all_data["data"]; |
|
135 | + } else { |
|
136 | + throw new Exception("data is not exist in all_data"); |
|
137 | + } |
|
138 | + if(isset($all_data["oj"])) { |
|
139 | + $oj = $all_data["oj"]; |
|
140 | + } else { |
|
141 | + throw new Exception("oj is not exist in all_data"); |
|
142 | + } |
|
143 | + if(isset($all_data["ret"])) { |
|
144 | + $ret = $all_data["ret"]; |
|
145 | + } else { |
|
146 | + $ret = false; |
|
147 | + } |
|
148 | + if(isset($all_data["follow"])) { |
|
149 | + $follow = $all_data["follow"]; |
|
150 | + } else { |
|
151 | + $follow = true; |
|
152 | + } |
|
153 | + if(isset($all_data["returnHeader"])) { |
|
154 | + $returnHeader = $all_data["returnHeader"]; |
|
155 | + } else { |
|
156 | + $returnHeader = true; |
|
157 | + } |
|
158 | + if(isset($all_data["postJson"])) { |
|
159 | + $postJson = $all_data["postJson"]; |
|
160 | + } else { |
|
161 | + $postJson = false; |
|
162 | + } |
|
163 | + if(isset($all_data["extraHeaders"])) { |
|
164 | + $extraHeaders = $all_data["extraHeaders"]; |
|
165 | + } else { |
|
166 | + $extraHeaders = []; |
|
167 | + } |
|
168 | + if(isset($all_data["handle"])) { |
|
169 | + $handle = $all_data["handle"]; |
|
170 | + } else { |
|
171 | + $handle = "default"; |
|
172 | + } |
|
97 | 173 | |
98 | 174 | $handle=urlencode($handle); |
99 | 175 |