Trying to run eScan AV for Linux v5.5 admin GUI behind NAT but having problems? Here’s the fix …
Replace
1 |
/opt/MicroWorld/var/www/htdocs/escan/header.php |
with the code below and then run:
1 |
/etc/init.d/mwhttpd restart |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
<head> <title>eScan for Linux - <?php echo $_SERVER['SERVER_ADDR'] ?></title> <?php $port = $_SERVER["SERVER_PORT"]; /*if($port == '10443') echo "<base href=\"https://".$_SERVER['SERVER_ADDR'].":10443/escan/\">"; elseif($port == '10080') echo "<base href=\"http://".$_SERVER['SERVER_ADDR'].":10080/escan/\">"; */ ?> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <script language="JavaScript" src="/scripts/script.js"></script> <script language="JavaScript" src="/scripts/leftmenu.js"></script> <link rel="stylesheet" href="/styles/mwti.css" type="text/css"> <? if(!isset($HTTP_COOKIE_VARS["screens"])) { echo "<script type='text/javascript'>"; echo "document.cookie = 'screens='+(screen.width-1)+'X'+(screen.height-1);"; echo "location='main.php';"; echo "</script>"; } else { $screens = $HTTP_COOKIE_VARS["screens"]; $res = split('X', $screens); if($res[0] < 799) { $res[0] = 799; $res[1] = 599; } elseif($res[0] > 1023) { $res[0] = 1023; $res[1] = 767; } $screen = Array('width' => $res[0] - 25, 'height' => $res[1]); $form_area = Array('width' => $res[0] - 175, 'height' => $res[1]); } ?> </head> |