function getLineChartAmchart($xlabels, $series, $width = NULL, $height = NULL, $unit = '', $unit_position = 'right', $frequency = '', $title = '')
 {
     loadModuleFile('charts/includes/line_chart_amchart.php');
     loadModuleFile('charts/includes/line_chart.php');
     $line_chart = new line_chart();
     $line_chart->set_xlabels($xlabels);
     $line_chart->set_series_data($series);
     $chart = new line_chart_amchart();
     $chart->set_frequency($frequency);
     $chart->set_line_chart($line_chart);
     $chart->setTitle($title);
     if ($height !== NULL) {
         $chart->set_height($height);
     }
     if ($width !== NULL) {
         $chart->set_width($width);
     }
     $chart->set_unit($unit);
     $chart->set_unit_position($unit_position);
     $res = $chart->output();
     return $res;
 }
     *
     * @param int $sid
     */
    function checkIfSetIsUsed($sid)
    {
        $result = execQuery("SELECT_TAXES_WHICH_USE_SET", array("sid" => $sid));
        if (count($result) > 0) {
            return true;
        }
        return false;
    }
    //------------------------------------------------
    //              PRIVATE DECLARATION
    //------------------------------------------------
    /**#@+
     * @access private
     */
    var $TaxNamesList;
    var $CostList;
    /**
     * Error data, e.g. to be passed for mapping from Action to View.
     */
    var $ErrorData;
}
global $zone;
if ($zone == 'AdminZone') {
    loadModuleFile('taxes/includes/taxes_api_az.php');
    eval("class Taxes extends Taxes_AZ{};");
} else {
    eval("class Taxes extends TaxesBase{};");
}
Example #3
0
/***********************************************************************
| Avactis (TM) Shopping Cart software developed by HBWSL.
| http://www.avactis.com
| -----------------------------------------------------------------------
| All source codes & content (c) Copyright 2004-2010, HBWSL.
| unless specifically noted otherwise.
| =============================================
| This source code is released under the Avactis License Agreement.
| The latest version of this license can be found here:
| http://www.avactis.com/license.php
|
| By using this software, you acknowledge having read this license agreement
| and agree to be bound thereby.
|
 ***********************************************************************/
loadModuleFile('cms/cms_api.php');
// ---------------------------
// Select queries
// ---------------------------
class SELECT_CMS_PAGE_NAMES_BY_PARENT_ID extends DB_Select
{
    function initQuery($params)
    {
        $tables = CMS::getTables();
        $pt = $tables['cms_pages']['columns'];
        $this->addSelectField($pt['page_id']);
        $this->addSelectField($pt['page_index']);
        $this->setMultiLangAlias('_name', 'cms_pages', $pt['name'], $pt['page_id'], 'CMS');
        $this->addSelectField($this->getMultiLangAlias('_name'), 'name');
        $this->WhereValue($pt['parent_id'], DB_EQ, $params['parent_id']);
        if (isset($params['zone']) && $params['zone'] == 'CZ') {
/***********************************************************************
| Avactis (TM) Shopping Cart software developed by HBWSL.
| http://www.avactis.com
| -----------------------------------------------------------------------
| All source codes & content (c) Copyright 2004-2010, HBWSL.
| unless specifically noted otherwise.
| =============================================
| This source code is released under the Avactis License Agreement.
| The latest version of this license can be found here:
| http://www.avactis.com/license.php
|
| By using this software, you acknowledge having read this license agreement
| and agree to be bound thereby.
|
 ***********************************************************************/
loadModuleFile('catalog/catalog_api.php');
/**
 * The class gives complete information about category.
 * To get this information, it's necessary to create the class object
 * and invoke the method getCategoryTagValue, specifying the tag.
 *
 * The class interface:
 * CCategoryInfo::CCategoryInfo($cid, $localized = CATEGORYINFO_DEFAULT_LOCALIZED_MODE)
 * CCategoryInfo::turnOnDebugMode()
 * CCategoryInfo::turnOffDebugMode()
 * CCategoryInfo::getCategoryTagValue($tag, $localized = CATEGORYINFO_DEFAULT_LOCALIZED_MODE)
 *
 * Example of usage:
 * <code>
 *  $category = new CCategoryInfo(8);
 *  $category_name = $category->getCategoryTagValue('name');
/***********************************************************************
| Avactis (TM) Shopping Cart software developed by HBWSL.
| http://www.avactis.com
| -----------------------------------------------------------------------
| All source codes & content (c) Copyright 2004-2010, HBWSL.
| unless specifically noted otherwise.
| =============================================
| This source code is released under the Avactis License Agreement.
| The latest version of this license can be found here:
| http://www.avactis.com/license.php
|
| By using this software, you acknowledge having read this license agreement
| and agree to be bound thereby.
|
 ***********************************************************************/
loadModuleFile('catalog/abstract/product_list_filter.php');
/**
 * The size of the selection from the DB on each relevance level.
 */
define('PSF_PRODUCT_SEARCH_RESULT_LIMIT', 300);
/**
 * @package Catalog
 * @author Sergey Kulitsky
 *
 */
class SetSearchProductFormFilter extends AjaxAction
{
    function SetSearchProductFormFilter()
    {
        $this->overflow = false;
    }
| Avactis (TM) Shopping Cart software developed by HBWSL.
| http://www.avactis.com
| -----------------------------------------------------------------------
| All source codes & content (c) Copyright 2004-2010, HBWSL.
| unless specifically noted otherwise.
| =============================================
| This source code is released under the Avactis License Agreement.
| The latest version of this license can be found here:
| http://www.avactis.com/license.php
|
| By using this software, you acknowledge having read this license agreement
| and agree to be bound thereby.
|
 ***********************************************************************/
loadModuleFile('catalog/catalog_api.php');
loadModuleFile('catalog/abstract/product_class.php');
/**
 * The words in the searching request shorter than PRODUCT_SEARCH_MIN_WORD_LENGTH
 * are skipped.
 */
define('PRODUCT_SEARCH_MIN_WORD_LENGTH', 3);
/**
 * The words in the searching request longer than PRODUCT_SEARCH_MAX_WORD_LENGTH
 * are skipped.
 */
define('PRODUCT_SEARCH_MAX_WORD_LENGTH', 20);
/**
 * The number of the first words in the searching request, which will be used
 * in the search. The rest of the words are skipped.
 */
define('PRODUCT_SEARCH_MAX_WORD_NUMBER', 10);
Example #7
0
/***********************************************************************
| Avactis (TM) Shopping Cart software developed by HBWSL.
| http://www.avactis.com
| -----------------------------------------------------------------------
| All source codes & content (c) Copyright 2004-2010, HBWSL.
| unless specifically noted otherwise.
| =============================================
| This source code is released under the Avactis License Agreement.
| The latest version of this license can be found here:
| http://www.avactis.com/license.php
|
| By using this software, you acknowledge having read this license agreement
| and agree to be bound thereby.
|
 ***********************************************************************/
loadModuleFile('currency_converter/currency_converter_api.php');
class SELECT_CURRENT_GROUP_ID extends DB_Select
{
    function initQuery($params)
    {
        $tables = Customer_Account::getTables();
        $t_ca_customers = $tables['ca_customers']['columns'];
        $this->addSelectField($t_ca_customers['group_id'], 'group_id');
        $this->WhereValue($t_ca_customers['customer_account'], DB_EQ, $params['customer_account']);
    }
}
class SELECT_CUSTOMER_ACCOUNT_GROUPS extends DB_Select
{
    function initQuery($params)
    {
        $tables = Customer_Account::getTables();
/***********************************************************************
| Avactis (TM) Shopping Cart software developed by HBWSL.
| http://www.avactis.com
| -----------------------------------------------------------------------
| All source codes & content (c) Copyright 2004-2010, HBWSL.
| unless specifically noted otherwise.
| =============================================
| This source code is released under the Avactis License Agreement.
| The latest version of this license can be found here:
| http://www.avactis.com/license.php
|
| By using this software, you acknowledge having read this license agreement
| and agree to be bound thereby.
|
 ***********************************************************************/
loadModuleFile('catalog/abstract/product_info.php');
/**
 * A clone of ProductInfo class
 * used to show its own set of templates
 * since mechanism of aliases does not work for ProductInfo
 *
 * @package Catalog
 * @access  public
 * @author Sergey E. Kulitsky
 */
class CustomerReviewsProductInfo extends Catalog_ProdInfo_Base
{
    //------------------------------------------------
    //               PUBLIC DECLARATION
    //------------------------------------------------
    /**#@+
Example #9
0
| -----------------------------------------------------------------------
| All source codes & content (c) Copyright 2004-2010, HBWSL.
| unless specifically noted otherwise.
| =============================================
| This source code is released under the Avactis License Agreement.
| The latest version of this license can be found here:
| http://www.avactis.com/license.php
|
| By using this software, you acknowledge having read this license agreement
| and agree to be bound thereby.
|
 ***********************************************************************/
loadModuleFile('subscriptions/subscriptions_api.php');
loadModuleFile('customer_account/customer_account_api.php');
loadModuleFile('newsletter/newsletter_api.php');
loadModuleFile('checkout/checkout_api.php');
class SUBSCR_GET_SUBSCRIPTION_EMAILS extends DB_Select
{
    function initQuery($params)
    {
        $stables = Subscriptions::getTables();
        $atable = 'email_address';
        $acolumns = $stables[$atable]['columns'];
        $this->addSelectField($acolumns['email']);
        $this->addSelectField($acolumns['lng']);
        if (isset($params['account'])) {
            $ctables = Customer_Account::getTables();
            $ctable = 'ca_customers';
            $ccolumns =& $ctables[$ctable]['columns'];
            $this->WhereField($acolumns['customer_id'], DB_EQ, $ccolumns['customer_id']);
            $this->WhereAND();
| unless specifically noted otherwise.
| =============================================
| This source code is released under the Avactis License Agreement.
| The latest version of this license can be found here:
| http://www.avactis.com/license.php
|
| By using this software, you acknowledge having read this license agreement
| and agree to be bound thereby.
|
 ***********************************************************************/
/**
 * @package CustomerAccount
 * @author Egor V. Derevyankin
 *
 */
loadModuleFile('customer_account/views/customer_order_info_cz.php');
class OrderInvoice extends OrderInfo
{
    function getTemplateFormat()
    {
        $format = array('layout-file' => 'customer-account-order-invoice.ini', 'files' => array('Container' => TEMPLATE_FILE_SIMPLE, 'AccessDenied' => TEMPLATE_FILE_SIMPLE, 'GroupHeader' => TEMPLATE_FILE_SIMPLE, 'GroupField' => TEMPLATE_FILE_SIMPLE, 'ProductsContainer' => TEMPLATE_FILE_SIMPLE, 'OrderedProduct' => TEMPLATE_FILE_SIMPLE, 'PriceItem' => TEMPLATE_FILE_SIMPLE, 'ProductOptionsContainer' => TEMPLATE_FILE_SIMPLE, 'ProductOptionsItem' => TEMPLATE_FILE_SIMPLE), 'options' => array());
        return $format;
    }
    function OrderInvoice()
    {
        global $application;
        #check if fatal errors of the block tag exist
        $this->NoView = false;
        if ($application->issetBlockTagFatalErrors("OrderInvoice")) {
            $this->NoView = true;
        }
Example #11
0
<?php

/***********************************************************************
| Avactis (TM) Shopping Cart software developed by HBWSL.
| http://www.avactis.com
| -----------------------------------------------------------------------
| All source codes & content (c) Copyright 2004-2010, HBWSL.
| unless specifically noted otherwise.
| =============================================
| This source code is released under the Avactis License Agreement.
| The latest version of this license can be found here:
| http://www.avactis.com/license.php
|
| By using this software, you acknowledge having read this license agreement
| and agree to be bound thereby.
|
 ***********************************************************************/
loadModuleFile('users/users_api.php');
class USERS_GET_USER_PERMISSIONS extends DB_Select
{
    function initQuery($params)
    {
        $stables = Users::getTables();
        $atable = 'admin_permissions';
        $acolumns = $stables[$atable]['columns'];
        $this->addSelectField($acolumns['permission']);
        $this->addSelectField($acolumns['access_level']);
        $this->WhereValue($acolumns['admin_id'], DB_EQ, $params['admin_id']);
    }
}
Example #12
0
/***********************************************************************
| Avactis (TM) Shopping Cart software developed by HBWSL.
| http://www.avactis.com
| -----------------------------------------------------------------------
| All source codes & content (c) Copyright 2004-2010, HBWSL.
| unless specifically noted otherwise.
| =============================================
| This source code is released under the Avactis License Agreement.
| The latest version of this license can be found here:
| http://www.avactis.com/license.php
|
| By using this software, you acknowledge having read this license agreement
| and agree to be bound thereby.
|
 ***********************************************************************/
loadModuleFile('shipping_cost_calculator/shipping_cost_calculator_api.php');
class SELECT_SCC_FS_RULES extends DB_Select
{
    function initQuery($params)
    {
        $tables = Shipping_Cost_Calculator::getTables();
        $c = $tables['scc_fs_rules']['columns'];
        $this->addSelectTable('scc_fs_rules');
        $this->addSelectField($c['id'], 'id');
        $this->addSelectField($c['rule_name'], 'rule_name');
        $this->addSelectField($c['min_subtotal'], 'min_subtotal');
        $this->addSelectField($c['cats'], 'cats');
        $this->addSelectField($c['prods'], 'prods');
        $this->addSelectField($c['dirty_cart'], 'dirty_cart');
    }
}
Example #13
0
 /**
  * Initializes the session: e.g. retrieves session data from the database.
  */
 function start($sid = "")
 {
     global $zone, $application;
     $drop_session_cookie = false;
     if ($zone == "AdminZone") {
         ini_set("session.cookie_lifetime", 0);
         session_name("AZSESSID");
         if ($application->db->DB_isTableExists($application->getAppIni('DB_TABLE_PREFIX') . "settings") != null) {
             $duration_cfg = (int) modApiFunc("Settings", "getParamValue", "ADMIN_SESSION_DURATION", "ADM_SESSION_DURATION_VALUE");
         } else {
             $duration_cfg = 3600;
         }
         $ClientSessionLifetime = $duration_cfg;
     } else {
         if (isset($_COOKIE['save_session']) && $_COOKIE['save_session'] == "save") {
             if ($application->db->DB_isTableExists($application->getAppIni('DB_TABLE_PREFIX') . "settings") != null) {
                 $cz_duration_cfg = (int) modApiFunc("Settings", "getParamValue", "CUSTOMER_ACCOUNT_SETTINGS", "CUSTOMER_SESSION_DURATION_VALUE");
             } else {
                 $cz_duration_cfg = 3600 * 24 * 30;
                 //30 days
             }
             ini_set("session.cookie_lifetime", $cz_duration_cfg);
             ini_set("session.gc_maxlifetime", $cz_duration_cfg);
         } else {
             ini_set("session.cookie_lifetime", 0);
             #ini_set("session.gc_maxlifetime",  0);
             $drop_session_cookie = true;
         }
         session_name("CZSESSID");
     }
     if ($sid) {
         session_id($sid);
     }
     $session_save_handler = $application->getAppIni('SESSION_SAVE_HANDLER');
     if ($session_save_handler == 'DB') {
         // redefine session handler
         __set_session_db_handler();
     } elseif ($session_save_handler != 'PHP_INI') {
         ini_set("session.save_handler", $session_save_handler);
     }
     $session_save_path = $application->getAppIni('SESSION_SAVE_PATH');
     if ($session_save_path == 'AVACTIS_CACHE_DIR') {
         session_save_path($application->getAppIni("PATH_CACHE_DIR"));
     } elseif ($session_save_path != 'PHP_INI') {
         session_save_path($session_save_path);
     }
     session_start();
     global $application;
     $HTTP_URL = md5($application->getAppIni('HTTP_URL'));
     if (!isset($_COOKIE['HTTP_URL'])) {
         setcookie('HTTP_URL', $HTTP_URL, time());
     } elseif ($_COOKIE['HTTP_URL'] != $HTTP_URL) {
         setcookie('HTTP_URL', $HTTP_URL, time());
         session_destroy();
         if ($session_save_handler == 'DB') {
             // redefine session handler (http://bugs.php.net/bug.php?id=32330)
             // redefine session handler
             __set_session_db_handler();
         }
         session_start();
     }
     if ($zone == "CustomerZone") {
         $sess = session_get_cookie_params();
         if ($drop_session_cookie) {
             $t = 0;
         } else {
             $t = time() + $sess['lifetime'];
         }
         setcookie(session_name(), session_id(), $t, '/');
         if ($application->getCurrentProtocol() == 'http') {
             $temp_url = $application->getAppIni('SITE_HTTPS_URL');
         } else {
             $temp_url = $application->getAppIni('SITE_URL');
         }
         $temp_url = parse_url($temp_url);
         if (isset($temp_url['host'])) {
             setcookie(session_name(), session_id(), $t, '/', $temp_url['host']);
         }
     }
     //
     //                                   ,                                   .
     //        ,                   .
     //         ,                                ,                   .
     //                                                                  .
     //                          IP                             .
     //                                                                  .
     //                                                   .
     //
     $CURRENT_PRODUCT_VERSION = PRODUCT_VERSION;
     $current_hash = "";
     if ($zone != "AdminZone") {
         loadModuleFile('configuration/const.php');
         /*_use(dirname(__FILE__).DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'modules'.DIRECTORY_SEPARATOR.'configuration'.DIRECTORY_SEPARATOR.'configuration_api.php');
         
                     $tables = Configuration::getTables();
                     $ss = $tables['store_settings']['columns'];
         
                     $s = new DB_Select();
                     $s->addSelectTable('store_settings');
                     $s->addSelectValue('variable_value','value');
                     $s->WhereValue($ss['name'], DB_EQ, SYSCONFIG_CHECKOUT_FORM_HASH);
                     $v = $application->db->getDB_Result($s);
                     $current_hash = $v[0]['value'];*/
         $cache = CCacheFactory::getCache('hash');
         $current_hash = $cache->read(SYSCONFIG_CHECKOUT_FORM_HASH);
     }
     $current_ips = getClientIPs();
     if (!array_key_exists('PRODUCT_VERSION', $_SESSION) || $_SESSION['PRODUCT_VERSION'] != $CURRENT_PRODUCT_VERSION && $zone != "AdminZone" || (!array_key_exists(SYSCONFIG_CHECKOUT_FORM_HASH, $_SESSION) || $current_hash != $_SESSION[SYSCONFIG_CHECKOUT_FORM_HASH] && $zone != "AdminZone")) {
         if (!empty($_SESSION['CartContent']) && is_array($_SESSION['CartContent'])) {
             foreach ($_SESSION['CartContent'] as $cart_id => $cart_content) {
                 modApiFunc('Cart', 'removeGCfromDB', $cart_content['product_id']);
             }
         }
         //see this::session_clean1()
         session_unset();
         session_destroy();
         if ($session_save_handler == 'DB') {
             // redefine session handler (http://bugs.php.net/bug.php?id=32330)
             // redefine session handler
             __set_session_db_handler();
         }
         session_start();
     }
     $_SESSION['PRODUCT_VERSION'] = $CURRENT_PRODUCT_VERSION;
     $_SESSION[SYSCONFIG_CHECKOUT_FORM_HASH] = $current_hash;
     $_SESSION['REMOTE_ADDR'] = $current_ips;
     $_SESSION['HTTP_USER_AGENT'] = @$_SERVER['HTTP_USER_AGENT'];
     //
     foreach ($_SESSION as $key => $val) {
         $this->keyvalList[$key] = $val;
         //            $this->set($key, $val);
     }
     $this->started = TRUE;
     if ($zone == "AdminZone") {
         if (!$this->is_Set('ClientSessionLifetime')) {
             $this->set('ClientSessionLifetime', time());
         } else {
             $delta_time = time() - $this->get('ClientSessionLifetime');
             if ($delta_time > $ClientSessionLifetime && $ClientSessionLifetime != 0) {
                 $this->un_Set('currentUserID');
             }
             $this->set('ClientSessionLifetime', time());
         }
     }
 }
Example #14
0
/***********************************************************************
| Avactis (TM) Shopping Cart software developed by HBWSL.
| http://www.avactis.com
| -----------------------------------------------------------------------
| All source codes & content (c) Copyright 2004-2010, HBWSL.
| unless specifically noted otherwise.
| =============================================
| This source code is released under the Avactis License Agreement.
| The latest version of this license can be found here:
| http://www.avactis.com/license.php
|
| By using this software, you acknowledge having read this license agreement
| and agree to be bound thereby.
|
 ***********************************************************************/
loadModuleFile('eventstack/event_stack_api.php');
class SELECT_EVENTSTACK_NAME extends DB_select
{
    function initQuery($params)
    {
        $tables = EventStack::getTables();
        $tbl_events = $tables['eventstack_event_names']['columns'];
        $this->addSelectField($tbl_events['id_event_name'], 'id_event_name');
        $this->addSelectField($tbl_events['event_name'], 'event_name');
        if (isset($params['id_event_name'])) {
            $this->WhereValue($tbl_events['id_event_name'], DB_EQ, $params['id_event_name']);
        } elseif (isset($params['event_name'])) {
            $this->WhereValue($tbl_events['event_name'], DB_EQ, $params['event_name']);
        }
    }
}
Example #15
0
| unless specifically noted otherwise.
| =============================================
| This source code is released under the Avactis License Agreement.
| The latest version of this license can be found here:
| http://www.avactis.com/license.php
|
| By using this software, you acknowledge having read this license agreement
| and agree to be bound thereby.
|
 ***********************************************************************/
/**
 * @copyright Copyright &copy; 2005, HBWSL.
 * @package Error
 * @author ag
 */
loadModuleFile('error/views/error_view.php');
/**
 * A_Error is a view of errors or warnings in the Admin Zone.
 *
 * @package Error
 * @access public
 */
class A_Error extends Abstract_Error_View
{
    //------------------------------------------------
    //               PUBLIC DECLARATION
    //------------------------------------------------
    /**#@+
     * @access public
     */
    /**
Example #16
0
| Avactis (TM) Shopping Cart software developed by HBWSL.
| http://www.avactis.com
| -----------------------------------------------------------------------
| All source codes & content (c) Copyright 2004-2010, HBWSL.
| unless specifically noted otherwise.
| =============================================
| This source code is released under the Avactis License Agreement.
| The latest version of this license can be found here:
| http://www.avactis.com/license.php
|
| By using this software, you acknowledge having read this license agreement
| and agree to be bound thereby.
|
 ***********************************************************************/
loadModuleFile('modules_manager/abstract/module_info.php');
loadModuleFile('modules_manager/dbqueries/common.php');
/**
 * Modules_Manager module.
 * This module is used to control all modules in the system. This module only
 * contains info on other modules. This module only helps to load other modules.
 *
 * @package Modules_Manager
 * @author Alexey Kolesnikov
 */
class Modules_Manager
{
    //------------------------------------------------
    //               PUBLIC DECLARATION
    //------------------------------------------------
    /**#@+
     * @access public
| -----------------------------------------------------------------------
| All source codes & content (c) Copyright 2004-2010, HBWSL.
| unless specifically noted otherwise.
| =============================================
| This source code is released under the Avactis License Agreement.
| The latest version of this license can be found here:
| http://www.avactis.com/license.php
|
| By using this software, you acknowledge having read this license agreement
| and agree to be bound thereby.
|
 ***********************************************************************/
loadModuleFile('catalog/abstract/catalog_search.php');
loadModuleFile('catalog/abstract/product_class.php');
loadModuleFile('catalog/abstract/category_class.php');
loadModuleFile('catalog/abstract/product_list_tag_settings.php');
/**
 * Catalog module.
 * It works with inventory.
 *
 * @package Catalog
 * @author Alexander Girin
 * @access public
 */
class Catalog
{
    //------------------------------------------------
    //               PUBLIC DECLARATION
    //------------------------------------------------
    /**#@+
     * @access public
/***********************************************************************
| Avactis (TM) Shopping Cart software developed by HBWSL.
| http://www.avactis.com
| -----------------------------------------------------------------------
| All source codes & content (c) Copyright 2004-2010, HBWSL.
| unless specifically noted otherwise.
| =============================================
| This source code is released under the Avactis License Agreement.
| The latest version of this license can be found here:
| http://www.avactis.com/license.php
|
| By using this software, you acknowledge having read this license agreement
| and agree to be bound thereby.
|
 ***********************************************************************/
loadModuleFile('gift_certificate/abstract/gift_certificate_classes.php');
/**
 * GiftCertificate module
 *
 * @author Alexey Florinsky
 * @version $Id$
 * @package GiftCertificate
 */
class GiftCertificateApi
{
    function GiftCertificateApi()
    {
    }
    function getImageInfo()
    {
        global $application;
/***********************************************************************
| Avactis (TM) Shopping Cart software developed by HBWSL.
| http://www.avactis.com
| -----------------------------------------------------------------------
| All source codes & content (c) Copyright 2004-2010, HBWSL.
| unless specifically noted otherwise.
| =============================================
| This source code is released under the Avactis License Agreement.
| The latest version of this license can be found here:
| http://www.avactis.com/license.php
|
| By using this software, you acknowledge having read this license agreement
| and agree to be bound thereby.
|
 ***********************************************************************/
loadModuleFile('notifications/abstract/notification_content.php');
/**
 *
 * @package Notifications
 * @author Alexander Girin
 */
class DownloadableProducts
{
    //------------------------------------------------
    //               PUBLIC DECLARATION
    //------------------------------------------------
    /**#@+
     * @access public
     */
    /**
     * DownloadableProducts constructor.
| Avactis (TM) Shopping Cart software developed by HBWSL.
| http://www.avactis.com
| -----------------------------------------------------------------------
| All source codes & content (c) Copyright 2004-2010, HBWSL.
| unless specifically noted otherwise.
| =============================================
| This source code is released under the Avactis License Agreement.
| The latest version of this license can be found here:
| http://www.avactis.com/license.php
|
| By using this software, you acknowledge having read this license agreement
| and agree to be bound thereby.
|
 ***********************************************************************/
loadModuleFile('reports/reports_api.php');
loadModuleFile('reports/abstract/report_data_collector.php');
/**
 * CVisitorStatisticCollector class
 *
 * @author Alexey Florinsky
 * @version $Id$
 * @package Reports
 */
class CVisitorStatisticCollector extends CReportDataCollector
{
    function CVisitorStatisticCollector()
    {
        $this->__max_minutes_last_visit = (int) modApiFunc('Settings', 'getParamValue', 'REPORTS_AND_STATISTICS', 'VISITOR_SESSION_DURATION');
    }
    function getTimestamp()
    {
| Avactis (TM) Shopping Cart software developed by HBWSL.
| http://www.avactis.com
| -----------------------------------------------------------------------
| All source codes & content (c) Copyright 2004-2010, HBWSL.
| unless specifically noted otherwise.
| =============================================
| This source code is released under the Avactis License Agreement.
| The latest version of this license can be found here:
| http://www.avactis.com/license.php
|
| By using this software, you acknowledge having read this license agreement
| and agree to be bound thereby.
|
 ***********************************************************************/
_use(dirname(__FILE__) . '/add_category_info_action.php');
loadModuleFile('catalog/abstract/category_class.php');
/**
 * Catalog module.
 * This action is responsible for adding a new category.
 *
 * @package Catalog
 * @access  public
 * @author  Alexander Girin
 */
class UpdateCategoryInfo extends AddCategoryInfo
{
    //------------------------------------------------
    //               PUBLIC DECLARATION
    //------------------------------------------------
    /**#@+
     * @access public
| =============================================
| This source code is released under the Avactis License Agreement.
| The latest version of this license can be found here:
| http://www.avactis.com/license.php
|
| By using this software, you acknowledge having read this license agreement
| and agree to be bound thereby.
|
 ***********************************************************************/
/**
 * Checkout module.
 *
 * @package Checkout
 * @access  public
 */
loadModuleFile('checkout/views/checkout-order-info-az.php');
class OrderInvoice extends OrderInfo
{
    function OrderInvoice()
    {
        parent::OrderInfo();
        $this->isInfo = false;
        $this->template_folder = "order-invoice";
        $this->initFormData();
    }
    function output()
    {
        global $application;
        $request =& $application->getInstance('Request');
        $this->_print = $request->getValueByKey('do_print');
        $application->registerAttributes(array('PersonInfoShipping', 'PersonInfoBilling', 'PrintCommand'));
/***********************************************************************
| Avactis (TM) Shopping Cart software developed by HBWSL.
| http://www.avactis.com
| -----------------------------------------------------------------------
| All source codes & content (c) Copyright 2004-2010, HBWSL.
| unless specifically noted otherwise.
| =============================================
| This source code is released under the Avactis License Agreement.
| The latest version of this license can be found here:
| http://www.avactis.com/license.php
|
| By using this software, you acknowledge having read this license agreement
| and agree to be bound thereby.
|
 ***********************************************************************/
loadModuleFile('customer_reviews/abstract/product_review_info.php');
/**
 * Customer_Reviews class
 *
 * Common API class for customer reviews.
 *
 * @author Sergey Kulitsky
 * @version $Id: customer_reviews_api.php xxxx 2009-03-19 13:10:47Z azrael $
 * @package Customer Reviews
 */
class Customer_Reviews
{
    function Customer_Reviews()
    {
    }
    function install()
Example #24
0
/***********************************************************************
| Avactis (TM) Shopping Cart software developed by HBWSL.
| http://www.avactis.com
| -----------------------------------------------------------------------
| All source codes & content (c) Copyright 2004-2010, HBWSL.
| unless specifically noted otherwise.
| =============================================
| This source code is released under the Avactis License Agreement.
| The latest version of this license can be found here:
| http://www.avactis.com/license.php
|
| By using this software, you acknowledge having read this license agreement
| and agree to be bound thereby.
|
 ***********************************************************************/
loadModuleFile('reports/reports_api.php');
/**
 *                                                   ,
 *
 *                           .
 */
/*abstract*/
class DB_Select_By_Datetime_Period extends DB_Select
{
    function initQuery($discontinuity, $from, $to, $datetime_field)
    {
        if ($discontinuity == DATETIME_PERIOD_DISCONTINUITY_YEAR) {
            $this->addSelectField('YEAR(' . $datetime_field . ')', 'datetime_year');
            $this->SelectGroup('datetime_year');
            $this->SelectOrder('datetime_year', 'ASC');
        } else {
/***********************************************************************
| Avactis (TM) Shopping Cart software developed by HBWSL.
| http://www.avactis.com
| -----------------------------------------------------------------------
| All source codes & content (c) Copyright 2004-2010, HBWSL.
| unless specifically noted otherwise.
| =============================================
| This source code is released under the Avactis License Agreement.
| The latest version of this license can be found here:
| http://www.avactis.com/license.php
|
| By using this software, you acknowledge having read this license agreement
| and agree to be bound thereby.
|
 ***********************************************************************/
loadModuleFile('reports/abstract/report_view.php');
class ReportOrdersPerVisitsRatesByDay extends CReportView
{
    function ReportOrdersPerVisitsRatesByDay()
    {
        parent::CReportView();
        $this->__render_class_name = 'CReportRenderStockChart';
        $this->__source_class_name = 'COrdersVisitorsCartsStatisticsByDays';
        $this->__render_settings_class_name = 'CReportRenderSettings';
    }
    function getDatetimePeriodSelectorMinDiscontinuity()
    {
        return DATETIME_PERIOD_DISCONTINUITY_DAY;
    }
    function getReportName()
    {
| Avactis (TM) Shopping Cart software developed by HBWSL.
| http://www.avactis.com
| -----------------------------------------------------------------------
| All source codes & content (c) Copyright 2004-2010, HBWSL.
| unless specifically noted otherwise.
| =============================================
| This source code is released under the Avactis License Agreement.
| The latest version of this license can be found here:
| http://www.avactis.com/license.php
|
| By using this software, you acknowledge having read this license agreement
| and agree to be bound thereby.
|
 ***********************************************************************/
loadModuleFile('reports/reports_api.php');
loadModuleFile('reports/abstract/report_data_source.php');
/**
 * COrderTotalStatisticsByDatetimePeriod abstract class
 *
 *                     -                                                    .
 *                                ( . .               )                 :
 * - order_total_sum (         main store currency)
 * - order_qty
 * - datetime_year
 * - datetime_month (                                                 )
 * - datetime_day (                                                 )
 *
 *            -                          .
 *
 */
class COrderTotalStatisticsByDatetimePeriod extends CReportDataSource
/***********************************************************************
| Avactis (TM) Shopping Cart software developed by HBWSL.
| http://www.avactis.com
| -----------------------------------------------------------------------
| All source codes & content (c) Copyright 2004-2010, HBWSL.
| unless specifically noted otherwise.
| =============================================
| This source code is released under the Avactis License Agreement.
| The latest version of this license can be found here:
| http://www.avactis.com/license.php
|
| By using this software, you acknowledge having read this license agreement
| and agree to be bound thereby.
|
 ***********************************************************************/
loadModuleFile('checkout/abstract/person_info_input_cz.php');
/**
 * Checkout BankAccount-Info-Input view
 *
 * @package Checkout
 * @author Vadim Lyalikov
 */
class CheckoutBankAccountInfoInput extends Checkout_PersonInfo_InputCZ_Base
{
    //------------------------------------------------
    //               PUBLIC DECLARATION
    //------------------------------------------------
    /**#@+
     * @access public
     */
    /**
/***********************************************************************
| Avactis (TM) Shopping Cart software developed by HBWSL.
| http://www.avactis.com
| -----------------------------------------------------------------------
| All source codes & content (c) Copyright 2004-2010, HBWSL.
| unless specifically noted otherwise.
| =============================================
| This source code is released under the Avactis License Agreement.
| The latest version of this license can be found here:
| http://www.avactis.com/license.php
|
| By using this software, you acknowledge having read this license agreement
| and agree to be bound thereby.
|
 ***********************************************************************/
loadModuleFile('subscriptions/abstract/subscribe_cz.php');
/**
 * @package Subscriptions
 * @author
 *
 */
class SubscribeFormProfile extends SubscribeForm_Base
{
    function SubscribeFormProfile()
    {
        $this->ini_section = 'SubscribeFormProfile';
        $account = modApiFunc('Customer_Account', 'getCurrentSignedCustomer');
        $this->emails = modApiFunc('Subscriptions', 'getCustomerSubscriptionEmails', $account);
        $this->SubscribeForm_Base();
    }
}
       'payment-method'   => array('isMet' => false, 'validatedData' => array())
       );
       */
    var $order_search_filter = array();
    var $customer_search_filter = array();
    /**
     * View, which is responsible for editing the current selected
     * Payment module.
     */
    var $CurrentPaymentModuleSettingsViewName = NULL;
    var $CurrentPaymentShippingModuleSettingsUID = NULL;
    /**
     * Some HTML code, to be viewed, that came as answer form the payment
     * gateway.
     */
    var $CustomPaymentGatewayPageContents = NULL;
    /**
     * View, which is responsible for editting the current selected
     * Shipping module.
     */
    var $CurrentShippingModuleSettingsViewName = NULL;
    var $MessageResources;
    var $DeleteOrdersFlag;
}
global $zone;
if ($zone == 'AdminZone') {
    loadModuleFile('checkout/includes/checkout_api_az.php');
    eval("class Checkout extends Checkout_AZ{};");
} else {
    eval("class Checkout extends CheckoutBase{};");
}
/***********************************************************************
| Avactis (TM) Shopping Cart software developed by HBWSL.
| http://www.avactis.com
| -----------------------------------------------------------------------
| All source codes & content (c) Copyright 2004-2010, HBWSL.
| unless specifically noted otherwise.
| =============================================
| This source code is released under the Avactis License Agreement.
| The latest version of this license can be found here:
| http://www.avactis.com/license.php
|
| By using this software, you acknowledge having read this license agreement
| and agree to be bound thereby.
|
 ***********************************************************************/
loadModuleFile('customer_reviews/customer_reviews_api.php');
/**
 * @package Customer Reviews
 * @author Sergey E. Kulitsky
 */
class CProductReviewInfo
{
    function CProductReviewInfo($pid)
    {
        $this->_productid_invalid = false;
        if ($pid == null || !is_numeric($pid) || !modApiFunc('Catalog', 'isCorrectProductId', $pid)) {
            $this->_productid_invalid = true;
        }
        $this->_productid = $pid;
        $this->_settings['enable'] = modApiFunc('Settings', 'getParamValue', 'CUSTOMER_REVIEWS', 'CUSTOMER_REVIEWS_ENABLE');
        $this->_settings['viewing'] = modApiFunc('Settings', 'getParamValue', 'CUSTOMER_REVIEWS', 'CUSTOMER_REVIEWS_VIEWING');