From 0dedf64140d397e73e688d509d157df4902da477 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mikki=20S=C3=B8rensen?= Date: Sat, 10 Mar 2018 01:44:51 +0100 Subject: [PATCH] adding a include file to include commen files --- scripts/lib/include.php | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 scripts/lib/include.php diff --git a/scripts/lib/include.php b/scripts/lib/include.php new file mode 100644 index 0000000..6a22a70 --- /dev/null +++ b/scripts/lib/include.php @@ -0,0 +1,26 @@ + $value) +{ + //Always finde the correct path + $dir_path = __FILE__; + $dir_path = str_replace("include.php", "", $dir_path); + + require_once $dir_path . $value . ".php"; +} + + +?> \ No newline at end of file