diff -r 4732f078d0fe -r adb907bba956 server/php/basic/resources/library/templateFunctions.php
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/server/php/basic/resources/library/templateFunctions.php Fri May 22 17:48:14 2015 +0200
@@ -0,0 +1,40 @@
+ 0) {
+ foreach ($variables as $key => $value) {
+ if (strlen($key) > 0) {
+ ${$key} = $value;
+ }
+ }
+ }
+
+ require_once(TEMPLATES_PATH . "/header.php");
+
+ echo "
\n"
+ . "\t
\n";
+
+ if (file_exists($contentFileFullPath)) {
+ require_once($contentFileFullPath);
+ } else {
+ /*
+ If the file isn't found the error can be handled in lots of ways.
+ In this case we will just include an error template.
+ */
+ require_once(TEMPLATES_PATH . "/error.php");
+ }
+
+ // close content div
+ echo "\t
\n";
+
+ // close container div
+ echo "
\n";
+
+ require_once(TEMPLATES_PATH . "/footer.php");
+ }