Back to index

courier  0.68.2
cgirelscriptptr.c
Go to the documentation of this file.
00001 /*
00002 ** Copyright 1999-2007 Double Precision, Inc.
00003 ** See COPYING for distribution information.
00004 */
00005 
00006 /*
00007 */
00008 #include      "cgi.h"
00009 
00010 #if    HAVE_UNISTD_H
00011 #include      <unistd.h>
00012 #endif
00013 
00014 #include      <string.h>
00015 #include      <stdlib.h>
00016 #include      <stdio.h>
00017 
00018 extern void error(const char *);
00019 
00020 const char *cgirelscriptptr()
00021 {
00022        const char *p=getenv("HTTPS");
00023 
00024        if (p && strcasecmp(p, "on") == 0)
00025               return (cgihttpsscriptptr());
00026 
00027        return (cgihttpscriptptr());
00028 }