Subversion Repositories RepoView

Rev

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

Rev 48 Rev 49
Line 1... Line 1...
1
/* $Id: modern.c 48 2024-08-22 05:57:28Z nishi $ */
1
/* $Id: modern.c 49 2024-08-22 05:58:54Z nishi $ */
2
 
2
 
3
#include "rv_query.h"
3
#include "rv_query.h"
4
 
4
 
5
#include "rv_util.h"
5
#include "rv_util.h"
6
#include "rv_version.h"
6
#include "rv_version.h"
Line 237... Line 237...
237
		if(access(path, F_OK) != 0) {
237
		if(access(path, F_OK) != 0) {
238
			rv_avatar_generate(path, user);
238
			rv_avatar_generate(path, user);
239
		}
239
		}
240
		free(path);
240
		free(path);
241
	}
241
	}
-
 
242
	if(rv_get_query("username") != NULL) {
-
 
243
		char* un = rv_get_query("username");
-
 
244
		char* tmp = rv_strcat3(AVATAR_ROOT, "/", un);
-
 
245
		char* path = rv_strcat(tmp, ".png");
-
 
246
		free(tmp);
-
 
247
		if(access(path, F_OK) != 0) {
-
 
248
			rv_avatar_generate(path, un);
-
 
249
		}
-
 
250
		free(path);
-
 
251
	}
242
}
252
}
243
 
253
 
244
void render_page(void) {
254
void render_page(void) {
245
	rv_load_query('Q');
255
	rv_load_query('Q');
246
	char* query = rv_get_query("page");
256
	char* query = rv_get_query("page");