squirrelmail/squirrelmail.patch.plugins

Fri, 17 Apr 2009 23:40:08 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 17 Apr 2009 23:40:08 +0200
changeset 159
5524672ebbe7
parent 157
3214ed6c04f6
child 164
3a96478f1303
permissions
-rw-r--r--

Update and completely overhaul packaging and build configuration.

michael@157 1 Index: etc/squirrelmail/config.php
michael@157 2 diff -Nau etc/squirrelmail/config.php.orig etc/squirrelmail/config.php
michael@157 3 --- etc/squirrelmail/config.php.orig 2005-03-16 13:02:25 +0100
michael@157 4 +++ etc/squirrelmail/config.php 2005-03-16 12:31:51 +0100
michael@159 5 @@ -88,6 +88,24 @@
michael@159 6 $plugins[12] = 'squirrel_logger';
michael@159 7 $plugins[13] = 'translate';
michael@157 8
michael@159 9 +$plugins[14] = 'addgraphics';
michael@159 10 +$plugins[15] = 'avelsieve';
michael@159 11 +$plugins[16] = 'check_quota';
michael@159 12 +$plugins[17] = 'chg_sasl_passwd';
michael@159 13 +$plugins[18] = 'change_ldappass';
michael@157 14 +$plugins[19] = 'folder_sizes';
michael@157 15 +$plugins[20] = 'gpg';
michael@157 16 +$plugins[21] = 'ldifimport';
michael@157 17 +$plugins[22] = 'pupdate';
michael@157 18 +$plugins[23] = 'show_user_and_ip';
michael@157 19 +$plugins[24] = 'smallcal';
michael@157 20 +$plugins[25] = 'vkeyboard';
michael@157 21 +$plugins[26] = 'username';
michael@159 22 +$plugins[27] = 'login_notes';
michael@159 23 +$plugins[28] = 'password_forget';
michael@159 24 +$plugins[39] = 'captcha';
michael@159 25 +$plugins[30] = 'smime';
michael@157 26 +
michael@157 27 /* NOP, for patch line placeholder (avoids fuzz) */
michael@157 28 $theme_css = '';
michael@157 29 $theme_default = 0;
michael@157 30 Index: share/squirrelmail/plugins/gpg/setup.php
michael@157 31 diff -Nau share/squirrelmail/plugins/gpg/setup.php.orig share/squirrelmail/plugins/gpg/setup.php
michael@157 32 --- share/squirrelmail/plugins/gpg/setup.php.orig 2005-03-18 12:01:39.398171000 +0100
michael@157 33 +++ share/squirrelmail/plugins/gpg/setup.php 2005-03-18 12:03:35.986216000 +0100
michael@159 34 @@ -23,7 +23,9 @@
michael@159 35
michael@159 36 //define SM_PATH
michael@159 37 if (!defined ('SM_PATH')){
michael@157 38 - if (file_exists('./gpg_functions.php')){
michael@157 39 + if (file_exists('../../../plugins/gpg/gpg_functions.php')){
michael@159 40 + define ('SM_PATH' , '../../../');
michael@157 41 + } elseif (file_exists('../../plugins/gpg/gpg_functions.php')){
michael@159 42 define ('SM_PATH' , '../../');
michael@157 43 } elseif (file_exists('../plugins/gpg/gpg_functions.php')) {
michael@159 44 define ('SM_PATH', '../');
michael@157 45 Index: share/squirrelmail/plugins/chg_sasl_passwd/options.php
michael@157 46 diff -Nau share/squirrelmail/plugins/chg_sasl_passwd/options.php.orig share/squirrelmail/plugins/chg_sasl_passwd/options.php
michael@157 47 --- share/squirrelmail/plugins/chg_sasl_passwd/options.php.orig 2005-03-17 21:00:03.157951000 +0100
michael@157 48 +++ share/squirrelmail/plugins/chg_sasl_passwd/options.php 2005-03-18 14:16:40.480988000 +0100
michael@157 49 @@ -70,8 +70,8 @@
michael@157 50 ' "" + dir_path + "/../../src/signout.php?chg_sasl_passwd";' . "', 0);\n" .
michael@157 51 "//-->\n</script>\n";
michael@157 52
michael@157 53 - echo "<H2>" . _("Your password has successfully been changed.") . "</H2>\n";
michael@157 54 - echo '<div align=center>' . _("Please") . '<a href="' . SM_PATH .
michael@157 55 + echo "<H2><div align=center>" . _("Your password has successfully been changed.") . "</div></H2>\n";
michael@157 56 + echo '<div align=center>' . _("Please, ") . '<a href="' . SM_PATH .
michael@157 57 'src/signout.php?chg_sasl_passwd" TARGET=_top>' .
michael@157 58 _("logout and log back in using your new password.") . "</div>\n";
michael@157 59 }
michael@157 60 Index: share/squirrelmail/plugins/chg_sasl_passwd/setup.php
michael@157 61 diff -Nau share/squirrelmail/plugins/chg_sasl_passwd/setup.php.orig share/squirrelmail/plugins/chg_sasl_passwd/setup.php
michael@157 62 --- share/squirrelmail/plugins/chg_sasl_passwd/setup.php.orig 2005-03-03 00:38:44.000000000 +0100
michael@157 63 +++ share/squirrelmail/plugins/chg_sasl_passwd/setup.php 2005-03-18 14:29:52.513613000 +0100
michael@157 64 @@ -32,8 +32,12 @@
michael@157 65
michael@157 66 if (isset($_SERVER['QUERY_STRING']) &&
michael@157 67 stristr($_SERVER['QUERY_STRING'], 'chg_sasl_passwd') )
michael@157 68 - echo "<br><b>" . _("Your password has been changed. This requires that you logout and then log back in with the new password.") .
michael@157 69 - "<br><p><br>\n" . _("Logging out automagically") . ".<br><br>\n";
michael@157 70 + echo "<center>" .
michael@157 71 + "<br /><b>" . _("Your password has been changed.") .
michael@157 72 + "</b><br />" . _("This requires that you logout and then") .
michael@157 73 + "<br />" . _("log back in with the new password.") .
michael@157 74 + "<br /><br />" . _("Logging out automatically...") .
michael@157 75 + "</center><br /><br /><br />\n";
michael@157 76
michael@157 77 /* Switch back to the SquirrelMail domain */
michael@157 78 textdomain('squirrelmail');
michael@157 79 Index: share/squirrelmail/plugins/check_quota/config.sample.php
michael@157 80 diff -uaN share/squirrelmail/plugins/check_quota/config.sample.php.orig share/squirrelmail/plugins/check_quota/config.sample.php
michael@157 81 --- share/squirrelmail/plugins/check_quota/config.sample.php.orig 2008-01-03 06:39:34.000000000 +0100
michael@157 82 +++ share/squirrelmail/plugins/check_quota/config.sample.php 2008-01-03 06:39:48.000000000 +0100
michael@157 83 @@ -25,7 +25,7 @@
michael@157 84 * 0: UNIX / 1: IMAP / 2: cPanel
michael@157 85 */
michael@157 86
michael@157 87 -$settings['quota_type'] = 0;
michael@157 88 +$settings['quota_type'] = 1;
michael@157 89
michael@157 90
michael@157 91 /*
michael@159 92 Index: share/squirrelmail/plugins/captcha/functions.php
michael@159 93 diff -uaN share/squirrelmail/plugins/captcha/functions.php.orig share/squirrelmail/plugins/captcha/functions.php
michael@159 94 --- share/squirrelmail/plugins/captcha/functions.php.orig 2009-02-02 16:13:12.000000000 +0100
michael@159 95 +++ share/squirrelmail/plugins/captcha/functions.php 2009-04-17 22:30:41.804849878 +0200
michael@159 96 @@ -122,13 +122,15 @@
michael@159 97
michael@159 98 if (!empty($show_captcha_countries) || !empty($do_not_show_captcha_countries))
michael@159 99 {
michael@159 100 - include_once(SM_PATH . 'plugins/user_info/functions.php');
michael@159 101 + if (include_once(SM_PATH . 'plugins/user_info/functions.php'))
michael@159 102 + {
michael@159 103 $user_info = get_user_info();
michael@159 104 if (empty($user_info['country_code']))
michael@159 105 {
michael@159 106 do_err('CAPTCHA plugin used with $show_captcha_countries or $do_not_show_captcha_countries requires the User Information plugin with a IP-to-country module', FALSE);
michael@159 107 return TRUE;
michael@159 108 }
michael@159 109 + }
michael@159 110 }
michael@159 111 }
michael@159 112
michael@159 113 @@ -183,7 +185,8 @@
michael@159 114 if (!empty($hide_captcha_ips) || !empty($show_captcha_ips)
michael@159 115 && file_exists(SM_PATH . 'plugins/user_info/functions.php'))
michael@159 116 {
michael@159 117 - include_once(SM_PATH . 'plugins/user_info/functions.php');
michael@159 118 + if (include_once(SM_PATH . 'plugins/user_info/functions.php'))
michael@159 119 + {
michael@159 120 $user_info = get_user_info();
michael@159 121 if (!empty($user_info['ip_address']))
michael@159 122 {
michael@159 123 @@ -194,6 +197,7 @@
michael@159 124 && !captcha_match_ip_address($user_info['ip_address'], $show_captcha_ips))
michael@159 125 return;
michael@159 126 }
michael@159 127 + }
michael@159 128 }
michael@159 129
michael@159 130
michael@159 131 @@ -203,7 +207,8 @@
michael@159 132 if (!empty($show_captcha_countries) || !empty($do_not_show_captcha_countries)
michael@159 133 && file_exists(SM_PATH . 'plugins/user_info/functions.php'))
michael@159 134 {
michael@159 135 - include_once(SM_PATH . 'plugins/user_info/functions.php');
michael@159 136 + if (include_once(SM_PATH . 'plugins/user_info/functions.php'))
michael@159 137 + {
michael@159 138 $user_info = get_user_info();
michael@159 139 if (!empty($user_info['country_code']))
michael@159 140 {
michael@159 141 @@ -214,6 +219,7 @@
michael@159 142 && !in_array($user_info['country_code'], $show_captcha_countries))
michael@159 143 return;
michael@159 144 }
michael@159 145 + }
michael@159 146 }
michael@159 147
michael@159 148
michael@159 149 @@ -257,7 +263,8 @@
michael@159 150 if (!empty($hide_captcha_ips) || !empty($show_captcha_ips)
michael@159 151 && file_exists(SM_PATH . 'plugins/user_info/functions.php'))
michael@159 152 {
michael@159 153 - include_once(SM_PATH . 'plugins/user_info/functions.php');
michael@159 154 + if (include_once(SM_PATH . 'plugins/user_info/functions.php'))
michael@159 155 + {
michael@159 156 $user_info = get_user_info();
michael@159 157 if (!empty($user_info['ip_address']))
michael@159 158 {
michael@159 159 @@ -268,6 +275,7 @@
michael@159 160 && !captcha_match_ip_address($user_info['ip_address'], $show_captcha_ips))
michael@159 161 return;
michael@159 162 }
michael@159 163 + }
michael@159 164 }
michael@159 165
michael@159 166
michael@159 167 @@ -277,7 +285,8 @@
michael@159 168 if (!empty($show_captcha_countries) || !empty($do_not_show_captcha_countries)
michael@159 169 && file_exists(SM_PATH . 'plugins/user_info/functions.php'))
michael@159 170 {
michael@159 171 - include_once(SM_PATH . 'plugins/user_info/functions.php');
michael@159 172 + if (include_once(SM_PATH . 'plugins/user_info/functions.php'))
michael@159 173 + {
michael@159 174 $user_info = get_user_info();
michael@159 175 if (!empty($user_info['country_code']))
michael@159 176 {
michael@159 177 @@ -288,6 +297,7 @@
michael@159 178 && !in_array($user_info['country_code'], $show_captcha_countries))
michael@159 179 return;
michael@159 180 }
michael@159 181 + }
michael@159 182 }
michael@159 183
michael@159 184

mercurial