Бормотухи.НЕТ

Вернуться   Бормотухи.НЕТ > Web-мастеру > vBulletin 4.x
Расширенный поиск

vBulletin 4.x Все для скрипта форума vBulletin 4.x

Ответ
 
Опции темы Поиск в этой теме
Старый 21.11.2012, 17:52 Вверх   #1
Новичок
 
Аватар для UbiFox
UbiFox вне форума
Доп. информация
По умолчанию Let Live PHP - vBulletin 4.x.x

PHP код:
<?xml version="1.0" encoding="ISO-8859-1"?>

<product productid="letphplive" active="1">
 <title>Let PHP Live!</title>
 <description>Allows for PHP execution in vBulletin templates.</description>
 <version>1</version>
 <url />
 <versioncheckurl />
 <dependencies>
 </dependencies>
 <codes>
 </codes>
 <templates>
 </templates>
 <plugins>
  <plugin active="1" executionorder="0">
   <title>Allow PHP</title>
   <hookname>template_compile</hookname>
   <phpcode><![CDATA[if (!function_exists('let_php_live')) {
  function let_php_live($matches) {
   $starter = $matches[1] ;
  $code = str_replace(array('\'', '\"'), array('\\\'', '"'), $matches[2]) ;
 
  return $starter == '<?=' ? "\".eval('return $code;').\"" : "\".eval('ob_start();$code;return ob_get_clean();').\"" ;
 }
}

$template = preg_replace_callback('
/(<\?=|<\?php|<\?)(.*)\?>/Us', 'let_php_live', $template);]]></phpcode>
  </plugin>
 </plugins>
 <phrases>
 </phrases>
 <options>
 </options>
 <helptopics>
 </helptopics>
 <cronentries>
 </cronentries>
 <faqentries>
 </faqentries>
</product>
Почему не работает на vBulletin 4.x.x? Что нужно исправить?
  Ответить с цитированием
Ответ


Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.

Быстрый переход


Текущее время: 11:52. Часовой пояс GMT +3.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc. Перевод: zCarot
 

Время генерации страницы 0.05275 секунды с 13 запросами