Annotation of capa/capa51/pProj/capaNewHTML.c, revision 1.2

1.2     ! albertel    1: /* broken start to a new HTML wrapper
        !             2:    Copyright (C) 1992-2000 Michigan State University
        !             3: 
        !             4:    The CAPA system is free software; you can redistribute it and/or
        !             5:    modify it under the terms of the GNU Library General Public License as
        !             6:    published by the Free Software Foundation; either version 2 of the
        !             7:    License, or (at your option) any later version.
        !             8: 
        !             9:    The CAPA system is distributed in the hope that it will be useful,
        !            10:    but WITHOUT ANY WARRANTY; without even the implied warranty of
        !            11:    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
        !            12:    Library General Public License for more details.
        !            13: 
        !            14:    You should have received a copy of the GNU Library General Public
        !            15:    License along with the CAPA system; see the file COPYING.  If not,
        !            16:    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
        !            17:    Boston, MA 02111-1307, USA.  */
        !            18: 
1.1       albertel   19: #include <signal.h>
                     20: #include "capaParser.h"
                     21: #include "capaCommon.h"
                     22: #include "ranlib.h"
                     23: 
                     24: #include "capaCGI.h"
                     25: 
                     26: int main(int argc, char *argv[])
                     27: {
                     28:   int input_return=0;
                     29: 
                     30:   signal(SIGFPE, SIG_IGN);
                     31:   strcpy(g_prog_name,argv[0]);
                     32:   setbuf(stdout,NULL);
                     33: 
                     34:   fprintf(stdout,"Content-type: text/html%c%c",LF,LF);
                     35: 
                     36:   input_return = web_get_input();
                     37:   web_header(stdout);
                     38: 
                     39: #ifdef  CAPA_WEB
                     40:   fprintf(stdout,"<!-- new capasbin, CAPA Version %s, %s -->\n",CAPA_VER,
                     41: 	  COMPILE_DATE);
                     42: #else
                     43:   fprintf(stdout,"<!-- new capahtml, CAPA Version %s, %s -->\n",CAPA_VER,
                     44: 	  COMPILE_DATE);
                     45: #endif  
                     46: 
                     47:   if ( input_return ) {
                     48:   } else {
                     49:     switch( g_run_mode ) {
                     50:     case 0: break;
                     51:     case WEB_CHECKIN: web_menu(); break;
                     52:     case WEB_TRYSET: web_printset(); break;
                     53:     case WEB_VIEWPREV: web_viewprevious(); break;
                     54:     case WEB_VIEWSUMMARY: 
                     55:     case WEB_EXAMSUMMARY:
                     56:     case WEB_QUIZSUMMARY: web_summary(g_run_mode);break;
                     57: #ifdef CAPA_WEB 
                     58:     case WEB_CHECKANS: web_grade(); break;
                     59: #endif
                     60:     default: break;
                     61:     }
                     62:   }
                     63:   web_footer(stdout);
                     64:   return 0;
                     65: }

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