mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-03-01 15:21:02 +03:00
17 lines
451 B
PHP
17 lines
451 B
PHP
<?php
|
|
|
|
if (!defined('BB_ROOT')) die(basename(__FILE__));
|
|
|
|
// Don't count on forbidden extensions table, because it is not allowed to allow forbidden extensions at all
|
|
$extensions = DB()->fetch_rowset("
|
|
SELECT
|
|
e.extension, g.cat_id, g.download_mode, g.upload_icon
|
|
FROM
|
|
". BB_EXTENSIONS ." e,
|
|
". BB_EXTENSION_GROUPS ." g
|
|
WHERE
|
|
e.group_id = g.group_id
|
|
AND g.allow_group = 1
|
|
");
|
|
|
|
$this->store('attach_extensions', $extensions); |