ممكن هاك عدد المتواجدين في كل قسم

منتدى خاص للنقاش حول هاكات الجيل الثاني أفكارها، مشاكل تركيبها وكل ماله علاقة بها.

المشرف: alhitary

صورة العضو الرمزية
كانو
عضو جديد
عضو جديد
مشاركات: 28
اشترك في: الجمعة يناير 21, 2005 4:53 am

???? ??? ??? ?????????? ?? ?? ???

مشاركةبواسطة كانو » السبت فبراير 12, 2005 11:54 am

???? ??? ??? ?????????? ?? ?? ??? :(
??????????...... 8)
............................
??? ??????? :(2)????
??? ?????:(5) ????
............................
??????????????? :cry:




صورة العضو الرمزية
HacksHunter
عضو جديد
عضو جديد
مشاركات: 10
اشترك في: الأحد نوفمبر 23, 2003 11:24 pm

مشاركةبواسطة HacksHunter » السبت فبراير 12, 2005 11:09 pm

???? ??? ??????

??? ??? ??????? ??????? ????? ?? ???

كود: تحديد الكل

##########################################################################################
## 
## Hack Title:   ??? ?????????? ????? ?? ???
## Hack Version: 1.2.0
## Author:       Acid
##
## Description: ??? ????? ????? ?? ?????? ??????? ? ??? ?????? ? ???????? ????? ?? ??? ?? ????? ??????? 
##
## Files To Edit:  3
##                 index.php
##                 language/lang_arabic/lang_main.php
##                 templates/xxx/index_body.tpl
## 
##########################################################################################
## 
## Note: 
## First always make a backup from the files that you're going to edit. 
##
## I?ve just used some codes from page_header.php.
## See optional part at bottom of this file.
##
##########################################################################################
##
## Versions:
## 
## v1.2.0 - rewritten (less queries now)
## v1.0.3 - Junior Admins/Supermoderators will be displayed in their own color now
##	  - forgot to delete some code
## v1.0.2 - fixed a typo
## v1.0.1 - just cleaned the code and added optional part
## v1.0.0 - Release
## 
##########################################################################################
# 
#-----[ ???? ]------------------------------------------ 
#
# index.php 
# 
#-----[ ???? ]------------------------------------------ 
#
		$forum_moderators[$row['forum_id']][] = '<a href="' . append_sid("groupcp.$phpEx?" . POST_GROUPS_URL . "=" . $row['group_id']) . '">' . $row['group_name'] . '</a>';
	}
	$db->sql_freeresult($result);

