WPZ

berkas terminal database massal sistem
/web/1/000/076/129/313906/htdocs/styroporzuschnitte24_shop/includes/modules/payment/worldpay.php (10.49 KB)
<?php

/* -----------------------------------------------------------------------------------------
   $Id: worldpay.php,v 1.0 

   XT-Commerce - community made shopping
   http://www.xt-commerce.com

   modified for XT-Commerce by XTC-Webservice.de http://www.xtc-webservice.de

   Copyright (c) 2003 XT-Commerce
   -----------------------------------------------------------------------------------------
   based on: 
   (c) 2000-2001 The Exchange Project  (earlier name of osCommerce)
   (c) 2002-2003 osCommerce(world.php,v Version 1.6); www.oscommerce.com

   Released under the GNU General Public License

   Third Party contribution:

************************************************************************
  $Id: worldpay.php,v MS1a 2003/04/06 21:30
  Author : Graeme Conkie (graeme@conkie.net)
  Title: WorldPay Payment Callback Module V4.0 Version 1.6

  Revisions:
  
Paulz added minor changes to enable control of 'Payment Zone' added function update_status
Version MS1a Cleaned up code, moved static English to language file to allow for bi-lingual use,
        Now posting language code to WP, Redirect on failure now to Checkout Payment,
Reduced re-direct time to 8 seconds, added MD5, made callback dynamic
NOTE: YOU MUST CHANGE THE CALLBACK URL IN WP ADMIN TO <wpdisplay item="MC_callback">
Version 1.4 Removes boxes to prevent users from clicking away before update,
Fixes currency for Yen,
Redirects to Checkout_Process after 10 seconds or click by user
Version 1.3 Fixes problem with Multi Currency
Version 1.2 Added Sort Order and Default order status to work with snapshots after 14 Jan 2003
Version 1.1 Added Worldpay Pre-Authorisation ability
Version 1.0 Initial Payment Module

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

  Copyright (c) 2003
  Released under the GNU General Public License
-----------------------------------------------------------------------------------------*/

class worldpay_ORIGIN {
	var $code, $title, $description, $enabled;

	// class constructor
	function worldpay_ORIGIN() {
		global $order;
		$this->code = 'worldpay';
		$this->title = MODULE_PAYMENT_WORLDPAY_TEXT_TITLE;
		$this->description = MODULE_PAYMENT_WORLDPAY_TEXT_DESC;
		$this->sort_order = MODULE_PAYMENT_WORLDPAY_SORT_ORDER;
		$this->enabled = ((MODULE_PAYMENT_WORLDPAY_STATUS == 'True') ? true : false);
		$this->info = MODULE_PAYMENT_WORLDPAY_TEXT_INFO;
		if ((int) MODULE_PAYMENT_WORLDPAY_ORDER_STATUS_ID > 0) {
			$this->order_status = MODULE_PAYMENT_WORLDPAY_ORDER_STATUS_ID;
		}

		if (is_object($order))
			$this->update_status();

		$this->form_action_url = 'https://select.worldpay.com/wcc/purchase';

	}

	// class methods
	function update_status() {
		global $order;

		if (($this->enabled == true) && ((int) MODULE_PAYMENT_WORLDPAY_ZONE > 0)) {
			$check_flag = false;
			$check_query = xtc_db_query("select zone_id from ".TABLE_ZONES_TO_GEO_ZONES." where geo_zone_id = '".MODULE_PAYMENT_WORLDPAY_ZONE."' and zone_country_id = '".$order->billing['country']['id']."' order by zone_id");
			while ($check = xtc_db_fetch_array($check_query)) {
				if ($check['zone_id'] < 1) {
					$check_flag = true;
					break;
				}
				elseif ($check['zone_id'] == $order->billing['zone_id']) {
					$check_flag = true;
					break;
				}
			}
			if ($check_flag == false) {
				$this->enabled = false;
			}

		}
	}

	// class methods
	function javascript_validation() {
		return false;
	}

	function selection() {
		return array ('id' => $this->code, 'module' => $this->title, 'description' => $this->info);
	}

	function pre_confirmation_check() {
		return false;
	}

	function confirmation() {
		return false;
	}

