Esempio n. 1
0
 function initialize()
 {
     global $osC_Session;
     $data = array();
     foreach (osC_Template::getTemplates() as $template) {
         $data[] = array('id' => $template['code'], 'text' => $template['title']);
     }
     if (sizeof($data) > 1) {
         $hidden_get_variables = '';
         foreach ($_GET as $key => $value) {
             if ($key != 'template' && $key != $osC_Session->getName() && $key != 'x' && $key != 'y') {
                 $hidden_get_variables .= osc_draw_hidden_field($key, $value);
             }
         }
         $this->_content = '<form name="templates" action="' . osc_href_link(basename($_SERVER['SCRIPT_FILENAME']), null, 'AUTO', false) . '" method="get">' . $hidden_get_variables . osc_draw_pull_down_menu('template', $data, $_SESSION['template']['code'], 'onchange="this.form.submit();" style="width: 100%"') . osc_draw_hidden_session_id_field() . '</form>';
     }
 }
Esempio n. 2
0
<?php

/*
  $Id: checkout.php $
  TomatoCart Open Source Shopping Cart Solutions
  http://www.tomatocart.com

  Copyright (c) 2009 Wuxi Elootec Technology Co., Ltd;  Copyright (c) 2006 osCommerce

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License v2 (1991)
  as published by the Free Software Foundation.
*/
$_SERVER['SCRIPT_FILENAME'] = __FILE__;
require 'includes/application_top.php';
$osC_NavigationHistory->setSnapshot();
$osC_Language->load('checkout');
if ($osC_Services->isStarted('breadcrumb')) {
    $breadcrumb->add($osC_Language->get('breadcrumb_checkout'), osc_href_link(FILENAME_CHECKOUT, null, 'SSL'));
}
$osC_Template = osC_Template::setup('cart');
require 'templates/' . $osC_Template->getCode() . '/index.php';
require 'includes/application_bottom.php';
Esempio n. 3
0
<?php

/*
  $Id: info.php $
  TomatoCart Open Source Shopping Cart Solutions
  http://www.tomatocart.com

  Copyright (c) 2009 Wuxi Elootec Technology Co., Ltd;  Copyright (c) 2005 osCommerce

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License v2 (1991)
  as published by the Free Software Foundation.
*/
$_SERVER['SCRIPT_FILENAME'] = __FILE__;
require 'includes/application_top.php';
$osC_Language->load('info');
$osC_Template = osC_Template::setup('info');
require 'templates/' . $osC_Template->getCode() . '/index.php';
require 'includes/application_bottom.php';
<?php

/*
  $Id: search.php $
  TomatoCart Open Source Shopping Cart Solutions
  http://www.tomatocart.com

  Copyright (c) 2009 Wuxi Elootec Technology Co., Ltd;  Copyright (c) 2005 osCommerce

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License v2 (1991)
  as published by the Free Software Foundation.
*/
$_SERVER['SCRIPT_FILENAME'] = __FILE__;
require 'includes/application_top.php';
$osC_Language->load('search');
if ($osC_Services->isStarted('breadcrumb')) {
    $breadcrumb->add($osC_Language->get('breadcrumb_search'), osc_href_link(FILENAME_SEARCH));
}
$osC_Template = osC_Template::setup('search');
require 'templates/' . $osC_Template->getCode() . '/index.php';
require 'includes/application_bottom.php';
Esempio n. 5
0
<?php

/*
  $Id$

  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com

  Copyright (c) 2005 osCommerce

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License v2 (1991)
  as published by the Free Software Foundation.
*/
$_SERVER['SCRIPT_FILENAME'] = __FILE__;
require 'includes/application_top.php';
$osC_Language->load('index');
$osC_Template = osC_Template::setup('index');
require 'templates/' . $osC_Template->getCode() . '.php';
require 'includes/application_bottom.php';
Esempio n. 6
0
<?php

/*
  $Id: index.php 208 2005-09-26 23:08:58 +0200 (Mo, 26 Sep 2005) hpdl $

  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com

  Copyright (c) 2005 osCommerce

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License v2 (1991)
  as published by the Free Software Foundation.
*/
$_SERVER['SCRIPT_FILENAME'] = __FILE__;
require 'includes/application_top.php';
$osC_Language->load('products');
$osC_Template = osC_Template::setup('products');
require 'templates/' . $osC_Template->getCode() . '.php';
require 'includes/application_bottom.php';
Esempio n. 7
0
/*
  $Id$

  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com

  Copyright (c) 2006 osCommerce

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License v2 (1991)
  as published by the Free Software Foundation.
*/
$_SERVER['SCRIPT_FILENAME'] = __FILE__;
require 'includes/application_top.php';
if ($osC_Customer->isLoggedOn() === false) {
    if (!empty($_GET)) {
        $first_array = array_slice($_GET, 0, 1);
    }
    if (empty($_GET) || !empty($_GET) && !in_array(osc_sanitize_string(basename(key($first_array))), array('login', 'create', 'password_forgotten'))) {
        $osC_NavigationHistory->setSnapshot();
        osc_redirect(osc_href_link(FILENAME_ACCOUNT, 'login', 'SSL'));
    }
}
$osC_Language->load('account');
if ($osC_Services->isStarted('breadcrumb')) {
    $osC_Breadcrumb->add($osC_Language->get('breadcrumb_my_account'), osc_href_link(FILENAME_ACCOUNT, null, 'SSL'));
}
$osC_Template = osC_Template::setup('account');
require 'templates/' . $osC_Template->getCode() . '.php';
require 'includes/application_bottom.php';