├── .gitattributes
├── .gitignore
├── action_page.php
├── auto_restrict.php
├── config.php
├── config_page.php
├── design
├── actions.png
├── bladebo
│ └── style.css
├── broken_noise.png
├── classic
│ ├── actions.png
│ ├── broken_noise.png
│ ├── favicon2.png
│ ├── foil.png
│ ├── index.html
│ ├── lined_paper.png
│ ├── logo2.png
│ ├── paper.png
│ ├── style.css
│ └── zip.png
├── favicon2.png
├── foil.png
├── index.html
├── lined_paper.png
├── logo2.png
├── paper.png
├── pinterest
│ ├── broken_noise.png
│ ├── favicon2.png
│ ├── foil.png
│ ├── fond.png
│ ├── index.html
│ ├── lined_paper.png
│ ├── logo2.png
│ ├── paper.png
│ ├── style.css
│ └── zip.png
├── style.css
└── zip.png
├── index.php
├── login_form.php
├── mypersonaldata
├── index.html
├── private
│ └── index.html
├── public
│ └── index.html
├── tags.txt
└── zipversions
│ └── index.html
├── readme.md
├── readme.txt
└── zip.php
/.gitattributes:
--------------------------------------------------------------------------------
1 | # Auto detect text files and perform LF normalization
2 | * text=auto
3 |
4 | # Custom for Visual Studio
5 | *.cs diff=csharp
6 | *.sln merge=union
7 | *.csproj merge=union
8 | *.vbproj merge=union
9 | *.fsproj merge=union
10 | *.dbproj merge=union
11 |
12 | # Standard to msysgit
13 | *.doc diff=astextplain
14 | *.DOC diff=astextplain
15 | *.docx diff=astextplain
16 | *.DOCX diff=astextplain
17 | *.dot diff=astextplain
18 | *.DOT diff=astextplain
19 | *.pdf diff=astextplain
20 | *.PDF diff=astextplain
21 | *.rtf diff=astextplain
22 | *.RTF diff=astextplain
23 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | #################
2 | ## Eclipse
3 | #################
4 |
5 | *.pydevproject
6 | .project
7 | .metadata
8 | bin/
9 | tmp/
10 | *.tmp
11 | *.bak
12 | *.swp
13 | *~.nib
14 | local.properties
15 | .classpath
16 | .settings/
17 | .loadpath
18 |
19 | # External tool builders
20 | .externalToolBuilders/
21 |
22 | # Locally stored "Eclipse launch configurations"
23 | *.launch
24 |
25 | # CDT-specific
26 | .cproject
27 |
28 | # PDT-specific
29 | .buildpath
30 |
31 |
32 | #################
33 | ## Visual Studio
34 | #################
35 |
36 | ## Ignore Visual Studio temporary files, build results, and
37 | ## files generated by popular Visual Studio add-ons.
38 |
39 | # User-specific files
40 | *.suo
41 | *.user
42 | *.sln.docstates
43 |
44 | # Build results
45 |
46 | [Dd]ebug/
47 | [Rr]elease/
48 | x64/
49 | build/
50 | [Bb]in/
51 | [Oo]bj/
52 |
53 | # MSTest test Results
54 | [Tt]est[Rr]esult*/
55 | [Bb]uild[Ll]og.*
56 |
57 | *_i.c
58 | *_p.c
59 | *.ilk
60 | *.meta
61 | *.obj
62 | *.pch
63 | *.pdb
64 | *.pgc
65 | *.pgd
66 | *.rsp
67 | *.sbr
68 | *.tlb
69 | *.tli
70 | *.tlh
71 | *.tmp
72 | *.tmp_proj
73 | *.log
74 | *.vspscc
75 | *.vssscc
76 | .builds
77 | *.pidb
78 | *.log
79 | *.scc
80 |
81 | # Visual C++ cache files
82 | ipch/
83 | *.aps
84 | *.ncb
85 | *.opensdf
86 | *.sdf
87 | *.cachefile
88 |
89 | # Visual Studio profiler
90 | *.psess
91 | *.vsp
92 | *.vspx
93 |
94 | # Guidance Automation Toolkit
95 | *.gpState
96 |
97 | # ReSharper is a .NET coding add-in
98 | _ReSharper*/
99 | *.[Rr]e[Ss]harper
100 |
101 | # TeamCity is a build add-in
102 | _TeamCity*
103 |
104 | # DotCover is a Code Coverage Tool
105 | *.dotCover
106 |
107 | # NCrunch
108 | *.ncrunch*
109 | .*crunch*.local.xml
110 |
111 | # Installshield output folder
112 | [Ee]xpress/
113 |
114 | # DocProject is a documentation generator add-in
115 | DocProject/buildhelp/
116 | DocProject/Help/*.HxT
117 | DocProject/Help/*.HxC
118 | DocProject/Help/*.hhc
119 | DocProject/Help/*.hhk
120 | DocProject/Help/*.hhp
121 | DocProject/Help/Html2
122 | DocProject/Help/html
123 |
124 | # Click-Once directory
125 | publish/
126 |
127 | # Publish Web Output
128 | *.Publish.xml
129 | *.pubxml
130 |
131 | # NuGet Packages Directory
132 | ## TODO: If you have NuGet Package Restore enabled, uncomment the next line
133 | #packages/
134 |
135 | # Windows Azure Build Output
136 | csx
137 | *.build.csdef
138 |
139 | # Windows Store app package directory
140 | AppPackages/
141 |
142 | # Others
143 | sql/
144 | *.Cache
145 | ClientBin/
146 | [Ss]tyle[Cc]op.*
147 | ~$*
148 | *~
149 | *.dbmdl
150 | *.[Pp]ublish.xml
151 | *.pfx
152 | *.publishsettings
153 |
154 | # RIA/Silverlight projects
155 | Generated_Code/
156 |
157 | # Backup & report files from converting an old project file to a newer
158 | # Visual Studio version. Backup files are not needed, because we have git ;-)
159 | _UpgradeReport_Files/
160 | Backup*/
161 | UpgradeLog*.XML
162 | UpgradeLog*.htm
163 |
164 | # SQL Server files
165 | App_Data/*.mdf
166 | App_Data/*.ldf
167 |
168 | #############
169 | ## Windows detritus
170 | #############
171 |
172 | # Windows image file caches
173 | Thumbs.db
174 | ehthumbs.db
175 |
176 | # Folder config file
177 | Desktop.ini
178 |
179 | # Recycle Bin used on file shares
180 | $RECYCLE.BIN/
181 |
182 | # Mac crap
183 | .DS_Store
184 |
185 |
186 | #############
187 | ## Python
188 | #############
189 |
190 | *.py[co]
191 |
192 | # Packages
193 | *.egg
194 | *.egg-info
195 | dist/
196 | build/
197 | eggs/
198 | parts/
199 | var/
200 | sdist/
201 | develop-eggs/
202 | .installed.cfg
203 |
204 | # Installer logs
205 | pip-log.txt
206 |
207 | # Unit test / coverage reports
208 | .coverage
209 | .tox
210 |
211 | #Translations
212 | *.mo
213 |
214 | #Mr Developer
215 | .mr.developer.cfg
216 |
--------------------------------------------------------------------------------
/action_page.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | the $_POST data was converted into a php config file
5 |
6 |
7 |
8 |
9 | Return to form and see the changes !
--------------------------------------------------------------------------------
/auto_restrict.php:
--------------------------------------------------------------------------------
1 | ');
37 | include('login_form.php');exit();
38 | }
39 | else{ # On affiche un formulaire invitant à rentrer le mdp puis on exit le script
40 | include('login_form.php');exit();
41 | }
42 | }
43 | // ---------------------------------------------------------------------------------
44 |
45 |
46 | // ------------------------------------------------------------------
47 |
48 | // ------------------------------------------------------------------
49 | // gestion de post pour demande de connexion
50 | // si un utilisateur tente de se loguer, on gère ici
51 | // ------------------------------------------------------------------
52 | if (isset($_POST['login'])&&isset($_POST['pass'])){
53 | log_user($_POST['login'],$_POST['pass']);
54 | if (isset($_POST['cookie'])){setcookie($auto_restrict['cookie_name'],sha1($_SERVER['HTTP_USER_AGENT']),time()+31104000);}//un an
55 | header('location: index.php');
56 | }
57 |
58 | // ------------------------------------------------------------------
59 | // si pas de demande de connexion on verifie les vars de session
60 | // et la duree d'inactivité de la session
61 | // si probleme,on include un form de login.
62 | // ------------------------------------------------------------------
63 | if (!is_ok()){session_destroy();header('location: index.php?public');exit();}
64 |
65 | // ------------------------------------------------------------------
66 | // demande de deco via la variable get 'deconnexion'
67 | // ------------------------------------------------------------------
68 | if (isset($_GET['deconnexion'])){log_user($_POST['login'],$_POST['pass']);}
69 | // ------------------------------------------------------------------
70 | //header('location: index.php?public');
71 |
72 |
73 |
74 |
75 | // ------------------------------------------------------------------
76 | // fonctions de cryptage
77 | // récupérées sur http://www.info-3000.com/phpmysql/cryptagedecryptage.php
78 | // ------------------------------------------------------------------
79 | function GenerationCle($Texte,$CleDEncryptage)
80 | {
81 | $CleDEncryptage = md5($CleDEncryptage);
82 | $Compteur=0;
83 | $VariableTemp = "";
84 | for ($Ctr=0;$Ctr
--------------------------------------------------------------------------------
/config.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/config_page.php:
--------------------------------------------------------------------------------
1 | true,
20 | 'allow_user_to_config'=>false,
21 | 'adresse_du_site'=>'www.warriordudimanche.net',
22 | 'use_a_choice'=>'choice one',// current value: other values are defined below
23 | 'use_a_radiobutton_choice'=>'choice one',// current value: other values are defined below
24 | 'my_password'=>'password',
25 | 'confirm_password'=>'',
26 |
27 | );*/
28 | //then render_form($config);
29 |
30 |
31 | /* #####################################################################
32 | # auto_form config #
33 | #####################################################################
34 |
35 | */
36 |
37 | // here are the basic parameters
38 | $autoform_config=array(
39 | 'use_labels'=>true,
40 | 'use_placeholder'=>true,
41 | 'method'=>'post',
42 | 'action'=>'config_page.php',
43 | 'form_name'=>'autoform',
44 | 'form_id'=>'autoform',
45 | 'form_class'=>'autoform',
46 | 'enctype'=>'',
47 | 'submit_button_label'=>'Save changes',
48 | 'reset_button_label'
49 | );
50 |
51 | foreach (glob('design/*') as $skin){
52 | $skin=basename($skin);if ($skin!='index.html'){$skins[]=$skin;}
53 | }
54 | $autoform_config['skin']=$skins;
55 | $autoform_config['default_data_folder']=array('private','public');
56 |
57 | /* #####################################################################
58 | # the render function #
59 | #####################################################################
60 | You can call it from anywhere in the page and render more than one form
61 | just call render_form($data_array)to create a brand new form with differents
62 | names, classes, ids etc.
63 | */
64 | function render_form($var){
65 | global $autoform_config;$all_keys='';
66 | $id=$class=$enctype=$reset='';
67 | if ($autoform_config['form_id']){$id=' id="'.$autoform_config['form_id'].'" ';}
68 | if ($autoform_config['form_class']){$class=' class="'.$autoform_config['form_class'].'" ';}
69 | if ($autoform_config['enctype']){$enctype=' enctype="'.$autoform_config['enctype'].'" ';}
70 | if (isset($autoform_config['reset_button_label'])){$reset="';}
71 |
72 | echo '";
129 | }
130 | include('auto_restrict.php');
131 | include('config.php');
132 | unset($GLOBAL['private_data_folder']);
133 | unset($GLOBAL['public_data_folder']);
134 | $GLOBAL['default_data_folder']=basename($GLOBAL['default_data_folder']);
135 |
136 | $message='';
137 | if ($_POST){
138 | $auto_form['filename']='config.php';
139 | $auto_form['filecontent']="";
156 |
157 | file_put_contents($auto_form['filename'],$auto_form['filecontent']);
158 | if ($postdata['data_folder']!=$GLOBAL['data_folder']){ rename ($GLOBAL['data_folder'],$postdata['data_folder']);}
159 | $message=' saved.';
160 | unset($postdata['all_keys']);
161 | $GLOBAL=$postdata;
162 | }
163 | ?>
164 |
165 |
166 |
167 |
168 |
169 | Configuration
170 |
171 |
172 |
173 |
174 |
175 |
176 |
179 |
180 |
185 |
186 |