include_once(ROOT_PATH."/gms-service/class.static.dbconnect.php"); include_once(ROOT_PATH."/gms-service/gms-classes.php"); include_once(ROOT_PATH."/gms-service/gms-service-function.php"); include_once(ROOT_PATH."/gms-service/gms-admin-function.php"); //if gms admin is accessed,connect to local server else for all ,connect to live if(($domain_prefix=='test64-')) { $GMS_MEMCACHE_SERVER_ARR["ind"][]="local.memc99.redl.com:11211"; $GMS_MEMCACHE_SERVER_ARR["pak"][]="local.memc99.redl.com:11211"; $GMS_MEMCACHE_SERVER_ARR["a1"] [] ="local.memc99.redl.com:11211"; define("GMS_DB_HOST_NAME",'db99.redl.com'); } else { $GMS_MEMCACHE_SERVER_ARR["ind"][]="memc173.redl.com:11211"; $GMS_MEMCACHE_SERVER_ARR["a1"][]="memc173.redl.com:11211"; $GMS_MEMCACHE_SERVER_ARR["pak"][]="memc173.redl.com:11211"; /*$GMS_MEMCACHE_SERVER_ARR["ind"][]="memc173.redl.com:11212"; $GMS_MEMCACHE_SERVER_ARR["ind"][]="memc107.redl.com:11212"; $GMS_MEMCACHE_SERVER_ARR["ind"][]="memc107.redl.com:11211"; $GMS_MEMCACHE_SERVER_ARR["pak"][]="memc173.redl.com:11212"; $GMS_MEMCACHE_SERVER_ARR["pak"][]="memc173.redl.com:11211"; $GMS_MEMCACHE_SERVER_ARR["pak"][]="memc107.redl.com:11212"; $GMS_MEMCACHE_SERVER_ARR["pak"][]="memc107.redl.com:11211"; $GMS_MEMCACHE_SERVER_ARR["a1"][]="memc173.redl.com:11212"; $GMS_MEMCACHE_SERVER_ARR["a1"][]="memc173.redl.com:11211"; $GMS_MEMCACHE_SERVER_ARR["a1"][]="memc107.redl.com:11212"; $GMS_MEMCACHE_SERVER_ARR["a1"][]="memc107.redl.com:11211"; */ define("GMS_DB_HOST_NAME",'db193.redl.com'); } define("GMS_MEMCACHE_SERVER_PORT",'11211'); if(($_SESSION['gms_domain']=='pak') || ($_GET['gms_domain']=='pak')) { define("GMS_DB_NAME",'newgmspak'); define("GMS_IMAGE_PATH",RESOURCE_SERVER_URL."/newgmspakimages.php"); define("GMS_IMG_PATH","/newgmspakimages.php"); } elseif(($_SESSION['gms_domain']=='a1') || ($_GET['gms_domain']=='a1')) { define("GMS_DB_NAME",'newgmsa1'); define("GMS_IMAGE_PATH",RESOURCE_SERVER_URL."/newgmsa1images.php"); define("GMS_IMG_PATH","/newgmsa1images.php"); } else { define("GMS_DB_NAME",'newgms'); define("GMS_IMAGE_PATH",RESOURCE_SERVER_URL."/newgmsimages.php"); define("GMS_IMG_PATH","/newgmsimages.php"); } define("GMS_DB_USER_NAME",'gmsadmin'); define("GMS_DB_USER_PASS",'gms@dmin'); define("GMS_PURGE_PATH",WWW_SERVER_URL."/gms-service/purge-gms.php"); ?>
|