corrade-http-templates – Diff between revs 48 and 71

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 48 Rev 71
Line 9... Line 9...
9 ########################################################################### 9 ###########################################################################
10 ## CONFIGURATION ## 10 ## CONFIGURATION ##
11 ########################################################################### 11 ###########################################################################
Line 12... Line 12...
12   12  
-   13 require_once('config.php');
Line 13... Line 14...
13 require_once('config.php'); 14 require_once('vendor/was/utilities/src/formats/kvp/kvp.php');
14   15  
15 ########################################################################### 16 ###########################################################################
Line 16... Line -...
16 ## INTERNALS ## -  
17 ########################################################################### -  
18 -  
19 ########################################################################### -  
20 ## Copyright (C) Wizardry and Steamworks 2015 - License: GNU GPLv3 ## -  
21 ########################################################################### -  
22 function wasKeyValueGet($key, $data) { -  
23 return array_reduce( -  
24 explode( -  
25 "&", -  
26 $data -  
27 ), -  
28 function($o, $p) { -  
29 $x = explode("=", $p); -  
30 return array_shift($x) != $o ? $o : array_shift($x); -  
31 }, -  
32 $key -  
33 ); 17 ## INTERNALS ##
34 } 18 ###########################################################################
35 19
36 #### 20 ####
37 # I. Build the POST array to send to Corrade. 21 # I. Build the POST array to send to Corrade.