Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Padekite

Parašė Dandžu· 2008 Geg. 11 23:05:15
#8

Taip? :?
<?php
if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }
//required functions
include_once INFUSIONS."user_gold_panel/functions.php";
//language file

// Check if locale file is available matching the current site locale setting.
if (file_exists(INFUSIONS."user_gold_panel/locale/".$settings['locale'].".php")) {
   // Load the locale file matching the current site locale setting.
   include INFUSIONS."user_gold_panel/locale/".$settings['locale'].".php";
} else {
   // Load the infusion's default locale file.
   include INFUSIONS."user_gold_panel/locale/English.php";
}

//Show only if its a member
if (iMEMBER) {

   openside($userdata['user_name'].' '.$locale['URG003']);

   echo '<img src="'.THEME.'images/bullet.gif" alt="">&nbsp;<a href="'.INFUSIONS.'user_gold_panel/index.php">'.$locale['URG023'].'</a><br>';

   if (iADMIN) {
      echo '<img src="'.THEME.'images/bullet.gif" alt="">&nbsp;<a href="'.INFUSIONS.'user_gold_panel/admin/index.php"><strong>'.$locale['URG022'].'</strong></a><br>';
   }
   closeside();
}
else
{
//not logged in so no need to show anything here
}

$pointquery=dbquery("SELECT * FROM ".$db_prefix."users_points ORDER BY points_total DESC LIMIT 0 , 5");
//hide it if theres no reply
if (dbrows($pointquery)!=0)
{
//top 5 gold
openside($locale['URG033'],'on');

echo '<table width="100%">';
$i=0;
while ($pointdata=dbarray($pointquery))
{
if ($i % 2 == 0) { $row_color = "tbl1"; } else { $row_color = "tbl2"; }
echo '<tr class="'.$row_color.'">
   <td width="100%"><img src="'.THEME.'images/bullet.gif"> <a class="side" href="'.BASEDIR.'profile.php?lookup='.$pointdata['owner_id'].'">'.$pointdata['owner_name'].'</a></td>';
   $i++;
}//while
echo '</tr>
</table>';
closeside();
}
?>