Страница 1 из 1

UserManager PHP5.2

Добавлено: 2011-08-15 17:05:24
zeone
Здравствуйте!
Случилась следующая проблема, на сервере стит пурфтп для его администрирования используется веб интерфейс UserManager. Пока стоял пхп версии 5.3... все работало нормально, но пришлось откатиться на версию 5.2.17 после этого в верхней части веб морды появилась следующая надпись :

Код: Выделить всё

\n"); $LFile = "english.php"; } require("language/".$LFile); // Read the language file ?>
При этом он не может прочитать языковый файл и поля стоят без названий. По сообщению выше я нашел пхп файл в котором собственно и происходит проверка языка и выбор языкового файла, вот его код:

Код: Выделить всё

<?

        /* 'User manager for PureFTPd' is made by M.Mastenbroek 2002 - 2005
         *  For more info look at http://machiel.generaal.net
         *  Version 2.1
         *
         *
         *  I can only speak my natural language (Dutch) and a little bit English, so if people
         *  use my script and have the time, knowledge and the spitted to add a language
         *  feel yourself free. I think the syntax speaks for itself. If you added a language or you have
         *  questions about it, you can contact me at machiel.mastenbroek@gmail.com, if
         *  that doesn?t work check my website how to contact me.
         */

        $LFile = strtolower($LANG).".php";

        if (!file_exists("language/".$LFile)) // If the language doesn't exist we use the 'default' language english
        {
                // echo ("File '$LFile' doesn't exist ! <br>\n");
                $LFile = "english.php";
        }

        require("language/".$LFile); // Read the language file

?>
Мне непонятно почему он начинает писать часть кода который притом закоментирован.

Re: UserManager PHP5.2

Добавлено: 2011-08-15 19:17:48
Electronik

Код: Выделить всё

short_open_tag = On
в php.ini

Re: UserManager PHP5.2

Добавлено: 2011-08-16 9:09:24
zeone
Спасибо тебе огромное, добрый человек