Update of /cvsroot/phpwebsite-comm/modules/rolodex/boost
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8253/boost
Modified Files:
boost.php install.sql update.php
Log Message:
1.0.1 changes
Index: install.sql
===================================================================
RCS file: /cvsroot/phpwebsite-comm/modules/rolodex/boost/install.sql,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** install.sql 12 Jun 2008 21:18:48 -0000 1.3
--- install.sql 17 Jul 2008 13:50:16 -0000 1.4
***************
*** 14,17 ****
--- 14,18 ----
image text,
privacy smallint NOT NULL default 0,
+ email_privacy smallint NOT NULL default 0,
active smallint NOT NULL default 0,
custom1 varchar(255),
Index: boost.php
===================================================================
RCS file: /cvsroot/phpwebsite-comm/modules/rolodex/boost/boost.php,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** boost.php 3 Jul 2008 14:09:59 -0000 1.5
--- boost.php 17 Jul 2008 13:50:16 -0000 1.6
***************
*** 24,28 ****
$proper_name = 'Rolodex';
! $version = '1.0.0';
$image_dir = true;
$import_sql = true;
--- 24,28 ----
$proper_name = 'Rolodex';
! $version = '1.0.1';
$image_dir = true;
$import_sql = true;
Index: update.php
===================================================================
RCS file: /cvsroot/phpwebsite-comm/modules/rolodex/boost/update.php,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** update.php 7 Jul 2008 14:06:16 -0000 1.10
--- update.php 17 Jul 2008 13:50:16 -0000 1.11
***************
*** 142,145 ****
--- 142,168 ----
+ case version_compare($currentVersion, '1.0.1', '<'):
+ $content[] = '<pre>';
+ $db = new PHPWS_DB('rolodex_member');
+ if (!$db->isTableColumn('email_privacy')) {
+ if (PHPWS_Error::logIfError($db->addTableColumn('email_privacy', 'smallint NOT NULL default 0'))) {
+ $content[] = '--- Could not create column email_privacy on rolodex_member table.</pre>';
+ return false;
+ } else {
+ $content[] = '--- Created email_privacy column on rolodex_member table.';
+ }
+ }
+
+ $files = array('templates/edit_member.tpl');
+ rolodexUpdateFiles($files, $content);
+
+ $content[] = '1.0.1 changes
+ ----------------
+ + Added support for email/contact link privacy at user level
+ + Minor layout tweaks
+ </pre>';
+
+
+
|