corrade-http-templates
/maleFemale/installAvatars.php |
@@ -22,9 +22,24 @@ |
########################################################################### |
## INTERNALS ## |
########################################################################### |
|
require_once('vendor/was/utilities/src/formats/kvp/kvp.php'); |
|
########################################################################### |
## 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 |
); |
} |
|
# This constructs the command as an array of key-value pairs. |
$params = array( |
'command' => 'notify', |
@@ -78,3 +93,5 @@ |
echo 'The following error was encountered while attempting to install the avatars notification: '.$error; |
break; |
} |
|
?> |