ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid-8/modules/m_post.c
Revision: 1243
Committed: Fri Sep 30 10:47:53 2011 UTC (12 years, 6 months ago) by michael
Content type: text/x-csrc
File size: 2392 byte(s)
Log Message:
- move content of msg.h, ircd_handler.h and handlers.h into parse.h and
  remove headers accordingly
- killed common.h
- remove m_killhost.c and m_flags.c from contrib/
- sort out unused header includes here and there

File Contents

# Content
1 /*
2 * ircd-hybrid: an advanced Internet Relay Chat Daemon(ircd).
3 * m_post.c: Exits the user if unregistered, it is a web form.
4 *
5 * Copyright (C) 2001-2002 Hybrid Development Team
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
20 * USA
21 *
22 * $Id$
23 */
24
25 #include "stdinc.h"
26 #include "client.h"
27 #include "ircd.h"
28 #include "send.h"
29 #include "parse.h"
30 #include "modules.h"
31
32
33 /*
34 ** mr_dumb_proxy
35 ** parv[0] = sender prefix
36 ** parv[1] = comment
37 */
38 static void
39 mr_dumb_proxy(struct Client *client_p, struct Client *source_p,
40 int parc, char *parv[])
41 {
42 sendto_realops_flags(UMODE_REJ, L_ALL,
43 "HTTP Proxy disconnected: [%s@%s]",
44 client_p->username, client_p->host);
45 exit_client(source_p, source_p, "Client Exit");
46 }
47
48 static struct Message post_msgtab = {
49 "POST", 0, 0, 0, MAXPARA, MFLG_SLOW | MFLG_UNREG, 0,
50 {mr_dumb_proxy, m_ignore, m_ignore, m_ignore, m_ignore, m_ignore}
51 };
52
53 static struct Message get_msgtab = {
54 "GET", 0, 0, 0, MAXPARA, MFLG_SLOW | MFLG_UNREG, 0,
55 {mr_dumb_proxy, m_ignore, m_ignore, m_ignore, m_ignore, m_ignore}
56 };
57
58 static struct Message put_msgtab = {
59 "PUT", 0, 0, 0, MAXPARA, MFLG_SLOW | MFLG_UNREG, 0,
60 {mr_dumb_proxy, m_ignore, m_ignore, m_ignore, m_ignore, m_ignore}
61 };
62
63 static void
64 module_init(void)
65 {
66 mod_add_cmd(&post_msgtab);
67 mod_add_cmd(&get_msgtab);
68 mod_add_cmd(&put_msgtab);
69 }
70
71 static void
72 module_exit(void)
73 {
74 mod_del_cmd(&post_msgtab);
75 mod_del_cmd(&get_msgtab);
76 mod_del_cmd(&put_msgtab);
77 }
78
79 struct module module_entry = {
80 .node = { NULL, NULL, NULL },
81 .name = NULL,
82 .version = "$Revision$",
83 .handle = NULL,
84 .modinit = module_init,
85 .modexit = module_exit,
86 .flags = 0
87 };

Properties

Name Value
svn:eol-style native
svn:keywords Id Revision