Parašė altenis· 2010 Rugp. 26 16:08:07
#3
<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2005 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/
/***************************************************************************
*
* This members.php was re-modified by
* Bobby Maynard
* http://www.noviaworld.com
*
*Orginal Mod was made at phpfusion-themes.com
***************************************************************************/
require_once "maincore.php";
require_once "subheader.php";
require_once "side_left.php";
include LOCALE.LOCALESET."members-profile.php";
opentable($locale['400']);
if (iMEMBER) {
if (!isset($sortby)) $sortby = "all";
$orderby = ($sortby == "all" ? "" : " WHERE user_name LIKE '".stripinput($sortby)."%'");
$result = dbquery("SELECT * FROM ".$db_prefix."users".$orderby."");
$rows = dbrows($result);
if (!isset($rowstart) || !isNum($rowstart)) $rowstart = 0;
if ($rows != 0) {
$i = 0;
echo "<table align='center' cellpadding='0' cellspacing='1' width='100%' class='tbl-border'>
<tr>
<td class='tbl2' align='left' width='15%'><b>".$locale['401']."</b></td>
<td class='tbl2' align='center' width='10%'><b>".$locale['406']."</b></td>
<td class='tbl2' align='center'><b>".$locale['407']."</b></td>
<td class='tbl2' align='center' width='1%' style='white-space:nowrap'><b>".$locale['402']."</b></td>
<td class='tbl2' align='center'><b>".$locale['408']."</b></td>
<td class='tbl2' align='center' width='15%' ><b>".$locale['409']."</b></td>
<td class='tbl2' align='center' width='10%'><b>".$locale['409a']."</b></td>
<td class='tbl2' align='center'><b>".$locale['409b']."</b></td>
<td class='tbl2' align='center'><b>".$locale['409c']."</b></td>
</tr>\n";
$result = dbquery("SELECT * FROM ".$db_prefix."users".$orderby." ORDER BY user_level DESC, user_name LIMIT $rowstart,120");
while ($data = dbarray($result)) {
$cell_color = ($i % 2 == 0 ? "tbl1" : "tbl2"); $i++;
echo "<tr>\n<td align='left' class='$cell_color' style='white-space:nowrap'><a href='".BASEDIR."profile.php?lookup=".$data['user_id']."'>".$data['user_name']."</a></td><td class='$cell_color' align='center'> ";
$lastseen = time() - $data['user_lastvisit'];
if($lastseen < 60) {
$lastseen = "<nobr><img src='".BASEDIR."forum/images/user_online.gif' style='vertical-align:absMiddle;' title='User is Online' alt='User is Online'> <span class='small'>Online</span></NOBR>";
} else {
$lastseen = "<nobr><img src='".BASEDIR."forum/images/user_offline.gif' style='vertical-align:absMiddle;' title='User is Offline' alt='User is Online'> <span class='small'>Offline</span></NOBR>";
}
echo "$lastseen";
echo "</td><td align='center' width='1%' class='$cell_color' style='white-space:nowrap'><a href='".BASEDIR."messages.php?msg_send=".$data['user_id']."'><img src='".THEME."forum/pm.gif' alt='".$locale['571']."' style='border:0px;'></a></td><td align='center' width='1%' class='$cell_color' style='white-space:nowrap'>".getuserlevel($data['user_level'])."</td><td align='center' width='1%' class='$cell_color' style='white-space:nowrap'><A HREF='mailto:".$data['user_email']."'><IMG SRC='".THEME."forum/email.gif' BORDER='0' ALT=''></A></td><td align='center' width='1%' class='$cell_color' style='white-space:nowrap'>".$data['user_location']."</td><td align='center' width='1%' class='$cell_color' style='white-space:nowrap'>".showdate("%m-%d-%y", $data['user_joined'])."</td><td align='center' width='1%' class='$cell_color' style='white-space:nowrap'>".$data['user_posts']."</td>";
echo "<td align='center' width='1%' class='$cell_color' style='white-space:nowrap'><a href='".$urlprefix."".$data['user_web']."' target='_blank'><img src='".THEME."forum/web.gif' alt='".$data['user_web']."' style='border:0px;'></a></td>\n</tr>";
}
echo "</table>\n";
} else {
echo "<center><br>\n".$locale['403']."$sortby<br><br>\n</center>\n";
}
$search = array(
"A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R",
"S","T","U","V","W","X","Y","Z","0","1","2","3","4","5","6","7","8","9"
);
echo "<hr>\n<table align='center' cellpadding='0' cellspacing='1' class='tbl-border'>\n<tr>\n";
echo "<td rowspan='2' class='tbl2'><a href='".FUSION_SELF."?sortby=all'>".$locale['404']."</a></td>";
for ($i=0;$i < 36!="";$i++) {
echo "<td align='center' class='tbl1'><div class='small'><a href='".FUSION_SELF."?sortby=".$search[$i]."'>".$search[$i]."</a></div></td>";
echo ($i==17 ? "<td rowspan='2' class='tbl2'><a href='".FUSION_SELF."?sortby=all'>".$locale['404']."</a></td>\n</tr>\n<tr>\n" : "\n");
}
echo "</tr>\n</table>\n";
} else {
echo "<center><br>\n".$locale['003']."<br><br>\n</center>\n";
}
if (file_exists(INFUSIONS.'user_gold_panel/functions.php'))
{
$userpoints=dbarray(dbquery("SELECT * FROM ".$db_prefix."users_points WHERE owner_id='".$userdata[user_id]."'"));
//display the result
echo "<img src='".THEME."images/bullet.gif'><center><b>Balance</b><b> $userpoints[points_total]</b> <img border='0' src='".BASEDIR."images/gold.gif'><br><br>";
}
{
echo " <br>";
}
if ($rows > 120) echo "<div align='center' style='margin-top:5px;'>".makePageNav($rowstart,120,$rows,3,FUSION_SELF."?sortby=$sortby&")."\n</div>\n";
// require_once "side_right.php";
require_once "footer.php";
?>