hi all,
We're using zoom for our knowledge base for more than 10 years and we're very pleased with your product.
I need your help for adding the internal & external ips and the user name to every link when the search list is displayed.
We use a protected by usr/psw directory option in cPanel (our site is in CENTOS 6.9) to identify every user.
Actually, our error log shows the provided user name (usually saved on browser's cache) and external ip:
78658:[Mon Apr 02 20:50:25.417592 2018] [auth_basic:error] [pid 9726:tid 140318355707648] [client xxx.xxx.xxx.xxx:49976] AH01618: user <usr-nam> not found: /kb/FileName.pdf, referer: http://mydomain.com/zoom/kb/search.php?zoom_sort=0&zoom_query=<keyword>&zoom_p er_page=10&zoom_and=1
This is an example of the list link:
http://www.mydomain.com/kb/FileName.pdf#search=%22<keyword>%22
This is what I would like to see in error log instead:
78658:[Mon Apr 02 20:50:25.417592 2018] [auth_basic:error] [pid 9726:tid 140318355707648] [client xxx.xxx.xxx.xxx:49976] AH01618: user <usr-nam> not found: /kb/FileName.pdf, referer: http://mydomain.com/zoom/kb/search.php?zoom_sort=0&zoom_query=<keyword>&zoom_p er_page=10&zoom_and=1&code=d892d12d:c0a80001:55736 5724e616d65
In this example I'm asuming:
$externalIP = file_get_contents("http://ipecho.net/plain"); got d892d12d (216.146.209.45)
$localIP = getHostByName(getHostName()); got c0a80001 (192.168.0.1)
$username = getenv("username"); got 557365724e616d65 (UserName)
I wanna get addresses & user name's ascii code in hex in order to avoid hurting any feelings.
Anyway, keep up the good work!
br,
cesar.
We're using zoom for our knowledge base for more than 10 years and we're very pleased with your product.
I need your help for adding the internal & external ips and the user name to every link when the search list is displayed.
We use a protected by usr/psw directory option in cPanel (our site is in CENTOS 6.9) to identify every user.
Actually, our error log shows the provided user name (usually saved on browser's cache) and external ip:
78658:[Mon Apr 02 20:50:25.417592 2018] [auth_basic:error] [pid 9726:tid 140318355707648] [client xxx.xxx.xxx.xxx:49976] AH01618: user <usr-nam> not found: /kb/FileName.pdf, referer: http://mydomain.com/zoom/kb/search.php?zoom_sort=0&zoom_query=<keyword>&zoom_p er_page=10&zoom_and=1
This is an example of the list link:
http://www.mydomain.com/kb/FileName.pdf#search=%22<keyword>%22
This is what I would like to see in error log instead:
78658:[Mon Apr 02 20:50:25.417592 2018] [auth_basic:error] [pid 9726:tid 140318355707648] [client xxx.xxx.xxx.xxx:49976] AH01618: user <usr-nam> not found: /kb/FileName.pdf, referer: http://mydomain.com/zoom/kb/search.php?zoom_sort=0&zoom_query=<keyword>&zoom_p er_page=10&zoom_and=1&code=d892d12d:c0a80001:55736 5724e616d65
In this example I'm asuming:
$externalIP = file_get_contents("http://ipecho.net/plain"); got d892d12d (216.146.209.45)
$localIP = getHostByName(getHostName()); got c0a80001 (192.168.0.1)
$username = getenv("username"); got 557365724e616d65 (UserName)
I wanna get addresses & user name's ascii code in hex in order to avoid hurting any feelings.
Anyway, keep up the good work!
br,
cesar.
Comment