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/index.html
|
||||
pass.php
|
||||
user_config.php
|
|
@ -1,4 +1,4 @@
|
|||
<?php
|
||||
<?php
|
||||
/**
|
||||
* @author bronco@warriordudimanche.com / www.warriordudimanche.net
|
||||
* @copyright open source and free to adapt (keep me aware !)
|
||||
|
|
|
@ -129,13 +129,16 @@ function render_form($var){
|
|||
}
|
||||
include('auto_restrict.php');
|
||||
include('config.php');
|
||||
if(file_exists('user_config.php')){
|
||||
include('user_config.php');
|
||||
}
|
||||
unset($GLOBAL['private_data_folder']);
|
||||
unset($GLOBAL['public_data_folder']);
|
||||
$GLOBAL['default_data_folder']=basename($GLOBAL['default_data_folder']);
|
||||
|
||||
$message='';
|
||||
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['variable_name']='$GLOBAL';
|
||||
$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
|
||||
// adapter la configuration dans le fichier config.php
|
||||
include('config.php');
|
||||
if(file_exists('user_config.php')){
|
||||
include('user_config.php');
|
||||
}
|
||||
|
||||
$GLOBAL['version']='2.2';
|
||||
$GLOBAL['respawn_url']=returncurrenturl();
|
||||
|
|
Reference in a new issue