accept_ticket($id, $login_id); if( $res ) { if( $login_bin ) { // if the user has a home bin set, we move the ticket into the user's // home bin when it is accepted; to prevent an additional log entry, // uncomment the following line and comment the one after it //$zen->move_ticket($id, $login_bin, $login_id, "skip_log"); $zen->move_ticket($id, $login_bin, $login_id); } $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"); }?>