-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgd-config.php
More file actions
24 lines (21 loc) · 924 Bytes
/
gd-config.php
File metadata and controls
24 lines (21 loc) · 924 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
define( 'GD_VIP', '184.168.47.225' );
define( 'GD_RESELLER', 1 );
define( 'GD_STAGING_SITE', false );
define( 'GD_EASY_MODE', true );
// Newrelic tracking
if ( function_exists( 'newrelic_set_appname' ) ) {
newrelic_set_appname( '023aa21e-67b5-11e5-82a0-14feb5d40a06;' . ini_get( 'newrelic.appname' ) );
}
/**
* Is this is a mobile client? Can be used by batcache.
* @return array
*/
function is_mobile_user_agent() {
return array(
"mobile_browser" => !in_array( $_SERVER['HTTP_X_UA_DEVICE'], array( 'bot', 'pc' ) ),
"mobile_browser_tablet" => false !== strpos( $_SERVER['HTTP_X_UA_DEVICE'], 'tablet-' ),
"mobile_browser_smartphones" => in_array( $_SERVER['HTTP_X_UA_DEVICE'], array( 'mobile-iphone', 'mobile-smartphone', 'mobile-firefoxos', 'mobile-generic' ) ),
"mobile_browser_android" => false !== strpos( $_SERVER['HTTP_X_UA_DEVICE'], 'android' )
);
}