File tree 2 files changed +12
-12
lines changed
2 files changed +12
-12
lines changed Original file line number Diff line number Diff line change 1
- <?php
1
+ <?php
2
+ $ moufUI = getenv ('MOUF_UI ' );
3
+ if ($ moufUI !== false ) {
4
+ $ moufUI = (bool ) $ moufUI ;
5
+ if (!$ moufUI ) {
6
+ header ('HTTP/1.1 403 Forbidden ' );
7
+ echo 'Error! Access to Mouf UI is forbidden on this environment (env variable MOUF_UI is set to 0) ' ;
8
+ exit ;
9
+ }
10
+ }
11
+ unset($ moufUI );
12
+
2
13
if (!file_exists (__DIR__ .'/../../../../mouf/no_commit/MoufUsers.php ' )) {
3
14
4
15
$ rootUrl = $ _SERVER ['BASE ' ]."/ " ;
Original file line number Diff line number Diff line change 8
8
* file that was distributed with this source code.
9
9
*/
10
10
11
- $ moufUI = getenv ('MOUF_UI ' );
12
- if ($ moufUI !== false ) {
13
- $ moufUI = (bool ) $ moufUI ;
14
- if (!$ moufUI ) {
15
- header ('HTTP/1.1 403 Forbidden ' );
16
- echo 'Error! Access to Mouf UI is forbidden on this environment (env variable MOUF_UI is set to 0) ' ;
17
- exit ;
18
- }
19
- }
20
- unset($ moufUI );
21
-
22
11
// Let's load the Mouf file, and the MoufAdmin file.
23
12
// The MoufAdmin will replace the Mouf configuration file.
24
13
if (file_exists (dirname (__FILE__ ).'/../MoufComponents.php ' )) {
You can’t perform that action at this time.
0 commit comments