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

Parašė Haked· 2008 Geg. 11 22:05:09
#7

labai tau aciu duodu +10 klausyk gal galetum dar su vienu dalyku padeti? wa ka turiu cia yra top tasku turetojai ir tasku info taj as nenoriu tos tasku info bet noriu kad butu top tasku turetojai taj kajp juos atskirti?
<?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;'.getallgold($userdata['user_id']).'<br>';

   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="70%"><img src="'.THEME.'images/bullet.gif"> <a class="side" href="'.BASEDIR.'profile.php?lookup='.$pointdata['owner_id'].'">'.$pointdata['owner_name'].'</a></td>
   <td width="30%">'.$pointdata['points_total'].'</td>';
   $i++;
}//while
echo '</tr>
</table>';
closeside();
}
?>




Redagavo Haked· 2008 Geg. 11 22:05:22