corrade-http-templates
/groupChat/installGroup.php |
@@ -11,28 +11,12 @@ |
########################################################################### |
|
require_once('config.php'); |
require_once('vendor/was/utilities/src/formats/kvp/kvp.php'); |
|
########################################################################### |
## INTERNALS ## |
########################################################################### |
|
########################################################################### |
## Copyright (C) Wizardry and Steamworks 2015 - License: GNU GPLv3 ## |
########################################################################### |
function wasKeyValueGet($key, $data) { |
return array_reduce( |
explode( |
"&", |
$data |
), |
function($o, $p) { |
$x = explode("=", $p); |
return array_shift($x) != $o ? $o : array_shift($x); |
}, |
$key |
); |
} |
|
#### |
# I. Build the POST array to send to Corrade. |
$params = array( |