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: crypto_badkey.mod 13893 2010-01-25 02:47:41Z pdontthink $
* @package plugins
* @subpackage squirrelspell
*/
global $SCRIPT_NAME;
$delete_words = $_POST['delete_words'];
if(isset($_POST['old_key'])) {
$old_key = $_POST['old_key'];
}
if ($delete_words=='ON'){
/**
* $delete_words is passed via the query_string. If it's set, then
* the user asked to delete the file. Erase the bastard and hope
* this never happens again.
*/
sqspell_deleteWords();
/**
* See where we were called from -- pop-up window or options page
* and call whichever wrapper is appropriate.
* I agree, this is dirty. TODO: make it so it's not dirty.
*/
if (strstr($SCRIPT_NAME, 'sqspell_options')){
$msg='' . _("Your personal dictionary was erased.") . '
';
sqspell_makePage(_("Dictionary Erased"), null, $msg);
} else {
/**
* The _("Your....") has to be on one line. Otherwise xgettext borks
* on getting the strings.
*/
$msg = ''
. _("Your personal dictionary was erased. Please close this window and click \"Check Spelling\" button again to start your spellcheck over.")
. '
'
. '';
sqspell_makeWindow(null, _("Dictionary Erased"), null, $msg);
}
exit;
}
if ($old_key){
/**
* User provided another key to try and decrypt the dictionary.
* Call sqspell_getWords. If this key fails, the function will
* handle it.
*/
$words=sqspell_getWords();
/**
* It worked! Pinky, you're a genius!
* Write it back this time encrypted with a new key.
*/
sqspell_writeWords($words);
/**
* See where we are and call a necessary GUI-wrapper.
* Also dirty. TODO: Make this not dirty.
*/
if (strstr($SCRIPT_NAME, 'sqspell_options')){
$msg = ''
. _("Your personal dictionary was re-encrypted successfully. Now return to the "SpellChecker options" menu and make your selection again." )
. '
';
sqspell_makePage(_("Successful re-encryption"), null, $msg);
} else {
$msg = ''
. _("Your personal dictionary was re-encrypted successfully. Please close this window and click \"Check Spelling\" button again to start your spellcheck over.")
. '
';
sqspell_makeWindow(null, _("Dictionary re-encrypted"), null, $msg);
}
exit;
}
/**
* For Emacs weenies:
* Local variables:
* mode: php
* End:
* vim: syntax=php
*/
?>