Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

pages.h File Reference

#include "session.h"

Go to the source code of this file.

Defines

#define SET_MBR_BOOLEAN(xtn, key, mbr)
#define SET_MBR_INTEGER(xtn, key, mbr)
#define SET_MBR_TEXT(xtn, key, mbr)
#define VALIDATE_SESSION(args, xtn, session)

Functions

aw_wwwhandler_io_code_t aw_websmcphandler_admin (aw_handler_args_t *args, aw_wwwhandler_xtn_t *xtn)
aw_wwwhandler_io_code_t aw_websmcphandler_alerts (aw_handler_args_t *args, aw_wwwhandler_xtn_t *xtn)
int32_t aw_websmcphandler_footeri (aw_wwwhandler_xtn_t *xtn, aw_websmcphandler_session_t *session)
int32_t aw_websmcphandler_headeri (aw_wwwhandler_xtn_t *xtn, aw_websmcphandler_session_t *session, const byte_t *head, const byte_t *pagetitle, const byte_t *helpcmd, int32_t menu)
aw_wwwhandler_io_code_t aw_websmcphandler_home (aw_handler_args_t *args, aw_wwwhandler_xtn_t *xtn)
aw_wwwhandler_io_code_t aw_websmcphandler_homep (aw_handler_args_t *args, aw_wwwhandler_xtn_t *xtn, aw_websmcphandler_session_t *session)
aw_wwwhandler_io_code_t aw_websmcphandler_login (aw_handler_args_t *args, aw_wwwhandler_xtn_t *xtn)
aw_wwwhandler_io_code_t aw_websmcphandler_loginp (aw_handler_args_t *args, aw_wwwhandler_xtn_t *xtn, aw_websmcphandler_session_t *session, byte_t *message)
aw_wwwhandler_io_code_t aw_websmcphandler_loginx (aw_handler_args_t *args, aw_wwwhandler_xtn_t *xtn)
aw_wwwhandler_io_code_t aw_websmcphandler_logoutx (aw_handler_args_t *args, aw_wwwhandler_xtn_t *xtn)
aw_wwwhandler_io_code_t aw_websmcphandler_nodes (aw_handler_args_t *args, aw_wwwhandler_xtn_t *xtn)
aw_wwwhandler_io_code_t aw_websmcphandler_service_list (aw_handler_args_t *args, aw_wwwhandler_xtn_t *xtn)
aw_wwwhandler_io_code_t aw_websmcphandler_tools (aw_handler_args_t *args, aw_wwwhandler_xtn_t *xtn)
aw_wwwhandler_io_code_t aw_websmcphandler_tools_dnslookup (aw_handler_args_t *args, aw_wwwhandler_xtn_t *xtn)
aw_wwwhandler_io_code_t aw_websmcphandler_tools_dnslookupframe (aw_handler_args_t *args, aw_wwwhandler_xtn_t *xtn)
aw_wwwhandler_io_code_t aw_websmcphandler_tools_ping (aw_handler_args_t *args, aw_wwwhandler_xtn_t *xtn)
aw_wwwhandler_io_code_t aw_websmcphandler_tools_pingframe (aw_handler_args_t *args, aw_wwwhandler_xtn_t *xtn)
aw_wwwhandler_io_code_t aw_websmcphandler_tools_traceroute (aw_handler_args_t *args, aw_wwwhandler_xtn_t *xtn)
aw_wwwhandler_io_code_t aw_websmcphandler_tools_tracerouteframe (aw_handler_args_t *args, aw_wwwhandler_xtn_t *xtn)


Define Documentation

#define SET_MBR_BOOLEAN (  xtn,
key,
mbr   ) 
 

Value:

{ \
 byte_t const *val = aw_wwwhandler_get_cgiarg( (xtn), (key)); \
 if ( val != NULL ) mbr = 1; else mbr = 0; \
}

#define SET_MBR_INTEGER (  xtn,
key,
mbr   ) 
 

Value:

{ \
 byte_t const *val = aw_wwwhandler_get_cgiarg( (xtn), (key)); \
 if ( val != NULL ) mbr = atoi(val); \
}

#define SET_MBR_TEXT (  xtn,
key,
mbr   ) 
 

Value:

{ \
 byte_t const *val = aw_wwwhandler_get_cgiarg( (xtn), (key)); \
 if ( val != NULL ) strncpy((mbr), val, sizeof((mbr))-1); \
}

