/********************************************************************** * * corbaclient.cpp -- * Copyright (C) 1999 The New Zealand Digital Library Project * * A component of the Greenstone digital library software * from the New Zealand Digital Library Project at the * University of Waikato, New Zealand. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * * $Id: corbaclient.mpp 21324 2009-12-09 08:41:14Z ak19 $ * *********************************************************************/ #include "receptionist.h" #include "cgiwrapper.h" #include "corbaproto.h" #include "collectserver.h" #include "filter.h" #include "browsefilter.h" #include "queryfilter.h" #ifdef ENABLE_MG #include "mgsearch.h" #endif #include "fileutil.h" #include #include "action.h" #include "statusaction.h" #include "pageaction.h" #include "pingaction.h" #include "queryaction.h" #include "documentaction.h" #include "authenaction.h" #include "usersaction.h" #include "authenaction.h" #include "extlinkaction.h" #include "tipaction.h" #include "collectoraction.h" #include "browserclass.h" #include "vlistbrowserclass.h" #include "hlistbrowserclass.h" #include "datelistbrowserclass.h" #include "invbrowserclass.h" #include "pagedbrowserclass.h" #include "htmlbrowserclass.h" // #include "gsdlhome.h" #include "gsdlsitecfg.h" int main (int argc, char *argv[]) { receptionist recpt; corbaproto* cproto_array[argc]; text_t gsdlhome; text_t collecthome; text_t httpdomain; text_t httpprefix; cproto_array[0] = NULL; // unused if (argc == 1) { cout << "Content-type: text/html" << endl << endl; cout << "Usage: " << argv[0] << "site1.objid [site2.objid ....]" << endl; return 0; } // Strictly speaking httpdomain and httpprefix are not needed. // Need to modifiy site_cfg_read to eliminate this dependency. // **** site_cfg_read(gsdlhome, collecthome, httpdomain, httpprefix); for (int i=1; i