Changeset 465 for trunk/openmct/packages/system/owi/src/owi.c
- Timestamp:
- 10/03/07 14:04:56 (5 years ago)
- Files:
-
- 1 modified
-
trunk/openmct/packages/system/owi/src/owi.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/openmct/packages/system/owi/src/owi.c
r463 r465 50 50 "<ul id=\"navigation\">\n", title); 51 51 for (i = 0; modules[i].name != NULL; i++) { 52 printf("<li class=\"navigation %s\"><a href=\"%s \">%s</a></li>\n",52 printf("<li class=\"navigation %s\"><a href=\"%s?module=%s\">%s</a></li>\n", 53 53 modules[i].style, 54 getenv("SCRIPT_NAME"), 54 55 modules[i].name, 55 56 modules[i].description); … … 85 86 int main(int argc, char **argv) { 86 87 int i; 87 char *p = strrchr(argv[0], '/');88 88 char *module = NULL; 89 struct rlimit rlimit;90 91 getrlimit(RLIMIT_CORE, &rlimit);92 93 rlimit.rlim_max = 20000;94 95 setrlimit(RLIMIT_CORE, &rlimit);96 97 if (p) {98 module = p + 1;99 } else {100 module = argv[0];101 }102 89 103 90 owi_request(); … … 106 93 107 94 if (!strcmp(module, "")) { 108 module = "sysinfo.cgi"; 95 variable_set("module", "sysinfo"); 96 module = variable_get("module"); 109 97 } 110 98
