403Webshell
Server IP : 202.61.199.114  /  Your IP : 216.73.217.139
Web Server : nginx/1.22.1
System : Linux de.arni-solutions.de 6.1.0-49-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64
User : web20 ( 1018)
PHP Version : 8.4.23
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/clients/client2/web20/web/wp-content/plugins/arni-crm-tracking/includes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/clients/client2/web20/web/wp-content/plugins/arni-crm-tracking/includes/functions.php
<?php
/**
 * Öffentliche Helper-Funktionen für Theme/Plugins.
 *
 * @package ArNi_CRM_Tracking
 */

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

if ( ! function_exists( 'arni_track_conversion' ) ) {
	/**
	 * Serverseitige Conversion erfassen.
	 *
	 * Beispiel:
	 *   arni_track_conversion( 'booking_completed', 129.00, 'ABC123', array( 'room' => 'suite' ), 'EUR' );
	 *
	 * @param string     $type         z. B. booking_completed, contact_form_sent, newsletter_signup, order_completed, lead_generated.
	 * @param float|null $value        Optionaler Geldwert.
	 * @param string     $reference_id Optionale Referenz (Buchungs-/Bestell-ID).
	 * @param array      $meta         Optionale Zusatzdaten (werden als JSON gespeichert).
	 * @param string     $currency     Optionale Währung (ISO, z. B. EUR).
	 * @return int Conversion-ID oder 0.
	 */
	function arni_track_conversion( $type, $value = null, $reference_id = null, $meta = array(), $currency = '' ) {
		if ( ! class_exists( 'Arni_CRM_Tracking_Tracker' ) ) {
			return 0;
		}
		if ( null === $meta || ! is_array( $meta ) ) {
			$meta = array();
		}
		return (int) Arni_CRM_Tracking_Tracker::record_conversion( $type, $value, (string) $reference_id, $meta, $currency );
	}
}

if ( ! function_exists( 'arni_track_event' ) ) {
	/**
	 * Serverseitiges, beliebiges Event erfassen.
	 *
	 * @param string $event_type
	 * @param array  $args  page_url, page_title, event_value, event_data, duration_seconds, scroll_depth.
	 * @return int Event-ID oder 0.
	 */
	function arni_track_event( $event_type, $args = array() ) {
		if ( ! class_exists( 'Arni_CRM_Tracking_Tracker' ) ) {
			return 0;
		}
		if ( ! is_array( $args ) ) {
			$args = array();
		}
		$args['event_type'] = $event_type;
		if ( empty( $args['page_url'] ) ) {
			$args['page_url'] = Arni_CRM_Tracking_Tracker::current_url();
		}
		return (int) Arni_CRM_Tracking_Tracker::record_event( $args );
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit