Location: PHPKode > projects > ZenTrack - project/bug tracking software > zentrack_2.6.4/www/actions/accept.php
<?{
   
  /*
  **  ACCEPT TICKET
  **  
  **  Make logged in user the owner
  **  of this ticket
  **
  */

  $action = "accept";  
  include("action_header.php");

   $res = $zen->accept_ticket($id, $login_id);
   if( $res ) {
     $ticket = $zen->get_ticket($id);
     $msg[] = tr("Ticket ? was accepted by ?", array($id,$login_name));
   } else {
     $errs[] = tr("System error: Ticket ? could not be accepted", array($id)).$zen->db_error;
   }
   $action = null;
  
   include("$libDir/nav.php");
   $zen->printErrors($errs);
   if( $page_type == 'project' ) {
     include("$templateDir/projectView.php");
   } else {
      include("$templateDir/ticketView.php");     
   }

   include("$libDir/footer.php");

}?>
Return current item: ZenTrack - project/bug tracking software