From 0db5daa3719ce1010bae0e7a190739b46940cbfa Mon Sep 17 00:00:00 2001
From: Bob Le Bricodeur <Mr.Bricodage@gmail.com>
Date: Mon, 10 Nov 2014 19:27:18 +0100
Subject: [PATCH] =?UTF-8?q?ajout=20fonction=20pour=20r=C3=A9cup=C3=A9rer?=
 =?UTF-8?q?=20des=20options=20dans=20un=20fichier=20de=20configuration?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 app/inc/functions.inc.php | 24 ++++++++++++++++++++++++
 index.php                 |  1 +
 2 files changed, 25 insertions(+)
 create mode 100644 app/inc/functions.inc.php

diff --git a/app/inc/functions.inc.php b/app/inc/functions.inc.php
new file mode 100644
index 00000000..f7b57c31
--- /dev/null
+++ b/app/inc/functions.inc.php
@@ -0,0 +1,24 @@
+<?php
+/**
+ * This software is governed by the CeCILL-B license. If a copy of this license
+ * is not distributed with this file, you can obtain one at
+ * http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt
+ *
+ * Authors of STUdS (initial project): Guilhem BORGHESI (borghesi@unistra.fr) and Raphaël DROZ
+ * Authors of Framadate/OpenSondate: Framasoft (https://github.com/framasoft)
+ *
+ * =============================
+ *
+ * Ce logiciel est régi par la licence CeCILL-B. Si une copie de cette licence
+ * ne se trouve pas avec ce fichier vous pouvez l'obtenir sur
+ * http://www.cecill.info/licences/Licence_CeCILL-B_V1-fr.txt
+ *
+ * Auteurs de STUdS (projet initial) : Guilhem BORGHESI (borghesi@unistra.fr) et Raphaël DROZ
+ * Auteurs de Framadate/OpenSondage : Framasoft (https://github.com/framasoft)
+ */
+	function config_get($p_option){
+		include('config.inc.php');
+		if (isset(${$p_option})){
+			return ${$p_option};
+		}
+    }
\ No newline at end of file
diff --git a/index.php b/index.php
index 337e8902..228a842c 100644
--- a/index.php
+++ b/index.php
@@ -33,6 +33,7 @@ session_start();
 // affichage de la page
 Utils::print_header( _("Home") );
 bandeau_titre(_("Make your polls"));
+echo "test";
 echo '
         <div class="row">
             <div class="col-md-6 text-center">
-- 
GitLab