[مجابة] الحقووووووووووونى (مشكلة قى هاك junior admin)
المشرف: alhitary
- elsayednasr
- عضو جديد
- مشاركات: 12
- اشترك في: الثلاثاء فبراير 14, 2006 6:58 pm
- مكان: Egy
- اتصال:
[?????] ????????????????? (????? ?? ??? junior admin)
?????? ?????.........??? ???? junior admin....???????? ??? ??? ???? ????? ???? ?????? ???? ??? ?????? ?????? ??? ??? ?????? ????????
??? ?? ???????:
???? ?? ????? 63 ???? ??? ?????? ?? ??? admin_jr_admin.php
??? ?? ???????:
كود: تحديد الكل
Fatal error: Cannot redeclare jr_admin_user_exist() in /home/tahneeg/public_html/php/admin/admin_jr_admin.php on line 63
???? ?? ????? 63 ???? ??? ?????? ?? ??? admin_jr_admin.php
global $lang;/****************************************************************************
/** Functions
/***************************************************************************/
function jr_admin_user_exist($user_id)
{
global $db, $lang;
//Do a query and see if our user exists with isset
$row = sql_query_nivisec(
'SELECT start_date FROM ' . JR_ADMIN_TABLE . " WHERE user_id = $user_id",
$lang['Error_Module_Table'],
false,
1
);
return (isset($row['start_date']));
}
function jr_admin_make_rank_list($user_id, $user_rank)
{
آخر تعديل بواسطة elsayednasr في الاثنين إبريل 24, 2006 8:44 pm، تم التعديل مرة واحدة.
???

??? ????? ?? ??? ????? ?? ?????? 2.0.15 ????? ????? ?? ???? ???? ?????? ?????? ??? ???? ??? ???? ?????? ?? ?? ????? ????? ???? ???? ?? ..
???? ??? admin_jr_admin.php ????? ?? ..
كود: تحديد الكل
function jr_admin_make_rank_list($user_id, $user_rank)
{
global $lang;
/****************
** Due to a damn bug in some browsers (mozilla firebird for sure)
** this needs to be disabled for drop down! return only the name
** for now.
****************/
/*
//Get a list of ranks and make a nice select box
$rowset = sql_query_nivisec(
'SELECT * FROM ' . RANKS_TABLE . " WHERE rank_special = 1
ORDER BY rank_title ASC",
$lang['Error_Users_Table'],
false
);
$rank_list = '<select name="user_rank_list_"'.$user_id.'" class="post" size="1">';
$selected = (0 == $user_rank) ? 'selected="selected"' : '';
$rank_list .= '<option value="0" '.$selected.'>'.$lang['No_assigned_rank'].'</option>\n';
for($i = 0; $i < count($rowset); $i++)
{
$selected = ($rowset[$i]['rank_id'] == $user_rank) ? ' selected="selected"' : '';
$rank_list .= '<option value="'.$rowset[$i]['rank_id'].'"'.$selected.'>'.$rowset[$i]['rank_title'].'</option>\n';
}
$rank_list .= '</selected>';
*/
$row = sql_query_nivisec(
'SELECT rank_title FROM ' . RANKS_TABLE . " WHERE rank_id = $user_rank",
$lang['Error_Users_Table'],
false,
1
);
$rank_list = $row['rank_title'];
return $rank_list;
}
function jr_admin_make_bookmark_heading($letters_list)
{
global $lang;
$seperator = ' | ';
$start = '[ ';
$end = ' ]';
$list = '';
$search_list = explode(',', $lang['ASCII_Search_Codes']);
//Go through each char group
foreach($search_list as $ord_value)
{
//Trim spaces
$ord_value = trim($ord_value);
$first_link = false;
//Check & first
if (preg_match("/^.+\&.+$/", $ord_value))
{
$make_link = false;
$items = explode('&', $ord_value);
for($i = $items[0]; $i <= $items[1]; $i++)
{
if (isset($letters_list[$i]))
{
$make_link = true;
$first_link = (!$first_link) ? $i : $first_link;
}
}
if ($make_link)
{
$list .= '<a href="#'.strtoupper(chr($first_link)).'" class="nav">'.strtoupper(chr($items[0])).' - '.strtoupper(chr($items[1])).'</a>';
}
else
{
$list .= strtoupper(chr($items[0])).' - '.strtoupper(chr($items[1]));
}
$list .= $seperator;
}
//Check for - now
elseif (preg_match("/^.+\-.+$/", $ord_value))
{
$items = explode('-', $ord_value);
for($i = $items[0]; $i <= $items[1]; $i++)
{
if (isset($letters_list[$i]))
{
$list .= '<a href="#'.strtoupper(chr($i)).'" class="nav">'.strtoupper(chr($i)).'</a>';
}
else
{
$list .= strtoupper(chr($i));
}
$list .= $seperator;
}
}
else
{
if (isset($letters_list[$ord_value]))
{
$list .= '<a href="#'.strtoupper(chr($ord_value)).'" class="nav">'.strtoupper(chr($ord_value)).'</a>';
}
else
{
$list .= strtoupper(chr($ord_value));
}
$list .= $seperator;
}
}
//Replace the last seperator with the ending item
$list = preg_replace('/'.addcslashes($seperator, '|').'$/', $end, $list);
return ($start . $list);
}
???????? ???? ..
كود: تحديد الكل
if (!function_exists('jr_admin_make_rank_list'))
{
function jr_admin_make_rank_list($user_id, $user_rank)
{
global $lang;
/****************
** Due to a damn bug in some browsers (mozilla firebird for sure)
** this needs to be disabled for drop down! return only the name
** for now.
****************/
/*
//Get a list of ranks and make a nice select box
$rowset = sql_query_nivisec(
'SELECT * FROM ' . RANKS_TABLE . " WHERE rank_special = 1
ORDER BY rank_title ASC",
$lang['Error_Users_Table'],
false
);
$rank_list = '<select name="user_rank_list_"'.$user_id.'" class="post" size="1">';
$selected = (0 == $user_rank) ? 'selected="selected"' : '';
$rank_list .= '<option value="0" '.$selected.'>'.$lang['No_assigned_rank'].'</option>\n';
for($i = 0; $i < count($rowset); $i++)
{
$selected = ($rowset[$i]['rank_id'] == $user_rank) ? ' selected="selected"' : '';
$rank_list .= '<option value="'.$rowset[$i]['rank_id'].'"'.$selected.'>'.$rowset[$i]['rank_title'].'</option>\n';
}
$rank_list .= '</selected>';
*/
$row = sql_query_nivisec(
'SELECT rank_title FROM ' . RANKS_TABLE . " WHERE rank_id = $user_rank",
$lang['Error_Users_Table'],
false,
1
);
$rank_list = $row['rank_title'];
return $rank_list;
}
}
if (!function_exists('jr_admin_make_bookmark_heading'))
{
function jr_admin_make_bookmark_heading($letters_list)
{
global $lang;
$seperator = ' | ';
$start = '[ ';
$end = ' ]';
$list = '';
$search_list = explode(',', $lang['ASCII_Search_Codes']);
//Go through each char group
foreach($search_list as $ord_value)
{
//Trim spaces
$ord_value = trim($ord_value);
$first_link = false;
//Check & first
if (preg_match("/^.+\&.+$/", $ord_value))
{
$make_link = false;
$items = explode('&', $ord_value);
for($i = $items[0]; $i <= $items[1]; $i++)
{
if (isset($letters_list[$i]))
{
$make_link = true;
$first_link = (!$first_link) ? $i : $first_link;
}
}
if ($make_link)
{
$list .= '<a href="#'.strtoupper(chr($first_link)).'" class="nav">'.strtoupper(chr($items[0])).' - '.strtoupper(chr($items[1])).'</a>';
}
else
{
$list .= strtoupper(chr($items[0])).' - '.strtoupper(chr($items[1]));
}
$list .= $seperator;
}
//Check for - now
elseif (preg_match("/^.+\-.+$/", $ord_value))
{
$items = explode('-', $ord_value);
for($i = $items[0]; $i <= $items[1]; $i++)
{
if (isset($letters_list[$i]))
{
$list .= '<a href="#'.strtoupper(chr($i)).'" class="nav">'.strtoupper(chr($i)).'</a>';
}
else
{
$list .= strtoupper(chr($i));
}
$list .= $seperator;
}
}
else
{
if (isset($letters_list[$ord_value]))
{
$list .= '<a href="#'.strtoupper(chr($ord_value)).'" class="nav">'.strtoupper(chr($ord_value)).'</a>';
}
else
{
$list .= strtoupper(chr($ord_value));
}
$list .= $seperator;
}
}
//Replace the last seperator with the ending item
$list = preg_replace('/'.addcslashes($seperator, '|').'$/', $end, $list);
return ($start . $list);
}
}
- elsayednasr
- عضو جديد
- مشاركات: 12
- اشترك في: الثلاثاء فبراير 14, 2006 6:58 pm
- مكان: Egy
- اتصال:
??? ??? ??? ???? ???? ?? ???? ?????? ..
???? ??? admin_jr_admin.php ????? ?? ??? ?????? ..
كود: تحديد الكل
function jr_admin_user_exist($user_id)
{
global $db, $lang;
//Do a query and see if our user exists with isset
$row = sql_query_nivisec(
'SELECT start_date FROM ' . JR_ADMIN_TABLE . " WHERE user_id = $user_id",
$lang['Error_Module_Table'],
false,
1
);
return (isset($row['start_date']));
}
????????? ???? ..
كود: تحديد الكل
if (!function_exists('jr_admin_user_exist'))
{
function jr_admin_user_exist($user_id)
{
global $db, $lang;
//Do a query and see if our user exists with isset
$row = sql_query_nivisec(
'SELECT start_date FROM ' . JR_ADMIN_TABLE . " WHERE user_id = $user_id",
$lang['Error_Module_Table'],
false,
1
);
return (isset($row['start_date']));
}
}
????? ????? ?? ??? ????? ?? ????? ???? ???? ?????? ??? ??? ?????? ???? ?? ?? ?????
[/b]
- elsayednasr
- عضو جديد
- مشاركات: 12
- اشترك في: الثلاثاء فبراير 14, 2006 6:58 pm
- مكان: Egy
- اتصال:
??? ?????

????? ???? ?????? ????? ????? ??? ??? ????? ???? ?????? ??????? ???????? ????? ??? ?????? ???? ?????? ?? ???????? ???? ????? ?? ????? ??? ????? ? ???? ???? ???? ?????? ???????? ??? ??? ???? ??? ??? ????? ..
http://www.phpbbhacks.com/forums/viewtopic.php?t=48835
http://www.phpbbhacks.com/forums/viewtopic.php?t=58375
http://www.phpbbhacks.com/forums/viewtopic.php?t=21813
http://www.phpbbhacks.com/forums/viewtopic.php?t=49061
http://www.phpbbhacks.com/forums/viewtopic.php?t=47415
http://www.phpbbhacks.com/forums/viewtopic.php?t=40501
http://www.phpbbhacks.com/forums/viewtopic.php?t=18580
http://www.phpbbhacks.com/forums/viewtopic.php?t=39536
http://www.phpbbhacks.com/forums/viewtopic.php?t=38378
http://www.phpbbhacks.com/forums/viewtopic.php?t=41219
الموجودون الآن
المتصفحون للمنتدى الآن: لا يوجد أعضاء مسجلين متصلين و 16 زائرًا