403Webshell
Server IP : 35.236.43.222  /  Your IP : 216.73.216.143
Web Server : Apache
System : Linux order-form-vm-001 5.10.0-37-cloud-amd64 #1 SMP Debian 5.10.247-1 (2025-12-11) x86_64
User : deploy ( 1002)
PHP Version : 8.1.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/mastersystem.app/public/wp-content/plugins/koko-analytics/src/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/mastersystem.app/public/wp-content/plugins/koko-analytics/src/Fmt.php
<?php

namespace KokoAnalytics;

class Fmt
{
    public static function percent($pct): string
    {
        if ($pct == 0) {
            return '';
        }

        $prefix = $pct > 0 ? '+' : '';
        $formatted = \number_format_i18n($pct * 100, 0);
        return $prefix . $formatted . '%';
    }

    public static function referrer_url_label(string $url): string
    {
        // if link starts with android-app://, turn that prefix into something more human readable
        if (\strpos($url, 'android-app://') === 0) {
            return \str_replace('android-app://', 'Android app: ', $url);
        }

        // strip protocol and www. prefix
        $url = (string) \preg_replace('/^https?:\/\/(?:www\.)?/', '', $url);

        // trim trailing slash
        $url = \rtrim($url, '/');

        return apply_filters('koko_analytics_referrer_url_label', $url);
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit