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

Posted by kato on Thu 4th Jun 13:44 (modification of post by kato view diff)
diff | download | new post

  1. <?{
  2.    
  3.   /*
  4.   **  ACCEPT TICKET
  5.   ** 
  6.   **  Make logged in user the owner
  7.   **  of this ticket
  8.   **
  9.   */
  10.  
  11.   $action = "accept"
  12.   include("action_header.php");
  13.  
  14.    $res = $zen->accept_ticket($id, $login_id);
  15.    
  16.    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.       }
  24.      
  25.      $ticket = $zen->get_ticket($id);
  26.      $msg[] = tr("Ticket ? was accepted by ?", array($id,$login_name));
  27.    } else {
  28.      $errs[] = tr("System error: Ticket ? could not be accepted", array($id)).$zen->db_error;
  29.    }
  30.    $action = null;
  31.  
  32.    include("$libDir/nav.php");
  33.    $zen->printErrors($errs);
  34.    if( $page_type == 'project' ) {
  35.      include("$templateDir/projectView.php");
  36.    } else {
  37.       include("$templateDir/ticketView.php");     
  38.    }
  39.  
  40.    include("$libDir/footer.php");
  41.  
  42. }?>

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with @@


Remember me