<?php
/* --------------------------------------------------------------
main.php 2012-01-12 gm
Gambio GmbH
http://www.gambio.de
Copyright (c) 2011 Gambio GmbH
Released under the GNU General Public License (Version 2)
[http://www.gnu.org/licenses/gpl-2.0.html]
--------------------------------------------------------------
based on:
(c) 2000-2001 The Exchange Project (earlier name of osCommerce)
(c) 2002-2003 osCommerce(Coding Standards); www.oscommerce.com
(c) 2005 XT-Commerce - community made shopping http://www.xt-commerce.com ($Id: main.php 1286 2005-10-07 10:10:18Z mz $)
Released under the GNU General Public License
---------------------------------------------------------------------------------------*/
class main_ORIGIN {
function main_ORIGIN () {
$this->SHIPPING = array();
// prefetch shipping status
$status_query=xtDBquery("SELECT
shipping_status_name,
shipping_status_image,shipping_status_id
FROM ".TABLE_SHIPPING_STATUS."
where language_id = '".(int)$_SESSION['languages_id']."'");
while ($status_data=xtc_db_fetch_array($status_query,true)) {
$this->SHIPPING[$status_data['shipping_status_id']]=array('name'=>$status_data['shipping_status_name'],'image'=>$status_data['shipping_status_image']);
}
}
function getShippingStatusName($id) {
return $this->SHIPPING[$id]['name'];
}
function getShippingStatusImage($id) {
if ($this->SHIPPING[$id]['image']) {
return 'admin/images/icons/'.$this->SHIPPING[$id]['image'];
} else {
return;
}
}
function getShippingLink($p_lightbox = false) {
if (SHOW_SHIPPING == 'true') {
// bof gm
return ' '.SHIPPING_EXCL.'<a class="gm_shipping_link lightbox_iframe" href="'. $this->gm_get_shipping_link($p_lightbox) .'" target="_blank" rel="nofollow"><span style="text-decoration:underline">'.SHIPPING_COSTS.'</span></a>';
// eof gm
}
}
function getTaxNotice() {
// no prices
if ($_SESSION['customers_status']['customers_status_show_price'] == 0)
return;
if ($_SESSION['customers_status']['customers_status_show_price_tax'] != 0) {
return TAX_INFO_INCL_GLOBAL;
}
// excl tax + tax at checkout
if ($_SESSION['customers_status']['customers_status_show_price_tax'] == 0 && $_SESSION['customers_status']['customers_status_add_tax_ot'] == 1) {
return TAX_INFO_ADD_GLOBAL;
}
// excl tax
if ($_SESSION['customers_status']['customers_status_show_price_tax'] == 0 && $_SESSION['customers_status']['customers_status_add_tax_ot'] == 0) {
return TAX_INFO_EXCL_GLOBAL;
}
return;
}
function getTaxInfo($tax_rate) {
// price incl tax
//GM_MOD:
if(gm_get_conf('TAX_INFO_TAX_FREE') == 'true') {
$tax_info = GM_TAX_FREE;
}
else {
if ($tax_rate > 0 && $_SESSION['customers_status']['customers_status_show_price_tax'] != 0) {
$tax_info = sprintf(TAX_INFO_INCL, $tax_rate.'%');
}
// excl tax + tax at checkout
if ($tax_rate > 0 && $_SESSION['customers_status']['customers_status_show_price_tax'] == 0 && $_SESSION['customers_status']['customers_status_add_tax_ot'] == 1) {
$tax_info = sprintf(TAX_INFO_ADD, $tax_rate.'%');
}
// excl tax
if ($tax_rate > 0 && $_SESSION['customers_status']['customers_status_show_price_tax'] == 0 && $_SESSION['customers_status']['customers_status_add_tax_ot'] == 0) {
$tax_info = sprintf(TAX_INFO_EXCL, $tax_rate.'%');
}
// do not display tax info
if(gm_get_conf('DISPLAY_TAX') == '0')
{
$tax_info = '';
}
}
return $tax_info;
}
function getShippingNotice() {
if (SHOW_SHIPPING == 'true') {
// bof gm
return ' '.SHIPPING_EXCL.'<a class="gm_shipping_link" href="' . $this->gm_get_shipping_link() . '"><span style="text-decoration:underline">'.SHIPPING_COSTS.'</span></a>';
// eof gm
}
return;
}
function getContentLink($coID,$text) {
return '<script language="javascript">document.write(\'<a href="javascript:newWin=void(window.open(\\\''.xtc_href_link(FILENAME_POPUP_CONTENT, 'coID='.$coID).'\\\', \\\'popup\\\', \\\'toolbar=0, scrollbars=yes, resizable=yes, height=400, width=400\\\'))"><font color="#ff0000">'.$text.'</font></a>\');</script><noscript><a href="'.xtc_href_link(FILENAME_POPUP_CONTENT, 'coID='.$coID).'"target=_blank"><font color="#ff0000">'.$text.'</font></a></noscript>';
}
/* bof gm */
function gm_get_shipping_link($p_lightbox = false) {
global $gmSEOBoost;
$gm_query = xtc_db_query('
SELECT
content_id,
content_group,
content_title
FROM
content_manager
WHERE
content_group = "' . SHIPPING_INFOS .'"
AND
languages_id = ' . $_SESSION['languages_id'] . '
');
$row = xtc_db_fetch_array($gm_query);
if($gmSEOBoost->boost_content && $p_lightbox == false) {
$gm_shipping_link = xtc_href_link($gmSEOBoost->get_boosted_content_url($row['content_id'], $_SESSION['languages_id']));
} else {
$SEF_parameter = '';
if (SEARCH_ENGINE_FRIENDLY_URLS == 'true') {
$SEF_parameter = '&content='.xtc_cleanName($row['content_title']);
}
$t_lightbox_get_param = '';
if(lightbox_mode == true)
{
$t_lightbox_get_param = '&lightbox_mode=1';
}
$gm_shipping_link = xtc_href_link(FILENAME_POPUP_CONTENT, 'coID='.$row['content_group'].$t_lightbox_get_param.$SEF_parameter);
}
return $gm_shipping_link;
}
/* eof gm */
}
?>
| nama | waktu | ukuran | owner | perm | aksi |
|---|---|---|---|---|---|
| .. | |||||
| Smarty/ | 2013-11-12 21:07 | 343.97 KB | 76129f60960:kunden | dxwrx-rx-r | |
| billsafe_2/ | 2013-11-12 21:07 | 21.38 KB | 76129f60960:kunden | dxwrx-rx-r | |
| afterbuy.php | 2013-11-12 21:06 | 31.51 KB | 76129f60960:kunden | -xw-x----- | |
| banktransfer_validation.php | 2013-11-12 21:06 | 82.12 KB | 76129f60960:kunden | -xw-x----- | |
| boxes.php | 2013-11-12 21:06 | 8.36 KB | 76129f60960:kunden | -xw-x----- | |
| boxes_old.php | 2013-11-12 21:06 | 366 B | 76129f60960:kunden | -xw-x----- | |
| breadcrumb.php | 2013-11-12 21:06 | 2.02 KB | 76129f60960:kunden | -xw-x----- | |
| cc_validation.php | 2013-11-12 21:06 | 3.42 KB | 76129f60960:kunden | -xw-x----- | |
| class.heidelpay.php | 2013-11-12 21:06 | 25.39 KB | 76129f60960:kunden | -xw-x----- | |
| class.inputfilter.php | 2013-11-12 21:06 | 13.32 KB | 76129f60960:kunden | -xw-x----- | |
| class.moneybookers.php | 2013-11-12 21:06 | 12.02 KB | 76129f60960:kunden | -xw-x----- | |
| class.phpmailer.php | 2013-11-12 21:06 | 46.01 KB | 76129f60960:kunden | -xw-x----- | |
| class.smtp.php | 2013-11-12 21:06 | 33.77 KB | 76129f60960:kunden | -xw-x----- | |
| http_client.php | 2013-11-12 21:06 | 13.32 KB | 76129f60960:kunden | -xw-x----- | |
| language.php | 2013-11-12 21:06 | 6.31 KB | 76129f60960:kunden | -xw-x----- | |
| main.php | 2013-11-12 21:06 | 5.58 KB | 76129f60960:kunden | -xw-x----- | |
| message_stack.php | 2013-11-12 21:06 | 3.29 KB | 76129f60960:kunden | -xw-x----- | |
| navigation_history.php | 2013-11-12 21:06 | 4.71 KB | 76129f60960:kunden | -xw-x----- | |
| order.php | 2013-11-12 21:06 | 29.55 KB | 76129f60960:kunden | -xw-x----- | |
| order_total.php | 2013-11-12 21:06 | 11.43 KB | 76129f60960:kunden | -xw-x----- | |
| payment.php | 2013-11-12 21:06 | 13.57 KB | 76129f60960:kunden | -xw-x----- | |
| paypal_checkout.php | 2013-11-12 21:06 | 72.2 KB | 76129f60960:kunden | -xw-x----- | |
| phpmailer.lang-de.php | 2013-11-12 21:06 | 1.21 KB | 76129f60960:kunden | -xw-x----- | |
| phpmailer.lang-en.php | 2013-11-12 21:06 | 1.04 KB | 76129f60960:kunden | -xw-x----- | |
| product.php | 2013-11-12 21:06 | 25.61 KB | 76129f60960:kunden | -xw-x----- | |
| sessions.php | 2013-11-12 21:06 | 13.23 KB | 76129f60960:kunden | -xw-x----- | |
| shipping.php | 2013-11-12 21:06 | 5.95 KB | 76129f60960:kunden | -xw-x----- | |
| shopping_cart.php | 2013-11-12 21:06 | 26.02 KB | 76129f60960:kunden | -xw-x----- | |
| split_page_results.php | 2013-11-12 21:06 | 8.15 KB | 76129f60960:kunden | -xw-x----- | |
| vat_validation.php | 2013-11-12 21:06 | 30.28 KB | 76129f60960:kunden | -xw-x----- | |
| wish_list.php | 2013-11-12 21:06 | 20.18 KB | 76129f60960:kunden | -xw-x----- | |
| xmlparserv4.php | 2013-11-12 21:06 | 4.24 KB | 76129f60960:kunden | -xw-x----- | |
| xtbooster.php | 2013-11-12 21:06 | 2.8 KB | 76129f60960:kunden | -xw-x----- | |
| xtcPrice.php | 2013-11-12 21:06 | 20.16 KB | 76129f60960:kunden | -xw-x----- | |