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/SubtaskRestrictionController.php
<?php

namespace Kanboard\Controller;

use Kanboard\Model\SubtaskModel;

/**
 * Subtask Restriction
 *
 * @package  Kanboard\Controller
 * @author   Frederic Guillot
 */
class SubtaskRestrictionController extends BaseController
{
    /**
     * Show popup
     *
     * @access public
     */
    public function show()
    {
        $task = $this->getTask();
        $subtask = $this->getSubtask($task);
        $subtaskInProgress = $this->subtaskStatusModel->getSubtaskInProgress($this->userSession->getId());

        $this->response->html($this->template->render('subtask_restriction/show', array(
            'status_list' => array(
                SubtaskModel::STATUS_TODO => 'Todo',
                SubtaskModel::STATUS_DONE => 'Done',
            ),
            'subtask_inprogress' => $subtaskInProgress,
            'subtask' => $subtask,
            'task' => $task,
        )));
    }

    /**
     * Change status of the in progress subtask and the other subtask
     *
     * @access public
     */
    public function save()
    {
        $task = $this->getTask();
        $subtask = $this->getSubtask($task);
        $values = $this->request->getValues();

        if (! empty($values)) {
            // Change status of the previous "in progress" subtask
            $this->subtaskModel->update(array(
                'id'      => $values['id'],
                'status'  => $values['status'],
            ));

            // Set the current subtask to "in progress"
            $this->subtaskModel->update(array(
                'id'      => $subtask['id'],
                'status'  => SubtaskModel::STATUS_INPROGRESS,
            ));
        }

        $this->response->redirect($this->helper->url->to('TaskViewController', 'show', array('task_id' => $task['id'])), true);
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit