<tr>
<td align="center"><a href="admincp.php?action=seedbonus"><img src="images/admin/seedbonus.png" border=0 width=118 height=80><br><?php echo T_("SEEDBONUS"); ?></a></td>
</tr> begin_block('<a href="' . $site_config["SITEURL"] . '/account-details.php?id=' . $CURUSER["id"] . '">' . class_user($CURUSER["username"]) . '</a>'); if (($imdb_image = $TTIMDB->getImage_1($_data->Poster, $site_config['torrent_dir'] . "/images/", $id))) {
SQL_Query_exec("UPDATE `torrents` SET `image1` = '" . $imdb_image . "' WHERE `id` = $id");
} if (empty($imdb_image = $TTIMDB->getImage_1($_data->Poster, $site_config['torrent_dir'] . "/images/", $id))) {
SQL_Query_exec("UPDATE `torrents` SET `image1` = '" . $imdb_image . "' WHERE `id` = $id");
} //profile complete mod
$LANG['PRO_COMPLETE_INFO'] = 'Completing the following fields in your account will result in the progress bar increasing: <br />%s<br /><br />';
$LANG['PRO_COMPLETE'] = 'Profile Completion';
$LANG['PRO_PERCENT'] = 'Your Profile is %d % Complete.'; $var = explode( ' ', 'avatar-20 gender-20 client-20 signature-20 title-20' );
$data = array();
foreach ( $var as $k => $v )
{
$var = explode( '-', $v );
$data[$var[ 0 ]] = ( int ) $var[ 1 ];
}
$percentage = $text = null;
foreach ( $data as $k => $v )
{
if ( ! empty( $CURUSER[ $k ] ) )
{
$percentage += $v;
}
else
{
$text .= '<b>' . ucwords( $k ) . '</b> (+' . $v . '%) ';
}
}
begin_frame( T_('PRO_COMPLETE') );
if ( $text != null )
{
echo sprintf( T_('PRO_COMPLETE_INFO'), $text );
}
?>
<style type="text/css">
.profile_bar { background:red; height:16px; font-size:1px; }
.profile_bar span { background: green; height: 16px; display: block; }
</style>
<?php echo sprintf( T_('PRO_PERCENT'), ( int ) $percentage ); ?>
<div class="profile_bar"><span style="width: <?php echo ( int ) $percentage; ?>%; "></span> </div>
<?php
end_frame();