Перейти к содержанию

Iluha321

Пользователи
  • Постов

    13
  • Зарегистрирован

  • Посещение

Весь контент Iluha321

  1. как редактировать navBar в ipb 4.1.17? Есть какая-та отдельная страница или только в стилях?
  2. Добрый вечер, при попытке загрузить картинку в свой профиль получаю следующую ошибку: InvalidArgumentException: (0) #0 forum.x.ru/system/Image/Image.php(95): IPS\Image\_GD->__construct('\xFF\xD8\xFF\xE0\x00\x10JFIF\x00\x01\x01\x00\x00...') #1 forum.x.ru/system/File/File.php(1314): IPS\_Image::create('\xFF\xD8\xFF\xE0\x00\x10JFIF\x00\x01\x01\x00\x00...') #2 forum.x.ru/applications/core/modules/front/members/profile.php(1071): IPS\_File->thumbnail('core_Profile', 240, 240, true) #3 [internal function]: IPS\core\modules\front\members\_profile->editPhoto() #4 forum.x.ru/system/Dispatcher/Controller.php(85): call_user_func(Array) #5 forum.x.ru/applications/core/modules/front/members/profile.php(65): IPS\Dispatcher\_Controller->execute() #6 forum.x.ru/system/Dispatcher/Dispatcher.php(129): IPS\core\modules\front\members\_profile->execute() #7 forum.x.ru/index.php(13): IPS\_Dispatcher->run() #8 {main}
  3. Версия IPB: 4.1.17.1 Нашёл выход: <?php require_once './../forum.x.ru/init.php'; \IPS\Dispatcher\Front::i(); $member = \IPS\Member::loggedIn(); var_dump( $member ); ?> Но почему-то постоянно переадресовывает на форум Как меняю строчку \IPS\Dispatcher\Front::i(); На: \IPS\Dispatcher\Build::i(); Переадресация исчезает, но так же и не хватает очень много переменных в выводе запроса, например такой, как member_id
  4. Добрый вечер, столкнулся с проблемой. Надо сделать так, чтобы если человек авторизовался в IPB на форуме, данные передавались на сайт, нашёл что можно реализовать это с помощью IPB, но надо создать файл: api_member_login.php. Нашёл на форуме API, но оно от 2010 года. Если ли у кого-нибудь более новее версия? Т.к. движок в 4 версии кардинально изменился. api_member_login.php: <?php /** * IBResource, LTD; Ritsuka, UnLTD * IP.Board * Member authorization API file * * @author GiV, Ritsuka * @copyright (c) 2010 IBResource, LTD. * @link http://www.ibresource.ru * @version 1.0.0 * */ if ( ! class_exists( 'apiCore' ) ) { require_once( FORUM_PATH . 'admin/api/api_core.php' ); } class apiMemberLogin extends apiCore { private $_handler = NULL; public $path_to_ipb = FORUM_PATH; public function childInit() { require_once( IPS_ROOT_PATH . 'sources/base/ipsController.php' ); require_once( IPS_ROOT_PATH . 'sources/handlers/han_login.php' ); $this->_handler = new han_login( $this->registry ); $this->_handler->init(); } public function login( $username, $password, $remember = TRUE ) { $this->request['username'] = $username; $this->request['password'] = $password; $this->request['rememberMe'] = $remember; return $this->_handler->verifyLogin(); } public function logout() { IPSCookie::set( "member_id" , "0" ); IPSCookie::set( "pass_hash" , "0" ); IPSCookie::set( "anonlogin" , "-1" ); if( is_array( $_COOKIE ) ) { foreach( $_COOKIE as $cookie => $value) { if ( stripos( $cookie, $this->settings['cookie_id'] . 'ipbforumpass' ) !== false ) { IPSCookie::set( $cookie, '-', -1 ); } } } $this->registry->member()->sessionClass()->convertMemberToGuest(); return true; } public function getMember() { return $this->registry->member()->fetchMemberData(); } }
  5. Это да, отсеет 50%, но будет доступна регистрация по сссылке https://x.ru/index.php?/register/ Интересует как поступить с этим вариантом и в каких файлах это удалять?
  6. Добрый вечер, интересует вопрос, как полностью отключить/удалить регистрацию аккаунта?
  7. В начале я ставил актуальную версию, т.е. 4.1.17.1 , потом подумал, что нужно протестировать и поставить более раннюю, но это никак не помогло. Везде одна и таже ошибка
  8. Кое как установил, ошибки при URL www.forum.x.ru/admin: Error: [] operator not supported for strings (0) #0 /home/forum.x.ru/system/Output/Javascript/Javascript.php(776): IPS\Output\_Javascript::_writeJavascriptFromResultset(Array, 'library.js', 'global', 'root') #1 /home/forum.x.ru/system/Output/Output.php(475): IPS\Output\_Javascript::compile('global', 'root', 'library.js') #2 /home/forum.x.ru/system/Output/Output.php(245): IPS\_Output::_getJavascriptFileObject('global', 'root', 'library.js') #3 /home/forum.x.ru/system/Dispatcher/Standard.php(74): IPS\_Output->js('library.js') #4 /home/forum.x.ru/system/Dispatcher/Admin.php(91): IPS\Dispatcher\_Standard::baseJs() #5 /home/forum.x.ru/system/Dispatcher/Dispatcher.php(86): IPS\Dispatcher\_Admin->init() #6 /home/forum.x.ru/admin/index.php(13): IPS\_Dispatcher::i() #7 {main}
  9. Добрый день, пытаюсь установить IPB nulled к себе на сервер. Конфигурация сервера: nginx + php 7.1 Версию IPB ставлю: 4.1.5.1 При установке выдаёт следующую ошибку: NO_STEP Array ( [0] => Array ( [function] => IPS\core\modules\setup\install\{closure} [class] => IPS\core\modules\setup\install\_install [type] => -> [args] => Array ( [0] => ) ) [1] => Array ( [file] => /home/forum.raknet.ru/system/Helpers/MultipleRedirect/MultipleRedirect.php [line] => 71 [function] => call_user_func [args] => Array ( [0] => Closure Object ( [this] => IPS\core\modules\setup\install\install Object ( [url] => IPS\Http\Url Object ( [url:protected] => https://forum.raknet.ru/admin/install/index.php?app=core&module=install&controller=install [data] => Array ( [scheme] => https [host] => forum.raknet.ru [path] => /admin/install/index.php [query] => app=core&module=install&controller=install ) [queryString] => Array ( [app] => core [module] => install [controller] => install ) [isInternal] => 1 [isFriendly] => ) ) [parameter] => Array ( [$data] => <required> ) ) [1] => ) ) [2] => Array ( [file] => /home/forum.raknet.ru/applications/core/modules/setup/install/install.php [line] => 97 [function] => __construct [class] => IPS\Helpers\_MultipleRedirect [type] => -> [args] => Array ( [0] => IPS\Http\Url Object ( [url:protected] => https://forum.raknet.ru/admin/install/index.php?controller=install [data] => Array ( [scheme] => https [host] => forum.raknet.ru [path] => /admin/install/index.php [query] => controller=install ) [queryString] => Array ( [controller] => install ) [isInternal] => 1 [isFriendly] => ) [1] => Closure Object ( [this] => IPS\core\modules\setup\install\install Object ( [url] => IPS\Http\Url Object ( [url:protected] => https://forum.raknet.ru/admin/install/index.php?app=core&module=install&controller=install [data] => Array ( [scheme] => https [host] => forum.raknet.ru [path] => /admin/install/index.php [query] => app=core&module=install&controller=install ) [queryString] => Array ( [app] => core [module] => install [controller] => install ) [isInternal] => 1 [isFriendly] => ) ) [parameter] => Array ( [$data] => <required> ) ) [2] => Closure Object ( [this] => IPS\core\modules\setup\install\install Object ( [url] => IPS\Http\Url Object ( [url:protected] => https://forum.raknet.ru/admin/install/index.php?app=core&module=install&controller=install [data] => Array ( [scheme] => https [host] => forum.raknet.ru [path] => /admin/install/index.php [query] => app=core&module=install&controller=install ) [queryString] => Array ( [app] => core [module] => install [controller] => install ) [isInternal] => 1 [isFriendly] => ) ) ) ) ) [3] => Array ( [file] => /home/forum.raknet.ru/system/Dispatcher/Controller.php [line] => 94 [function] => manage [class] => IPS\core\modules\setup\install\_install [type] => -> [args] => Array ( ) ) [4] => Array ( [file] => /home/forum.raknet.ru/system/Dispatcher/Setup.php [line] => 222 [function] => execute [class] => IPS\Dispatcher\_Controller [type] => -> [args] => Array ( ) ) [5] => Array ( [file] => /home/forum.raknet.ru/admin/install/index.php [line] => 13 [function] => run [class] => IPS\Dispatcher\_Setup [type] => -> [args] => Array ( ) ) )
  10. Добрый день, у меня имеется база данных с таблицей аккаунтов пользователей, там присутствует логин, а так же пароль, но он зашифрован, его возможно расшифровать ? И как это сделать ?
×
×
  • Создать...