AAAAindex.html000066600000000054151373417560006560 0ustar00.htaccess000066600000000177151373417560006367 0ustar00 Order allow,deny Deny from all tcpdf_config.php000066600000015306151373417560007727 0ustar00. // // See LICENSE.TXT file for more information. //============================================================+ /** * Configuration file for TCPDF. * @author Nicola Asuni * @package com.tecnick.tcpdf * @version 4.9.005 * @since 2004-10-27 */ // If you define the constant K_TCPDF_EXTERNAL_CONFIG, the following settings will be ignored. if (!defined('K_TCPDF_EXTERNAL_CONFIG')) { // DOCUMENT_ROOT fix for IIS Webserver if ((!isset($_SERVER['DOCUMENT_ROOT'])) OR (empty($_SERVER['DOCUMENT_ROOT']))) { if(isset($_SERVER['SCRIPT_FILENAME'])) { $_SERVER['DOCUMENT_ROOT'] = str_replace( '\\', '/', substr($_SERVER['SCRIPT_FILENAME'], 0, 0-strlen($_SERVER['PHP_SELF']))); } elseif(isset($_SERVER['PATH_TRANSLATED'])) { $_SERVER['DOCUMENT_ROOT'] = str_replace( '\\', '/', substr(str_replace('\\\\', '\\', $_SERVER['PATH_TRANSLATED']), 0, 0-strlen($_SERVER['PHP_SELF']))); } else { // define here your DOCUMENT_ROOT path if the previous fails (e.g. '/var/www') $_SERVER['DOCUMENT_ROOT'] = '/'; } } // be sure that the end slash is present $_SERVER['DOCUMENT_ROOT'] = str_replace('//', '/', $_SERVER['DOCUMENT_ROOT'].'/'); // Automatic calculation for the following K_PATH_MAIN constant $k_path_main = str_replace( '\\', '/', realpath(substr(dirname(__FILE__), 0, 0-strlen('config')))); if (substr($k_path_main, -1) != '/') { $k_path_main .= '/'; } /** * Installation path (/var/www/tcpdf/). * By default it is automatically calculated but you can also set it as a fixed string to improve performances. */ define ('K_PATH_MAIN', $k_path_main); // Automatic calculation for the following K_PATH_URL constant $k_path_url = $k_path_main; // default value for console mode if (isset($_SERVER['HTTP_HOST']) AND (!empty($_SERVER['HTTP_HOST']))) { if(isset($_SERVER['HTTPS']) AND (!empty($_SERVER['HTTPS'])) AND strtolower($_SERVER['HTTPS'])!='off') { $k_path_url = 'https://'; } else { $k_path_url = 'http://'; } $k_path_url .= $_SERVER['HTTP_HOST']; $k_path_url .= str_replace( '\\', '/', substr(K_PATH_MAIN, (strlen($_SERVER['DOCUMENT_ROOT']) - 1))); } /** * URL path to tcpdf installation folder (http://localhost/tcpdf/). * By default it is automatically calculated but you can also set it as a fixed string to improve performances. */ define ('K_PATH_URL', $k_path_url); /** * path for PDF fonts * use K_PATH_MAIN.'fonts/old/' for old non-UTF8 fonts */ define ('K_PATH_FONTS', K_PATH_MAIN.'fonts/'); /** * cache directory for temporary files (full path) */ define ('K_PATH_CACHE', K_PATH_MAIN.'cache/'); /** * cache directory for temporary files (url path) */ define ('K_PATH_URL_CACHE', K_PATH_URL.'cache/'); /** *images directory */ //define ('K_PATH_IMAGES', K_PATH_MAIN.'images/'); define ('K_PATH_IMAGES', JPATH_ROOT); /** * blank image */ define ('K_BLANK_IMAGE', K_PATH_IMAGES.'_blank.png'); /** * page format */ define ('PDF_PAGE_FORMAT', 'A4'); /** * page orientation (P=portrait, L=landscape) */ define ('PDF_PAGE_ORIENTATION', 'P'); /** * document creator */ define ('PDF_CREATOR', 'TCPDF'); /** * document author */ define ('PDF_AUTHOR', 'TCPDF'); /** * header title */ define ('PDF_HEADER_TITLE', 'TCPDF Example'); /** * header description string */ define ('PDF_HEADER_STRING', "by Nicola Asuni - Tecnick.com\nwww.tcpdf.org"); /** * image logo */ define ('PDF_HEADER_LOGO', 'tcpdf_logo.jpg'); /** * header logo image width [mm] */ define ('PDF_HEADER_LOGO_WIDTH', 30); /** * document unit of measure [pt=point, mm=millimeter, cm=centimeter, in=inch] */ define ('PDF_UNIT', 'mm'); /** * header margin */ define ('PDF_MARGIN_HEADER', 5); /** * footer margin */ define ('PDF_MARGIN_FOOTER', 10); /** * top margin */ define ('PDF_MARGIN_TOP', 27); /** * bottom margin */ define ('PDF_MARGIN_BOTTOM', 25); /** * left margin */ define ('PDF_MARGIN_LEFT', 15); /** * right margin */ define ('PDF_MARGIN_RIGHT', 15); /** * default main font name */ define ('PDF_FONT_NAME_MAIN', 'helvetica'); /** * default main font size */ define ('PDF_FONT_SIZE_MAIN', 10); /** * default data font name */ define ('PDF_FONT_NAME_DATA', 'helvetica'); /** * default data font size */ define ('PDF_FONT_SIZE_DATA', 8); /** * default monospaced font name */ define ('PDF_FONT_MONOSPACED', 'courier'); /** * ratio used to adjust the conversion of pixels to user units */ define ('PDF_IMAGE_SCALE_RATIO', 1.25); /** * magnification factor for titles */ define('HEAD_MAGNIFICATION', 1.1); /** * height of cell respect font height */ define('K_CELL_HEIGHT_RATIO', 1.25); /** * title magnification respect main font size */ define('K_TITLE_MAGNIFICATION', 1.3); /** * reduction factor for small font */ define('K_SMALL_RATIO', 2/3); /** * set to true to enable the special procedure used to avoid the overlappind of symbols on Thai language */ define('K_THAI_TOPCHARS', true); /** * if true allows to call TCPDF methods using HTML syntax * IMPORTANT: For security reason, disable this feature if you are printing user HTML content. */ define('K_TCPDF_CALLS_IN_HTML', true); /** * if true adn PHP version is greater than 5, then the Error() method throw new exception instead of terminating the execution. */ define('K_TCPDF_THROW_EXCEPTION_ERROR', false); } //============================================================+ // END OF FILE //============================================================+ lang/fra.php000066600000002270151373417560006767 0ustar00 Order allow,deny Deny from all lang/mlt.php000066600000002275151373417560007020 0ustar00lang/msa.php000066600000002266151373417560007004 0ustar00addScriptDeclaration($js); ?>
config, 'basePrice', 'COM_VIRTUEMART_ADMIN_CFG_PRICE_BASEPRICE'); echo ShopFunctions::writePriceConfigLine($this->config, 'variantModification', 'COM_VIRTUEMART_ADMIN_CFG_PRICE_VARMOD'); echo ShopFunctions::writePriceConfigLine($this->config, 'basePriceVariant', 'COM_VIRTUEMART_ADMIN_CFG_PRICE_BASEPRICE_VAR'); echo ShopFunctions::writePriceConfigLine($this->config, 'discountedPriceWithoutTax', 'COM_VIRTUEMART_ADMIN_CFG_PRICE_DISCPRICE_WOTAX', 0); echo ShopFunctions::writePriceConfigLine($this->config, 'priceWithoutTax', 'COM_VIRTUEMART_ADMIN_CFG_PRICE_SALESPRICE_WOTAX', 0); echo ShopFunctions::writePriceConfigLine($this->config, 'taxAmount', 'COM_VIRTUEMART_ADMIN_CFG_PRICE_TAX_AMOUNT', 0); echo ShopFunctions::writePriceConfigLine($this->config, 'basePriceWithTax', 'COM_VIRTUEMART_ADMIN_CFG_PRICE_BASEPRICE_WTAX'); echo ShopFunctions::writePriceConfigLine($this->config, 'salesPrice', 'COM_VIRTUEMART_ADMIN_CFG_PRICE_SALESPRICE'); echo ShopFunctions::writePriceConfigLine($this->config, 'salesPriceWithDiscount', 'COM_VIRTUEMART_ADMIN_CFG_PRICE_SALESPRICE_WD'); echo ShopFunctions::writePriceConfigLine($this->config, 'discountAmount', 'COM_VIRTUEMART_ADMIN_CFG_PRICE_DISC_AMOUNT'); echo ShopFunctions::writePriceConfigLine($this->config, 'unitPrice', 'COM_VIRTUEMART_ADMIN_CFG_PRICE_UNITPRICE'); ?>
tmpl/default.php000066600000003254151374535110007672 0ustar00
'COM_VIRTUEMART_ADMIN_CFG_SHOPTAB', 'shopfront' => 'COM_VIRTUEMART_ADMIN_CFG_SHOPFRONTTAB', 'templates' => 'COM_VIRTUEMART_ADMIN_CFG_TEMPLATESTAB', 'pricing' => 'COM_VIRTUEMART_ADMIN_CFG_PRICINGTAB', 'checkout' => 'COM_VIRTUEMART_ADMIN_CFG_CHECKOUTTAB', 'product_order'=> 'COM_VIRTUEMART_ADMIN_CFG_PRODUCTORDERTAB', 'sef' => 'COM_VIRTUEMART_ADMIN_CFG_SEF' )); ?>
tmpl/index.html000066600000000054151374535110007525 0ustar00tmpl/.htaccess000066600000000177151374535110007334 0ustar00 Order allow,deny Deny from all tmpl/default_checkout.php000066600000022506151374535110011560 0ustar00addScriptDeclaration($js); /*
*/ ?>
JText::_('COM_VIRTUEMART_DELDATE_INV') , 'osP' => JText::_('COM_VIRTUEMART_ORDER_STATUS_PENDING') , 'osU' => JText::_('COM_VIRTUEMART_ORDER_STATUS_CONFIRMED_BY_SHOPPER') , 'osC' => JText::_('COM_VIRTUEMART_ORDER_STATUS_CONFIRMED') , 'osS' => JText::_('COM_VIRTUEMART_ORDER_STATUS_SHIPPED') , 'osR' => JText::_('COM_VIRTUEMART_ORDER_STATUS_REFUNDED') , 'osC' => JText::_('COM_VIRTUEMART_ORDER_STATUS_CANCELLED') ); echo VmHTML::row('selectList','COM_VIRTUEMART_CFG_DELDATE_INV','del_date_type', VmConfig::get('del_date_type','m'), $_delivery_date_options); ?>
orderStatusModel->renderOSList(VmConfig::get('inv_os',array('C')),'inv_os',TRUE); ?>
orderStatusModel->renderOSList(VmConfig::get('email_os_s',array('U','C','S','R','X')),'email_os_s',TRUE); ?>
orderStatusModel->renderOSList(VmConfig::get('email_os_v',array('U','C','R','X')),'email_os_v',TRUE); ?>
titlesFields ; ?>
*/ ?>tmpl/default_shopfront.php000066600000033547151374535110012004 0ustar00
'1 ' . JText::_('COM_VIRTUEMART_DAY') , '1,W' => '1 ' . JText::_('COM_VIRTUEMART_WEEK') , '2,W' => '2 ' . JText::_('COM_VIRTUEMART_WEEK_S') , '1,M' => '1 ' . JText::_('COM_VIRTUEMART_MONTH') , '3,M' => '3 ' . JText::_('COM_VIRTUEMART_MONTH_S') , '6,M' => '6 ' . JText::_('COM_VIRTUEMART_MONTH_S') , '1,Y' => '1 ' . JText::_('COM_VIRTUEMART_YEAR') ); echo VmHTML::selectList('coupons_default_expire', VmConfig::get('coupons_default_expire'), $_defaultExpTime); ?>
orderStatusModel->renderOSList(VmConfig::get('cp_rm',array('C')),'cp_rm',TRUE) ; ?>
JText::_('COM_VIRTUEMART_LATEST_PRODUCTS_ORDERBY_MODIFIED'), 'created_on' => JText::_('COM_VIRTUEMART_LATEST_PRODUCTS_ORDERBY_CREATED') ); echo VmHTML::selectList('latest_products_orderBy', VmConfig::get('latest_products_orderBy', 'created_on'), $latest_products_orderBy); ?>
JText::_('COM_VIRTUEMART_ADMIN_CFG_POOS_NONE'), 'disableit' => JText::_('COM_VIRTUEMART_ADMIN_CFG_POOS_DISABLE_IT'), 'disableit_children' => JText::_('COM_VIRTUEMART_ADMIN_CFG_POOS_DISABLE_IT_CHILDREN'), 'disableadd' => JText::_('COM_VIRTUEMART_ADMIN_CFG_POOS_DISABLE_ADD'), 'risetime' => JText::_('COM_VIRTUEMART_ADMIN_CFG_POOS_RISE_AVATIME') ); echo VmHTML::radioList('stockhandle', VmConfig::get('stockhandle', 'none'), $options); ?>
imagePath); ?>
<?php echo JText::_('COM_VIRTUEMART_PREVIEW'); ?>
JText::_('COM_VIRTUEMART_ADMIN_CFG_REVIEW_SHOW_NONE'), 'registered' => JText::_('COM_VIRTUEMART_ADMIN_CFG_REVIEW_SHOW_REGISTERED'), 'all' => JText::_('COM_VIRTUEMART_ADMIN_CFG_REVIEW_SHOW_ALL') ); //showReviewFor echo VmHTML::radioList('showReviewFor', VmConfig::get('showReviewFor', 'all'), $showReviewFor); ?>
JText::_('COM_VIRTUEMART_ADMIN_CFG_REVIEW_MODE_NONE'), 'bought' => JText::_('COM_VIRTUEMART_ADMIN_CFG_REVIEW_MODE_BOUGHT_PRODUCT'), 'registered' => JText::_('COM_VIRTUEMART_ADMIN_CFG_REVIEW_MODE_REGISTERED') // 3 => JText::_('COM_VIRTUEMART_ADMIN_CFG_REVIEW_MODE_ALL') ); echo VmHTML::radioList('reviewMode', VmConfig::get('reviewMode', 'bought'), $showReviewFor); ?>
JText::_('COM_VIRTUEMART_ADMIN_CFG_RATING_SHOW_NONE'), 'registered' => JText::_('COM_VIRTUEMART_ADMIN_CFG_RATING_SHOW_REGISTERED'), 'all' => JText::_('COM_VIRTUEMART_ADMIN_CFG_RATING_SHOW_ALL') ); echo VmHTML::radioList('showRatingFor', VmConfig::get('showRatingFor', 'all'), $showReviewFor); ?>
JText::_('COM_VIRTUEMART_ADMIN_CFG_RATING_MODE_NONE'), 'bought' => JText::_('COM_VIRTUEMART_ADMIN_CFG_RATING_MODE_BOUGHT_PRODUCT'), 'registered' => JText::_('COM_VIRTUEMART_ADMIN_CFG_RATING_MODE_REGISTERED') // 3 => JText::_('COM_VIRTUEMART_ADMIN_CFG_RATING_MODE_ALL') //TODO write system for all users (cookies) ); echo VmHTML::radioList('ratingMode', VmConfig::get('ratingMode', 'bought'), $showReviewFor); ?>
orderStatusModel->renderOSList(VmConfig::get('rr_os',array('C')),'rr_os',TRUE); ?>
tmpl/default_sef.php000066600000004730151374535110010527 0ustar00
tmpl/default_templates.php000066600000065143151374535110011755 0ustar00
jTemplateList, 'vmtemplate', 'size=1 width=200', 'value', 'name', VmConfig::get('vmtemplate', 'default')); ?>
jTemplateList, 'categorytemplate', 'size=1', 'value', 'name', VmConfig::get('categorytemplate', 'default')); ?>
categoryLayoutList, 'categorylayout', 'size=1', 'value', 'text', VmConfig::get('categorylayout', 0)); ?>
productLayoutList, 'productlayout', 'size=1', 'value', 'text', VmConfig::get('productlayout', 0)); ?>
noimagelist, 'no_image_set', 'size=1', 'value', 'text', VmConfig::get('no_image_set')); ?>
noimagelist, 'no_image_found', 'size=1', 'value', 'text', VmConfig::get('no_image_found')); ?>
vmLayoutList, 'vmlayout', 'size=1', 'value', 'text', VmConfig::get('vmlayout', 0)); ?>
tmpl/default_product_order.php000066600000006136151374535110012627 0ustar00
orderByFieldsProduct->select, 'browse_orderby_field', 'size=1', 'value', 'text', VmConfig::get('browse_orderby_field', 'product_name'), 'product_name'); $orderDirs[] = JHTML::_('select.option', 'ASC' , JText::_('Ascending')) ; $orderDirs[] = JHTML::_('select.option', 'DESC' , JText::_('Descending')) ; echo JHTML::_('select.genericlist', $orderDirs, 'prd_brws_orderby_dir', 'size=10', 'value', 'text', VmConfig::get('prd_brws_orderby_dir', 'ASC') ); ?> orderByFieldsCat, 'browse_cat_orderby_field', 'size=1', 'value', 'text', VmConfig::get('browse_cat_orderby_field', 'category_name'), 'category_name'); echo JHTML::_('select.genericlist', $orderDirs, 'cat_brws_orderby_dir', 'size=10', 'value', 'text', VmConfig::get('cat_brws_orderby_dir', 'ASC') ); ?>
orderByFieldsProduct->checkbox; ?>
searchFields->checkbox; ?>
tmpl/default_shop.php000066600000015317151374535110010726 0ustar00
currConverterList, 'currency_converter_module', 'size=1', 'value', 'text', VmConfig::get('currency_converter_module', 'convertECB.php')); ?>
activeLanguages; ?> Translations'); ?>
JText::_('COM_VIRTUEMART_ADMIN_CFG_ENABLE_DEBUG_NONE'), 'admin' => JText::_('COM_VIRTUEMART_ADMIN_CFG_ENABLE_DEBUG_ADMIN'), 'all' => JText::_('COM_VIRTUEMART_ADMIN_CFG_ENABLE_DEBUG_ALL') ); echo VmHTML::radioList('debug_enable', VmConfig::get('debug_enable', 'none'), $options); ?>
JText::_('COM_VIRTUEMART_ADMIN_CFG_ENABLE_MULTIX_NONE'), 'admin' => JText::_('COM_VIRTUEMART_ADMIN_CFG_ENABLE_MULTIX_ADMIN') // 'all' => JText::_('COM_VIRTUEMART_ADMIN_CFG_ENABLE_DEBUG_ALL') ); echo VmHTML::radioList('multix', VmConfig::get('multix', 'none'), $options); ?>
view.html.php000066600000013125151374535110007205 0ustar00addStandardEditViewCommands(); $config = VmConfig::loadConfig(); if(!empty($config->_params)){ unset ($config->_params['pdf_invoice']); // parameter remove and replaced by inv_os } $this->assignRef('config', $config); $mainframe = JFactory::getApplication(); $this->assignRef('joomlaconfig', $mainframe); $userparams = JComponentHelper::getParams('com_users'); $this->assignRef('userparams', $userparams); $templateList = ShopFunctions::renderTemplateList(JText::_('COM_VIRTUEMART_ADMIN_CFG_JOOMLA_TEMPLATE_DEFAULT')); $this->assignRef('jTemplateList', $templateList); $vmLayoutList = $model->getLayoutList('virtuemart'); $this->assignRef('vmLayoutList', $vmLayoutList); $categoryLayoutList = $model->getLayoutList('category'); $this->assignRef('categoryLayoutList', $categoryLayoutList); $productLayoutList = $model->getLayoutList('productdetails'); $this->assignRef('productLayoutList', $productLayoutList); $noimagelist = $model->getNoImageList(); $this->assignRef('noimagelist', $noimagelist); $orderStatusModel=VmModel::getModel('orderstatus'); $this->assignRef('orderStatusModel', $orderStatusModel); $currConverterList = $model->getCurrencyConverterList(); $this->assignRef('currConverterList', $currConverterList); $moduleList = $model->getModuleList(); $this->assignRef('moduleList', $moduleList); $activeLanguages = $model->getActiveLanguages( VmConfig::get('active_languages') ); $this->assignRef('activeLanguages', $activeLanguages); $orderByFieldsProduct = $model->getProductFilterFields('browse_orderby_fields'); $this->assignRef('orderByFieldsProduct', $orderByFieldsProduct); VmModel::getModel('category'); foreach (VirtueMartModelCategory::$_validOrderingFields as $key => $field ) { if($field=='c.category_shared') continue; $fieldWithoutPrefix = $field; $dotps = strrpos($fieldWithoutPrefix, '.'); if($dotps!==false){ $prefix = substr($field, 0,$dotps+1); $fieldWithoutPrefix = substr($field, $dotps+1); } $text = JText::_('COM_VIRTUEMART_'.strtoupper($fieldWithoutPrefix)) ; $orderByFieldsCat[] = JHTML::_('select.option', $field, $text) ; } //$orderByFieldsCat = $model->get; $this->assignRef('orderByFieldsCat', $orderByFieldsCat); $searchFields = $model->getProductFilterFields( 'browse_search_fields'); $this->assignRef('searchFields', $searchFields); $aclGroups = $usermodel->getAclGroupIndentedTree(); $this->assignRef('aclGroups', $aclGroups); if(!class_exists('shopFunctionsF'))require(JPATH_VM_SITE.DS.'helpers'.DS.'shopfunctionsf.php'); $vmtemplate = shopFunctionsF::loadVmTemplateStyle(); if(is_Dir(JPATH_ROOT.DS.'templates'.DS.$vmtemplate.DS.'images'.DS.'availability'.DS)){ $imagePath = '/templates/'.$vmtemplate.'/images/availability/'; } else { $imagePath = '/components/com_virtuemart/assets/images/availability/'; } $this->assignRef('imagePath', $imagePath); shopFunctions::checkSafePath(); $this -> checkVmUserVendor(); parent::display($tpl); } private function checkVmUserVendor(){ $db = JFactory::getDBO(); $multix = Vmconfig::get('multix','none'); $q = 'select * from #__virtuemart_vmusers where user_is_vendor = 1';// and virtuemart_vendor_id '.$vendorWhere.' limit 1'; $db->setQuery($q); $r = $db->loadAssocList(); if (empty($r)){ vmWarn('Your Virtuemart installation contains an error: No user as marked as vendor. Please fix this in your phpMyAdmin and set #__virtuemart_vmusers.user_is_vendor = 1 and #__virtuemart_vmusers.virtuemart_vendor_id = 1 to one of your administrator users. Please update all users to be associated with virtuemart_vendor_id 1.'); } else { if($multix=='none' and count($r)!=1){ vmWarn('You are using single vendor mode, but it seems more than one user is set as vendor'); } foreach($r as $entry){ if(empty($entry['virtuemart_vendor_id'])){ vmWarn('The user with virtuemart_user_id = '.$entry['virtuemart_user_id'].' is set as vendor, but has no referencing vendorId.'); } } } } } // pure php no closing tag