corrade-http-templates – Diff between revs 72 and 82
?pathlinks?
Rev 72 | Rev 82 | |||
---|---|---|---|---|
Line 31... | Line 31... | |||
31 | 'item' => $uuid, |
31 | 'item' => $uuid, |
|
32 | 'type' => 'Notecard' |
32 | 'type' => 'Notecard' |
|
33 | ); |
33 | ); |
|
34 | array_walk($params, |
34 | array_walk($params, |
|
35 | function(&$value, $key) { |
35 | function(&$value, $key) { |
|
36 | $value = rawurlencode($key)."=".rawurlencode($value); |
36 | $value = urlencode($key)."=".urlencode($value); |
|
37 | } |
37 | } |
|
38 | ); |
38 | ); |
|
39 | $postvars = implode('&', $params); |
39 | $postvars = implode('&', $params); |
|
40 | if (!($curl = curl_init())) { |
40 | if (!($curl = curl_init())) { |
|
41 | print 0; |
41 | print 0; |