This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.phpbb-ads-center { | |
text-align: center; | |
} | |
.phpbb-ads-center * { | |
margin: 0 auto; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> | |
<!-- 2017.08.01 --> | |
<ins class="adsbygoogle" | |
style="display:block" | |
data-ad-client="ca-pub-6052584654693494" | |
data-ad-slot="5495024367" | |
data-ad-format="auto"></ins> | |
<script> | |
(adsbygoogle = window.adsbygoogle || []).push({}); | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
preg_match_all('#<!-- BEGIN (.*?) -->(.*?)<!-- END .*? -->#s', $template, $matches, PREG_SET_ORDER) ?: | |
preg_match_all('#{% for (.*?) in .*? %}(.*?){% endfor %}#s', $template, $matches, PREG_SET_ORDER); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$sql = 'UPDATE ' . $this->table . " | |
SET config_value = '" . $this->db->sql_escape($value) . "' | |
WHERE config_value <> '" . $this->db->sql_escape($value) . "' | |
AND config_name = '" . $this->db->sql_escape($key) . "'"; | |
$this->db->sql_query($sql); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$statuses_closed = array(self::STATUS_IMPLEMENTED, self::STATUS_DUPLICATE, self::STATUS_INVALID); | |
$statuses = array_merge($statuses_closed, array(self::STATUS_NEW, self::STATUS_PROGRESS)); | |
$status = (in_array($status, $statuses)) ? $this->db->sql_in_set('idea_status', $status) : | |
(($status == -1) ? $this->db->sql_in_set('idea_status', $statuses_closed, true) : $this->db->sql_in_set('idea_status', $statuses, true)); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Load the autoloaders added by the extensions. | |
* | |
* @param string $phpbb_root_path Path to the phpbb root directory. | |
*/ | |
function phpbb_load_extensions_autoloaders($phpbb_root_path, $phpEx) | |
{ | |
$cache_filename = $phpbb_root_path . 'cache/autoload.' . $phpEx; | |
if (!file_exists($cache_filename)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'ACP_BOARDRULES_FONT_ICON' => 'Значок ссылки', | |
'ACP_BOARDRULES_FONT_ICON_EXPLAIN' => 'Введите имя значка из набора <a href="https://fortawesome.github.io/Font-Awesome/icons/" target="_blank">Font Awesome</a> для отображения рядом со ссылкой на правила. Оставьте поле пустым, чтобы значок не отображался.', | |
'ACP_BOARDRULES_FONT_ICON_INVALID' => 'Имя значка ссылки содержит неверные символы.', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$sql = 'SELECT COUNT(p.post_id) AS posts, p.poster_id, u.username, u.user_colour | |
FROM phpbb_posts p, phpbb_users u | |
WHERE p.topic_id = ' . (int) $topic_id . ' | |
AND p.poster_id = u.user_id | |
GROUP BY p.poster_id | |
ORDER BY posts DESC'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$username_ary = array(); | |
// Selecting usernames for user_id of 22, 3, 14 (for example) | |
$user_id_ary = array(22, 3, 14); | |
user_get_id_name($user_id_ary, $username_ary); | |
var_dump($username_ary); |
NewerOlder