Warning: Cannot modify header information - headers already sent by (output started at /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code:102) in /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code on line 4
Warning: Cannot modify header information - headers already sent by (output started at /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code:102) in /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code on line 4
Warning: Cannot modify header information - headers already sent by (output started at /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code:102) in /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code on line 4
Warning: Cannot modify header information - headers already sent by (output started at /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code:102) in /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code on line 4
Warning: Cannot modify header information - headers already sent by (output started at /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code:102) in /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code on line 4
Warning: Cannot modify header information - headers already sent by (output started at /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code:102) in /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code on line 4
* @version $Id: forget_me_not.mod 13893 2010-01-25 02:47:41Z pdontthink $
* @package plugins
* @subpackage squirrelspell
*/
global $SQSPELL_VERSION, $SQSPELL_APP_DEFAULT;
$words = $_POST['words'];
$sqspell_use_app = $_POST['sqspell_use_app'];
/**
* Because of the nature of Javascript, there is no way to efficiently
* pass an array. Hence, the words will arrive as a string separated by
* "%". To get the array, we explode the "%"'s.
* Dirty: yes. Is there a better solution? Let me know. ;)
*/
$new_words = ereg_replace("%", "\n", $words);
/**
* Load the user dictionary and see if there is anything in it.
*/
$words=sqspell_getWords();
if (!$words){
/**
* First time.
*/
$words_dic="# SquirrelSpell User Dictionary $SQSPELL_VERSION\n# Last "
. "Revision: " . date("Y-m-d")
. "\n# LANG: $SQSPELL_APP_DEFAULT\n# $SQSPELL_APP_DEFAULT\n";
$words_dic .= $new_words . "# End\n";
} else {
/**
* Do some fancy stuff in order to save the dictionary and not mangle the
* rest.
*/
$langs=sqspell_getSettings($words);
$words_dic = "# SquirrelSpell User Dictionary $SQSPELL_VERSION\n# "
. "Last Revision: " . date("Y-m-d") . "\n# LANG: " . join(", ", $langs)
. "\n";
for ($i=0; $i