corrade-http-templates – Diff between revs 74 and 82

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 74 Rev 82
Line 32... Line 32...
32 'password' => $PASSWORD, 32 'password' => $PASSWORD,
33 'data' => 'MapImageID' 33 'data' => 'MapImageID'
34 ); 34 );
35 array_walk($params, 35 array_walk($params,
36 function(&$value, $key) { 36 function(&$value, $key) {
37 $value = rawurlencode($key)."=".rawurlencode($value); 37 $value = urlencode($key)."=".urlencode($value);
38 } 38 }
39 ); 39 );
40 $postvars = implode('&', $params); 40 $postvars = implode('&', $params);
41 if (!($curl = curl_init())) { 41 if (!($curl = curl_init())) {
42 print 0; 42 print 0;
Line 82... Line 82...
82 'type' => 'Texture', 82 'type' => 'Texture',
83 'format' => 'Png' 83 'format' => 'Png'
84 ); 84 );
85 array_walk($params, 85 array_walk($params,
86 function(&$value, $key) { 86 function(&$value, $key) {
87 $value = rawurlencode($key)."=".rawurlencode($value); 87 $value = urlencode($key)."=".urlencode($value);
88 } 88 }
89 ); 89 );
90 $postvars = implode('&', $params); 90 $postvars = implode('&', $params);
91 if (!($curl = curl_init())) { 91 if (!($curl = curl_init())) {
92 print 0; 92 print 0;
Line 131... Line 131...
131 'password' => $PASSWORD, 131 'password' => $PASSWORD,
132 'entity' => 'region' 132 'entity' => 'region'
133 ); 133 );
134 array_walk($params, 134 array_walk($params,
135 function(&$value, $key) { 135 function(&$value, $key) {
136 $value = rawurlencode($key)."=".rawurlencode($value); 136 $value = urlencode($key)."=".urlencode($value);
137 } 137 }
138 ); 138 );
139 $postvars = implode('&', $params); 139 $postvars = implode('&', $params);
140 if (!($curl = curl_init())) { 140 if (!($curl = curl_init())) {
141 print 0; 141 print 0;