#define VALIDATE_SESSION (  args,
xtn,
session   ) 
 

Value:

{ \
 if (session == NULL || ! session->authenticated || session->clientip.ip.addr != xtn->clientip.ip.addr ) \
  return aw_websmcphandler_loginp(args, xtn, session, "<font color=red>Your session has expired</font>"); \
 /* this appends the user's login to xtn log records */\
 xtn->appendlog = strdup(session->loginid); \
}
macro to validate session, should be called on entry to each page function


Function Documentation

aw_wwwhandler_io_code_t aw_websmcphandler_admin (  aw_handler_args_t *  args,
aw_wwwhandler_xtn_t *  xtn
) 
 

aw_wwwhandler_io_code_t aw_websmcphandler_alerts (  aw_handler_args_t *  args,
aw_wwwhandler_xtn_t *  xtn
) 
 

int32_t aw_websmcphandler_footeri (  aw_wwwhandler_xtn_t *  xtn,
aw_websmcphandler_session_t *  session
) 
 

int32_t aw_websmcphandler_headeri (  aw_wwwhandler_xtn_t *  xtn,
aw_websmcphandler_session_t *  session,
const byte_t *  head,
const byte_t *  pagetitle,
const byte_t *  helpcmd,
int32_t  menu
) 
 

aw_wwwhandler_io_code_t aw_websmcphandler_home (  aw_handler_args_t *  args,
aw_wwwhandler_xtn_t *  xtn
) 
 

aw_wwwhandler_io_code_t aw_websmcphandler_homep (  aw_handler_args_t *  args,
aw_wwwhandler_xtn_t *  xtn,
aw_websmcphandler_session_t *  session
) 
 

aw_wwwhandler_io_code_t aw_websmcphandler_login (  aw_handler_args_t *  args,
aw_wwwhandler_xtn_t *  xtn
) 
 

aw_wwwhandler_io_code_t aw_websmcphandler_loginp (  aw_handler_args_t *  args,
aw_wwwhandler_xtn_t *  xtn,
aw_websmcphandler_session_t *  session,
byte_t *  message
) 
 

aw_wwwhandler_io_code_t aw_websmcphandler_loginx (  aw_handler_args_t *  args,
aw_wwwhandler_xtn_t *  xtn
) 
 

aw_wwwhandler_io_code_t aw_websmcphandler_logoutx (  aw_handler_args_t *  args,
aw_wwwhandler_xtn_t *  xtn
) 
 

aw_wwwhandler_io_code_t aw_websmcphandler_nodes (  aw_handler_args_t *  args,
aw_wwwhandler_xtn_t *  xtn
) 
 

aw_wwwhandler_io_code_t aw_websmcphandler_service_list (  aw_handler_args_t *  args,
aw_wwwhandler_xtn_t *  xtn
) 
 

aw_wwwhandler_io_code_t aw_websmcphandler_tools (  aw_handler_args_t *  args,
aw_wwwhandler_xtn_t *  xtn
) 
 

aw_wwwhandler_io_code_t aw_websmcphandler_tools_dnslookup (  aw_handler_args_t *  args,
aw_wwwhandler_xtn_t *  xtn
) 
 

aw_wwwhandler_io_code_t aw_websmcphandler_tools_dnslookupframe (  aw_handler_args_t *  args,
aw_wwwhandler_xtn_t *  xtn
) 
 

aw_wwwhandler_io_code_t aw_websmcphandler_tools_ping (  aw_handler_args_t *  args,
aw_wwwhandler_xtn_t *  xtn
) 
 

aw_wwwhandler_io_code_t aw_websmcphandler_tools_pingframe (  aw_handler_args_t *  args,
aw_wwwhandler_xtn_t *  xtn
) 
 

aw_wwwhandler_io_code_t aw_websmcphandler_tools_traceroute (  aw_handler_args_t *  args,
aw_wwwhandler_xtn_t *  xtn
) 
 

aw_wwwhandler_io_code_t aw_websmcphandler_tools_tracerouteframe (  aw_handler_args_t *  args,
aw_wwwhandler_xtn_t *  xtn
) 
 

Aware 0.11.1 Copyright (C) 1998-2005 Russell Leighton (russ@elegant-software.com)