corrade-http-templates – Diff between revs 2 and 12

Subversion Repositories:
Rev:
Show entire fileRegard whitespace
Rev 2 Rev 12
Line 9... Line 9...
9   9  
10 ########################################################################### 10 ###########################################################################
11 ## CONFIGURATION ## 11 ## CONFIGURATION ##
Line 12... Line 12...
12 ########################################################################### 12 ###########################################################################
13   13  
-   14 # The configuration file for this script containing the settings.
Line 14... Line 15...
14 // The configuration file for this script containing the settings. 15 require_once('config.php');
15 include_once("config.php"); 16 require_once('functions.php');
16 17  
Line 17... Line -...
17 ########################################################################### -  
18 ## INTERNALS ## -  
19 ########################################################################### -  
20   -  
21 ########################################################################### -  
22 ## Copyright (C) Wizardry and Steamworks 2015 - License: GNU GPLv3 ## -  
23 ########################################################################### -  
24 function wasKeyValueGet($key, $data) { -  
25 return array_reduce( -  
26 explode( -  
27 "&", -  
28 $data -  
29 ), -  
30 function($o, $p) { -  
31 $x = explode("=", $p); -  
32 return array_shift($x) != $o ? $o : array_shift($x); -  
33 }, -  
34 $key 18 ###########################################################################
35 ); 19 ## INTERNALS ##
36 } 20 ###########################################################################
37 21
38 #### 22 ####