WPZ

berkas terminal database massal sistem
/data/web/1/000/076/129/313906/htdocs/styroporzuschnitte24_shop/actindo/gambiogx/import_orders.php (4.2 KB)
<?php

/**
 * import orders, specifically: set status, etc
 *
 * actindo Faktura/WWS connector
 *
 * @package actindo
 * @author  Patrick Prasse <pprasse@actindo.de>
 * @version $Revision: 145 $
 * @copyright Copyright (c) 2007, Patrick Prasse (Schneebeerenweg 26, D-85551 Kirchheim, GERMANY, pprasse@actindo.de)
 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
*/

function import_orders_set_status( $oID, $status, $comments, $notify_customer, $notify_comments=0 )
{
  $smarty = new Smarty;

  $customer_notified = 0;

  $res = TRUE;

  $check_status_query = act_db_query($q="select customers_name, customers_email_address, orders_status, date_purchased, language from ".TABLE_ORDERS." where orders_id = '".act_db_input($oID)."'");
  $check_status = act_db_fetch_array($check_status_query);
  if( $check_status === FALSE )
    return array( 'ok'=>FALSE, 'errno'=>ENOENT );

  if ($check_status['orders_status'] != $status || $comments != '') {
    $res &= act_db_query("update ".TABLE_ORDERS." set orders_status = '".act_db_input($status)."', last_modified = now() where orders_id = '".act_db_input($oID)."'");


    if ($notify_customer)
    {
      require_once (DIR_FS_CATALOG.DIR_WS_CLASSES.'class.phpmailer.php');
      require_once (DIR_FS_INC.'xtc_php_mail.inc.php');

      $orders_statuses = array ();
      $orders_status_array = array ();
      $orders_status_query = act_db_query("SELECT s.orders_status_id, s.orders_status_name FROM ".TABLE_ORDERS_STATUS." AS s, ".TABLE_LANGUAGES." AS l WHERE s.language_id=l.languages_id AND l.directory='".act_db_input($check_status['language'])."'");
      while ($orders_status = act_db_fetch_array($orders_status_query)) {
        $orders_statuses[] = array ('id' => $orders_status['orders_status_id'], 'text' => $orders_status['orders_status_name']);
        $orders_status_array[$orders_status['orders_status_id']] = $orders_status['orders_status_name'];
      }


      $notify_comments = '';
      if ($notify_comments) {
        //$notify_comments = sprintf(EMAIL_TEXT_COMMENTS_UPDATE, $comments)."\n\n";
        $notify_comments = $comments;
      } else {
        $notify_comments = '';
      }

      // assign language to template for caching
      $smarty->assign('language', $_SESSION['language']);
      $smarty->caching = false;

      // set dirs manual
      $smarty->template_dir = DIR_FS_CATALOG.'templates';
      $smarty->compile_dir = DIR_FS_CATALOG.'templates_c';
      $smarty->config_dir = DIR_FS_CATALOG.'lang';

      $smarty->assign('tpl_path', 'templates/'.CURRENT_TEMPLATE.'/');
      $smarty->assign('logo_path', HTTP_SERVER.DIR_WS_CATALOG.'templates/'.CURRENT_TEMPLATE.'/img/');

      $smarty->assign('NAME', $check_status['customers_name']);
      $smarty->assign('ORDER_NR', $oID);
      $smarty->assign('ORDER_LINK', xtc_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_INFO, 'order_id='.$oID, 'SSL'));
      $smarty->assign('ORDER_DATE', xtc_date_long($check_status['date_purchased']));
      $smarty->assign('NOTIFY_COMMENTS', $comments);
      $smarty->assign('ORDER_STATUS', $orders_status_array[$status]);

	  if(defined('EMAIL_SIGNATURE')) {
		$smarty->assign('EMAIL_SIGNATURE_HTML', nl2br(EMAIL_SIGNATURE));
		$smarty->assign('EMAIL_SIGNATURE_TEXT', EMAIL_SIGNATURE);
	  }
	  
      $html_mail = $smarty->fetch(CURRENT_TEMPLATE.'/admin/mail/'.$check_status['language'].'/change_order_mail.html');
      $txt_mail = $smarty->fetch(CURRENT_TEMPLATE.'/admin/mail/'.$check_status['language'].'/change_order_mail.txt');

      xtc_php_mail(EMAIL_BILLING_ADDRESS, EMAIL_BILLING_NAME, $check_status['customers_email_address'], $check_status['customers_name'], '', EMAIL_BILLING_REPLY_ADDRESS, EMAIL_BILLING_REPLY_ADDRESS_NAME, '', '', EMAIL_BILLING_SUBJECT, $html_mail, $txt_mail);
      $customer_notified = 1;
    }
  }

  $res &= act_db_query("insert into ".TABLE_ORDERS_STATUS_HISTORY." (orders_id, orders_status_id, date_added, customer_notified, comments) values ('".act_db_input($oID)."', '".act_db_input($status)."', now(), '".$customer_notified."', '".act_db_input($comments)."')");

  if( !$res )
    return array( 'ok'=>FALSE, 'errno'=>EIO );

  return array( 'ok'=>TRUE );
}



?>
namawaktuukuranownerpermaksi
..
actindo.php 2013-11-12 20:5214.62 KB 76129f60960:kunden-xw-x-----
edt
compat.php 2013-11-12 20:521.29 KB 76129f60960:kunden-xw-x-----
edt
export.php 2013-11-12 20:526.13 KB 76129f60960:kunden-xw-x-----
edt
export_customers.php 2013-11-12 20:527.53 KB 76129f60960:kunden-xw-x-----
edt
export_orders.php 2013-11-12 20:5217.96 KB 76129f60960:kunden-xw-x-----
edt
export_products.php 2013-11-12 20:5219.62 KB 76129f60960:kunden-xw-x-----
edt
import.php 2013-11-12 20:52503 B 76129f60960:kunden-xw-x-----
edt
import_customer.php 2013-11-12 20:52904 B 76129f60960:kunden-xw-x-----
edt
import_orders.php 2013-11-12 20:524.2 KB 76129f60960:kunden-xw-x-----
edt
import_products.php 2013-11-12 20:5237.29 KB 76129f60960:kunden-xw-x-----
edt
util.php 2013-11-12 20:5213.97 KB 76129f60960:kunden-xw-x-----
edt
aksi pada path manual

cwd: /data/web/1/000/076/129/313906/htdocs/styroporzuschnitte24_shop/actindo/gambiogx
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