if ( $_SERVER['REMOTE_ADDR'] != '127.0.0.1' )
{
define( '_THEME_IMG_DIR_', 'http://img2.yourdomain.com/' );
define( '_THEME_CSS_DIR_', 'http://css.yourdomain.com/' );
define( '_THEME_JS_DIR_', 'http://js.yourdomain.com/' );
define( '_THEME_CAT_DIR_', 'http://img1.yourdomain.com/c/' );
define( '_THEME_PROD_DIR_', 'http://img1.yourdomain.com/p/' );
define( '_THEME_MANU_DIR_', 'http://img1.yourdomain.com/m/' );
define( '_PS_IMG_', 'http://img1.yourdomain.com/' );
define( '_PS_ADMIN_IMG_', 'http://img1.yourdomain.com/admin/' );
} else {
define( '_THEME_IMG_DIR_', _THEMES_DIR_ . _THEME_NAME_ . '/img/' );
define( '_THEME_CSS_DIR_', _THEMES_DIR_ . _THEME_NAME_ . '/css/' );
define( '_THEME_JS_DIR_', _THEMES_DIR_ . _THEME_NAME_ . '/js/' );
define( '_THEME_CAT_DIR_', __PS_BASE_URI__ . 'img/c/' );
define( '_THEME_PROD_DIR_', __PS_BASE_URI__ . 'img/p/' );
define( '_THEME_MANU_DIR_', __PS_BASE_URI__ . 'img/m/' );
define( '_PS_IMG_', __PS_BASE_URI__ . 'img/' );
define( '_PS_ADMIN_IMG_', _PS_IMG_.'admin/' );
}