Seditio ve Ldu hakkında sınırsız arama yapın
 
 
> 1 <

Etiketler: whosonline hakkında

Author Message

core1

Members


Online status

141 posts

Location: Turkey
Occupation:
Age:

#19025   2008-03-16 14:33 GMT      

Arkadaşlar sitemi Giriş Yapanlar çıkış yaptıgında 15 dk daha fazla göstermesini istiyorum yani 15 dk daha sitede online görünmesini istiyorum

Code:
<?PHP

/* ====================
Seditio - Website engine
Copyright Neocrome
http://www.neocrome.net
[BEGIN_SED]
File=plugins/whosonline/whosonline.php
Version=120
Updated=2007-mar-03
Type=Plugin
Author=Neocrome
Description=
[END_SED]

[BEGIN_SED_EXTPLUGIN]
Code=whosonline
Part=main
File=whosonline
Hooks=standalone
Tags=
Order=10
[END_SED_EXTPLUGIN]
==================== */

if (!defined('SED_CODE') || !defined('SED_PLUG')) { die('Wrong URL.'); }

$cfg_showavatars = 1;
$cfg_miniavatar_x = 16;
$cfg_miniavatar_y = 16;

$plugin_title = $L['plu_title'];

$sql1 = sed_sql_query("SELECT u.user_country, u.user_avatar, u.user_maingrp, o.* FROM $db_online AS o LEFT JOIN $db_users AS u ON u.user_id=o.online_userid WHERE online_name!='v' ORDER BY u.user_name ASC");
$sql2 = sed_sql_query("SELECT online_ip, online_lastseen, online_location, online_subloc FROM $db_online WHERE online_name LIKE 'v' ORDER BY online_lastseen DESC");
$sql3 = sed_sql_query("SELECT stat_value FROM $db_stats where stat_name='maxusers' LIMIT 1");
$total1 = sed_sql_numrows($sql1);
$total2 = sed_sql_numrows($sql2);
$row = sed_sql_fetcharray($sql3);
$maxusers = $row[0];
$visitornum = 0;

$plugin_body .= $L['plu_mostonline'].$maxusers.".<br />";
$plugin_body .= $L['plu_therescurrently'].$total2.$L['plu_visitors'].$total1.$L['plu_members']."<br />&nbsp;<br /><table class=\"cells\">";

$plugin_body .= "<tr>";
$plugin_body .= ($cfg_showavatars) ? "<td class=\"coltop\">".$user_avatar."</td>" : '';
$plugin_body .= "<td class=\"coltop\">".$L['User']."</td>";
$plugin_body .= "<td class=\"coltop\">".$L['Group']."</td>";
$plugin_body .= "<td class=\"coltop\">".$L['Country']."</td>";
$plugin_body .= "<td class=\"coltop\">".$L['plu_lastseen1']."</td>";
$plugin_body .= ($usr['isadmin']) ? "<td class=\"coltop\">".$L['plu_in']."</td>" : '';
$plugin_body .= ($usr['isadmin']) ? "<td class=\"coltop\">".$L['Ip']."</td>" : '';
$plugin_body .= "</tr>";

while ($row = sed_sql_fetcharray($sql1))
{
if ($cfg_showavatars)
{
$user_avatar = "<a href=\"users.php?m=details&amp;id=".$row['online_userid']."\">";
$user_avatar .= (!empty($row['user_avatar'])) ? "<img src=\"".$row['user_avatar']."\" width=\"".$cfg_miniavatar_x."\" height=\"".$cfg_miniavatar_y."\" alt=\"\" /></a>" : "<img src=\"plugins/whosonline/img/blank.gif\" width=\"".$cfg_miniavatar_x."\" height=\"".$cfg_miniavatar_y."\" alt=\"\" /></a>";
}

$plugin_body .= "<tr>";
$plugin_body .= ($cfg_showavatars) ? "<td>".$user_avatar."</td>" : '';
$plugin_body .= "<td>".sed_build_user($row['online_userid'], sed_cc($row['online_name']))."</td>";
$plugin_body .= "<td><a href=\"users.php?g=".$row['user_maingrp']."\">".$sed_groups[$row['user_maingrp']]['title']."</a></td>";
$plugin_body .= "<td style=\"text-align:center;\">".sed_build_flag($row['user_country'])."</td>";
$plugin_body .= "<td>".sed_build_timegap($row['online_lastseen'],$sys['now'])."</td>";
$plugin_body .= ($usr['isadmin']) ? "<td>".$L[$row['online_location']] : '';
$plugin_body .= ($usr['isadmin'] && !empty($row['online_subloc'])) ? " ".$cfg['separator']." ".sed_cc($row['online_subloc']) : '';
$plugin_body .= ($usr['isadmin']) ? "</td>" : '';
$plugin_body .= ($usr['isadmin']) ? "<td style=\"text-align:center;\">".$row['online_ip']."</td>" : '';
$plugin_body .= "</tr>";
}

