Subversion Repositories RepoView

Rev

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

Rev 65 Rev 66
Line 1... Line 1...
1
/* $Id: modern.c 65 2024-08-23 11:00:12Z nishi $ */
1
/* $Id: modern.c 66 2024-08-24 06:24:31Z 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 246... Line 246...
246
		if(access(path, F_OK) != 0) {
246
		if(access(path, F_OK) != 0) {
247
			rv_avatar_generate(path, user);
247
			rv_avatar_generate(path, user);
248
		}
248
		}
249
		free(path);
249
		free(path);
250
	}
250
	}
251
	if(rv_get_query("username") != NULL) {
251
	if(rv_get_query("username") != NULL && rv_has_user(rv_get_query("username")) {
252
		char* un = rv_get_query("username");
252
		char* un = rv_get_query("username");
253
		char* tmp = rv_strcat3(AVATAR_ROOT, "/", un);
253
		char* tmp = rv_strcat3(AVATAR_ROOT, "/", un);
254
		char* path = rv_strcat(tmp, ".png");
254
		char* path = rv_strcat(tmp, ".png");
255
		free(tmp);
255
		free(tmp);
256
		if(access(path, F_OK) != 0) {
256
		if(access(path, F_OK) != 0) {