]> git.pld-linux.org Git - packages/squirrelmail.git/blame - squirrelmail-hide_abook_info.patch
This commit was manufactured by cvs2git to create tag 'AC-STABLE'.
[packages/squirrelmail.git] / squirrelmail-hide_abook_info.patch
CommitLineData
c1558f13 1diff -ur squirrelmail-1.4.6.orig/config/config_default.php squirrelmail-1.4.6/config/config_default.php
2--- squirrelmail-1.4.6.orig/config/config_default.php 2006-01-16 11:50:51.000000000 +0100
3+++ squirrelmail-1.4.6/config/config_default.php 2006-06-05 10:34:36.272569000 +0200
4@@ -860,6 +860,12 @@
5 */
6 $addrbook_global_listing = false;
7
8+/**
9+ * Hide info field in address book search results
10+ * @global boolean $hide_abook_info
11+ */
12+$hide_abook_info = false;
13+
14 /*** Language settings ***/
15 /**
16 * Default language
17diff -ur squirrelmail-1.4.6.orig/src/addrbook_search_html.php squirrelmail-1.4.6/src/addrbook_search_html.php
18--- squirrelmail-1.4.6.orig/src/addrbook_search_html.php 2006-02-03 23:27:53.000000000 +0100
19+++ squirrelmail-1.4.6/src/addrbook_search_html.php 2006-06-05 10:31:57.806665500 +0200
20@@ -68,7 +68,7 @@
21 * @param bool $includesource If true, adds backend column to address listing
22 */
23 function addr_display_result($res, $includesource = true) {
24- global $color, $javascript_on, $PHP_SELF, $squirrelmail_language;
25+ global $color, $javascript_on, $PHP_SELF, $squirrelmail_language, $hide_abook_info;
26
27 if (sizeof($res) <= 0) return;
28
29@@ -105,7 +105,7 @@
30 html_tag( 'th', '&nbsp;' . $chk_all, 'left' ) .
31 html_tag( 'th', '&nbsp;' . _("Name"), 'left' ) .
32 html_tag( 'th', '&nbsp;' . _("E-mail"), 'left' ) .
33- html_tag( 'th', '&nbsp;' . _("Info"), 'left' );
34+ ($hide_abook_info ? '' : html_tag( 'th', '&nbsp;' . _("Info"), 'left' ));
35
36 if ($includesource) {
37 echo html_tag( 'th', '&nbsp;' . _("Source"), 'left', '', 'width="10%"' );
38@@ -133,7 +133,7 @@
39 'center', '', 'width="5%" nowrap' ) .
40 html_tag( 'td', '&nbsp;' . htmlspecialchars($row['lastname']) . ' ' . htmlspecialchars($row['firstname']) . '&nbsp;', 'left', '', 'nowrap' ) .
41 html_tag( 'td', '&nbsp;' . htmlspecialchars($row['email']) . '&nbsp;', 'left', '', 'nowrap' ) .
42- html_tag( 'td', '&nbsp;' . htmlspecialchars($row['label']) . '&nbsp;', 'left', '', 'nowrap' );
43+ ($hide_abook_info ? '' : html_tag( 'td', '&nbsp;' . htmlspecialchars($row['label']) . '&nbsp;', 'left', '', 'nowrap' ));
44 } else {
45 echo html_tag( 'tr', '', '', $tr_bgcolor, 'nowrap' ) .
46 html_tag( 'td',
47@@ -146,7 +146,7 @@
48 'center', '', 'width="5%" nowrap' ) .
49 html_tag( 'td', '&nbsp;' . htmlspecialchars($row['name']) . '&nbsp;', 'left', '', 'nowrap' ) .
50 html_tag( 'td', '&nbsp;' . htmlspecialchars($row['email']) . '&nbsp;', 'left', '', 'nowrap' ) .
51- html_tag( 'td', '&nbsp;' . htmlspecialchars($row['label']) . '&nbsp;', 'left', '', 'nowrap' );
52+ ($hide_abook_info ? '' : html_tag( 'td', '&nbsp;' . htmlspecialchars($row['label']) . '&nbsp;', 'left', '', 'nowrap' ));
53 }
54
55 if ($includesource) {
56diff -ur squirrelmail-1.4.6.orig/src/addrbook_search.php squirrelmail-1.4.6/src/addrbook_search.php
57--- squirrelmail-1.4.6.orig/src/addrbook_search.php 2006-02-03 23:27:53.000000000 +0100
58+++ squirrelmail-1.4.6/src/addrbook_search.php 2006-06-05 10:31:57.806665500 +0200
59@@ -116,7 +116,7 @@
60 * @return void
61 */
62 function display_result($res, $includesource = true) {
63- global $color;
64+ global $color, $hide_abook_info;
65
66 if(sizeof($res) <= 0) return;
67
68@@ -128,7 +128,7 @@
69 html_tag( 'th', '&nbsp;', 'left' ) .
70 html_tag( 'th', '&nbsp;' . _("Name"), 'left' ) .
71 html_tag( 'th', '&nbsp;' . _("E-mail"), 'left' ) .
72- html_tag( 'th', '&nbsp;' . _("Info"), 'left' );
73+ ($hide_abook_info ? '' : html_tag( 'th', '&nbsp;' . _("Info"), 'left' ));
74
75 if ($includesource) {
76 echo html_tag( 'th', '&nbsp;' . _("Source"), 'left', '', 'width="10%"' );
77@@ -156,7 +156,7 @@
78 '<a href="javascript:to_and_close(' .
79 "'" . $email . "');\">" . htmlspecialchars($row['email']) . '</a>'
80 , 'left', '', 'valign="top"' ) .
81- html_tag( 'td', htmlspecialchars($row['label']), 'left', '', 'valign="top" nowrap' );
82+ ($hide_abook_info ? '' : html_tag( 'td', htmlspecialchars($row['label']), 'left', '', 'valign="top" nowrap' ));
83 if ($includesource) {
84 echo html_tag( 'td', '&nbsp;' . $row['source'], 'left', '', 'valign="top" nowrap' );
85 }
This page took 0.112318 seconds and 4 git commands to generate.