Subversion Repositories RepoView

Rev

Rev 41 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 41 Rev 42
Line 1... Line 1...
1
/* $Id: main.c 41 2024-08-22 04:26:35Z nishi $ */
1
/* $Id: main.c 42 2024-08-22 05:25:09Z nishi $ */
2
 
2
 
3
#include <stdio.h>
3
#include <stdio.h>
4
 
4
 
5
#include "../config.h"
5
#include "../config.h"
6
 
6
 
Line 10... Line 10...
10
#include "rv_util.h"
10
#include "rv_util.h"
11
#include "rv_db.h"
11
#include "rv_db.h"
12
#include "rv_auth.h"
12
#include "rv_auth.h"
13
#include "rv_multipart.h"
13
#include "rv_multipart.h"
14
 
14
 
-
 
15
#ifdef USE_GRAPHICSMAGICK
-
 
16
#include "rv_magick.h"
-
 
17
#endif
-
 
18
 
15
#include <stdlib.h>
19
#include <stdlib.h>
16
#include <string.h>
20
#include <string.h>
17
#include <time.h>
21
#include <time.h>
18
 
22
 
19
char* postdata;
23
char* postdata;
-
 
24
char* nocache;
20
 
25
 
21
int main() {
26
int main() {
22
	srand(time(NULL));
27
	srand(time(NULL));
-
 
28
	nocache = malloc(512);
-
 
29
	sprintf(nocache, "?time=%llu", (unsigned long long)time(NULL));
23
	rv_check_sanity();
30
	rv_check_sanity();
24
	rv_init_db();
31
	rv_init_db();
-
 
32
	rv_init_magick();
25
	rv_parse_query(getenv("QUERY_STRING"));
33
	rv_parse_query(getenv("QUERY_STRING"));
26
	rv_save_query('Q');
34
	rv_save_query('Q');
27
	postdata = malloc(1);
35
	postdata = malloc(1);
28
	postdata[0] = 0;
36
	postdata[0] = 0;
29
	int hasauth = 0;
37
	int hasauth = 0;