Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 73: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 74: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 75: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 76: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 77: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 78: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
/** Calculates the checksum for a sentence */ public static String getChecksum(String sentence) { // Loop through all chars to get a checksum char character; int checksum = 0; int length = sentence.length(); for (int i = 0; i < length; i++) { character = sentence.charAt(i); switch (character) { case '$': // Ignore the dollar sign break; case '*': // Stop processing before the asterisk break; default: // Is this the first value for the checksum? if (checksum == 0) { // Yes. Set the checksum to the value checksum = (byte) character; } else { // No. XOR the checksum with this character's value checksum = checksum ^ ((byte) character); } } } // Return the checksum formatted as a two-character hexadecimal return Integer.toHexString(checksum); }