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

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 72 Rev 82
Line 33... Line 33...
33 'item' => $uuid, 33 'item' => $uuid,
34 'data' => 'AssetUUID' 34 'data' => 'AssetUUID'
35 ); 35 );
36 array_walk($params, 36 array_walk($params,
37 function(&$value, $key) { 37 function(&$value, $key) {
38 $value = rawurlencode($key)."=".rawurlencode($value); 38 $value = urlencode($key)."=".urlencode($value);
39 } 39 }
40 ); 40 );
41 $postvars = implode('&', $params); 41 $postvars = implode('&', $params);
42 if (!($curl = curl_init())) { 42 if (!($curl = curl_init())) {
43 print 0; 43 print 0;
Line 106... Line 106...
106 'type' => 'Texture', 106 'type' => 'Texture',
107 'format' => 'Png' 107 'format' => 'Png'
108 ); 108 );
109 array_walk($params, 109 array_walk($params,
110 function(&$value, $key) { 110 function(&$value, $key) {
111 $value = rawurlencode($key)."=".rawurlencode($value); 111 $value = urlencode($key)."=".urlencode($value);
112 } 112 }
113 ); 113 );
114 $postvars = implode('&', $params); 114 $postvars = implode('&', $params);
115 if (!($curl = curl_init())) { 115 if (!($curl = curl_init())) {
116 print 0; 116 print 0;
Line 144... Line 144...
144 #### 144 ####
145 # III. Convert the image data to a PNG of size 512x512 145 # III. Convert the image data to a PNG of size 512x512
146 $im = imagescale( 146 $im = imagescale(
147 imagecreatefromstring( 147 imagecreatefromstring(
148 base64_decode( 148 base64_decode(
149 rawurldecode( 149 urldecode(
150 wasKeyValueGet( 150 wasKeyValueGet(
151 "data", 151 "data",
152 $result 152 $result
153 ) 153 )
154 ) 154 )