Russian TYPO3 community

Russian TYPO3 community (http://forum.typo3.ru/index.php)
-   Разработка расширений / TYPO3 extension development (http://forum.typo3.ru/forumdisplay.php?f=38)
-   -   Как вставить PHP код до всякого TYPO3 кода.. Или почти до (http://forum.typo3.ru/showthread.php?t=693)

Valery Romanchev 29.07.2005 23:39

Как вставить PHP код до всякого TYPO3 кода.. Или почти до
 
Я делаю интеграцию vBulletin в TYPO3
На http://lacascara.tv
Работает нормально
Проблема том, что пришлось патчить index.php

chdir(\"/home/xxxx/httpdocs/forums/\");
require('./global.php');
chdir(\"../\");

(это вставляется в самом верху index.php )

Вставить этот код в сам экстеншен - не работает.

Может кто знает как это корректно сделать?

Заранее благодарю

Dmitry 30.07.2005 17:15

In your .htaccess or php.ini:

php_value auto_prepend_file /path/prepend.php php_value auto_append_file /path/prepend.php

You can use it with <Files> or <FilesMatch> directives to patch specific file.

Dmitry.


Часовой пояс GMT +4, время: 13:06.

Работает на vBulletin® версия 3.8.1.
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Перевод: zCarot