pastebin - collaborative debugging

pastebin is a collaborative debugging tool allowing you to share and modify code snippets while chatting on IRC, IM or a message board.

This site is developed to XHTML and CSS2 W3C standards. If you see this paragraph, your browser does not support those standards and you need to upgrade. Visit WaSP for a variety of options.

PHP ZTDev Pastebin View Help

Difference between
modified post 120118 by kato on Thu 4th Jun 13:44 and
original post 120117 by kato on Thu 4th Jun 13:38
Show old version | new version | both versions

    
11
<?{
33
  /*
44
  **  ACCEPT TICKET
55
  **
66
  **  Make logged in user the owner
77
  **  of this ticket
88
  **
99
  */
1111
  $action = "accept";
1212
  include("action_header.php");
1414
   $res = $zen->accept_ticket($id, $login_id);
1516
   if( $res ) {
17+
      if( $login_bin ) {
18+
         // if the user has a home bin set, we move the ticket into the user's
19+
         // home bin when it is accepted; to prevent an additional log entry,
20+
         // uncomment the following line and comment the one after it
21+
         //$zen->move_ticket($id, $login_bin, $login_id, "skip_log");
22+
         $zen->move_ticket($id, $login_bin, $login_id);
23+
      }
1625
     $ticket = $zen->get_ticket($id);
1726
     $msg[] = tr("Ticket ? was accepted by ?", array($id,$login_name));
1827
   } else {
1928
     $errs[] = tr("System error: Ticket ? could not be accepted", array($id)).$zen->db_error;
2029
   }
2130
   $action = null;
2332
   include("$libDir/nav.php");
2433
   $zen->printErrors($errs);
2534
   if( $page_type == 'project' ) {
2635
     include("$templateDir/projectView.php");
2736
   } else {
2837
      include("$templateDir/ticketView.php");
2938
   }
3140
   include("$libDir/footer.php");
3342
}?>

Syntax highlighting:

To highlight particular lines, prefix each line with @@


Remember me