changed default trackerserver

This commit is contained in:
Karl Breuer 2025-04-21 15:43:00 +02:00
parent 516b2addb6
commit 4bf09d751d
3 changed files with 4 additions and 4 deletions

View File

@ -11,7 +11,7 @@ if (!defined('ABSPATH')) {
class Palantics_Admin { class Palantics_Admin {
// Tracking server URL // Tracking server URL
private $tracking_server_url = 'tracking1.karlbreuer.com'; private $tracking_server_url = 't1.palantics.net';
/** /**
* Constructor * Constructor
@ -93,7 +93,7 @@ class Palantics_Admin {
public function server_url_callback() { public function server_url_callback() {
$value = get_option('palantics_tracking_server_url', $this->tracking_server_url); $value = get_option('palantics_tracking_server_url', $this->tracking_server_url);
echo '<input type="text" id="palantics_tracking_server_url" name="palantics_tracking_server_url" value="' . esc_attr($value) . '" class="regular-text">'; echo '<input type="text" id="palantics_tracking_server_url" name="palantics_tracking_server_url" value="' . esc_attr($value) . '" class="regular-text">';
echo '<p class="description">Enter the tracking server URL without https:// (e.g., tracking1.karlbreuer.com)</p>'; echo '<p class="description">Enter the tracking server URL without https:// (e.g., t1.palantics.net)</p>';
echo '<p class="description">You will find this in your domain screen in the Palantics app</p>'; echo '<p class="description">You will find this in your domain screen in the Palantics app</p>';
} }

View File

@ -64,7 +64,7 @@ class Palantics_Loader {
wp_enqueue_script('palantics-tracking-script'); wp_enqueue_script('palantics-tracking-script');
// Add server URL to JavaScript // Add server URL to JavaScript
$server_url = esc_url(get_option('palantics_tracking_server_url', 'tracking1.karlbreuer.com')); $server_url = esc_url(get_option('palantics_tracking_server_url', 't1.palantics.net'));
wp_add_inline_script( wp_add_inline_script(
'palantics-tracking-script', 'palantics-tracking-script',
"const server = 'https://" . $server_url . "';", "const server = 'https://" . $server_url . "';",

View File

@ -11,7 +11,7 @@ if (!defined('ABSPATH')) {
class Palantics_Tracking { class Palantics_Tracking {
// Tracking server URL // Tracking server URL
private $tracking_server_url = 'tracking1.karlbreuer.com'; private $tracking_server_url = 't1.palantics.net';
/** /**
* Constructor * Constructor