// script COPY /cgi-bin/gridsite-copy.cgi
//
///////////////////////////////////////////////////////////////////
+#include <fcgi_stdio.h>
#include <stdio.h>
#include <time.h>
#include <string.h>
return written;
}
-int main( int argn, char **argv )
+int gridsite_copy()
{
char *getenv();
// the segmenty of code is tested on 19th sep. 2005
if( (ptr=curl_getenv("HTTP_COOKIE")) != NULL)
{
- ptr += 17;
+ ptr += 20;
strcpy( passcode, ptr );
}
printf("</body></html>\n");
return 0;
}
+
+int main( void )
+{
+
+ while(FCGI_Accept() >= 0){
+ gridsite_copy();
+ }
+}
+