BUG 8875 "Feature: New ExtJS based for Install, Login & Main Proces..." UPDATED

IIS Global var compatibility FIXED

- Basically $_SERVER[SERVER_ADDR] does not exist on IIS
- It was fixed adding a routine to valodate and set it
This commit is contained in:
Erik Amaru Ortiz
2012-04-12 17:50:43 -04:00
parent 4b2bde65d0
commit 489861baa3
3 changed files with 72 additions and 48 deletions

View File

@@ -93,6 +93,9 @@
}
// end permissions verification
// IIS Compatibility, SERVER_ADDR doesn't exist on that env, so we need to define it.
$_SERVER['SERVER_ADDR'] = isset($_SERVER['SERVER_ADDR']) ? $_SERVER['SERVER_ADDR'] : $_SERVER['SERVER_NAME'];
//to do: make different environments. sys
define ('ERROR_SHOW_SOURCE_CODE', true); // enable ERROR_SHOW_SOURCE_CODE to display the source code for any WARNING OR NOTICE