Skip to content

Instantly share code, notes, and snippets.

@scribetw
Created August 31, 2014 11:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scribetw/f7033e938b1b9957b937 to your computer and use it in GitHub Desktop.
Save scribetw/f7033e938b1b9957b937 to your computer and use it in GitHub Desktop.
lib_common.php 8th.Release diff
diff --git "a/B:\\Temp\\TortoiseGit\\lib3DF1.tmp\\lib_common-c6e4c19-left.php" "b/D:\\wwwroot\\pixmicat\\github\\pixmicat\\lib\\lib_common.php"
index ff30c4f..f28929b 100644
--- "a/B:\\Temp\\TortoiseGit\\lib3DF1.tmp\\lib_common-c6e4c19-left.php"
+++ "b/D:\\wwwroot\\pixmicat\\github\\pixmicat\\lib\\lib_common.php"
@@ -346,6 +346,8 @@ function getREMOTE_ADDR(){
* 取得 (Transparent) Proxy 提供之 IP 參數
*/
function getRemoteAddrThroughProxy() {
+ global $PROXYHEADERlist;
+
if (!defined('TRUST_HTTP_X_FORWARDED_FOR') || !TRUST_HTTP_X_FORWARDED_FOR) {
return '';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment