Skip to content

Commit 7688706

Browse files
authored
put back my modification
1 parent 70a99d0 commit 7688706

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

web/reset/mail/index.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<?php
22
// Init
33
define('NO_AUTH_REQUIRED',true);
4+
define('NO_AUTH_REQUIRED',true);
5+
46
error_reporting(NULL);
57

68
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
@@ -21,6 +23,7 @@
2123
if ($ip == $_SERVER['SERVER_ADDR']) $ok=1;
2224
if ($ip == '127.0.0.1') $ok=1;
2325
if ($ok==0) exit;
26+
if (isset($_SERVER['HTTP_X_REAL_IP']) || isset($_SERVER['HTTP_X_FORWARDED_FOR'])) exit;
2427

2528
//
2629
// sourceforge.net/projects/postfixadmin/

0 commit comments

Comments
 (0)