$ Vor = vbseo_sm_priority ($ vboptions ['vbseo_sm_priority_rt'], $ relp);
if ($ vboptions ['vbseo_sm_freq_tsmart'])
{
$ Dpassed = (time () - $ threadrow ['lastpost']) / 86400;
if ($ dpassed <3) $ freq = "täglich";
else if ($ dpassed <10) $ freq = 'wöchentliche';
else if ($ dpassed <100) $ freq = "monatlich";
else $ freq = 'Jahr';
} Else
$ Freq = $ vboptions ['vbseo_sm_freq_t'];
vbseo_log_entry ("[Showthread] forum_id: $ forumID, thread_id: $ threadrow [threadid] Beiträge: $ totalposts, Seiten: $ totalpages, Ansichten: $ threadrow [views] $ vor");
/ / Zusätzliche Code
$ Alanguages = array
if (! $ archiviert) {
$ Strlenhost = strlen ($ vbseo_vars ['bburl']."/");
$ Currentthreadurl = vbseo_url_thread ($ threadrow, 1, $ archiviert);
$ Currentthreadurl_before = substr ($ currentthreadurl, 0, $ strlenhost);
$ Currentthreadurl_after = "/" substr ($ currentthreadurl, $ strlenhost).;
$ Lastpost = & $ threadrow ['lastpost'];
$ Vbseo_stat ['t'] + = sizeof ($ alanguages);
foreach ($ alanguages als $ language) {
vbseo_add_url ($ currentthreadurl_before $ language $ currentthreadurl_after, $ vor, $ lastpost, $ freq..);
}
}
/ / End zusätzlichen Code
for ($ p = 1; $ p <= $ totalpages; $ p + +)
{
$ Vbseo_stat [$ archiviert 'at': 't'] + = vbseo_add_2urls (
vbseo_url_thread ($ threadrow, $ p, $ archiviert)
vbseo_url_thread ($ threadrow, $ p, $ archiviert, true),
$ Vor,
$ Threadrow ['lastpost'],
$ Freq
);
}
if ($ Showpost)
{
$ GetPosts = $ db-> query ("
SELECT p.dateline, p.postid, p.threadid
FROM ". Table_prefix." Post AS p
WHERE p.threadid = $ threadrow [threadid]
UND visible = 1
ORDER BY p.dateline
");
$ Pcount = 0;
while ($ postrow = $ db-> fetch_array ($ getPosts))
{
$ Pcount + +;
vbseo_log_entry ("[Showpost] forum_id: $ forumID, thread_id: $ postrow [threadid] post_id: $ postrow [postID]");
$ Relp = $ relp * 0,8 + $ pcount / ($ threadrow ['replycount'] +1) * 0,2;
$ Relp *= vbseo_apply_custom_priority ('Forum', $ threadrow ['forumID']);
$ Prior2 = vbseo_sm_priority ($ vboptions ['vbseo_sm_priority_rp'], $ relp);
$ Vbseo_stat ['p'] + = vbseo_add_2urls (
vbseo_url_post ($ threadrow, $ postrow, $ pcount)
vbseo_url_post ($ threadrow, $ postrow, $ pcount, true),
$ Prior2,
$ Postrow ['dateline'],
$ Vboptions ['vbseo_sm_freq_p']
);
}
$ Db-> free_result ($ getPosts);
}
}
$ Db-> free_result ($ getthreads);
$ Vbseo_progress ['step3'] = 0;
}
vbseo_inc_progress ();
}
Funktion vbseo_sitemap_polls ($ progress)
{
global $ db, $ vboptions, $ vbseo_vars;
if (vbseo_check_progress ($ Fortschritt)) return;
$ Added_urls = 0;
vbseo_log_entry ("[SECTION START] Umfragen", true);
$ St = $ db-> query_first ("
SELECT
max (Wähler) als maxre, min (Wähler) als minre, avg (Wähler) als avgre
FROM ". Table_prefix." Poll
");
foreach ($ vbseo_vars ['forumslist'] as $ forumID)
{
$ Getthreads = $ db-> query ("
SELECT *
FROM ". Table_prefix." Thread AS thread
WHERE forumID = $ forumID
UND visible = 1
UND pollid> 0
");
while ($ threadrow = $ db-> fetch_array ($ getthreads))
{
$ Getpoll = $ db-> query_first ("
SELECT *
FROM ". Table_prefix." Poll
WHERE pollid = ". $ Threadrow ['pollid']."
");
if (! $ getpoll)
fortzusetzen;
vbseo_log_entry ("[Umfrage] forum_id: $ forumID, thread_id: $ threadrow [threadid] pollid: $ threadrow [pollid]");
$ Added_urls + +;
$ Relp2 = vbseo_math_avg_weight ($ getpoll ['Wähler'], $ st ['minre'], $ st ['maxre'], $ st ['avgre']);
$ Relp2 *= vbseo_apply_custom_priority ('Forum', $ threadrow ['forumID']);
$ Vor = vbseo_sm_priority ($ vboptions ['vbseo_sm_priority_rpoll'], $ relp2);
$ Added_urls + = vbseo_add_2urls (
vbseo_url_poll ($ threadrow, $ getpoll)
vbseo_url_poll ($ threadrow, $ getpoll, true),
$ Vor,
$ Getpoll ['dateline'],
$ Vboptions ['vbseo_sm_freq_poll']
);
}
$ Db-> free_result ($ getthreads);
}
vbseo_inc_progress ();
return $ added_urls;
}
Funktion vbseo_sitemap_blogs ($ progress)
{
global $ db, $ vboptions, $ vbseo_vars;
if (vbseo_check_progress ($ Fortschritt)) return;
if (! vbseo_dbtbl_exists ("Blog"))
return 0;
vbseo_log_entry ("[SECTION START] Blogs", true);
vbseo_add_url (? VBSEO_ON vbseo_any_url ($ vbseo_vars ['bburl'].'/ Blog. "VBSEO_PHP_EXT): $ vbseo_vars [' bburl'].'/ Blog." VBSEO_PHP_EXT, 1,0..);
$ Added_urls = 0;