Roxen.git
/
server
/
config_interface
/
logutil.pike
version
»
Context lines:
10
20
40
80
file
none
3
Roxen.git/server/config_interface/logutil.pike:99:
sscanf(reference, "%[^/]", server); if(conf = roxen->find_configuration( server )) links += sprintf("<a href=\"%s\">%s</a> : ", @get_conf_url_to_virtual_server( conf, lang )); case 1: // find_configuration(configinterface)->query_name() == realname if(module = Roxen.get_module( reference )) links += sprintf("<a href=\"%s\">%s</a> : ", @get_conf_url_to_module( module, lang )); }
-
return "<table><tr><td valign=\"top\"><
img
src=&usr.err-"+code+"; \n"
+
return "<table><tr><td valign=\"top\"><
imgs
src=&usr.err-"+code+"; \n"
"alt=\"" + codetext[code-1] + "\" />" "</td><td>" + links + (nt?"":describe_times(times)+"<br />") + replace(fix_err(err), "\n", "<br />\n") + "</table>"; } // Returns ({ URL to module config page, human-readable (full) module name }) array(string) get_conf_url_to_module(string|RoxenModule m, string|void lang) { // module is either a RoxenModule object or a string as returned by // get_modname(some RoxenModule), eg "ConfigInterface/piketag#0" RoxenModule module = stringp(m) ? Roxen.get_module(m) : m; Configuration conf = module->my_configuration(); string url_modname = replace(conf->otomod[module], "#", "!"), url_confname = conf->name; return ({ sprintf("/sites/site.html/%s/-!-/%s/?section=Information",
-
Roxen.http_encode_
string
(url_confname),
-
Roxen.http_encode_
string
(url_modname)),
-
Roxen.get_modfullname(module) });
+
Roxen.http_encode_
url
(url_confname),
+
Roxen.http_encode_
url
(url_modname)),
+
Roxen.
html_encode_string(Roxen.
get_modfullname(module)
)
});
} // Returns ({ URL to virtual server config page, virtual server name }) array(string) get_conf_url_to_virtual_server(string|Configuration conf, string|void lang) { // conf is either a conf object or the configuration's real name, // eg "ConfigInterface" string url_confname; if(stringp(conf)) conf = roxen->find_configuration(url_confname = conf); else url_confname = conf->name; return ({ sprintf("/sites/site.html/%s/",
-
Roxen.http_encode_
string
(url_confname)), conf->query_name() });
+
Roxen.http_encode_
url
(url_confname)),
+
Roxen.html_encode_string(
conf->query_name()
)
});
}