Diff for /capa/capa51/pProj/capaCgiUtils.c between versions 1.1 and 1.2

version 1.1, 1999/09/28 21:26:20 version 1.2, 1999/10/13 18:45:28
Line 1067  print_mainmenu(class,sn,pin)char *class; Line 1067  print_mainmenu(class,sn,pin)char *class;
 void  void
 print_page_header(mode,num_quest) int mode;int num_quest;  print_page_header(mode,num_quest) int mode;int num_quest;
 {  {
   char   buf[MAX_BUFFER_SIZE];    char   buf[MAX_BUFFER_SIZE], discussdir[MAX_BUFFER_SIZE];
   char *serverName;    char *serverName;
   int    configResult,term_summary_button=1;    int    configResult,term_summary_button=1;
   
Line 1206  print_page_header(mode,num_quest) int mo Line 1206  print_page_header(mode,num_quest) int mo
     fprintf(stdout,"</form></TD>");      fprintf(stdout,"</form></TD>");
   }    }
   
     /*Discuss Button*/
   
     sprintf(discussdir,"%s/discussion/%d",g_class_fullpath,g_login_set);
     if ( access(discussdir,F_OK) == 0 ) {
       fprintf(stdout,"<TD><form method=\"post\" ");
       sprintf(buf,"action=\"http://%s/%s/%s/capadiscuss\">",serverName,g_cgibin_path,g_cowner);
       fprintf(stdout,"%s\n", buf);
       fprintf(stdout,"<input type=\"hidden\" name=\"CLASS\" value=\"%s\">\n",g_class_name);
       fprintf(stdout,"<input type=\"hidden\" name=\"SNUM\" value=\"%s\">\n",g_student_number);
       fprintf(stdout,"<input type=\"hidden\" name=\"CAPAID\" value=\"%d\">\n",g_entered_pin);
       fprintf(stdout,"<input type=\"hidden\" name=\"SETID\" value=\"%d\">\n",g_login_set);
       fprintf(stdout,"<input type=\"submit\" value=\"Discuss\" >\n</form></TD>");
     }
   
   fprintf(stdout,"\n</TR></TABLE>\n");    fprintf(stdout,"\n</TR></TABLE>\n");
   fflush(stdout);        fflush(stdout);    
 }  }

Removed from v.1.1  
changed lines
  Added in v.1.2


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>