We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f16de59 commit fb2cdf6Copy full SHA for fb2cdf6
web/reset/mail/index.php
@@ -6,6 +6,24 @@
6
7
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
8
9
+//echo '<pre>'; print_r($_SERVER); exit;
10
+$ok=0;
11
+$ip=$_SERVER['REMOTE_ADDR'];
12
+exec (VESTA_CMD."v-list-sys-ips json", $output, $return_var);
13
+$output=implode('', $output);
14
+$arr=json_decode($output, true);
15
+foreach ($arr as $arr_key => $arr_val) {
16
+ if ($ip==$arr_key || $ip==$arr_val['NAT']) {
17
+ $ok=1;
18
+ break;
19
+ }
20
+}
21
+//echo '<pre>ip='.$ip."\n".$return_var." = "; print_r($arr); exit;
22
+if ($ip == $_SERVER['SERVER_ADDR']) $ok=1;
23
+if ($ip == '127.0.0.1') $ok=1;
24
+//echo 'ok='.$ok."\n";
25
+if ($ok==0) exit;
26
+
27
//
28
// sourceforge.net/projects/postfixadmin/
29
// md5crypt
0 commit comments