UPGRADE NOTE: Do not edit or add to this file if you wish to upgrade AbanteCart to newer versions in the future. If you wish to customize AbanteCart for your needs please refer to http://www.AbanteCart.com for more information. ------------------------------------------------------------------------------*/ if (! defined ( 'DIR_CORE' ) || !IS_ADMIN) { header ( 'Location: static_pages/' ); } class ControllerResponsesToolExtensionsStore extends AController { private $error = array(); public function main() { $href = '/mp_api2'; $GET = $this->request->get; // if set subfolder for request(seo requests) - concatenate it to url if(isset($GET['path'])){ $href.= $GET['path']; unset($GET['path']); } $unset = array('s', 'rt', 'token','path','store_id','store_ip','store_url','store_version','language_code'); foreach($unset as $key){ unset($GET[$key]); } $GET['store_id'] = UNIQUE_ID; $GET['store_ip'] = $_SERVER ['SERVER_ADDR']; $GET['store_url'] = HTTP_SERVER; $GET['store_version'] = VERSION; $GET['language_code'] = $this->request->cookie ['language']; // place your affiliate id here define('MP_AFFILIATE_ID',''); if(MP_AFFILIATE_ID){ $GET['aff_id'] = MP_AFFILIATE_ID; } $href .= '?'.http_build_query($GET); $connect = new AConnect(); $html = $connect->getResponse($href); if(!$html){ $this->loadLanguage('extension/extensions_store','silent'); $error = is_array($connect->error) ? $connect->error : array($connect->error); foreach($error as $err){ $this->log->write($err); } $html = '