Well, any link you click on from within your admin is going to send the HTTP_REFERER to the next site and disclose the full URL your browser came from.
But, if you wish to do it anyway, just put the actual URL into it:
Code:$za_contents[] = array('text' => TEXT_NAME_CONSTANT, 'link' => 'http://the_domain_name.com/whatever/');
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
Thanks "Doc"!
I think we'll try a double redirect
and then redirect /whatever to the external link.Code:$za_contents[] = array('text' => TEXT_NAME_CONSTANT, 'link' => 'http://our_domain_name.com/whatever/');
In theory the HTTP_REFERER "should" show the non-existing url "http://our_domain_name.com/whatever/" and not the admin URL.
We'll test that out to confirm.
Thanks for your help and sound advice!
That'll probably only work right if you use a <meta > redirect in an HTML page ... not a php header("location") redirect.
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
Nope ... that won't change the REFERER value.
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
To prevent the REFERER from being passed as-is, the browser needs to actually load another page at another URL before it gets sent on to another page.
Think of it this way: basically the REFERER is only reset when you *click* with your mouse.
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
Makes sense, now.
Will have to NOT have any external links to domains we do not control.
Question:
We have another directory on the same domain where ZC is installed. ZC is installed in /shop and another directory /api as well. We want to have a link in admin's Tools to open the /api directory in a NEW window. The /api directory contains a program that automatically uploads datafeeds, images, and processes the shops orders with the supplier. Reason we want it to automatically open to a new window is it is easier to reference between ZC Admin and the API. Also, the /api directory requires a login.
Your thoughts?
Thanks, again!
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.