while ($row = sed_sql_fetcharray($sql2))
{
$visitornum++;
$online_location = $L[$row['online_location']];
$plugin_body .= "<tr>";
$plugin_body .= ($cfg_showavatars) ? "<td>&nbsp;</td>" : '';
$plugin_body .= "<td colspan=\"3\">".$L['plu_visitor']." #".$visitornum."</td>";
$plugin_body .= "<td>".sed_build_timegap($row['online_lastseen'],$sys['now'])."</td>";
$plugin_body .= ($usr['isadmin']) ? "<td>".$L[$row['online_location']] : '';
$plugin_body .= ($usr['isadmin'] && !empty($row['online_subloc'])) ? " ".$cfg['separator']." ".sed_cc($row['online_subloc']) : '';
$plugin_body .= ($usr['isadmin']) ? "</td>" : '';
$plugin_body .= ($usr['isadmin']) ? "<td style=\"text-align:center;\">".$row['online_ip']."</td>" : '';
$plugin_body .= "</tr>";
}

$plugin_body .= "</table>";

?>

EviLcod3R

Members


Online status

243 posts
http://www.rapidshare.com
Pagerank: 6

Location: Turkey Deligi Bulunan Her Yer !
Occupation:
Age: 20

#19036   2008-03-16 16:56 GMT      
Böyle Düşünce İlk Kez Görüyorum : ( + bunla Alakası Yok Panele Girceksin Cookie Ömrünü Uzatıcaksın..

admin.php?m=config&n=edit&o=core&p=main

Çerezleri Ömrünü artırıcan..
Cc iLe Ald?g?m Domqini Regleyip Msn Adresim Geçici Süreligine Durdurulmu?tur !

Önüne GeLen Destek Ekibi oLmu? xD
> 1 <

Benzer konular (Similar topics) #BETA

Keywords (beta):

Forum Arşiv (beta):

[1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20] [21] [22] [23] [24] [25] [26] [27] [28] [29] [30] [31] [32] [33] [34] [35] [36] [37] [38] [39] [40] [41] [42] [43] [44] [45] [46] [47] [48] [49] [50] [51] [52] [53] [54] [55] [56] [57] [58] [59] [60] [61] [62] [63] [64] [65] [66] [67] [68] [69] [70] [71] [72] [73] [74] [75] [76] [77] [78] [79] [80] [81] [82] [83] [84] [85] [86] [87] [88] [89] [90] [91] [92] [93] [94] [95] [96] [97] [98] [99] [100] [101] [102] [103] [104] [105] [106] [107] [108] [109] [110] [111] [112] [113] [114] [115] [116] [117] [118] [119] [120] [121] [122] [123] [124] [125] [126] [127] [128] [129] [130] [131] [132] [133] [134] [135] [136] [137] [138] [139] [140] [141] [142] [143] [144] [145] [146] [147] [148] [149] [150] [151] [152] [153] [154] [155] [156] [157] [158] [159] [160] [161] [162] [163] [164] [165] [166] [167] [168] [169] [170] [171] [172] [173] [174] [175] [176] [177] [178] [179] [180] [181] [182] [183] [184] [185] [186] [187] [188] [189] [190] [191] [192] [193] [194] [195] [196] [197] [198] [199] [200] [201] [202] [203] [204] [205] [206] [207] [208] [209] [210] [211] [212] [213] [214] [215] [216] [217] [218] [219] [220] [221] [222] [223] [224] [225] [226] [227] [228] [229] [230] [231] [232] [233] [234]