$ Bago = vbseo_sm_priority ($ vboptions [vbseo_sm_priority_rt '], $ relp);
kung ($ vboptions [vbseo_sm_freq_tsmart '])
{
$ Dpassed = (oras () - $ threadrow [lastpost ']) / 86400;
kung ($ dpassed <3) $ freq = 'araw-araw';
iba pa kung ($ dpassed <10) $ freq = 'lingguhang';
iba pa kung ($ dpassed <100) $ freq = 'buwanang';
iba pa $ freq = 'taon-taon;
} Iba pa
$ Freq = $ vboptions ['vbseo_sm_freq_t'];
vbseo_log_entry ("[showthread] forum_id: $ forumid, thread_id: $ threadrow [threadid], kabuuang post: $ totalposts, mga pahina: $ totalpages, view: $ threadrow [view] $ bago");
/ / Karagdagang code
$ Alanguages = array
kung (! $ archive) {
$ Strlenhost = strlen ($ vbseo_vars [bburl']."/");
$ Currentthreadurl = vbseo_url_thread ($ threadrow, 1, $ archive);
$ Currentthreadurl_before = substr ($ currentthreadurl, 0, $ strlenhost);
$ Currentthreadurl_after = "/" substr ($ currentthreadurl, $ strlenhost).;
$ Lastpost = & $ threadrow [lastpost '];
$ Vbseo_stat ['t'] + = sizeof ($ alanguages);
foreach ($ alanguages ng $ wika) {
vbseo_add_url ($ currentthreadurl_before $ wika $ currentthreadurl_after, $ bago, $ lastpost, $ freq.);
}
}
/ / End karagdagang code
para sa ($ p = 1; $ p <= $ totalpages; $ p + +)
{
$ Vbseo_stat [$ archive 'sa':? 'T'] + = vbseo_add_2urls (
vbseo_url_thread ($ threadrow, $ p, $ archive),
vbseo_url_thread ($ threadrow, $ p, $ archive, totoo),
$ Bago,
$ Threadrow ['lastpost'],
$ Freq
);
}
kung ($ showpost)
{
$ Getposts = $ db-> query ("
Piliin ang p.dateline, p.postid, p.threadid
MULA ". TABLE_PREFIX." Post AS p
SAAN p.threadid = $ threadrow [threadid]
AT nakikita = 1
UPANG NG p.dateline
");
$ Pcount = 0;
habang ($ 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, totoo),
$ Prior2,
$ Postrow ['dateline'],
$ Vboptions [vbseo_sm_freq_p ']
);
}
$ Db-> free_result ($ getposts);
}
}
$ Db-> free_result ($ getthreads);
$ Vbseo_progress [step3 '] = 0;
}
vbseo_inc_progress ();
}
function na vbseo_sitemap_polls ($ progreso)
{
global $ db, $ vboptions, $ vbseo_vars;
kung (vbseo_check_progress ($ progreso)) bumalik;
$ Added_urls = 0;
vbseo_log_entry ("[SECTION START] polls", true);
$ St = $ db-> query_first ("
Piliin
max (botante) bilang maxre, min (botante) bilang minre, avg (botante) bilang avgre
FROM ". TABLE_PREFIX." Poll
");
foreach ($ vbseo_vars [forumslist '] ng $ forumid)
{
$ Getthreads = $ db-> query ("
Piliin ang *
FROM ". TABLE_PREFIX." Thread AS thread
SAAN forumid = $ forumid
AT nakikita = 1
AT pollid> 0
");
habang ($ threadrow = $ db-> fetch_array ($ getthreads))
{
$ Getpoll = $ db-> query_first ("
Piliin ang *
FROM ". TABLE_PREFIX." Poll
SAAN pollid = ". $ Threadrow [pollid ']."
");
kung (! $ getpoll)
magpatuloy;
vbseo_log_entry ("[poll] forum_id: $ forumid, thread_id: $ threadrow [threadid], pollid: $ threadrow [pollid]");
$ Added_urls + +;
$ Relp2 = vbseo_math_avg_weight ($ getpoll [botante '], $ st [minre'], $ st [maxre '], $ st [' avgre ']);
$ Relp2 *= vbseo_apply_custom_priority ('forum', $ threadrow [forumid ']);
$ Bago = vbseo_sm_priority ($ vboptions ['vbseo_sm_priority_rpoll'], $ relp2);
$ Added_urls + = vbseo_add_2urls (
vbseo_url_poll ($ threadrow, $ getpoll),
vbseo_url_poll ($ threadrow, $ getpoll, totoo),
$ Bago,
$ Getpoll ['dateline'],
$ Vboptions [vbseo_sm_freq_poll ']
);
}
$ Db-> free_result ($ getthreads);
}
vbseo_inc_progress ();
bumalik $ added_urls;
}
function na vbseo_sitemap_blogs ($ progreso)
{
global $ db, $ vboptions, $ vbseo_vars;
kung (vbseo_check_progress ($ progreso)) bumalik;
kung (! vbseo_dbtbl_exists ('blog'))
return 0;
vbseo_log_entry ("[SECTION START] blog", 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;