HEX
Server: Apache
System: Linux p3plzcpnl506847.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: slfopp7cb1df (5698090)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //home/slfopp7cb1df/www/sitepacket.com/system/app/Views/tasks/task_timer.php
<?php

if ($disable_timer) {
    $start_timer = js_anchor("<i data-feather='clock' class='icon-16 mr5'></i> " . app_lang('start_timer'), array('title' => app_lang('start_timer'), "class" => "btn btn-success disabled", "disabled" => "true", "data-action-url" => get_uri("projects/timer/" . $project_id . "/start"), "data-reload-on-success" => "1", "data-post-task_id" => $model_info->id));
} else {
    $start_timer = ajax_anchor(get_uri("projects/timer/" . $project_id . "/start"), "<i data-feather='clock' class='icon-16 mr5'></i> " . app_lang('start_timer'), array("class" => "btn btn-success", "title" => app_lang('start_timer'), "data-post-task_id" => $model_info->id, "data-real-target" => "#start-timer-btn-$model_info->id", "data-post-task_timer" => true));
}

$stop_timer = modal_anchor(get_uri("projects/stop_timer_modal_form/" . $project_id), "<i data-feather='clock' class='icon-16 mr5'></i> " . app_lang('stop_timer'), array("class" => "btn btn-danger", "title" => app_lang('stop_timer'), "data-post-task_id" => $model_info->id));

if ($timer_status === "open") {
    echo $stop_timer;
} else {
    echo "<span id='start-timer-btn-$model_info->id'>" . $start_timer . "</span>";
}
?>