diff --git a/library/config.php b/library/config.php index c48d7c4fc..5b9883fd7 100644 --- a/library/config.php +++ b/library/config.php @@ -50,6 +50,7 @@ * Tidy * Ads * Misc + * Extensions * Attachments * Avatars * Group avatars @@ -572,12 +573,7 @@ $bb_cfg['user_agreement_url'] = 'info.php?show=user_agreement'; $bb_cfg['copyright_holders_url'] = 'info.php?show=copyright_holders'; $bb_cfg['advert_url'] = 'info.php?show=advert'; -// Attachments -$bb_cfg['attach'] = array( - 'upload_path' => DATA_DIR . 'torrent_files', // путь к директории с torrent файлами - 'max_size' => 250*1024, // размер аватары в байтах -); - +// Extensions $bb_cfg['file_id_ext'] = array( 1 => 'gif', 2 => 'gz', @@ -590,6 +586,12 @@ $bb_cfg['file_id_ext'] = array( 9 => 'zip', ); +// Attachments +$bb_cfg['attach'] = array( + 'upload_path' => DATA_DIR . 'torrent_files', // путь к директории с torrent файлами + 'max_size' => 250*1024, // размер аватары в байтах +); + $bb_cfg['tor_forums_allowed_ext'] = array('torrent', 'zip', 'rar'); // для разделов с раздачами $bb_cfg['gen_forums_allowed_ext'] = array('zip', 'rar'); // для обычных разделов diff --git a/library/includes/classes/sitemap.php b/library/includes/classes/sitemap.php index 7a42ceb6c..c4632de9c 100644 --- a/library/includes/classes/sitemap.php +++ b/library/includes/classes/sitemap.php @@ -28,10 +28,10 @@ class sitemap function build_index ($count) { $lm = date('c'); $map = "\n\n"; - $map .= "\n".make_url(substr(SITEMAP_DIR, 3))."/sitemap1.xml\n{$lm}\n\n"; + $map .= "\n{$this->home}internal_data/sitemap/sitemap1.xml\n{$lm}\n\n"; for ($i = 0; $i < $count; $i++) { $t = $i + 2; - $map .= "\n".make_url(substr(SITEMAP_DIR, 3))."/sitemap{$t}.xml\n{$lm}\n\n"; + $map .= "\n{$this->home}internal_data/sitemap/sitemap{$t}.xml\n{$lm}\n\n"; } $map .= "";