[Slashdotjp-dev 705] [212] add enable/disable switch to agree privacy statement on create user

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2007年 10月 23日 (火) 17:54:05 JST


Revision: 212
          http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=slashdotjp&view=rev&rev=212
Author:   tach
Date:     2007-10-23 17:54:04 +0900 (Tue, 23 Oct 2007)

Log Message:
-----------
add enable/disable switch to agree privacy statement on create user

Modified Paths:
--------------
    slashjp/trunk/plugins/Login/login.pl
    slashjp/trunk/sql/mysql/defaults.sql


-------------- next part --------------
Modified: slashjp/trunk/plugins/Login/login.pl
===================================================================
--- slashjp/trunk/plugins/Login/login.pl	2007-10-23 08:51:26 UTC (rev 211)
+++ slashjp/trunk/plugins/Login/login.pl	2007-10-23 08:54:04 UTC (rev 212)
@@ -85,7 +85,7 @@
 	if (!$newnick) {
 		push @note, getData('nick_invalid');
 		$error = 1;
-	} elsif (!$form->{agree_priv_cont}) {
+	} elsif ($constants->{use_privacy_agreement} && !$form->{agree_priv_cont}) {
 		push @note, getData('not_agree_priv_cont');
 		$error = 1;
 	} elsif (!$form->{email} || !emailValid($form->{email})) {

Modified: slashjp/trunk/sql/mysql/defaults.sql
===================================================================
--- slashjp/trunk/sql/mysql/defaults.sql	2007-10-23 08:51:26 UTC (rev 211)
+++ slashjp/trunk/sql/mysql/defaults.sql	2007-10-23 08:54:04 UTC (rev 212)
@@ -1126,6 +1126,7 @@
 INSERT IGNORE INTO vars (name, value, description) VALUES ('rss_entitize_nonascii', 1, 'Convert non-ASCII-printable characters into entities?');
 INSERT IGNORE INTO vars (name, value, description) VALUES ('tweak_japanese','0','Special tweak for Japanese.');
 INSERT IGNORE INTO vars (name, value, description) VALUES ('use_dept_space2dash','1','replace whitespace to dash at \"dept.\" field');
+INSERT IGNORE INTO vars (name, value, description) VALUES ('use_privacy_agreement','0','Need to agree privacy statement on create user');
 UPDATE vars SET value='text/html; charset=UTF-8' WHERE name='content_type_webpage';
 UPDATE vars SET value='0' WHERE name='draconian_charset';
 UPDATE vars SET value='UTF-8' WHERE name='rdfencoding';


Slashdotjp-dev メーリングリストの案内
Back to archive index