[2286] | 1 | /**********************************************************************
|
---|
| 2 | *
|
---|
| 3 | * settings.h
|
---|
| 4 | * Copyright (C) 1996
|
---|
| 5 | *
|
---|
| 6 | * A component of the fnord webserver written by [email protected].
|
---|
| 7 | *
|
---|
| 8 | * Altered for use with the Greenstone digital library software by the
|
---|
| 9 | * New Zealand Digital Library Project at the University of Waikato,
|
---|
| 10 | * New Zealand.
|
---|
| 11 | *
|
---|
| 12 | * This program is free software; you can redistribute it and/or modify
|
---|
| 13 | * it under the terms of the GNU General Public License as published by
|
---|
| 14 | * the Free Software Foundation; either version 2 of the License, or
|
---|
| 15 | * (at your option) any later version.
|
---|
| 16 | *
|
---|
| 17 | * This program is distributed in the hope that it will be useful,
|
---|
| 18 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
| 19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
| 20 | * GNU General Public License for more details.
|
---|
| 21 | *
|
---|
| 22 | * You should have received a copy of the GNU General Public License
|
---|
| 23 | * along with this program; if not, write to the Free Software
|
---|
| 24 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
---|
| 25 | *
|
---|
| 26 | *********************************************************************/
|
---|
| 27 |
|
---|
[611] | 28 | #ifndef SETTINGS_H
|
---|
| 29 | #define SETTINGS_H
|
---|
| 30 |
|
---|
| 31 | #define GS_NETSCAPE 0
|
---|
| 32 | #define GS_IEXPLORE 1
|
---|
| 33 | #define GS_OTHER 2
|
---|
[9526] | 34 | #define GS_DEFAULT 3
|
---|
[611] | 35 |
|
---|
[11096] | 36 | // address resolution methods
|
---|
| 37 | #define ARM_NAME 0
|
---|
| 38 | #define ARM_IP 1
|
---|
[11319] | 39 | #define ARM_LOCALHOST 2
|
---|
| 40 | #define ARM_127_0_0_1 3
|
---|
[11096] | 41 |
|
---|
[902] | 42 | #include "text_t.h"
|
---|
| 43 | #include "cfgread.h"
|
---|
[1270] | 44 | #include "receptionist.h"
|
---|
[2286] | 45 | #include "locate.h"
|
---|
[611] | 46 |
|
---|
| 47 | // library settings
|
---|
[902] | 48 | extern text_t gsdl_enterlib;
|
---|
| 49 | extern text_t gsdl_gsdlhome;
|
---|
[16310] | 50 | extern text_t gsdl_collecthome;
|
---|
[15625] | 51 | extern text_t gsdl_dbhome;
|
---|
[902] | 52 | extern text_t gsdl_collections;
|
---|
| 53 | extern colinfo_tmap gsdl_collectinfo;
|
---|
[611] | 54 |
|
---|
[902] | 55 | extern char gsdl_staticpages[MAX_FILENAME_SIZE];
|
---|
[611] | 56 |
|
---|
| 57 | // debug settings
|
---|
[902] | 58 | extern char gsdl_log_name[MAX_FILENAME_SIZE];
|
---|
| 59 | extern int gsdl_keep_log;
|
---|
| 60 | extern int gsdl_show_console;
|
---|
[611] | 61 |
|
---|
| 62 | // general settings
|
---|
[902] | 63 | extern int gsdl_port_num;
|
---|
[19210] | 64 | extern int gsdl_external_access;
|
---|
[902] | 65 | extern int gsdl_auto_enter;
|
---|
| 66 | extern int gsdl_browser;
|
---|
| 67 | extern char gsdl_browser_exe[MAX_FILENAME_SIZE];
|
---|
[4292] | 68 | extern text_t gsdl_url;
|
---|
[4642] | 69 | extern text_t gsdl_conffile;
|
---|
[4339] | 70 | extern int gsdl_start_browser;
|
---|
[10231] | 71 | extern int gsdl_address_resolution_method;
|
---|
[611] | 72 |
|
---|
| 73 | void Settings_Dialog(HWND window, int netscapeneeded);
|
---|
| 74 |
|
---|
| 75 | void read_settings (int netscapeneeded);
|
---|
[4292] | 76 | void write_settings (const text_t url);
|
---|
[611] | 77 |
|
---|
[902] | 78 | void gsdl_check_browser_settings (int netscapeneeded);
|
---|
[611] | 79 |
|
---|
| 80 | #endif
|
---|