403Webshell
Server IP : 185.252.147.100  /  Your IP : 216.73.216.196
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/Controller/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/html/kanboard/app/Controller/UserStatusController.php
<?php

namespace Kanboard\Controller;

/**
 * User Status Controller
 *
 * @package  Kanboard\Controller
 * @author   Frederic Guillot
 */
class UserStatusController extends BaseController
{
    /**
     * Confirm remove a user
     *
     * @access public
     */
    public function confirmRemove()
    {
        $user = $this->getUser();

        $this->response->html($this->helper->layout->user('user_status/remove', array(
            'user' => $user,
        )));
    }

    /**
     * Remove a user
     *
     * @access public
     */
    public function remove()
    {
        $user = $this->getUser();
        $this->checkCSRFParam();

        if ($this->userModel->remove($user['id'])) {
            $this->flash->success(t('User removed successfully.'));
        } else {
            $this->flash->failure(t('Unable to remove this user.'));
        }

        $this->response->redirect($this->helper->url->to('UserListController', 'show'));
    }

    /**
     * Confirm enable a user
     *
     * @access public
     */
    public function confirmEnable()
    {
        $user = $this->getUser();

        $this->response->html($this->helper->layout->user('user_status/enable', array(
            'user' => $user,
        )));
    }

    /**
     * Enable a user
     *
     * @access public
     */
    public function enable()
    {
        $user = $this->getUser();
        $this->checkCSRFParam();

        if ($this->userModel->enable($user['id'])) {
            $this->flash->success(t('User activated successfully.'));
        } else {
            $this->flash->failure(t('Unable to enable this user.'));
        }

        $this->response->redirect($this->helper->url->to('UserListController', 'show'));
    }

    /**
     * Confirm disable a user
     *
     * @access public
     */
    public function confirmDisable()
    {
        $user = $this->getUser();

        $this->response->html($this->helper->layout->user('user_status/disable', array(
            'user' => $user,
        )));
    }

    /**
     * Disable a user
     *
     * @access public
     */
    public function disable()
    {
        $user = $this->getUser();
        $this->checkCSRFParam();

        if ($this->userModel->disable($user['id'])) {
            $this->flash->success(t('User disabled successfully.'));
        } else {
            $this->flash->failure(t('Unable to disable this user.'));
        }

        $this->response->redirect($this->helper->url->to('UserListController', 'show'));
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit