форум vBSupport.ru > vBulletin > Вопрос — Ответ
Register Меню vBsupport Изображения Files Manager О рекламе Today's Posts Search
  • Родная гавань
  • Блок РКН снят
  • Premoderation
  • For English speaking users
  • Каталог Фрилансеров
  • If you want to buy some product or script
  • Администраторам
VBsupport перешел с домена .ORG на родной .RU Ура! Пожалуйста, обновите свои закладки - VBsupport.ru
Блок РКН снят, форум доступен на всей территории России, включая новые терртории, без VPN
На форуме введена премодерация ВСЕХ новых пользователей

Почта с временных сервисов, типа mailinator.com, gawab.com и/или прочих, которые предоставляют временный почтовый ящик без регистрации и/или почтовый ящик для рассылки спама, отслеживается и блокируется, а так же заносится в спам-блок форума, аккаунты удаляются
for English speaking users:
You may be surprised with restriction of access to the attachments of the forum. The reason is the recent change in vbsupport.org strategy:

- users with reputation < 10 belong to "simple_users" users' group
- if your reputation > 10 then administrator (kerk, Luvilla) can decide to move you into an "improved" group, but only manually

Main idea is to increase motivation of community members to share their ideas and willingness to support to each other. You may write an article for the subject where you are good enough, you may answer questions, you may share vbulletin.com/org content with vbsupport.org users, receiving "thanks" equal your reputation points. We should not only consume, we should produce something.

- you may:
* increase your reputation (doing something useful for another members of community) and being improved
* purchase temporary access to the improved category:
10 $ for 3 months. - this group can download attachments, reputation/posts do not matter.
20 $ for 3 months. - this group can download attachments, reputation/posts do not matter + adds eliminated + Inbox capacity increased + files manager increased permissions.

Please contact kerk or Luvilla regarding payments.

Important!:
- if your reputation will become less then 0, you will be moved into "simple_users" users' group automatically.*
*for temporary groups (pre-paid for 3 months) reputation/posts do not matter.
Уважаемые пользователи!

На форуме открыт новый раздел "Каталог фрилансеров"

и отдельный раздел для платных заказов "Куплю/Закажу"

Если вы хотите приобрести какой то скрипт/продукт/хак из каталогов перечисленных ниже:
Каталог модулей/хаков
Ещё раз обращаем Ваше внимание: всё, что Вы скачиваете и устанавливаете на свой форум, Вы устанавливаете исключительно на свой страх и риск.
Сообщество vBSupport'а физически не в состоянии проверять все стили, хаки и нули, выкладываемые пользователями.
Помните: безопасность Вашего проекта - Ваша забота.
Убедительная просьба: при обнаружении уязвимостей или сомнительных кодов обязательно отписывайтесь в теме хака/стиля
Спасибо за понимание
 
 
 
 
QuQunta
Продвинутый
 
QuQunta's Avatar
Default Проектные инструменты на новом пыхе - кто переведёт?
0

Сегодня переделывал, но ставить надо под 5.6, иначе крашнется. Вот ошибка:
Code:
ParseError: syntax error, unexpected 'new' (T_NEW) in ....\admincp\plugin.php(2001) : eval()'d code on line 450
Trace Data:
#1 : vbstop() called in ....\includes\class_core.php on line 3834
#2 : vbulletin_exception_handler() called in on line

Var Type:
[ NULL ]

Var Data:
null
На 7.2-7.4 поганится админка, белая страница и Use of undefined constant THIS_SCRIPT - assumed 'THIS_SCRIPT' (this will throw an Error in a future version of PHP)
Кто поправит и переведёт?
Ах да, гзип обязательно отрубить!

Last edited by QuQunta : 03-29-2024 at 06:39 PM. Reason: Добавлено сообщение
Bot
Yandex Bot Yandex Bot is online now
 
Join Date: 05.05.2005
Реклама на форуме А что у нас тут интересного? =)
 
 
QuQunta
Продвинутый
 
QuQunta's Avatar
Default
0

ВотЪ
Attached Files
File Type: zip Project_Tools_Open_Source_2_0_1.zip (265.7 KB, 2 views)
 
 
Лис
Эксперт
 
Лис's Avatar
Default
0

Quote:
Originally Posted by QuQunta View Post
\admincp\plugin.php(2001) : eval()'d code on line 450
Уже написал тебе, по этой строке убери амперсанд, и смотри что там.
 
 
QuQunta
Продвинутый
 
QuQunta's Avatar
Default
0

Quote:
Originally Posted by Лис View Post
убери амперсанд
прикол в том, что амперсанда там... нет. Вообще нет
На 450
PHP Code:
$plugin = array('executionorder' => 5); 
На 2001 попадает этот кусок:
PHP Code:
if (isset($arr['codes']['code']) AND is_array($arr['codes']['code']))
    {
        
$codes =& $arr['codes']['code'];
        if (!isset(
$codes[0]))
        {
            
$codes = array($codes);
        }

        
// run each of the codes
        
foreach ($codes AS $code)
        {
            
// Run if: code version is * (meaning always run), no version
            //        previously installed, or if the code is for a newer version
            //        than is currently installed
            
if ($code['version'] == '*' OR $installed_version === null OR is_newer_version($code['version'], $installed_version))
            {
                eval(
$code['installcode']);
            }
        }
    } 
 
 
QuQunta
Продвинутый
 
QuQunta's Avatar
Default
0

Фикс! Из инклюдов
Attached Files
File Type: php class_dm_attachment_pt.php (16.7 KB, 1 views)
 
 
Лис
Эксперт
 
Лис's Avatar
Default
0

Quote:
Originally Posted by QuQunta View Post
$codes =& $arr['codes']['code'];
Это че?

Ликбез.

Last edited by Лис : 03-29-2024 at 08:05 PM.
 
 
QuQunta
Продвинутый
 
QuQunta's Avatar
Default
0

@Лис, поставился, прада и без этого. А вот то, что админка исчезает -- это плохо
 
 
Лис
Эксперт
 
Лис's Avatar
Default
0

Quote:
Originally Posted by QuQunta View Post
А вот то, что админка исчезает -- это плохо
Ну ошибки решать надо.
В логах обычно все пути есть.

Quote:
Originally Posted by QuQunta View Post
Use of undefined constant THIS_SCRIPT - assumed 'THIS_SCRIPT' (this will throw an Error in a future version of PHP)
Обычно указывает лог где искать и исправлять такие ошибки.
Ничего сложного.
Идешь по указке и ставишь THIS_SCRIPT с одинарные кавычки.
Сохраняешь. Радуешься.
 
 
QuQunta
Продвинутый
 
QuQunta's Avatar
Default
0

Самое интересное, логи пустые. Только вот этот варн. Да и вообще, оно отдаёт всё нормально. Но не отображается

QuQunta добавил 29.03.2024 в 20:35
Все логи. [29-Mar-2024 20:33:00 Europe/Moscow] PHP Warning: Use of undefined constant THIS_SCRIPT - assumed 'THIS_SCRIPT' (this will throw an Error in a future version of PHP) in W:\domains\vbtesting.org\includes\init.php(322) : eval()'d code on line 1
Что за хрень...
При сём страница отдаётся, но не отображается.

HTML Code:
<br />
<b>Warning</b>:  Use of undefined constant THIS_SCRIPT - assumed 'THIS_SCRIPT' (this will throw an Error in a future version of PHP) in <b>W:\domains\vbtesting.org\includes\init.php(322) : eval()'d code</b> on line <b>1</b><br />
	<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
	<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="ru">
	<head>
	<script type="text/javascript">
	<!--
	// get out of any containing frameset
	if (self.parent.frames.length != 0)
	{
		self.parent.location.replace(document.location.href);
	}
	// -->
	</script>
	<title>Forums Панель администратора</title>
	</head>
<body>
		<frameset cols="195,*"  framespacing="0" border="0" frameborder="0" frameborder="no" border="0">
		<frame src="index.php?do=nav" name="nav" scrolling="yes" frameborder="0" marginwidth="0" marginheight="0" border="no" />
		<frameset rows="20,*"  framespacing="0" border="0" frameborder="0" frameborder="no" border="0">
			<frame src="index.php?do=head" name="head" scrolling="no" noresize="noresize" frameborder="0" marginwidth="10" marginheight="0" border="no" />
			<frame src="index.php?do=home" name="main" scrolling="yes" frameborder="0" marginwidth="10" marginheight="10" border="no" />
		</frameset>
	</frameset>
			</body>

	</html>

Last edited by QuQunta : 03-29-2024 at 09:35 PM. Reason: Добавлено сообщение
 
 
Лис
Эксперт
 
Лис's Avatar
Default
1

Quote:
Originally Posted by QuQunta View Post
При сём страница отдаётся, но не отображается.
Она не отображает фрейм. Исправь все косяки с http.
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off




All times are GMT +4. The time now is 10:12 AM.


Powered by vBulletin® Version 3.0.9
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.