From 9e013fca2dc7cbb43d71f3d3ca6ec8236fb680f5 Mon Sep 17 00:00:00 2001 From: mark Date: Fri, 10 Feb 2012 20:59:23 +0000 Subject: [PATCH] terms of service for signup server, #16383 --- FS/FS/ClientAPI/Signup.pm | 2 ++ FS/FS/Conf.pm | 8 ++++++ fs_selfservice/FS-SelfService/cgi/signup.html | 36 ++++++++++++++++++++++++--- 3 files changed, 42 insertions(+), 4 deletions(-) diff --git a/FS/FS/ClientAPI/Signup.pm b/FS/FS/ClientAPI/Signup.pm index 595f4fb40..b026afd33 100644 --- a/FS/FS/ClientAPI/Signup.pm +++ b/FS/FS/ClientAPI/Signup.pm @@ -403,6 +403,8 @@ sub signup_info { qw( body_bgcolor box_bgcolor menu_bgcolor ) ), ( map { $_ => join("\n", $conf->config("selfservice-$_", $agentnum ) ) } qw( head body_header body_footer ) ), + ( map { $_ => join("\n", $conf->config("signup_server-$_", $agentnum ) ) } + qw( terms_of_service ) ), }; $cache->set("signup_info_cache_agent$agentnum", $signup_info_cache_agent); diff --git a/FS/FS/Conf.pm b/FS/FS/Conf.pm index 51f709349..b3d13e728 100644 --- a/FS/FS/Conf.pm +++ b/FS/FS/Conf.pm @@ -1982,6 +1982,14 @@ and customer address. Include units.', }, { + 'key' => 'signup_server-terms_of_service', + 'section' => 'self-service', + 'description' => 'Terms of Service for the signup server. May contain HTML.', + 'type' => 'textarea', + 'per_agent' => 1, + }, + + { 'key' => 'selfservice_server-base_url', 'section' => 'self-service', 'description' => 'Base URL for the self-service web interface - necessary for some widgets to find their way, including retrieval of non-US state information and phone number provisioning.', diff --git a/fs_selfservice/FS-SelfService/cgi/signup.html b/fs_selfservice/FS-SelfService/cgi/signup.html index 8204f5502..3c71e92c4 100755 --- a/fs_selfservice/FS-SelfService/cgi/signup.html +++ b/fs_selfservice/FS-SelfService/cgi/signup.html @@ -5,7 +5,12 @@ <%= $head %> - +<%= if ( $terms_of_service =~ /\S/ ) { # enable overlib + $OUT .= qq!\n! + foreach (qw(overlibmws overlibmws_iframe overlibmws_draggable + overlibmws_crossframe iframecontentmws )); +} +%> +  +I agree to the Terms of Service. +]; + } +%> +
+