Ошибка в Register.php

Автор Sjoker, 14 ноября 2010, 09:32:40

« назад - далее »

0 Пользователи и 1 гость просматривают эту тему.

Sjoker

Никакие исправления в Register.php не вносились с момента установки.
При этом в логах иногда появляется от пользователя Гость
Цитироватьhttp://***/forum/index.php?action=verificationcode;vid=register;rand=e009dffbb8bc382e6ed3a8eeecfc4805;sound

8: Undefined index: code

Файл: /home/***/public_html/forum/Sources/Register.php
Строка: 768

Исходник:
762: // Show the verification code or let it hear.
763: function VerificationCode()
764: {
765: global $sourcedir, $modSettings, $context, $scripturl;
766:
767: $verification_id = isset($_GET['vid']) ? $_GET['vid'] : '';
==>768: $code = $verification_id && isset($_SESSION[$verification_id . '_vv']) ? $_SESSION[$verification_id . '_vv']['code'] : (isset($_SESSION['visual_verification_code']) ? $_SESSION['visual_verification_code'] : '');
769:
770: // Somehow no code was generated or the session was lost.
771: if (empty($code))
772: {
773: header('Content-Type: image/gif');
774: die("\x47\x49\x46\x38\x39\x61\x01\x00\x01\x00\x80\x00\x00\x00\x00\x00\x00\x00\x00\x21\xF9\x04\x01\x00\x00\x00\x00\x2C\x00\x00\x00\x00\x01\x00\x01\x00\x00\x02\x02\x44\x01\x00\x3B");
775: }
776:
777: // Show a window that will play the verification code.
778: elseif (isset($_REQUEST['sound']))
779: {
780: loadLanguage('Login');
781: loadTemplate('Register');
782:
783: $context['verification_sound_href'] = $scripturl . '?action=verificationcode;rand=' . md5(mt_rand()) . ($verification_id ? ';vid=' . $verification_id : '') . ';format=.wav';
784: $context['sub_template'] = 'verification_sound';
785: $context['template_layers'] = array();
786:
787: obExit();
788: }