mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-20 13:24:01 -07:00
Sitemap fix
Исправление ошибки с путями. TODO: реврайт для внутренних карт сайта.
This commit is contained in:
parent
1c5fb857f2
commit
66455f879d
2 changed files with 10 additions and 8 deletions
|
@ -50,6 +50,7 @@
|
||||||
* Tidy
|
* Tidy
|
||||||
* Ads
|
* Ads
|
||||||
* Misc
|
* Misc
|
||||||
|
* Extensions
|
||||||
* Attachments
|
* Attachments
|
||||||
* Avatars
|
* Avatars
|
||||||
* Group 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['copyright_holders_url'] = 'info.php?show=copyright_holders';
|
||||||
$bb_cfg['advert_url'] = 'info.php?show=advert';
|
$bb_cfg['advert_url'] = 'info.php?show=advert';
|
||||||
|
|
||||||
// Attachments
|
// Extensions
|
||||||
$bb_cfg['attach'] = array(
|
|
||||||
'upload_path' => DATA_DIR . 'torrent_files', // путь к директории с torrent файлами
|
|
||||||
'max_size' => 250*1024, // размер аватары в байтах
|
|
||||||
);
|
|
||||||
|
|
||||||
$bb_cfg['file_id_ext'] = array(
|
$bb_cfg['file_id_ext'] = array(
|
||||||
1 => 'gif',
|
1 => 'gif',
|
||||||
2 => 'gz',
|
2 => 'gz',
|
||||||
|
@ -590,6 +586,12 @@ $bb_cfg['file_id_ext'] = array(
|
||||||
9 => 'zip',
|
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['tor_forums_allowed_ext'] = array('torrent', 'zip', 'rar'); // для разделов с раздачами
|
||||||
$bb_cfg['gen_forums_allowed_ext'] = array('zip', 'rar'); // для обычных разделов
|
$bb_cfg['gen_forums_allowed_ext'] = array('zip', 'rar'); // для обычных разделов
|
||||||
|
|
||||||
|
|
|
@ -28,10 +28,10 @@ class sitemap
|
||||||
function build_index ($count) {
|
function build_index ($count) {
|
||||||
$lm = date('c');
|
$lm = date('c');
|
||||||
$map = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<sitemapindex xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\">\n";
|
$map = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<sitemapindex xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\">\n";
|
||||||
$map .= "<sitemap>\n<loc>".make_url(substr(SITEMAP_DIR, 3))."/sitemap1.xml</loc>\n<lastmod>{$lm}</lastmod>\n</sitemap>\n";
|
$map .= "<sitemap>\n<loc>{$this->home}internal_data/sitemap/sitemap1.xml</loc>\n<lastmod>{$lm}</lastmod>\n</sitemap>\n";
|
||||||
for ($i = 0; $i < $count; $i++) {
|
for ($i = 0; $i < $count; $i++) {
|
||||||
$t = $i + 2;
|
$t = $i + 2;
|
||||||
$map .= "<sitemap>\n<loc>".make_url(substr(SITEMAP_DIR, 3))."/sitemap{$t}.xml</loc>\n<lastmod>{$lm}</lastmod>\n</sitemap>\n";
|
$map .= "<sitemap>\n<loc>{$this->home}internal_data/sitemap/sitemap{$t}.xml</loc>\n<lastmod>{$lm}</lastmod>\n</sitemap>\n";
|
||||||
}
|
}
|
||||||
$map .= "</sitemapindex>";
|
$map .= "</sitemapindex>";
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue