/usr/share/horde/nag/lib/Form/Type/NagStart.php is in php-horde-nag 4.1.3-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 35 36 37 | <?php
/**
* The Horde_Form_Type_nag_start class provides a form field for editing
* task delayed start dates.
*
* @author Chuck Hagenbuch <chuck@horde.org>
* @package Nag
*/
class Nag_Form_Type_NagStart extends Horde_Form_Type
{
public function getInfo(&$vars, &$var, &$info)
{
$start_type = $vars->get('start_date');
$start = $vars->get('start');
if (is_array($start)) {
if (empty($start['date'])) {
$start = null;
} else {
$start_array = Nag::parseDate($start['date'], false);
$start_dt = new Horde_Date($start_array);
$start = $start_dt->timestamp();
}
}
$info = strcasecmp($start_type, 'none') ? $start : 0;
}
public function isValid(&$var, &$vars, $value, &$message)
{
return true;
}
public function getTypeName()
{
return 'NagStart';
}
}
|