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

Subversion Repositories:
Rev:
Show entire fileIgnore 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. -  
15 include_once("config.php"); -  
16 -  
17 ########################################################################### 14 # The configuration file for this script containing the settings.
Line 18... Line 15...
18 ## INTERNALS ## 15 require_once('config.php');
19 ########################################################################### 16 require_once('functions.php');
20   17  
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 }, -  
Line 34... Line 18...
34 $key 18 ###########################################################################
35 ); 19 ## INTERNALS ##
36 } 20 ###########################################################################
37 21