<div dir="ltr">Hi,<div><br></div><div>maybe different approach to this could be to use FQDN URL for vtiger.</div><div><br></div><div>Create for example <a href="http://vtiger.yourdomain.com">vtiger.yourdomain.com</a> and publish this URL on DNS.</div><div>Enter this URL in config.inc.php </div><div>Configure your local DNS to point to your vtiger on local IP.</div><div><br></div><div>If you do not have local DNS server you can add this in host file C:\Windows\System32\drivers\etc</div><div><br></div><div><div># Copyright (c) 1993-2009 Microsoft Corp.</div><div>#</div><div># This is a sample HOSTS file used by Microsoft TCP/IP for Windows.</div><div>#</div><div># This file contains the mappings of IP addresses to host names. Each</div><div># entry should be kept on an individual line. The IP address should</div><div># be placed in the first column followed by the corresponding host name.</div><div># The IP address and the host name should be separated by at least one</div><div># space.</div><div>#</div><div># Additionally, comments (such as these) may be inserted on individual</div><div># lines or following the machine name denoted by a '#' symbol.</div><div>#</div><div># For example:</div><div>#</div><div>#      102.54.94.97     <a href="http://rhino.acme.com">rhino.acme.com</a>          # source server</div><div>#       38.25.63.10     <a href="http://x.acme.com">x.acme.com</a>              # x client host</div><div><br></div><div># localhost name resolution is handled within DNS itself.</div><div>#<span class="" style="white-space:pre">       </span>127.0.0.1       localhost</div><div>#<span class="" style="white-space:pre">      </span>::1             localhost</div><div><br></div></div><div>192.168.1.123        <a href="http://vtiger.yourdomain.com">vtiger.yourdomain.com</a>  </div><div><br></div><div><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Vladimir Karažija</div><div>Kosa crta d.o.o.</div><div>Jagnedje 1</div><div>10090 Zagreb</div><div>OIB: 57724075047</div><div><br></div><div>t. +385 1 777 33 85</div><div>m. +385 91 122 0511<br></div><div><a href="http://www.kosacrta.hr" target="_blank">www.kosacrta.hr</a></div></div></div></div></div></div>
<br><div class="gmail_quote">On Thu, Jun 25, 2015 at 2:54 AM, Hamono, Chris (DPC) <span dir="ltr"><<a href="mailto:Chris.Hamono@sa.gov.au" target="_blank">Chris.Hamono@sa.gov.au</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I should have said this is done in config.inc.php<br>
<br>
Chris<br>
<br>
-----Original Message-----<br>
From: <a href="mailto:vtigercrm-developers-bounces@lists.vtigercrm.com">vtigercrm-developers-bounces@lists.vtigercrm.com</a> [mailto:<a href="mailto:vtigercrm-developers-bounces@lists.vtigercrm.com">vtigercrm-developers-bounces@lists.vtigercrm.com</a>] On Behalf Of Hamono, Chris (DPC)<br>
Sent: Thursday, 25 June 2015 9:27 AM<br>
To: <a href="mailto:vtigercrm-developers@lists.vtigercrm.com">vtigercrm-developers@lists.vtigercrm.com</a><br>
Subject: Re: [Vtigercrm-developers] use vtiger in lan and extarnal access<br>
<br>
This is what I do...<br>
<br>
if (empty($_SERVER['HTTP_HOST'])) {<br>
    $site_URL = '<a href="http://my.domain.name/" rel="noreferrer" target="_blank">http://my.domain.name/</a>';<br>
}<br>
else {<br>
    $site_URL = 'http://' . $_SERVER['HTTP_HOST'] . '/';<br>
}<br>
<br>
<br>
The "if" statement is a quick way to determine if the script is called via the webbrowser you need this for some crons to work.<br>
<br>
No need to edit the http referrer script<br>
<br>
Chris<br>
<br>
-----Original Message-----<br>
From: <a href="mailto:vtigercrm-developers-bounces@lists.vtigercrm.com">vtigercrm-developers-bounces@lists.vtigercrm.com</a> [mailto:<a href="mailto:vtigercrm-developers-bounces@lists.vtigercrm.com">vtigercrm-developers-bounces@lists.vtigercrm.com</a>] On Behalf Of Alan Bell<br>
Sent: Wednesday, 24 June 2015 11:14 PM<br>
To: <a href="mailto:vtigercrm-developers@lists.vtigercrm.com">vtigercrm-developers@lists.vtigercrm.com</a><br>
Subject: Re: [Vtigercrm-developers] use vtiger in lan and extarnal access<br>
<br>
well the line might end up something like<br>
<br>
if ((stripos($_SERVER['HTTP_REFERER'], $site_URL) !== 0 ) && stripos($_SERVER['HTTP_REFERER'], "<a href="http://192.168" rel="noreferrer" target="_blank">http://192.168</a>.") !== 0 && stripos($_SERVER['HTTP_REFERER'], "<a href="http://localhost" rel="noreferrer" target="_blank">http://localhost</a>") !== 0 && stripos($_SERVER['HTTP_REFERER'], "<a href="http://10" rel="noreferrer" target="_blank">http://10</a>.") !== 0 &&<br>
($this->get('module') != 'Install')) {<br>
<br>
which would let you access it via the site URL, or an internal IP address starting 192.168.*.* or 10.*.*.* or locally. Your exact requirements might be different.<br>
<br>
Alan.<br>
<br>
On 24/06/15 14:12, marlos22 wrote:<br>
> so i have to replace this (stripos($_SERVER['HTTP_REFERER'],<br>
> $site_URL) !==<br>
> 0) whit my two URL (lan and external access) ????<br>
><br>
><br>
><br>
><br>
><br>
> --<br>
> View this message in context:<br>
> <a href="http://vtiger-crm.2324883.n4.nabble.com/use-vtiger-in-lan-and-extarnal" rel="noreferrer" target="_blank">http://vtiger-crm.2324883.n4.nabble.com/use-vtiger-in-lan-and-extarnal</a><br>
> -access-tp16676p16680.html Sent from the vtigercrm-developers mailing<br>
> list archive at Nabble.com.<br>
> _______________________________________________<br>
> <a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a><br>
<br>
_______________________________________________<br>
<a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a><br>
<br>
_______________________________________________<br>
<a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a><br>
<br>
_______________________________________________<br>
<a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a><br>
</blockquote></div><br></div>