|
@@ -61,6 +61,15 @@ function http_request_method: pchar;
|
|
}
|
|
}
|
|
function http_referer: pchar;
|
|
function http_referer: pchar;
|
|
|
|
|
|
|
|
+{ FUNCTION
|
|
|
|
+
|
|
|
|
+ This function returns the IP address of the client.
|
|
|
|
+
|
|
|
|
+ Input - Nothing
|
|
|
|
+ Output - an internet IP address.
|
|
|
|
+}
|
|
|
|
+function http_remote: pchar;
|
|
|
|
+
|
|
{ FUNCTION
|
|
{ FUNCTION
|
|
|
|
|
|
This function returns the users's USER AGENT, the browser name etc.
|
|
This function returns the users's USER AGENT, the browser name etc.
|
|
@@ -78,6 +87,8 @@ function http_useragent: pchar;
|
|
Output - If the identifier was found, the resulting value is
|
|
Output - If the identifier was found, the resulting value is
|
|
the output, otherwise the output is NIL
|
|
the output, otherwise the output is NIL
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+
|
|
function get_value(id: pchar): pchar;
|
|
function get_value(id: pchar): pchar;
|
|
|
|
|
|
{ FUNCTION
|
|
{ FUNCTION
|
|
@@ -404,7 +415,8 @@ begin
|
|
begin
|
|
begin
|
|
clen:=strpas (getenv('CONTENT_LENGTH'));
|
|
clen:=strpas (getenv('CONTENT_LENGTH'));
|
|
val(clen,qslen);
|
|
val(clen,qslen);
|
|
- if upcase(strpas(getenv('CONTENT_TYPE')))='APPLICATION/X-WWW-FORM-URLENCODED'
|
|
|
|
|
|
+ if (upcase(strpas(getenv('CONTENT_TYPE')))='APPLICATION/X-WWW-FORM-URLENCODED')
|
|
|
|
+ or (upcase(strpas(getenv('CONTENT_TYPE')))='TEXT/PLAIN')
|
|
then
|
|
then
|
|
begin
|
|
begin
|
|
getmem(querystring,qslen+1);
|
|
getmem(querystring,qslen+1);
|
|
@@ -452,6 +464,10 @@ begin
|
|
http_url:=getenv('REQUEST_URI');
|
|
http_url:=getenv('REQUEST_URI');
|
|
end;
|
|
end;
|
|
|
|
|
|
|
|
+function http_remote: pchar;
|
|
|
|
+begin
|
|
|
|
+ http_remote :=getenv('REMOTE_ADDR');
|
|
|
|
+end;
|
|
|
|
|
|
begin
|
|
begin
|
|
{$ifdef win32}
|
|
{$ifdef win32}
|
|
@@ -462,10 +478,14 @@ begin
|
|
fillchar(query_array,sizeof(query_array),0);
|
|
fillchar(query_array,sizeof(query_array),0);
|
|
end.
|
|
end.
|
|
|
|
|
|
|
|
+
|
|
{
|
|
{
|
|
HISTORY
|
|
HISTORY
|
|
$Log$
|
|
$Log$
|
|
- Revision 1.6 2002-09-12 16:24:59 michael
|
|
|
|
|
|
+ Revision 1.7 2002-10-10 05:48:20 michael
|
|
|
|
+ Added http_remote and fixed determining of input method. Fix courtesy of Antal <[email protected]>
|
|
|
|
+
|
|
|
|
+ Revision 1.6 2002/09/12 16:24:59 michael
|
|
+ Added http_url function from Michael Weinert
|
|
+ Added http_url function from Michael Weinert
|
|
|
|
|
|
Revision 1.5 2002/09/07 15:43:06 peter
|
|
Revision 1.5 2002/09/07 15:43:06 peter
|