# 
#-----[ ??? ????? ]------------------------------------------ 
#
	$sql_active = "SELECT u.username, u.user_id, u.user_allow_viewonline, u.user_level, s.session_logged_in, s.session_ip, f.forum_id
		          FROM ". USERS_TABLE ." u, ". SESSIONS_TABLE ." s, ". FORUMS_TABLE ." f
		          WHERE u.user_id = s.session_user_id AND s.session_time >= ". (time() - 300) ." AND s.session_page = f.forum_id
		          ORDER BY u.username ASC, s.session_ip ASC";
	if( !($result_active = $db->sql_query($sql_active)) )
	{
		message_die(GENERAL_ERROR, 'could not obtain user/online information.', '', __LINE__, __FILE__, $sql_active);
	}

	$userlist_ary = array();
	$userlist_visible = array();
	$prev_userid = 0;
	$prev_userip = $prev_sessionip = '';
	while( $active = $db->sql_fetchrow($result_active) )
	{
		if( $active['session_logged_in'] )
		{
			if( $active['user_id'] != $prev_userid )
			{
				if( file_exists(@phpbb_realpath($phpbb_root_path .'includes/functions_color_groups.'.$phpEx)) )
				{
					include_once($phpbb_root_path .'includes/functions_color_groups.'.$phpEx);
					$active['username'] = color_group_colorize_name($active['user_id']);
				}
				else
				{

					if( file_exists(@phpbb_realpath($phpbb_root_path .'includes/functions_jr_admin.'.$phpEx)) )
					{
						include_once($phpbb_root_path .'includes/functions_jr_admin.' . $phpEx);
						$jr_admin_userdata = jr_admin_get_user_info($active['user_id']);
					}

					$style_color = '';
					if( $active['user_level'] == ADMIN )
					{
						$active['username'] = '<b>'. $active['username'] .'</b>';
						$style_color = 'style="color:#'. $theme['fontcolor3'] .'"';
					}
					else if( $active['user_id'] == $jr_admin_userdata['user_id'] || $active['user_level'] == LESS_ADMIN )
					{
						$active['username'] = '<b>'. $active['username'] .'</b>';
						$style_color = 'style="color:#FF0000"';
					}
					else if( $active['user_level'] == MOD )
					{
						$active['username'] = '<b>'. $active['username'] .'</b>';
						$style_color = 'style="color:#'. $theme['fontcolor2'] .'"';
					}
				}

				if( $active['user_allow_viewonline'] )
				{
					$onlinerow[$active['forum_id']][] = '<a href="'. append_sid("profile.$phpEx?mode=viewprofile&". POST_USERS_URL ."=". $active['user_id']) .'" '. $style_color .'>'. $active['username'] .'</a>';
					$logged_visible_active[$active['forum_id']][]++;
				}
				else
				{
					$onlinerow[$active['forum_id']][] = ( $active['user_allow_viewonline'] || $userdata['user_level'] == ADMIN ) ? '<a href="'. append_sid("profile.$phpEx?mode=viewprofile&". POST_USERS_URL ."=". $active['user_id']) .'" '. $style_color .'><i>'. $active['username'] .'</i></a>' : '';
					$logged_hidden_active[$active['forum_id']][]++;
				}
			}
			$prev_userid = $active['user_id'];
		}
		else
		{
			if( $active['session_ip'] != $prev_sessionip )
			{
				$onlinerow[$active['forum_id']][] = '';
				$guests_active[$active['forum_id']][]++;
			}
		}
		$prev_sessionip = $active['session_ip'];
	}
	$db->sql_freeresult($result_active);

# 
#-----[ ???? ]------------------------------------------ 
#
							$template->assign_block_vars('catrow.forumrow',   array( 
								'ROW_COLOR' => '#' . $row_color,

# 
#-----[ ???????? ?? ]------------------------------------------ 
#
							if( count($onlinerow[$forum_id]) > '0' )
							{
								$users_total = count($onlinerow[$forum_id]);
								$users_total_guests = count($guests_active[$forum_id]);
								$users_total_hidden = count($logged_hidden_active[$forum_id]);
								$users_active = implode(' ', $onlinerow[$forum_id]);

								$l_active_total = ( $users_total == '1' ) ? $lang['Forum_one_active'] : $lang['Forum_more_active'];
								$l_hidden_total = ( $userdata['user_level'] == ADMIN ) ? '' : (( $users_total_hidden == '1' ) ? $lang['Forum_one_hidden_active'] : $lang['Forum_more_hidden_active']);
								$l_guests_total = ( $users_total_guests == '1' ) ? $lang['Forum_one_guest_active'] : $lang['Forum_more_guest_active'];
							}
							else
							{
								$users_total = ' ';
								$users_total_guests = ' ';
								$users_total_hidden = ' ';
								$users_active = ' ';

								$l_active_total = $lang['Forum_no_active'];
								$l_hidden_total = '';
								$l_guests_total = '';
							}

							$template->assign_block_vars('catrow.forumrow',   array( 
								'ACTIVE' => $users_active,
								'ACTIVE_TOTAL' => sprintf($l_active_total, $users_total),
								'ACTIVE_INFO' => sprintf($l_hidden_total, $users_total_hidden).sprintf($l_guests_total, $users_total_guests),
								'ROW_COLOR' => '#' . $row_color,



# 
#-----[ ???? ]------------------------------------------ 
#
# language/lang_english/lang_main.php 
# 
#-----[ ???? ]------------------------------------------ 
#
$lang['Moderators'] = 'Moderators';

# 
#-----[ ??? ????? ]------------------------------------------ 
#
// if you don?t want to display "0 users" uncomment the following
// and put the slashes before the second "0 users" line
// $lang['Forum_no_active'] = '';
$lang['Forum_no_active'] = '<b>0</b> ??????? ??????????'; // <-- this one
$lang['Forum_one_active'] = '<b>%d</b> ????? ????????: ';
$lang['Forum_more_active'] = '<b>%d</b> ??????? ??????????: ';
$lang['Forum_one_hidden_active'] = '<b>%d</b> ??? ?????';
$lang['Forum_more_hidden_active'] = '<b>%d</b> ????? ??????';
$lang['Forum_one_guest_active'] = '<b>%d</b> ????';
$lang['Forum_more_guests_active'] = '<b>%d</b> ????';



# 
#-----[ ???? ]------------------------------------------ 
#
# templates/xxx/index_body.tpl 
# 
#-----[ ???? ]------------------------------------------ 
#
  </span><span class="gensmall">{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}</span></td>

# 
#-----[ ???????? ?? ]------------------------------------------ 
# if you can?t find the mentioned line (maybe you?re using a different template) just
# search for a part of it

  </span><span class="gensmall">{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}</span><br /> 
  <span class="gensmall">{catrow.forumrow.ACTIVE_TOTAL} {catrow.forumrow.ACTIVE} {catrow.forumrow.ACTIVE_INFO}</span></td>

##########################################################################################
# 
#-----[ ?????? ???????? ]--------------------------------------------- 
#
# ????? ?? ????? ??? ?????? ??????? ??? ?? ???? ? ?? ?????? ????? ????? ??? ????? ??????? "junior admin" ?? "super mod" ??? ??? ???? ???
# 
#-----[ (index.php) ???? ???? ????? ]------------------------------------------ 
# 
# ?????? ??????? #FF0000 ??????

	else if( $active['user_id'] == $jr_admin_userdata['user_id'] || $active['user_level'] == LESS_ADMIN )
	{
		$active['username'] = '<b>'. $active['username'] .'</b>';
		$style_color = 'style="color:#FF0000"';
	}


#
#------------------------------------------------------------------- 
#
# ??????? ????? ?? ???? ???? ????? ????? ??? ????? ?????? ????? ???
# 
#-----[ (index.php) ???? ???? ????? ]------------------------------------------ 
# 
			if( count($onlinerow[$forum_id]) > '0' )

# 
#-----[ ???????? ?? ]---------------------------------------------- 
# 
			if( count($onlinerow[$forum_id]) > '0' && $userdata['user_level'] == ADMIN )


#
#------------------------------------------------------------------- 
#
# ??????? ????? ?? ???? ???? ????? ????? ??? ????? ?????? ????? ????? ????? ??? 
# 
#-----[ (index.php) ???? ???? ????? ]------------------------------------------ 
# 
			if( count($onlinerow[$forum_id]) > '0' )

# 
#-----[ ???????? ?? ]---------------------------------------------- 
# 
			$is_auth = array();
			$is_auth = auth(AUTH_ALL, $forum_id, $userdata, $forum_topic_data);
			if( count($onlinerow[$forum_id]) > '0' && $is_auth['auth_mod'] )

##########################################################################################
????? ?? ???? ??? ???? ???????? ??????? ??? ??????? ...

???? ?????? ??
صائد الهاكات


العودة إلى ”[ ×.2.0 ] الهاكات“

الموجودون الآن

المتصفحون للمنتدى الآن: لا يوجد أعضاء مسجلين متصلين و 5 زوار