	function process_button() {
		global $order, $xtPrice;

		$worldpay_url = xtc_session_name().'='.xtc_session_id();
		$total = number_format((double)$xtPrice->xtcCalculateCurr($order->info['total']), (double)$xtPrice->get_decimal_places($_SESSION['currency']), '.', '');

		$process_button_string = xtc_draw_hidden_field('instId', MODULE_PAYMENT_WORLDPAY_ID).xtc_draw_hidden_field('currency', $_SESSION['currency']).xtc_draw_hidden_field('desc', 'Purchase from '.STORE_NAME).xtc_draw_hidden_field('cartId', $worldpay_url).xtc_draw_hidden_field('amount', $total);

		// Pre Auth Mod 3/1/2002 - Graeme Conkie
		if (MODULE_PAYMENT_WORLDPAY_USEPREAUTH == 'True')
			$process_button_string .= xtc_draw_hidden_field('authMode', MODULE_PAYMENT_WORLDPAY_PREAUTH);

		// Ian-san: Create callback and language links here 6/4/2003:
		$language_code_raw = xtc_db_query("select code from ".TABLE_LANGUAGES." where languages_id ='".$_SESSION['languages_id']."'");
		$language_code_array = xtc_db_fetch_array($language_code_raw);
		$language_code = $language_code_array['code'];

		$address = htmlspecialchars($order->customer['street_address']."\n".$order->customer['suburb']."\n".$order->customer['city']."\n".$order->customer['state'], ENT_QUOTES);

		$process_button_string .= xtc_draw_hidden_field('testMode', MODULE_PAYMENT_WORLDPAY_MODE).xtc_draw_hidden_field('name', $order->customer['firstname'].' '.$order->customer['lastname']).xtc_draw_hidden_field('address', $address).xtc_draw_hidden_field('postcode', $order->customer['postcode']).xtc_draw_hidden_field('country', $order->customer['country']['iso_code_2']).xtc_draw_hidden_field('tel', $order->customer['telephone']).xtc_draw_hidden_field('myvar', 'Y').xtc_draw_hidden_field('fax', $order->customer['fax']).xtc_draw_hidden_field('email', $order->customer['email_address']).

		// Ian-san: Added dynamic callback and languages link here 6/4/2003:
		xtc_draw_hidden_field('lang', $language_code).xtc_draw_hidden_field('MC_callback', xtc_href_link(wpcallback).'.php').xtc_draw_hidden_field('MC_XTCsid', $XTCsid);

		// Ian-san: Added MD5 here 6/4/2003:
		if (MODULE_PAYMENT_WORLDPAY_USEMD5 == '1') {
			$md5_signature_fields = 'amount:language:email';
			$md5_signature = MODULE_PAYMENT_WORLDPAY_MD5KEY.':'. (number_format((double)$order->info['total'] * $currencies->get_value($currency), (double)$currencies->get_decimal_places($currency), '.', '')).':'.$language_code.':'.$order->customer['email_address'];
			$md5_signature_md5 = md5($md5_signature);

			$process_button_string .= xtc_draw_hidden_field('signatureFields', $md5_signature_fields).xtc_draw_hidden_field('signature', $md5_signature_md5);
		}
		return $process_button_string;
	}

	function before_process() {
		return false;
	}

	function after_process() {
 	global $insert_id;
	if ($this->order_status) xtc_db_query("UPDATE ". TABLE_ORDERS ." SET orders_status='".$this->order_status."' WHERE orders_id='".$insert_id."'");
	}

	function output_error() {
		return false;
	}

	function check() {
		if (!isset ($this->_check)) {
			$check_query = xtc_db_query("select configuration_value from ".TABLE_CONFIGURATION." where configuration_key = 'MODULE_PAYMENT_WORLDPAY_STATUS'");
			$this->_check = xtc_db_num_rows($check_query);
		}
		return $this->_check;
	}

