Merge branch 'userOptions' into kt-dev
Conflicts: .gitignore
This commit is contained in:
commit
6185cbeeaf
4 changed files with 244 additions and 237 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -220,3 +220,4 @@ mypersonaldata/public/
|
||||||
mypersonaldata/zipversions/
|
mypersonaldata/zipversions/
|
||||||
!mypersonaldata/zipversions/index.html
|
!mypersonaldata/zipversions/index.html
|
||||||
pass.php
|
pass.php
|
||||||
|
user_config.php
|
|
@ -1,4 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* @author bronco@warriordudimanche.com / www.warriordudimanche.net
|
* @author bronco@warriordudimanche.com / www.warriordudimanche.net
|
||||||
* @copyright open source and free to adapt (keep me aware !)
|
* @copyright open source and free to adapt (keep me aware !)
|
||||||
|
|
|
@ -129,13 +129,16 @@ function render_form($var){
|
||||||
}
|
}
|
||||||
include('auto_restrict.php');
|
include('auto_restrict.php');
|
||||||
include('config.php');
|
include('config.php');
|
||||||
|
if(file_exists('user_config.php')){
|
||||||
|
include('user_config.php');
|
||||||
|
}
|
||||||
unset($GLOBAL['private_data_folder']);
|
unset($GLOBAL['private_data_folder']);
|
||||||
unset($GLOBAL['public_data_folder']);
|
unset($GLOBAL['public_data_folder']);
|
||||||
$GLOBAL['default_data_folder']=basename($GLOBAL['default_data_folder']);
|
$GLOBAL['default_data_folder']=basename($GLOBAL['default_data_folder']);
|
||||||
|
|
||||||
$message='';
|
$message='';
|
||||||
if ($_POST){
|
if ($_POST){
|
||||||
$auto_form['filename']='config.php';
|
$auto_form['filename']='user_config.php';
|
||||||
$auto_form['filecontent']="<?php \n /* The configuration generated with auto_form*/\n\n";
|
$auto_form['filecontent']="<?php \n /* The configuration generated with auto_form*/\n\n";
|
||||||
$auto_form['variable_name']='$GLOBAL';
|
$auto_form['variable_name']='$GLOBAL';
|
||||||
$all_keys=explode(' | ',$_POST['all_keys']);
|
$all_keys=explode(' | ',$_POST['all_keys']);
|
||||||
|
|
|
@ -35,6 +35,9 @@ if (isset($_GET['tag'])){$search_tags=strip_tags($_GET['tag']);}else{$search_tag
|
||||||
// CONFIGURABLE OPTIONS
|
// CONFIGURABLE OPTIONS
|
||||||
// adapter la configuration dans le fichier config.php
|
// adapter la configuration dans le fichier config.php
|
||||||
include('config.php');
|
include('config.php');
|
||||||
|
if(file_exists('user_config.php')){
|
||||||
|
include('user_config.php');
|
||||||
|
}
|
||||||
|
|
||||||
$GLOBAL['version']='2.2';
|
$GLOBAL['version']='2.2';
|
||||||
$GLOBAL['respawn_url']=returncurrenturl();
|
$GLOBAL['respawn_url']=returncurrenturl();
|
||||||
|
|
Reference in a new issue