Jump to content
View in the app

A better way to browse. Learn more.

IPBMafia.ru - поддержка Invision Community, релизы, темы, плагины и приложения

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

MiXeR54

Пользователи
  • Регистрация

  • В сети

  1. Да. Только что допилил, я почему то решил что first(); мне не нужен и в этом была ошибка. Спасибо за помощь. Вопрос решен.
  2. не могли бы поделиться остальной частью кода? разобраться не могу, толи как то надо подключить \IPS\Db толи еще что.
  3. Суть: есть скрипт на авторизацию в удаленном приложении. <?php header("Content-Type: text/plain; charset=UTF-8"); // Verify login and password $login = $_GET['login']; $password = $_GET['password']; if(empty($login) || empty($password)) { exit('Empty login or password'); } // Load IPB init script \define('REPORT_EXCEPTIONS', TRUE); $_SERVER['SCRIPT_FILENAME'] = __FILE__; require_once 'init.php'; // Try authenticate $member = NULL; $ipsLogin = new \IPS\Login(); foreach($ipsLogin->usernamePasswordMethods() as $method) { try { $member = $method->authenticateUsernamePassword($ipsLogin, $login, $password); \IPS\Login::checkIfAccountIsLocked($member, TRUE); if ($member->isBanned()) { $member = NULL; continue; } break; } catch (\Exception $e) { // Do nothing } } // We're done echo($member ? 'OK:' . $member->name : 'Incorrect login or password'); ?> работает чудесно, но как добавить проверку - подтвердил ли пользователь свой email? Может кто откликнется за денежку. Открыт к предложениям.
  4. Решение: public function encryptedPassword( $password ) { return md5( md5( $password )); } Решение: public function encryptedPassword( $password ) { return md5( md5( $password )); }
  5. Доброго времени суток! Буду благодарен любой помощи по вопросу изменения шифрования, хотелось бы чтобы пароли были без соли и прочего в виде MD5(MD5(pass)) Подскажите что поменять. Я так понимаю нужно менять именно здесь /system/member/member.php public function encryptedPassword( $password ) { /* New password style introduced in 4.0 using Blowfish */ if ( mb_strlen( $this->members_pass_salt ) === 22 ) { return crypt( $password, '$2a$13$' . $this->members_pass_salt ); } /* Old encryption style using md5 */ else { return md5( md5( $this->members_pass_salt ) . md5( \IPS\Request::legacyEscape( $password ) ) ); } }

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.