HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux bsx-1-dev 6.8.0-101-generic #101-Ubuntu SMP PREEMPT_DYNAMIC Mon Feb 9 10:15:05 UTC 2026 x86_64
User: www-data (33)
PHP: 8.3.6
Disabled: NONE
Upload Files
File: /var/www/html/wp-content/plugins/bsx/cfg.php
<?php


/***********************
GENERAL CONSTANTS
***********************/

define('BACKEND_API_URL', 'http://persephone-finance.de:11340/bsx');
define('BACKEND_API_KEY', '72fd7abeb325f20288813741a13a7ab9d7801af4');

define('KPI_TABLE', 'x_c');

define('BSX_PLUGIN_DIR', plugin_dir_path(__FILE__));
define('BSX_PLUGIN_URL', plugin_dir_url(__FILE__));



/***********************
RESOLVE ACF DATE FIELDS ISSUE
***********************/
add_filter('date_i18n', function ($date, $format, $timestamp, $gmt) { 
	if ( is_admin() )
		return $date;
	return wp_date($format, $timestamp); 
}, 99, 4);



/***********************
CUSTOM TIME ZONE 8NOT USED ANY MORE
***********************/
$tz =[3600,"CEST","Europe/Berlin",+1];
//yahoo history limits
$ylimits = array('5'=>2,'10'=>20,'15'=>50,'60'=>200);
$cfg = array("interval"=>'to-15m');



/***********************
HELPER FUNCTIONS,METHODS AND CLASSES
***********************/
$scdb = new wpdb('wp','wp_bsxdb','bsx','persephone-finance.de');


    
//function bsx_admin_menu() {
//	add_menu_page( 'bsx_menu', 'BSX', 'manage_options', BSX_PLUGIN_DIR . '/admin/bsx-admin.php','bsx_admin','',32);
//}



/***********************
LOAD OBLIGATORY FUNCTIONS
***********************/
require_once BSX_PLUGIN_DIR . 'ass/helper.php';
require_once BSX_PLUGIN_DIR . 'ass/func.php';