Subversion Repositories RepoView

Rev

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

Rev 57 Rev 58
Line 1... Line 1...
1
/* $Id: modern.c 57 2024-08-22 06:05:28Z nishi $ */
1
/* $Id: modern.c 58 2024-08-22 06:08:27Z 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 792... Line 792...
792
			}
792
			}
793
		}
793
		}
794
	} else if(strcmp(query, "person") == 0) {
794
	} else if(strcmp(query, "person") == 0) {
795
		title = rv_strdup("Person");
795
		title = rv_strdup("Person");
796
		page = rv_strdup("");
796
		page = rv_strdup("");
-
 
797
		nav = rv_strdup("");
797
 
798
 
798
		rv_load_query('Q');
799
		rv_load_query('Q');
799
		if(rv_get_query("username") == NULL) {
800
		if(rv_get_query("username") == NULL) {
800
			add_data(&page, "Invalid Form.\n");
801
			add_data(&page, "Invalid Form.\n");
801
		} else {
802
		} else {
802
			if(rv_has_user(rv_get_query("username"))) {
803
			if(rv_has_user(rv_get_query("username"))) {
-
 
804
				add_data(&title, "<li><a href=\"#repolist\">Repository List</a></li>");
803
				add_data(&title, " - ");
805
				add_data(&title, " - ");
804
				add_data(&title, rv_get_query("username"));
806
				add_data(&title, rv_get_query("username"));
805
				char* path = rv_strcat3(BIO_ROOT, "/", rv_get_query("username"));
807
				char* path = rv_strcat3(BIO_ROOT, "/", rv_get_query("username"));
806
				FILE* f = fopen(path, "r");
808
				FILE* f = fopen(path, "r");
807
				if(f != NULL) {
809
				if(f != NULL) {