added: some more orphans to polish default locale
added: new options to the config: url_proto: default: http:// url_ssl_proto: default: https:// use_ssl, use_ssl_static, use_ssl_common (whether or not to use SSL protocol) use_ssl_only_for_logged_users now we are able to use SSL encryption (https) together with normal connections removed: config option: base_server git-svn-id: svn://ttmath.org/publicrep/winix/trunk@755 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -17,7 +17,7 @@ namespace TemplatesFunctions
|
||||
{
|
||||
|
||||
|
||||
|
||||
static std::wstring doc_proto_str;
|
||||
|
||||
|
||||
|
||||
@@ -48,22 +48,44 @@ void doc_title(Info & i)
|
||||
|
||||
|
||||
|
||||
void doc_proto(Info & i)
|
||||
{
|
||||
system->PutUrlProto(config->use_ssl, doc_proto_str);
|
||||
i.out << doc_proto_str;
|
||||
}
|
||||
|
||||
|
||||
void doc_proto_static(Info & i)
|
||||
{
|
||||
system->PutUrlProto(config->use_ssl_static, doc_proto_str);
|
||||
i.out << doc_proto_str;
|
||||
}
|
||||
|
||||
|
||||
void doc_proto_common(Info & i)
|
||||
{
|
||||
system->PutUrlProto(config->use_ssl_common, doc_proto_str);
|
||||
i.out << doc_proto_str;
|
||||
}
|
||||
|
||||
|
||||
void doc_base_url(Info & i)
|
||||
{
|
||||
doc_proto(i);
|
||||
i.out << config->base_url;
|
||||
}
|
||||
|
||||
|
||||
void doc_base_url_static(Info & i)
|
||||
{
|
||||
doc_proto_static(i);
|
||||
i.out << config->base_url_static;
|
||||
}
|
||||
|
||||
|
||||
void doc_base_url_common(Info & i)
|
||||
{
|
||||
doc_proto_common(i);
|
||||
i.out << config->base_url_common;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user