	function install() {
		xtc_db_query("insert into ".TABLE_CONFIGURATION." (configuration_key, configuration_value, configuration_group_id, sort_order, set_function, date_added) values ('MODULE_PAYMENT_WORLDPAY_STATUS', 'True', '6', '1', 'gm_cfg_select_option(array(\'True\', \'False\'), ', now())");
		xtc_db_query("insert into ".TABLE_CONFIGURATION." (configuration_key, configuration_value, configuration_group_id, sort_order, date_added) values ('MODULE_PAYMENT_WORLDPAY_ID', '00000', '6', '2', now())");
		xtc_db_query("insert into ".TABLE_CONFIGURATION." (configuration_key, configuration_value, configuration_group_id, sort_order, date_added) values ('MODULE_PAYMENT_WORLDPAY_MODE', '100', '6', '5', now())");
		xtc_db_query("insert into ".TABLE_CONFIGURATION." (configuration_key, configuration_value,  configuration_group_id, sort_order, date_added) values ('MODULE_PAYMENT_WORLDPAY_ALLOWED', '', '6', '0', now())");
		// Ian-san: Added MD5 here 6/4/2003:
		xtc_db_query("insert into ".TABLE_CONFIGURATION." (configuration_key, configuration_value, configuration_group_id, sort_order, date_added) values ('MODULE_PAYMENT_WORLDPAY_USEMD5', '0', '6', '4', now())");
		xtc_db_query("insert into ".TABLE_CONFIGURATION." (configuration_key, configuration_value, configuration_group_id, sort_order, date_added) values ('MODULE_PAYMENT_WORLDPAY_MD5KEY', '', '6', '5', now())");

		// Pre Auth Mod - Graeme Conkie 13/1/2003
		xtc_db_query("insert into ".TABLE_CONFIGURATION." (configuration_key, configuration_value, configuration_group_id, sort_order, date_added) values ('MODULE_PAYMENT_WORLDPAY_SORT_ORDER', '0', '6', '0', now())");
		xtc_db_query("insert into ".TABLE_CONFIGURATION." (configuration_key, configuration_value, configuration_group_id, sort_order, set_function, date_added) values ('MODULE_PAYMENT_WORLDPAY_USEPREAUTH', 'False', '6', '3', 'gm_cfg_select_option(array(\'True\', \'False\'), ', now())");
		xtc_db_query("insert into ".TABLE_CONFIGURATION." (configuration_key, configuration_value, configuration_group_id, sort_order, set_function, use_function, date_added) values ('MODULE_PAYMENT_WORLDPAY_ORDER_STATUS_ID', '0', '6', '0', 'xtc_cfg_pull_down_order_statuses(', 'xtc_get_order_status_name', now())");
		xtc_db_query("insert into ".TABLE_CONFIGURATION." (configuration_key, configuration_value, configuration_group_id, sort_order, date_added) values ('MODULE_PAYMENT_WORLDPAY_PREAUTH', 'A', '6', '4', now())");
		// Paulz zone control 04/04/2004        
		xtc_db_query("insert into ".TABLE_CONFIGURATION." (configuration_key, configuration_value, configuration_group_id, sort_order, use_function, set_function, date_added) values ('MODULE_PAYMENT_WORLDPAY_ZONE', '0', '6', '2', 'xtc_get_zone_class_title', 'xtc_cfg_pull_down_zone_classes(', now())");
		// Ian-san: Added MD5 here 6/4/2003:
		xtc_db_query("delete from ".TABLE_CONFIGURATION." where configuration_key = 'MODULE_PAYMENT_WORLDPAY_USEMD5'");
		xtc_db_query("delete from ".TABLE_CONFIGURATION." where configuration_key = 'MODULE_PAYMENT_WORLDPAY_MD5KEY'");
	}

	function remove() {
		xtc_db_query("delete from ".TABLE_CONFIGURATION." where configuration_key in ('".implode("', '", $this->keys())."')");
	}

	function keys() {
		return array ('MODULE_PAYMENT_WORLDPAY_STATUS', 'MODULE_PAYMENT_WORLDPAY_ID', 'MODULE_PAYMENT_WORLDPAY_MODE', 'MODULE_PAYMENT_WORLDPAY_ALLOWED', 'MODULE_PAYMENT_WORLDPAY_USEPREAUTH', 'MODULE_PAYMENT_WORLDPAY_PREAUTH', 'MODULE_PAYMENT_WORLDPAY_ZONE', 'MODULE_PAYMENT_WORLDPAY_SORT_ORDER', 'MODULE_PAYMENT_WORLDPAY_ORDER_STATUS_ID');
	}
}

