corrade-http-templates – Diff between revs 2 and 80
?pathlinks?
Rev 2 | Rev 80 | |||
---|---|---|---|---|
Line 20... | Line 20... | |||
20 | $READER = 'http://web.server/path/to/maleFemale/storeMaleFemale.php'; |
20 | $READER = 'http://web.server/path/to/maleFemale/storeMaleFemale.php'; |
|
Line 21... | Line 21... | |||
21 | |
21 | |
|
22 | ########################################################################### |
22 | ########################################################################### |
|
23 | ## INTERNALS ## |
23 | ## INTERNALS ## |
|
24 | ########################################################################### |
24 | ########################################################################### |
|
25 | |
- | ||
26 | ########################################################################### |
- | ||
27 | ## Copyright (C) Wizardry and Steamworks 2015 - License: GNU GPLv3 ## |
- | ||
28 | ########################################################################### |
- | ||
29 | function wasKeyValueGet($key, $data) { |
- | ||
30 | return array_reduce( |
- | ||
31 | explode( |
- | ||
32 | "&", |
- | ||
33 | $data |
- | ||
34 | ), |
- | ||
35 | function($o, $p) { |
- | ||
36 | $x = explode("=", $p); |
25 | |
|
37 | return array_shift($x) != $o ? $o : array_shift($x); |
- | ||
38 | }, |
- | ||
39 | $key |
- | ||
40 | ); |
- | ||
Line 41... | Line 26... | |||
41 | } |
26 | require_once('vendor/was/utilities/src/formats/kvp/kvp.php'); |
|
42 | |
27 | |
|
43 | # This constructs the command as an array of key-value pairs. |
28 | # This constructs the command as an array of key-value pairs. |
|
44 | $params = array( |
29 | $params = array( |
|
Line 91... | Line 76... | |||
91 | break; |
76 | break; |
|
92 | default: |
77 | default: |
|
93 | echo 'The following error was encountered while attempting to install the avatars notification: '.$error; |
78 | echo 'The following error was encountered while attempting to install the avatars notification: '.$error; |
|
94 | break; |
79 | break; |
|
95 | } |
80 | } |
|
96 | |
- | ||
97 | ?> |
- | ||
98 | |
81 | |