Functions
server_access.php File Reference

Functions

 getOptimizedFile ($in_file)
 Reads in a file of CSS, JS or XHTML, and returns it optimized.
 optimizeReturn ($in_data)
 Optimizes the given browser code. It removes PHP, for safety.
 parse_redirect (&$server)
 Queries the local server, and returns processed XHTML, JSON, CSV or XML.
 GetHeaderXHTML (&$in_server, $in_http_vars)
 This returns a string that is the embedded XHTML to be placed in the page >head< element. However, we can return just the style files or the script files, in space-delimited lists. These are menat to be broken up and used.
 GetSimpleSearchForm (&$in_server, $in_http_vars)
 This returns the basic search form.
 GetSearchResults ($in_http_vars)
 This returns the search results, in whatever form was requested.
 GetOneMeeting (&$in_server, $in_http_vars)
 This returns a single meeting.
 HandleDefault ($in_http_vars)
 Handles no command supplied (error)
 HandleNoServer ()
 Handles no server available (error).
 RedirectAJAX ($in_http_vars)
 This redirects AJAX calls, so that we don't have cross- domain AJAX (not allowed by browsers, as a security risk).

Function Documentation

GetHeaderXHTML ( &$  in_server,
in_http_vars 
)

This returns a string that is the embedded XHTML to be placed in the page >head< element. However, we can return just the style files or the script files, in space-delimited lists. These are menat to be broken up and used.

Returns:
XHTML-compliant XML.
Parameters:
in_serverA reference to an instance of c_comdef_server
in_http_varsThe HTTP GET and POST parameters.

Referenced by parse_redirect().

GetOneMeeting ( &$  in_server,
in_http_vars 
)

This returns a single meeting.

Returns:
XHTML-compliant XML.
Parameters:
in_serverA reference to an instance of c_comdef_server
in_http_varsThe HTTP GET and POST parameters.

Referenced by c_comdef_server::DuplicateMeetingID(), and parse_redirect().

getOptimizedFile ( in_file)

Reads in a file of CSS, JS or XHTML, and returns it optimized.

Returns:
a string, containing the optimized browser code.
GetSearchResults ( in_http_vars)

This returns the search results, in whatever form was requested.

Returns:
XHTML-compliant XML.
Parameters:
in_http_varsThe HTTP GET and POST parameters.
GetSimpleSearchForm ( &$  in_server,
in_http_vars 
)

This returns the basic search form.

Returns:
XHTML-compliant XML.
Parameters:
in_serverA reference to an instance of c_comdef_server
in_http_varsThe HTTP GET and POST parameters.

Referenced by parse_redirect().

HandleDefault ( in_http_vars)

Handles no command supplied (error)

Returns:
English error string (not XML).
Parameters:
in_http_varsThe HTTP GET and POST parameters.
HandleNoServer ( )

Handles no server available (error).

Returns:
null;
optimizeReturn ( in_data)

Optimizes the given browser code. It removes PHP, for safety.

Returns:
a string, containing the optimized browser code.

Referenced by DisplayMeetingSearchForm(), GetHeaderXHTML(), getOptimizedFile(), and parse_redirect().

parse_redirect ( &$  server)

Queries the local server, and returns processed XHTML, JSON, CSV or XML.

This requires that the "switcher=" parameter be set in the GET or POST parameters:

  • 'GetHeaderXHTML' Returns the head stuff for the displayed page.
  • 'GetSimpleSearchForm' Returns the search form.
  • 'RedirectAJAX' This is used to redirect AJAX calls, as cross-domain calls are barred.
Returns:
XHTML-compliant XML.
Parameters:
serverA reference to an instance of c_comdef_server
RedirectAJAX ( in_http_vars)

This redirects AJAX calls, so that we don't have cross- domain AJAX (not allowed by browsers, as a security risk).

Returns:
a JSON-compliant string.
Parameters:
in_http_varsThe HTTP GET and POST parameters.

Referenced by parse_redirect().

 All Classes Files Functions Variables Enumerations