From f23d8631f9c20aee8e424c779d907fc5d3494ec9 Mon Sep 17 00:00:00 2001
From: Knah Tsaeb
Date: Fri, 29 Aug 2014 15:51:57 +0200
Subject: [PATCH] Ajout d'un fichier de config utilisateur
---
.gitignore | 1 +
config_page.php | 43 ++++++++++++-----------
index.php | 91 +++++++++++++++++++++++++------------------------
3 files changed, 71 insertions(+), 64 deletions(-)
diff --git a/.gitignore b/.gitignore
index b9d6bd9..9979946 100644
--- a/.gitignore
+++ b/.gitignore
@@ -213,3 +213,4 @@ pip-log.txt
#Mr Developer
.mr.developer.cfg
+user_config.php
diff --git a/config_page.php b/config_page.php
index 5430768..0d31f8d 100644
--- a/config_page.php
+++ b/config_page.php
@@ -3,10 +3,10 @@
* @author bronco@warriordudimanche.com
* @copyright open source and free to adapt (keep me aware !)
* @version 0.1
- * auto_form.php is a little script to auto create a form and
- * its content only with an array.
- * It can create text inputs radiobuttons, select lists, passwords inputs.
- * All the generated form's elements can be reached by classes
+ * auto_form.php is a little script to auto create a form and
+ * its content only with an array.
+ * It can create text inputs radiobuttons, select lists, passwords inputs.
+ * All the generated form's elements can be reached by classes
* and ids with css or jquery.
*
* It's possible to configure auto_form to add some features
@@ -23,7 +23,7 @@ $config=array(
'use_a_radiobutton_choice'=>'choice one',// current value: other values are defined below
'my_password'=>'password',
'confirm_password'=>'',
-
+
);*/
//then render_form($config);
@@ -31,7 +31,7 @@ $config=array(
/* #####################################################################
# auto_form config #
#####################################################################
-
+
*/
// here are the basic parameters
@@ -68,7 +68,7 @@ function render_form($var){
if ($autoform_config['form_class']){$class=' class="'.$autoform_config['form_class'].'" ';}
if ($autoform_config['enctype']){$enctype=' enctype="'.$autoform_config['enctype'].'" ';}
if (isset($autoform_config['reset_button_label'])){$reset="';}
-
+
echo '
';
}
-
+
echo '
';
tagcloud();
echo '
';
@@ -925,8 +928,8 @@ if ($GLOBAL['done']['d'] !== FALSE) {
// PRIVATE PAGES ------------------------------------------------------------------------------------------
- if (!$GLOBAL['public']){
-
+ if (!$GLOBAL['public']){
+
echo '
'."\n";
$liste_pages = search('private',$search_tags);
if ( ($nb = count($liste_pages)) != 0 ) {
@@ -951,17 +954,17 @@ if ($GLOBAL['done']['d'] !== FALSE) {
}
$tags=$taglinks='';
if (isset($GLOBAL['tag_array']['private'][$liste_pages[$i]])){$tags=$GLOBAL['tag_array']['private'][$liste_pages[$i]];$taglinks=tag2links($GLOBAL['tag_array']['private'][$liste_pages[$i]]);}
-
+
echo "\t".'