= 'Reorder'; $_['button_return'] = 'Return'; $_['button_shopping'] = 'Continue Shopping'; $_['button_search'] = 'Search'; $_['button_shipping'] = 'Apply Shipping'; $_['button_guest'] = 'Guest Checkout'; $_['button_view'] = 'View'; $_['button_voucher'] = 'Apply Voucher'; $_['button_upload'] = 'Upload File'; $_['button_reward'] = 'Apply Points'; $_['button_quote'] = 'Get Quotes'; // Error $_['error_upload_1'] = 'Warning: The uploaded file exceeds the upload_max_filesize directive in php.ini!'; $_['error_upload_2'] = 'Warning: The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form!'; $_['error_upload_3'] = 'Warning: The uploaded file was only partially uploaded!'; $_['error_upload_4'] = 'Warning: No file was uploaded!'; $_['error_upload_6'] = 'Warning: Missing a temporary folder!'; $_['error_upload_7'] = 'Warning: Failed to write file to disk!'; $_['error_upload_8'] = 'Warning: File upload stopped by extension!'; $_['error_upload_999'] = 'Warning: No error code available!'; ?>Warning: Cannot modify header information - headers already sent by (output started at /home1/alibaba2/public_html/craftycabin.com/catalog/language/english/english.php:71) in /home1/alibaba2/public_html/craftycabin.com/system/library/currency.php on line 45lic function upload() { $this->language->load('product/product'); $json = array(); if (!empty($this->request->files['file']['name'])) { $filename = basename(html_entity_decode($this->request->files['file']['name'], ENT_QUOTES, 'UTF-8')); if ((strlen($filename) < 3) || (strlen($filename) > 128)) { $json['error'] = $this->language->get('error_filename'); } $allowed = array(); $filetypes = explode(',', $this->config->get('config_upload_allowed')); foreach ($filetypes as $filetype) { $allowed[] = trim($filetype); } if (!in_array(substr(strrchr($filename, '.'), 1), $allowed)) { $json['error'] = $this->language->get('error_filetype'); } if ($this->request->files['file']['error'] != UPLOAD_ERR_OK) { $json['error'] = $this->language->get('error_upload_' . $this->request->files['file']['error']); } } else { $json['error'] = $this->language->get('error_upload'); } if (!$json) { if (is_uploaded_file($this->request->files['file']['tmp_name']) && file_exists($this->request->files['file']['tmp_name'])) { $file = basename($filename) . '.' . md5(rand()); // Hide the uploaded file name so people can not link to it directly. $json['file'] = $this->encryption->encrypt($file); move_uploaded_file($this->request->files['file']['tmp_name'], DIR_DOWNLOAD . $file); } $json['success'] = $this->language->get('text_upload'); } $this->response->setOutput(json_encode($json)); } } ?>t('text_menu_contact_map'); $this->data['text_menu_contact_address'] = $this->language->get('text_menu_contact_address'); $this->data['text_menu_contact_hours'] = $this->language->get('text_menu_contact_hours'); $this->data['text_menu_contact_form'] = $this->language->get('text_menu_contact_form'); $this->data['text_address'] = $this->language->get('text_address'); $this->data['text_telephone'] = $this->language->get('text_telephone'); $this->data['text_fax'] = $this->language->get('text_fax'); $this->data['entry_name'] = $this->language->get('entry_name'); $this->data['entry_email'] = $this->language->get('entry_email'); $this->data['entry_enquiry'] = $this->language->get('entry_enquiry'); $this->data['entry_captcha'] = $this->language->get('entry_captcha'); if (isset($this->error['name'])) { $this->data['error_name'] = $this->error['name']; } else { $this->data['error_name'] = ''; } if (isset($this->error['email'])) { $this->data['error_email'] = $this->error['email']; } else { $this->data['error_email'] = ''; } if (isset($this->error['enquiry'])) { $this->data['error_enquiry'] = $this->error['enquiry']; } else { $this->data['error_enquiry'] = ''; } if (isset($this->error['captcha'])) { $this->data['error_captcha'] = $this->error['captcha']; } else { $this->data['error_captcha'] = ''; } $this->data['button_continue'] = $this->language->get('button_continue'); $this->data['action'] = $this->url->link('information/contact'); $this->data['return'] = $this->url->link('account/return/insert', '', 'SSL'); $this->data['sitemap'] = $this->url->link('information/sitemap'); $this->data['voucher'] = $this->url->link('account/voucher', '', 'SSL'); $this->data['affiliate'] = $this->url->link('affiliate/account', '', 'SSL'); $this->data['special'] = $this->url->link('product/special'); $this->data['store'] = $this->config->get('config_name'); $this->data['address'] = nl2br($this->config->get('config_address')); $this->data['telephone'] = $this->config->get('config_telephone'); $this->data['fax'] = $this->config->get('config_fax'); if (isset($this->request->post['name'])) { $this->data['name'] = $this->request->post['name']; } else { $this->data['name'] = $this->customer->getFirstName(); } if (isset($this->request->post['email'])) { $this->data['email'] = $this->request->post['email']; } else { $this->data['email'] = $this->customer->getEmail(); } if (isset($this->request->post['enquiry'])) { $this->data['enquiry'] = $this->request->post['enquiry']; } else { $this->data['enquiry'] = ''; } if (isset($this->request->post['captcha'])) { $this->data['captcha'] = $this->request->post['captcha']; } else { $this->data['captcha'] = ''; } $this->data['home'] = $this->url->link('common/home'); $this->data['wishlist'] = $this->url->link('account/wishlist'); $this->data['logged'] = $this->customer->isLogged(); $this->data['login'] = $this->url->link('account/login', '', 'SSL'); $this->data['register'] = $this->url->link('account/register', '', 'SSL'); $this->data['account'] = $this->url->link('account/account', '', 'SSL'); $this->data['order'] = $this->url->link('account/order', '', 'SSL'); $this->data['newsletter'] = $this->url->link('account/newsletter', '', 'SSL'); $this->data['shopping_cart'] = $this->url->link('checkout/cart'); $this->data['checkout'] = $this->url->link('checkout/checkout', '', 'SSL'); $this->data['compare'] = $this->url->link('product/compare'); $this->data['contact'] = $this->url->link('information/contact'); if (isset($this->request->get['filter_name'])) { $this->data['filter_name'] = $this->request->get['filter_name']; } else { $this->data['filter_name'] = ''; } // Menu $this->load->model('catalog/category'); $this->load->model('catalog/product'); $this->load->model('catalog/manufacturer'); $this->load->model('tool/image'); $results = $this->model_catalog_manufacturer->getManufacturers(); foreach ($results as $result) { if ($result['image']) { $image = $result['image']; } else { $image = 'no_image.jpg'; } $this->data['manufacturers'][] = array( 'name' => $result['name'], 'image' => $this->model_tool_image->resize($image, 50, 50), 'href' => $this->url->link('product/manufacturer/product', 'manufacturer_id=' . $result['manufacturer_id']) ); } $this->data['categories'] = array(); $categories = $this->model_catalog_category->getCategories(0); foreach ($categories as $category) { if ($category['top']) { $children_data = array(); $children = $this->model_catalog_category->getCategories($category['category_id']); foreach ($children as $child) { $data = array( 'filter_category_id' => $child['category_id'], 'filter_sub_category' => true ); $product_total = $this->model_catalog_product->getTotalProducts($data); $children_data[] = array( 'name' => $child['name'] . ' (' . $product_total . ')', 'href' => $this->url->link('product/category', 'path=' . $category['category_id'] . '_' . $child['category_id']) ); } // Level 1 $this->load->model('tool/image'); $image = empty($category['image']) ? 'no_image.jpg' : $category['image']; $thumb = $this->model_tool_image->resize($image, 100, 100); $this->data['categories'][] = array( 'name' => $category['name'], 'children' => $children_data, 'column' => $category['column'] ? $category['column'] : 1, 'thumb' => $thumb, 'href' => $this->url->link('product/category', 'path=' . $category['category_id']) ); } } $this->children = array( 'module/language', 'module/currency', 'module/cart' ); if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/common/header.tpl')) { $this->template = $this->config->get('config_template') . '/template/common/header.tpl'; } else { $this->template = 'default/template/common/header.tpl'; } $this->render(); } } ?> Product not found!

Product not found!

Product not found!