/usr/share/horde/whups/ticket/delete_history.php is in php-horde-whups 3.0.0~beta1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | <?php
/**
* Deletes a history entry from the ticket.
*
* Copyright 2010-2013 Horde LLC (http://www.horde.org/)
*
* See the enclosed file LICENSE for license information (BSD). If you
* did not receive this file, see http://www.horde.org/licenses/bsdl.php.
*/
require_once __DIR__ . '/../lib/Application.php';
Horde_Registry::appInit('whups');
$ticket = Whups::getCurrentTicket();
if (!Whups::hasPermission($ticket->get('queue'), 'queue', Horde_Perms::DELETE)) {
$notification->push(_("Permission Denied"), 'horde.error');
Horde::url($prefs->getValue('whups_default_view') . '.php', true)
->redirect();
}
$vars = Horde_Variables::getDefaultVariables();
try {
$whups_driver->deleteHistory($vars->get('transaction'));
$notification->push(_("Entry deleted."), 'horde.success');
} catch (Whups_Exception $e) {
$notification->push($e, 'horde.error');
}
if ($url = Horde_Util::getFormData('url')) {
header('Location: ' . $url);
} else {
Horde::url($prefs->getValue('whups_default_view') . '.php', true)
->redirect();
}
|