blob: e83a65990696ef7045a2f3ff55de79236dbab51c [file] [log] [blame]
MG Mud User88f12472016-06-24 23:31:02 +02001// MorgenGrauen MUDlib
2//
3// www.h -- World Wide Web Services
4//
5// $Id: www.h 7724 2011-01-05 22:32:26Z Zesstra $
6
7// how do you spell your mud name
8#ifndef MUDNAME
9# define MUDNAME "MorgenGrauen"
10#endif
11
12// Pathnames to different services
13// INETD -- the inet daemon
14#ifndef INETD
15# define INETD "/secure/inetd"
16#endif
17
18#define FINGER(n) "/p/daemon/finger"->finger_single(n)
19#define WHO "/obj/werliste"->QueryWhoListe(0,0,1)
20
21// UDPPATH -- wherethe udp programs are
22#define UDPPATH "/secure/udp"
23
24// the WWW request scheduler
25#define WWW (UDPPATH+"/www")
26#define TIMEOUT 5
27
28// wher to log all WWW UDP Requests
29#define WWWLOG "/WWW" // used in log_file()
30
31// define MUDHOST, WWW SERVER address and the ICON URL
32#ifndef MUDHOST
33# define MUDHOST "MG.Mud.DE"
34#else
35# undef MUDHOST
36# define MUDHOST "MG.Mud.DE"
37#endif
38#define MUDUSER "mud"
39#define SERVER "mg.mud.de"
40#define ICONS "/icons"
41#define MUDWWW "/cgi-bin/mudwww"
42
43// define the address of the MUD Host
44#define HOMEPAGE "http://"+SERVER+"/"
45#define MUDMAIL "mailto:"+MUDUSER+"@"+MUDHOST
46
47// Request Syntax tokens
48#define REQ "REQ" // TYPE of REQuest
49
50// The WWW Newsreader
51# define R_NEWS "news" // - we would like to read news
52# define GROUP "GROUP" // * which newsgroup
53# define ARTICLE "ARTICLE" // * which article
54
55// The WWW MUD Walker
56# define R_WALK "walk" // - or maybe walk around a bit
57# define ROOM "ROOM" // * ROOM to enter
58# define DETAIL "DETAIL" // * DETAIL to examine
59
60// The WWW Finger Request
61# define R_FINGER "finger" // - finger someone
62# define USER "USER" // * USER to retrieve info from
63
64// The WWW Wholist Request
65# define R_WHO "who" // - get the wholist
66
67// The WWW Intermud Gateway
68# define R_INTERMUD "intermud" // - intermud communication request
69# define IMUD "IMUD" // * The MUD to request info from
70# define TYPE "TYPE" // * The TYPE of Request
71# define IDATA "DATA" // * extra DATA to aid request
72# define PAGE "PAGE" // * Alphabetical pages of muds
73
74#define BACK "BACK" // PAGE to go BACK to
75
76#ifndef MUDNAME
77# define MUDNAME "TestMUD"
78#endif /* MUDNAME */
79
80// Property specific defines
81#define P_WWWINFO "wwwinfo"
82
83// The error message to view in any case
84#define ERROR(str) "<H1>Ein Fehler ist aufgetreten!</H1><HR>"+str
85
86// debugging (change name to your own!)
87#define DNAME "hate"
88#define DEBUG(str) if(find_player(DNAME)) \
89 tell_object(find_player(DNAME), sprintf("%O\n", str))
90//#undef DEBUG