[Vtigercrm-developers] use vtiger in lan and extarnal access

Alan Bell alan.bell at libertus.co.uk
Wed Jun 24 13:43:48 GMT 2015


well the line might end up something like

if ((stripos($_SERVER['HTTP_REFERER'], $site_URL) !== 0 ) && 
stripos($_SERVER['HTTP_REFERER'], "http://192.168.") !== 0 && 
stripos($_SERVER['HTTP_REFERER'], "http://localhost") !== 0 && 
stripos($_SERVER['HTTP_REFERER'], "http://10.") !== 0 && 
($this->get('module') != 'Install')) {

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.

Alan.

On 24/06/15 14:12, marlos22 wrote:
> so i have to replace this (stripos($_SERVER['HTTP_REFERER'], $site_URL) !==
> 0) whit my two URL (lan and external access) ????
>
>
>
>
>
> --
> View this message in context: http://vtiger-crm.2324883.n4.nabble.com/use-vtiger-in-lan-and-extarnal-access-tp16676p16680.html
> Sent from the vtigercrm-developers mailing list archive at Nabble.com.
> _______________________________________________
> http://www.vtiger.com/



More information about the vtigercrm-developers mailing list