403Webshell
Server IP : 185.252.147.100  /  Your IP : 216.73.217.33
Web Server : nginx/1.27.3
System : Linux mitrofanov.ru 6.1.0-37-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.140-1 (2025-05-22) x86_64
User : mitr ( 1000)
PHP Version : 8.2.29
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /www/html/kanboard/app/Core/Ldap/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/html/kanboard/app/Core/Ldap/Entry.php
<?php

namespace Kanboard\Core\Ldap;

/**
 * LDAP Entry
 *
 * @package ldap
 * @author  Frederic Guillot
 */
class Entry
{
    /**
     * LDAP entry
     *
     * @access protected
     * @var array
     */
    protected $entry = array();

    /**
     * Constructor
     *
     * @access public
     * @param  array $entry
     */
    public function __construct(array $entry)
    {
        $this->entry = $entry;
    }

    /**
     * Get all attribute values
     *
     * @access public
     * @param  string  $attribute
     * @return string[]
     */
    public function getAll($attribute)
    {
        $attributes = array();

        if (! isset($this->entry[$attribute]['count'])) {
            return $attributes;
        }

        for ($i = 0; $i < $this->entry[$attribute]['count']; $i++) {
            $attributes[] = $this->entry[$attribute][$i];
        }

        return $attributes;
    }

    /**
     * Get first attribute value
     *
     * @access public
     * @param  string  $attribute
     * @param  string  $default
     * @return string
     */
    public function getFirstValue($attribute, $default = '')
    {
        return isset($this->entry[$attribute][0]) ? $this->entry[$attribute][0] : $default;
    }

    /**
     * Get entry distinguished name
     *
     * @access public
     * @return string
     */
    public function getDn()
    {
        return isset($this->entry['dn']) ? $this->entry['dn'] : '';
    }

    /**
     * Return true if the given value exists in attribute list
     *
     * @access public
     * @param  string  $attribute
     * @param  string  $value
     * @return boolean
     */
    public function hasValue($attribute, $value)
    {
        $attributes = $this->getAll($attribute);
        return in_array($value, $attributes);
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit