Example #1
0
<?php

/*
  $Id: desktop.php $
  TomatoCart Open Source Shopping Cart Solutions
  http://www.tomatocart.com
  http://www.tomatoshop.ir  Persian Tomatocart v1.1.8.6 / Khordad 1394
  Copyright (c) 2009 Wuxi Elootec Technology Co., Ltd

  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.
*/
require 'includes/ext_config.php';
require 'includes/classes/json.php';
$toC_Json = new toC_Json();
if (!isset($_SESSION['admin'])) {
    require 'templates/default/login/login.php';
    exit;
}
//enable the IE compatible mode
if (stripos($_SERVER['HTTP_USER_AGENT'], 'msie 9') !== false || stripos($_SERVER['HTTP_USER_AGENT'], 'msie 10') !== false || stripos($_SERVER['HTTP_USER_AGENT'], 'msie') !== false) {
    header('X-UA-Compatible: IE=7');
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html dir="ltr" xml:lang="<?php 
echo $osC_Language->getCode();
?>
" lang="<?php 
echo $osC_Language->getCode();
Example #2
0
<?php

/*
  $Id: json.php $
  TomatoCart Open Source Shopping Cart Solutions
  http://www.tomatocart.com
  http://www.tomatoshop.ir  Persian Tomatocart v1.1.8.6 / Khordad 1394
  Copyright (c) 2009 Wuxi Elootec Technology Co., Ltd

  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.
*/
require 'includes/application_top.php';
require 'includes/ext_config.php';
require 'includes/classes/json.php';
header('Expires: Thu, 01 Jan 1970 01:00:00 GMT');
header('Cache-Control: must-revalidate, cache, public');
header('Pragma: public');
//  header('Content-Type: application/json, charset=utf-8');
$dir_fs_www_root = dirname(__FILE__);
$toC_Json = new toC_Json();
$toC_Json->parse();