AnonSec Shell
Server IP : 162.214.74.102  /  Your IP : 216.73.217.80
Web Server : Apache
System : Linux dedi-4363141.lrsys.com.br 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64
User : lrsys ( 1015)
PHP Version : 5.6.40
Disable Function : exec,passthru,shell_exec,system
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/lrsys/public_html/lrsys_apps/dialogo/application/plugins/module_tecass/assets/libs/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/lrsys/public_html/lrsys_apps/dialogo/application/plugins/module_tecass/assets/libs/Helper.php
<?php

/**
 * Created by PhpStorm.
 * User: juelis
 * Date: 12/03/17
 * Time: 20:25
 */
class Helper
{
    /** @var array $_L */
    protected $_L;

    /**
     * Helper constructor.
     * @param array|null $_L
     */
    public function __construct($_L = null)
    {
        $this->_L = $_L;
    }

    /**
     * @param int $status
     * @return string
     */
    public function formatOSStatus($status)
    {
        switch ($status) {
            case 1:
                return "<span class=\"badge badge-default\">{$this->_L['Tecass_Open']}</span>";
            case 2:
                return "<span class=\"badge badge-success\">{$this->_L['Tecass_Executing']}</span>";
            case 3:
                return "<span class=\"badge badge-warning\">{$this->_L['Tecass_Finished']}</span>";
            case 4:
                return "<span class=\"badge badge-primary\">{$this->_L['Tecass_Delivered']}</span>";
        }

        return '';
    }

    /**
     * @param string $date
     * @return string
     */
    public function transformDatePtToEn($date)
    {
        $d = DateTime::createFromFormat('d/m/Y H:i:s', $date);
        return $d->format('Y-m-d H:i:s');
    }

    /**
     * @param string $date
     * @return string
     */
    public function transformDateEnToPt($date)
    {
        $d = DateTime::createFromFormat('Y-m-d H:i:s', $date);
        return $d->format('d/m/Y H:i:s');
    }
}

Anon7 - 2022
AnonSec Team