Пример #1
0
<?php

/**
 * osCommerce Online Merchant
 *
 * @copyright (c) 2016 osCommerce; https://www.oscommerce.com
 * @license MIT; https://www.oscommerce.com/license/mit.txt
 */
use OSC\OM\HTML;
use OSC\OM\OSCOM;
require 'includes/application_top.php';
if (OSCOM::hasSitePage()) {
    if (OSCOM::isRPC() === false) {
        $page_file = OSCOM::getSitePageFile();
        if (empty($page_file) || !is_file($page_file)) {
            $page_file = OSCOM::getConfig('dir_root') . 'includes/error_documents/404.php';
        }
        if (OSCOM::useSiteTemplateWithPageFile()) {
            include $oscTemplate->getFile('template_top.php');
        }
        include $page_file;
        if (OSCOM::useSiteTemplateWithPageFile()) {
            include $oscTemplate->getFile('template_bottom.php');
        }
    }
    goto main_sub3;
}
// the following cPath references come from application_top.php
$category_depth = 'top';
if (isset($cPath) && tep_not_null($cPath)) {
    $Qcheck = $OSCOM_Db->prepare('select products_id from :table_products_to_categories where categories_id = :categories_id limit 1');