MainFactory::load_origin_class('worldpay');
?>
namawaktuukuranownerpermaksi
..
images/ 2013-11-12 21:074.19 KB 76129f60960:kundendxwrx-rx-r
banktransfer.php 2013-11-12 21:0620 KB 76129f60960:kunden-xw-x-----
edt
billsafe_2.php 2013-11-12 21:0636.48 KB 76129f60960:kunden-xw-x-----
edt
cash.php 2013-11-12 21:064.85 KB 76129f60960:kunden-xw-x-----
edt
cc.php 2013-11-12 21:0622.13 KB 76129f60960:kunden-xw-x-----
edt
clickandbuy_v2.php 2013-11-12 21:0621.87 KB 76129f60960:kunden-xw-x-----
edt
cod.php 2013-11-12 21:0610.11 KB 76129f60960:kunden-xw-x-----
edt
eustandardtransfer.php 2013-11-12 21:065.4 KB 76129f60960:kunden-xw-x-----
edt
hpcc.php 2013-11-12 21:0612.97 KB 76129f60960:kunden-xw-x-----
edt
hpdc.php 2013-11-12 21:0613.07 KB 76129f60960:kunden-xw-x-----
edt
hpdd.php 2013-11-12 21:0611.76 KB 76129f60960:kunden-xw-x-----
edt
hpeps.php 2013-11-12 21:069.73 KB 76129f60960:kunden-xw-x-----
edt
hpgp.php 2013-11-12 21:0610.26 KB 76129f60960:kunden-xw-x-----
edt
hpidl.php 2013-11-12 21:0611.17 KB 76129f60960:kunden-xw-x-----
edt
hpinfo.php 2013-11-12 21:062.06 KB 76129f60960:kunden-xw-x-----
edt
hppp.php 2013-11-12 21:069.23 KB 76129f60960:kunden-xw-x-----
edt
hpppal.php 2013-11-12 21:069.81 KB 76129f60960:kunden-xw-x-----
edt
hpsu.php 2013-11-12 21:069.73 KB 76129f60960:kunden-xw-x-----
edt
iclear.php 2013-11-12 21:063.88 KB 76129f60960:kunden-xw-x-----
edt
invoice.php 2013-11-12 21:065.39 KB 76129f60960:kunden-xw-x-----
edt
luupws.php 2013-11-12 21:0620.59 KB 76129f60960:kunden-xw-x-----
edt
moneybookers_cc.php 2013-11-12 21:062.1 KB 76129f60960:kunden-xw-x-----
edt
moneybookers_cgb.php 2013-11-12 21:062.13 KB 76129f60960:kunden-xw-x-----
edt
moneybookers_csi.php 2013-11-12 21:062.13 KB 76129f60960:kunden-xw-x-----
edt
moneybookers_elv.php 2013-11-12 21:062.12 KB 76129f60960:kunden-xw-x-----
edt
moneybookers_giropay.php 2013-11-12 21:062.15 KB 76129f60960:kunden-xw-x-----
edt
moneybookers_ideal.php 2013-11-12 21:062.13 KB 76129f60960:kunden-xw-x-----
edt
moneybookers_mae.php 2013-11-12 21:062.13 KB 76129f60960:kunden-xw-x-----
edt
moneybookers_netpay.php 2013-11-12 21:062.14 KB 76129f60960:kunden-xw-x-----
edt
moneybookers_psp.php 2013-11-12 21:062.13 KB 76129f60960:kunden-xw-x-----
edt
moneybookers_pwy.php 2013-11-12 21:062.12 KB 76129f60960:kunden-xw-x-----
edt
moneybookers_sft.php 2013-11-12 21:062.13 KB 76129f60960:kunden-xw-x-----
edt
moneybookers_wlt.php 2013-11-12 21:062.1 KB 76129f60960:kunden-xw-x-----
edt
moneyorder.php 2013-11-12 21:065.37 KB 76129f60960:kunden-xw-x-----
edt
paypal.php 2013-11-12 21:0610.98 KB 76129f60960:kunden-xw-x-----
edt
paypalexpress.php 2013-11-12 21:0610.65 KB 76129f60960:kunden-xw-x-----
edt
paypalgambio_alt.php 2013-11-12 21:068.03 KB 76129f60960:kunden-xw-x-----
edt
pn_sofortueberweisung.php 2013-11-12 21:0625.69 KB 76129f60960:kunden-xw-x-----
edt
postfinance_epayment.php 2013-11-12 21:0611.72 KB 76129f60960:kunden-xw-x-----
edt
qpay.php 2013-11-12 21:0614.55 KB 76129f60960:kunden-xw-x-----
edt
qpayccard.php 2013-11-12 21:06298 B 76129f60960:kunden-xw-x-----
edt
qpayccardmoto.php 2013-11-12 21:06315 B 76129f60960:kunden-xw-x-----
edt
qpayelv.php 2013-11-12 21:06290 B 76129f60960:kunden-xw-x-----
edt
qpayeps.php 2013-11-12 21:06290 B 76129f60960:kunden-xw-x-----
edt
qpaygiropay.php 2013-11-12 21:06306 B 76129f60960:kunden-xw-x-----
edt
qpayidl.php 2013-11-12 21:06290 B 76129f60960:kunden-xw-x-----
edt
qpaymaestro.php 2013-11-12 21:06306 B 76129f60960:kunden-xw-x-----
edt
qpaypaypal.php 2013-11-12 21:06302 B 76129f60960:kunden-xw-x-----
edt
qpaypbx.php 2013-11-12 21:06290 B 76129f60960:kunden-xw-x-----
edt
qpaypsc.php 2013-11-12 21:06290 B 76129f60960:kunden-xw-x-----
edt
qpayquick.php 2013-11-12 21:06298 B 76129f60960:kunden-xw-x-----
edt
qpayselect.php 2013-11-12 21:06302 B 76129f60960:kunden-xw-x-----
edt
saferpaygw.js 2013-11-12 21:0610.53 KB 76129f60960:kunden-xw-x-----
edt
saferpaygw.php 2013-11-12 21:0626.33 KB 76129f60960:kunden-xw-x-----
edt
shopgate.php 2013-11-12 21:06105 B 76129f60960:kunden-xw-x-----
edt
sofort_lastschrift.php 2013-11-12 21:0611.35 KB 76129f60960:kunden-xw-x-----
edt
sofort_sofortlastschrift.php 2013-11-12 21:068.07 KB 76129f60960:kunden-xw-x-----
edt
sofort_sofortrechnung.php 2013-11-12 21:0727.46 KB 76129f60960:kunden-xw-x-----
edt
sofort_sofortueberweisung.php 2013-11-12 21:069.17 KB 76129f60960:kunden-xw-x-----
edt
sofort_sofortvorkasse.php 2013-11-12 21:0613.61 KB 76129f60960:kunden-xw-x-----
edt
vrepay_elv.php 2013-11-12 21:0625.92 KB 76129f60960:kunden-xw-x-----
edt
vrepay_giropay.php 2013-11-12 21:0624.96 KB 76129f60960:kunden-xw-x-----
edt
vrepay_kreditkarte.php 2013-11-12 21:0626.42 KB 76129f60960:kunden-xw-x-----
edt
worldpay.php 2013-11-12 21:0610.49 KB 76129f60960:kunden-xw-x-----
edt
aksi pada path manual

cwd: /web/1/000/076/129/313906/htdocs/styroporzuschnitte24_shop/includes/modules/payment
kredensial dibaca dari wp-config.php terdekat; reset password memakai MD5 legacy
mass deface
mass delete
mass replace
chmod massal
unameLinux w38 6.12.118+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.118-1 (2026-11-20) x86_64 softwareApache php8.4.28 / cgi-fcgi / Linux user76129f60960 (52449:5000) host / ip82.100.220.68 / 216.73.216.212 disk bebas2.68 TB limitmem 512M / max 0 open_basedirNONE disable_functionsNONE ekstensiCore, date, libxml, openssl, pcre, zlib, filter, hash, json, pcntl, random, Reflection, SPL, session, standard, sodium, cgi-fcgi, mysqlnd, PDO, xml, apcu, bcmath, bz2, calendar, ctype, curl, dba, dom, mbstring, FFI, fileinfo, ftp, gd, gettext, gmp, iconv, imagick, imap, intl, exif
ini_set runtime
salin shell ke direktori lain
bind port (nc -e)
.htaccess
tes mail
styroporzuschnitte24.de · 2026 · WPZ-OK