~ubuntu-branches/ubuntu/hardy/squirrelmail/hardy-updates

« back to all changes in this revision

Viewing changes to plugins/squirrelspell/modules/forget_me_not.mod

  • Committer: Bazaar Package Importer
  • Author(s): Thijs Kinkhorst, Jeroen van Wolffelaar, Thijs Kinkhorst
  • Date: 2005-08-15 21:06:00 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20050815210600-qxvat452exjqg64j
Tags: 2:1.4.5-2
[ Jeroen van Wolffelaar ]
* Restore squirrelmail-configure manpage, accidently dropped in -1
* Use debhelper compat level 4

[ Thijs Kinkhorst ]
* Drop obsolete symlink for attachment dir.
* Do not ship upstream README, which contains hardly any information
  relevant to Debian. Extend README.Debian a bit. Thanks W. Borgert.
* Add years to copyright statement.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?php 
 
1
<?php
2
2
/**
3
 
 * forget_me_not.mod 
 
3
 * forget_me_not.mod
4
4
 * ------------------
5
5
 * Squirrelspell module
6
6
 *
7
 
 * Copyright (c) 1999-2003 The SquirrelMail development team
 
7
 * Copyright (c) 1999-2005 The SquirrelMail Project Team
8
8
 * Licensed under the GNU GPL. For full terms see the file COPYING.
9
9
 *
10
10
 * This module saves the added words into the user dictionary. Called
11
 
 * after CHECK_ME module.                                            
12
 
 *
13
 
 * $Id: forget_me_not.mod,v 1.4.2.2 2004/10/31 20:24:38 cigamit Exp $
14
 
 *
15
 
 * @author Konstantin Riabitsev <icon@duke.edu> ($Author: cigamit $)
 
11
 * after CHECK_ME module.
 
12
 *
 
13
 * @author Konstantin Riabitsev <icon@duke.edu>
 
14
 * @version $Id: forget_me_not.mod,v 1.4.2.4 2005/06/04 21:57:32 jervfors Exp $
 
15
 * @package plugins
 
16
 * @subpackage squirrelspell
16
17
 */
17
18
 
18
19
global $SQSPELL_VERSION, $SQSPELL_APP_DEFAULT;
36
37
   * First time.
37
38
   */
38
39
  $words_dic="# SquirrelSpell User Dictionary $SQSPELL_VERSION\n# Last "
39
 
     . "Revision: " . date("Y-m-d") 
 
40
     . "Revision: " . date("Y-m-d")
40
41
     . "\n# LANG: $SQSPELL_APP_DEFAULT\n# $SQSPELL_APP_DEFAULT\n";
41
42
  $words_dic .= $new_words . "# End\n";
42
43
} else {
46
47
   */
47
48
  $langs=sqspell_getSettings($words);
48
49
  $words_dic = "# SquirrelSpell User Dictionary $SQSPELL_VERSION\n# "
49
 
     . "Last Revision: " . date("Y-m-d") . "\n# LANG: " . join(", ", $langs) 
 
50
     . "Last Revision: " . date("Y-m-d") . "\n# LANG: " . join(", ", $langs)
50
51
     . "\n";
51
52
  for ($i=0; $i<sizeof($langs); $i++){
52
53
    $lang_words=sqspell_getLang($words, $langs[$i]);
60
61
  }
61
62
  $words_dic .= "# End\n";
62
63
}
63
 
    
 
64
 
64
65
/**
65
66
 * Write out the file
66
67
 */
71
72
$onload = "setTimeout('self.close()', 2000)";
72
73
$msg = '<form onsubmit="return false"><div align="center">'
73
74
   . '<input type="submit" value="  '
74
 
   . _("Close") . '  " onclick="self.close()"></div></form>';
 
75
   . _("Close") . '  " onclick="self.close()" /></div></form>';
75
76
sqspell_makeWindow($onload, _("Personal Dictionary Updated"), null, $msg);
76
77
 
77
78
/**
82
83
 * vim: syntax=php
83
84
 */
84
85
 
85
 
?>
 
86
?>
 
 
b'\\ No newline at end of file'