Peržiūrėti temą
PHP-Fusion Mods :: PHP-Fusion modifikacijų forumas :: Taisymas
v7 online_users_panel v7
|
|||
Frait |
parašyta 2010-07-17 19:15
|
||
![]() Apšylantis ![]() Reputacija: 0 Pranešimai: 52 Įstojo: 2009-11-17 |
Taigi pra?au js ?mons labai didels pagalbos. Ie?kojau forume ant v7 kaip img prie niko, bet ten radau tik su sistema, kadangi neturiu kur ir beie?koti taigi pra?au js pagalbos. I?dstysiu viska paeiliui. 1.Ko man reikia? - Man reikia jog padaratumte taip, jog prie niko rodytu paveiksliuka. 2.Info. - Sukuriau grupe pavadinimu Vips, jos id yra 1 ir man reikia padaryti taip, jog kas yra toje grupejo, prie jo niko rodytu mano paveiksleli. 3.Locations. Paveikslelio pavadinimas: vip.gif , paveikslelio vieta images/ , Labai aciu, primenu cia v7 /*-------------------------------------------------------+ | PHP-Fusion Content Management System | Copyright 2002 - 2008 Nick Jones | http://www.php-fusion.co.uk/ +--------------------------------------------------------+ | Filename: online_users_panel.php | Author: ptown67 | Website: http://pennerprofi.bplaced.net +--------------------------------------------------------+ | This program is released as free software under the | Affero GPL license. You can redistribute it and/or | modify it under the terms of this license which you | can read by viewing the included agpl.txt or online | at www.gnu.org/licenses/agpl.html. Removal of this | copyright header is strictly prohibited without | written permission from the original author(s). +--------------------------------------------------------*/ if (!defined("IN_FUSION")) { die("Access Denied"); } add_to_head(" "); $result = dbquery("SELECT * FROM ".DB_ONLINE." WHERE online_user=".($userdata['user_level'] != 0 ? "'".$userdata['user_id']."'" : "'0' AND online_ip='".USER_IP."'")); if (dbrows($result)) { $result = dbquery("UPDATE ".DB_ONLINE." SET online_lastactive='".time()."' WHERE online_user=".($userdata['user_level'] != 0 ? "'".$userdata['user_id']."'" : "'0' AND online_ip='".USER_IP."'").""); } else { $result = dbquery("INSERT INTO ".DB_ONLINE." (online_user, online_ip, online_lastactive) VALUES ('".($userdata['user_level'] != 0 ? $userdata['user_id'] : "0")."', '".USER_IP."', '".time()."')"); } $result = dbquery("DELETE FROM ".DB_ONLINE." WHERE online_lastactive<".(time()-600).""); openside($locale['global_010']); $result = dbquery( "SELECT ton.*, tu.user_id,user_name FROM ".DB_ONLINE." ton LEFT JOIN ".DB_USERS." tu ON ton.online_user=tu.user_id" ); $guests = 0; $members = array(); while ($data = dbarray($result)) { if ($data['online_user'] == "0") { $guests++; } else { array_push($members, array($data['user_id'], $data['user_name'])); } } echo THEME_BULLET." ".$locale['global_011'].": ".$guests." \n"; echo THEME_BULLET." ".$locale['global_012'].": ".count($members)." \n"; echo " "; $result = dbquery("SELECT * FROM ".$db_prefix."users ORDER BY user_lastvisit DESC LIMIT 0,10"); echo "
echo " \n".THEME_BULLET." ".$locale['global_014'].": ".number_format(dbcount("(user_id)", DB_USERS, "user_status<='1'"))." \n"; if (iADMIN && checkrights("M") && $settings['admin_activation'] == "1") { echo THEME_BULLET." ".$locale['global_015'].""; echo ": ".dbcount("(user_id)", DB_USERS, "user_status='2'")." \n"; } $data = dbarray(dbquery("SELECT user_id,user_name FROM ".DB_USERS." WHERE user_status='0' ORDER BY user_joined DESC LIMIT 0,1")); echo THEME_BULLET." ".$locale['global_016'].": ".trimlink($data['user_name'],15)."\n"; closeside(); ?> |
||
dekeris15794 |
parašyta 2010-07-24 17:53
|
||
Naujokas![]() Reputacija: 0 Pranešimai: 4 Įstojo: 2009-12-12 |
Daaaaaug pra?ai.nieko negausi :P | ||
Frait |
parašyta 2010-07-24 20:58
|
||
![]() Apšylantis ![]() Reputacija: 0 Pranešimai: 52 Įstojo: 2009-11-17 |
Labai daug... | ||
Peršokti į forumą: |