kiskiss
Narys
Terminatorius
Pranešimai: 1545
Įstojęs: 2006 Rugs. 11 17:09:58
|
As biski pakeiciau user_info_panel ir istryniau Statistika taciau uzsiliko lentele kur yra parasyta kiek nariu uzsiregistrave ir nebezinau kur cia ka pasalinti kad to neberodytu. www.counterstrike.xz.lt prie priisjungimo galit pamatyti skaiciu 21 tai vat neina istrinti tos lenteles kur skaiciuoja kiek yra uzsiregistravusiu. Cia dalis kodo user_info_panel.php Gal galite pasakyti kur ka pasalinti kad nebeliktu skaiciavimo kiek uzsiregistrave?
$tag1= date('d');
$tag1= date('d');
$monat1= date('m');
$jahr1= date('Y');
$hanfang = mktime(0,0,0,$monat1,$tag1,$jahr1);
$hende = mktime(23,59,59,$monat1,$tag1,$jahr1);
$ganfang = mktime(0,0,0,$monat1,$tag1-1,$jahr1);
$gende = mktime(23,59,59,$monat1,$tag1-1,$jahr1);
echo "<span class='small'>Ā°</span> ".$locale['on100'].number_format(dbcount("(user_id)", "users", "user_status<='1'"))."<br />\n";
$cond = ($userdata['user_level'] != 0 ? "'".$userdata['user_id']."'" : "'0' AND online_ip='".USER_IP."'");
$result = dbquery("SELECT * FROM ".$db_prefix."online WHERE online_user=".$cond."");
if (dbrows($result) != 0) {
$result = dbquery("UPDATE ".$db_prefix."online SET online_lastactive='".time()."' WHERE online_user=".$cond."");
} else {
$name = ($userdata['user_level'] != 0 ? $userdata['user_id'] : "0");
$result = dbquery("INSERT INTO ".$db_prefix."online VALUES('$name', '".USER_IP."', '".time()."')");
}
$result = dbquery("DELETE FROM ".$db_prefix."online WHERE online_lastactive<".(time()-60)."");
$result = dbquery("SELECT * FROM ".$db_prefix."online WHERE online_user='0'");
$result = dbquery(
"SELECT ton.*, user_id,user_name FROM ".$db_prefix."online ton
LEFT JOIN ".$db_prefix."users tu ON ton.online_user=tu.user_id
WHERE online_user!='0'"
);
$members = dbrows($result);
if ($members != 0) {
$i = 1;
while($data = dbarray($result)) {
if ($i != $members) echo ", ";
$i++;
}
echo "<br /><br />\n";
} else {
echo $locale['on118']."<br /><br />\n";
}
}
closeside();
?>
Redagavo kiskiss 2007 Lie. 15 14:07:36 |
WantedBoy
Narys
Ekspertas
Pranešimai: 2443
Įstojęs: 2007 Bir. 6 19:06:30
|
Bandyk ?|
$tag1= date('d');
$tag1= date('d');
$monat1= date('m');
$jahr1= date('Y');
$hanfang = mktime(0,0,0,$monat1,$tag1,$jahr1);
$hende = mktime(23,59,59,$monat1,$tag1,$jahr1);
$ganfang = mktime(0,0,0,$monat1,$tag1-1,$jahr1);
$gende = mktime(23,59,59,$monat1,$tag1-1,$jahr1);
echo "<span class='small'>Ā°</span> ".$locale['on100'].number_format(dbcount("(user_id)", "users", "user_status<='1'"))."<br />\n";
$cond = ($userdata['user_level'] != 0 ? "'".$userdata['user_id']."'" : "'0' AND online_ip='".USER_IP."'");
$result = dbquery("SELECT * FROM ".$db_prefix."online WHERE online_user=".$cond."");
if (dbrows($result) != 0) {
$result = dbquery("UPDATE ".$db_prefix."online SET online_lastactive='".time()."' WHERE online_user=".$cond."");
} else {
$name = ($userdata['user_level'] != 0 ? $userdata['user_id'] : "0");
$result = dbquery("INSERT INTO ".$db_prefix."online VALUES('$name', '".USER_IP."', '".time()."')");
}
$result = dbquery("DELETE FROM ".$db_prefix."online WHERE online_lastactive<".(time()-60)."");
$result = dbquery("SELECT * FROM ".$db_prefix."online WHERE online_user='0'");
$result = dbquery(
"SELECT ton.*, user_id,user_name FROM ".$db_prefix."online ton
LEFT JOIN ".$db_prefix."users tu ON ton.online_user=tu.user_id
WHERE online_user!='0'"
);
$members = dbrows($result);
if ($members != 0) {
$i = 1;
while($data = dbarray($result)) {
if ($i != $members) echo ", ";
$i++;
}
echo "<br /><br />\n";
}
}
closeside();
?>
greitieji kreditai
Redagavo WantedBoy 2007 Lie. 15 14:07:30 |
kiskiss
Narys
Terminatorius
Pranešimai: 1545
Įstojęs: 2006 Rugs. 11 17:09:58
|
nepadejo
|
eXtazY
Narys
Tankas
Pranešimai: 2050
Įstojęs: 2006 Bir. 8 09:06:32
|
kiskiss parašė:
As biski pakeiciau user_info_panel ir istryniau Statistika taciau uzsiliko lentele kur yra parasyta kiek nariu uzsiregistrave ir nebezinau kur cia ka pasalinti kad to neberodytu. www.counterstrike.xz.lt prie priisjungimo galit pamatyti skaiciu 21 tai vat neina istrinti tos lenteles kur skaiciuoja kiek yra uzsiregistravusiu. Cia dalis kodo user_info_panel.php Gal galite pasakyti kur ka pasalinti kad nebeliktu skaiciavimo kiek uzsiregistrave?
<kodas...> Trink nx visą kodą xD Taigi tokią durną panelę pačiam lengvai pasidaryt galima...if(iGUEST){echo "Agy gaidy tu dar neužsireginęs? Sprandą nusuksiu...";}
Kažką tokio mastyk ;]
|
eXtazY
Narys
Tankas
Pranešimai: 2050
Įstojęs: 2006 Bir. 8 09:06:32
|
WantedBoy parašė:
Bandyk ?|
$tag1= date('d');
$tag1= date('d');
$monat1= date('m');
$jahr1= date('Y');
$hanfang = mktime(0,0,0,$monat1,$tag1,$jahr1);
$hende = mktime(23,59,59,$monat1,$tag1,$jahr1);
$ganfang = mktime(0,0,0,$monat1,$tag1-1,$jahr1);
$gende = mktime(23,59,59,$monat1,$tag1-1,$jahr1);
echo "<span class='small'>Ā°</span> ".$locale['on100'].number_format(dbcount("(user_id)", "users", "user_status<='1'"))."<br />\n";
$cond = ($userdata['user_level'] != 0 ? "'".$userdata['user_id']."'" : "'0' AND online_ip='".USER_IP."'");
$result = dbquery("SELECT * FROM ".$db_prefix."online WHERE online_user=".$cond."");
if (dbrows($result) != 0) {
$result = dbquery("UPDATE ".$db_prefix."online SET online_lastactive='".time()."' WHERE online_user=".$cond."");
} else {
$name = ($userdata['user_level'] != 0 ? $userdata['user_id'] : "0");
$result = dbquery("INSERT INTO ".$db_prefix."online VALUES('$name', '".USER_IP."', '".time()."')");
}
$result = dbquery("DELETE FROM ".$db_prefix."online WHERE online_lastactive<".(time()-60)."");
$result = dbquery("SELECT * FROM ".$db_prefix."online WHERE online_user='0'");
$result = dbquery(
"SELECT ton.*, user_id,user_name FROM ".$db_prefix."online ton
LEFT JOIN ".$db_prefix."users tu ON ton.online_user=tu.user_id
WHERE online_user!='0'"
);
$members = dbrows($result);
if ($members != 0) {
$i = 1;
while($data = dbarray($result)) {
if ($i != $members) echo ", ";
$i++;
}
echo "<br /><br />\n";
}
}
closeside();
?>
O šiaip tai čia nutrink... Bet nx tokios reikia?
Redagavo eXtazY 2007 Lie. 15 16:07:34 |
kiskiss
Narys
Terminatorius
Pranešimai: 1545
Įstojęs: 2006 Rugs. 11 17:09:58
|
eXtazY parašė:
[quote] WantedBoy parašė:
Bandyk
[quote]O šiaip tai čia nutrink... Bet nx tokios reikia?
Dekui padejo. O nx tos statistikos reikia prie vartotojo aprasymo? Geriau padarysiu panele ir ten idesiu visa koda su statistika kur bus biski patogiau
Pavyzdziui ta statistika galima padaryti vietoj last_seen_user
Redagavo kiskiss 2007 Lie. 15 14:07:36 |
WantedBoy
Narys
Ekspertas
Pranešimai: 2443
Įstojęs: 2007 Bir. 6 19:06:30
|
viska galima daryti.Taciau cia specialiai tokia usert info panele buvo
greitieji kreditai |