Online Sure Hacki
functions_reputationu açın alttakini bulun;
Kod:
// ###################### Start getreputationimage #######################
alttakiyle değişin;
Kod:
// ###################### Start explain_time #######################
function explain_time($time, $ignoredefault = false)
{
global $vbphrase;
if ($time <= 1)
{
return $ignoredefault ? "" : $vbphrase['less_than_1_second'];
}
else if ($time < 60) // 60 is not still a minute
{
return $time." ".$vbphrase['seconds'];
}
else if ($time < 3600) // 3600 is not still an hour
{
$newtime = floor($time/60);
if ($newtime == 1)
{
return $newtime." ".$vbphrase['minute']." ".explain_time($time%60,true);
}
else
{
return $newtime." ".$vbphrase['minutes']." ".explain_time($time%60,true);
}
}
else if ($time < 86400) // 86400 is not still a day
{
$newtime = floor($time/3600);
if ($newtime == 1)
{
return $newtime." ".$vbphrase['hour']." ".explain_time($time%3600,true);
}
else
{
return $newtime." ".$vbphrase['hours']." ".explain_time($time%3600,true);
}
}
else if ($time < 604800) // 604800 is not still a week
{
$newtime = floor($time/86400);
if ($newtime == 1)
{
return $newtime." ".$vbphrase['day']." ".explain_time($time%86400,true);
}
else
{
return $newtime." ".$vbphrase['days']." ".explain_time($time%86400,true);
}
}
else if ($time < 2592000) // 2592000 is not still a month
{
$newtime = floor($time/604800);
if ($newtime == 1)
{
return $newtime." ".$vbphrase['week']." ".explain_time($time%604800,true);
}
else
{
return $newtime." ".$vbphrase['weeks']." ".explain_time($time%604800,true);
}
}
else if ($time < 31536000) // 31536000 is not still a year
{
$newtime = floor($time/2592000);
if ($newtime == 1)
{
return $newtime." ".$vbphrase['month']." ".explain_time($time%2592000,true);
}
else
{
return $newtime." ".$vbphrase['months']." ".explain_time($time%2592000,true);
}
}
else
{
$newtime = floor($time/31536000);
if ($newtime == 1)
{
return $newtime." ".$vbphrase['year']." ".explain_time($time%31536000,true);
}
else
{
return $newtime." ".$vbphrase['years']." ".explain_time($time%31536000,true);
}
}
return "Unknown"; // this shouldn't happen
}
// ###################### Start getreputationimage #######################
includes/functions_showthread.php de
alttaki kısmı bulun;
Kod:
// format posts number
$post['posts'] = vb_number_format($post['posts']);
alttakiyle dğeişin;
Kod:
// Hack: get the timespent and avgtimespent
$post['avgtimespent'] = explain_time(floor($post['timespent']/((TIMENOW-$post['joindate'])/86400)));
$post['timespent'] = explain_time($post['timespent']);
// format posts number
$post['posts'] = vb_number_format($post['posts']);
member.php yi aç alttakini bul;
Kod:
eval('print_output("' . fetch_template($templatename) . '");');
alttakiyle değiş;
Kod:
// get the timespent and avgtimespent
$post['avgtimespent'] = explain_time(floor($post['timespent']/((TIMENOW-$post['joindate'])/86400)));
$post['timespent'] = explain_time($post['timespent']);
eval('print_output("' . fetch_template($templatename) . '");');
includes/sessions.php yi aç alttakini bul;(dikkatli olun bu koda benzer 3 kod daha bvar yanlış editleme ypamayın);
Kod:
$DB_site->shutdown_query("
UPDATE " . TABLE_PREFIX . "user
SET lastactivity = " . TIMENOW . "
WHERE userid = $bbuserinfo[userid]
", 'lastvisit');
alttakiyle değişin;
Kod:
$timespent = TIMENOW - $session['lastactivity'];
$DB_site->shutdown_query("
UPDATE " . TABLE_PREFIX . "user
SET lastactivity = " . TIMENOW . ",
timespent=timespent+$timespent
WHERE userid = $bbuserinfo[userid]
", 'lastvisit');
postbit veya postbit_legacy templatesini açın alttakini bulun;
Kod:
$vbphrase[posts]: $post[posts]
alttaki ile değişin
Kod:
$vbphrase[posts]: $post[posts]
<br/>Online Süresi: $post[timespent]
<br/>Ortalama Süre: $post[avgtimespent]
alttaki cümleleri ekleyin;
Kod:
Type: Global
Name: seconds
Text: Saniye
---------------------------------------------------
Type: Global
Name: minute
Text: Dakika
---------------------------------------------------
Type: Global
Name: minutes
Text: Dakika
---------------------------------------------------
Type: Global
Name: hour
Text: Saat
---------------------------------------------------
Type: Global
Name: hours
Text: Saat
---------------------------------------------------
Type: Global
Name: less_than_1_second
Text: 1 Saniyeden Daha Az
son olarakta alttaki sql döngüsünü çalıştırın;
Kod:
alter table user add timespent int not null;
Tesekkur Botu Hackhellde verilmisti ara istersen bulamazsan onu da yayınlarim.ayrıca sen hangi surumu kullaniosun surumden surume farklılık gosterir