corrade-http-templates – Diff between revs 77 and 82
?pathlinks?
Rev 77 | Rev 82 | |||
---|---|---|---|---|
Line 76... | Line 76... | |||
76 | 'type' => 'Texture', |
76 | 'type' => 'Texture', |
|
77 | 'format' => 'Png' |
77 | 'format' => 'Png' |
|
78 | ); |
78 | ); |
|
79 | array_walk($params, |
79 | array_walk($params, |
|
80 | function(&$value, $key) { |
80 | function(&$value, $key) { |
|
81 | $value = rawurlencode($key)."=".rawurlencode($value); |
81 | $value = urlencode($key)."=".urlencode($value); |
|
82 | } |
82 | } |
|
83 | ); |
83 | ); |
|
84 | $postvars = implode('&', $params); |
84 | $postvars = implode('&', $params); |
|
85 | if (!($curl = curl_init())) { |
85 | if (!($curl = curl_init())) { |
|
86 | print 0; |
86 | print 0; |
|
Line 106... | Line 106... | |||
106 | #### |
106 | #### |
|
107 | # III. Convert the image data to a PNG of size 512x512 |
107 | # III. Convert the image data to a PNG of size 512x512 |
|
108 | $im = imagescale( |
108 | $im = imagescale( |
|
109 | imagecreatefromstring( |
109 | imagecreatefromstring( |
|
110 | base64_decode( |
110 | base64_decode( |
|
111 | rawurldecode( |
111 | urldecode( |
|
112 | wasKeyValueGet( |
112 | wasKeyValueGet( |
|
113 | "data", |
113 | "data", |
|
114 | $return |
114 | $return |
|
115 | ) |
115 | ) |
|
116 | ) |
116 | ) |