404

[ Avaa Bypassed ]




Upload:

Command:

botdev@18.223.3.50: ~ $
<?php 
class User {
	
	public $chatId;
	public $role;
	public $keyboard;
	public $db;
	function __construct($chatId,$role, $keyboard, DictionaryDatabaseHandler $db){
		$this->role = $role;
		$this->chatId = $chatId;
		$this->keyboard = $keyboard;
		$this->db = $db; 
	}
	
	function hasRole($role){
		return $this->role == $role;
	}
	function setKeyboard($status){
		$this->db->setUserKeyboard($status, $this->chatId);
		return $this;
	}
	function setRole($role){
		$this->db->setUserRole($role, $this->chatId);
		return $this;
	}
	function getStep(){
		return $this->db->getUserStep($this->chatId);
	}
	function setStep($step){
		return $this->db->setUserStep($this->chatId, $step);
	}
//    function getTranslationsTrustRate(){
//        return $this->db->getTranslationsTrustRate($this->chatId, $step);
//    }
	function hasKeyboard(){
		 return $this->keyboard == "ACTIVATED";
	}
        function getKeyboard(){
            return $this->keyboard ;
            
        }
}

?>

Filemanager

Name Type Size Permission Actions
User.php File 1023 B 0644