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.

Cannabis

Новичок
  • Регистрация

  • В сети

  1. Вообщем проблема такая.. Хочу замутить такое.. но мозгов не хватает.. С чего начать? <?php /** * mojPierwszyHook * * @author Mateusz Pater * @copyright teez * @version 2013 * @access public */ class tz34_lastbans { private $registry; private $settings; public function __construct() { $this->registry = ipsRegistry::instance(); $this->settings =& $this->registry->fetchSettings(); } public function getOutput() { if( ! $this->settings['tz34_last_bans_on'] ) { return false; } $user = $this->settings['tz34_last_bans_user']; $host = $this->settings['tz34_last_bans_host']; $baza = $this->settings['tz34_last_bans_database']; $haslo = $this->settings['tz34_last_bans_password']; $limit = $this->settings['tz34_last_bans_limit']; $title = $this->settings['tz34_last_bans_title']; $connection = @mysql_connect($host, $user, $haslo) or die(mysql_error()); $db = @mysql_select_db($baza, $connection) or die(mysql_error()); $z = "SELECT * from amx_bans order by bid DESC limit $limit"; $o = mysql_query($z); $sum = mysql_num_rows($o); if ($sum > 0) { while($row = mysql_fetch_array($o)) { $nick = $row['player_nick']; $czas = $row['ban_length']; if ($czas == 0) { $bi1['_ban_length'] = 'Permanent'; } elseif ($czas == -1) { $bi1['_ban_length'] = 'Permanent'; } elseif ($czas > 59) { $bi1['__ban_length'] = $czas / 60; $bi1['_ban_length'] = ''.$bi1['__ban_length'].' godzin'; if ($bi1['__ban_length'] == 168) { $bi1['_ban_length'] = 'tydzień'; } } else { $bi1['_ban_length'] = ''.$czas.' minut'; } $serwer = explode("@", $row['server_name']); $admin = $row['admin_nick']; $powod = $row['ban_reason']; $data[] = array ( "nick" => $nick, "czas" => $bi1['_ban_length'], "serwer" => $serwer[0], "admin" => $admin, "powod" => $powod, ); } } else { return "Brak banów w bazie"; } return $this->registry->getClass( 'output' )->getTemplate( 'teez_apps' )->last_bans($data, $title); } } ?> Вот код с хука tz34_lastbans. (вот хук мне вообще подходит на 90%.. вот только хотелось бы чтобы он выдавал весь список, и можно было редактировать дизайн, и хотелось бы чтобы его можно было пихнуть на другие страницы форума, и только не хук! все в кодах..) Можно его изменить чтобы он выдавал весь список забаненых на сервере? Можно к нему подключить css чтобы редактировать дизайн? Объясните пожалуйста как это сделать.. весь код целиком мне не нужно! (я не прошу вас написать все за меня), хочу сам сделать.. просто не понимаю как..

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.