⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.50
Server IP:
41.128.143.86
Server:
Linux host.raqmix.cloud 6.8.0-1025-azure #30~22.04.1-Ubuntu SMP Wed Mar 12 15:28:20 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.3.23
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
proc
/
self
/
root
/
usr
/
share
/
psa-horde
/
nag
/
lib
/
View File Name :
CompleteTask.php
getShare($tasklist); $task = Nag::getTask($tasklist, $task); if (!$share->hasPermission($registry->getAuth(), Horde_Perms::EDIT)) { $result = array('error' => 'permission denied'); $notification->push(_("Access denied completing this task."), 'horde.error'); } else { $wasCompleted = $task->completed; $task->loadChildren(); if ($wasCompleted && $task->parent && $task->parent->completed) { $result = array('data' => 'complete'); $notification->push(_("Completed parent task, mark it as incomplete first"), 'horde.error'); } elseif (!$wasCompleted && !$task->childrenCompleted()) { $result = array('data' => 'incomplete'); $notification->push(_("Incomplete sub tasks, complete them first"), 'horde.error'); } else { $task->toggleComplete(); $task->save(); if ($task->completed) { $result = array('data' => 'complete'); $notification->push(sprintf(_("Completed %s."), $task->name), 'horde.success'); } elseif (!$wasCompleted) { $result = array('data' => 'incomplete'); $notification->push(sprintf(_("%s is still incomplete."), $task->name), 'horde.success'); } else { $result = array('data' => 'incomplete'); $notification->push(sprintf(_("%s is now incomplete."), $task->name), 'horde.success'); } } } } catch (Exception $e) { $result = array('error' => $e->getMessage()); $notification->push(sprintf(_("There was a problem completing %s: %s"), $task->name, $e->getMessage()), 'horde.error'); } return $result; } }