define('ISC_EBAY_LISTING_PER_PAGE', 10); define("ISC_TINY_THUMB_SIZE", 48); $GLOBALS['SNIPPETS'] = ""; parseLangFile(ISC_BASE_PATH.'/language/'.getConfig('Language').'/settings.ini'); parseLangFile(ISC_BASE_PATH.'/language/'.getConfig('Language').'/common.ini'); parseLangFile(ISC_BASE_PATH.'/language/'.getConfig('Language').'/admin/common.ini'); parseLangFile(ISC_BASE_PATH.'/language/'.getConfig('Language').'/module_language.ini'); $templatePath = ISC_BASE_PATH.'/admin/templates'; // Control panel mobile interface is supported on the following devices: // iPhone, iPod Touch, Palm Pre and Android based devices $mobileDevice = getPortableDeviceType(); $supportedDevices = array( 'iphone', 'ipod', 'pre', 'android' ); if(is_array($mobileDevice) && in_array($mobileDevice['device'], $supportedDevices) && empty($_COOKIE['fullControlPanel'])) { if(!empty($_REQUEST['fullControlPanel'])) { ISC_SetCookie('fullControlPanel', 1); } define('IS_PHONE', true); $templatePath .= '/iphone/'; } initBuildTemplateInstance($templatePath);
function canViewMobileSite() { $mobileDevice = getPortableDeviceType(); if($mobileDevice && getConfig('enableMobileTemplate') && in_array($mobileDevice['device'], getConfig('enableMobileTemplateDevices'))) { return true; } return false; }