} else { $result = $size / 1073741824.0 . " gb"; } return $result; } $uploads = amule_load_vars("uploads"); foreach ($uploads as $file) { echo "<tr>"; echo "<td class='texte' height='22' align='center'>", "</td>"; echo "<td class='texte' height='22'>", $file->short_name, "</td>"; echo "<td class='texte' height='22' align='center'>", $file->user_name, "</td>"; echo "<td class='texte' height='22' align='center'>", CastToXBytes($file->xfer_up), "</td>"; echo "<td class='texte' height='22' align='center'>", CastToXBytes($file->xfer_down), "</td>"; echo "<td class='texte' height='22' align='center'>", "</td>"; echo "<td class='texte' height='22' align='center'>", "</td>"; echo "<td class='texte' height='22' align='center'>", $file->xfer_speed > 0 ? CastToXBytes($file->xfer_speed) . "/s" : "-", "</td>"; echo "<td class='texte' height='22' align='center'>", "</td>"; echo "</tr><tr><td colspan='9' height='1' bgcolor='#c0c0c0'></td></tr>"; } ?> </table></td> <td width="24" background="images/tab_right.png"> </td> </tr> <tr> <td width="24"><img src="images/tab_bottom_left.png" width="24" height="24"></td> <td background="images/tab_bottom.png"> </td> <td width="24"><img src="images/tab_bottom_right.png" width="24" height="24"></td> </tr> </table> </td>
} } //var_dump($_SESSION); $sort_reverse = $_SESSION["sort_reverse"]; if ($sort_order != "") { $_SESSION["shared_sort"] = $sort_order; usort(&$shared, "my_cmp"); } foreach ($shared as $file) { print "<tr>"; echo "<td class='texte'>", '<input type="checkbox" name="', $file->hash, '" >', "</td>"; echo "<td class='texte'>", $file->short_name, "</td>"; echo "<td class='texte' align='center'>", CastToXBytes($file->xfer), " (", CastToXBytes($file->xfer_all), ")</td>"; echo "<td class='texte' align='center'>", $file->req, " (", $file->req_all, ")</td>"; echo "<td class='texte' align='center'>", $file->accept, " (", $file->accept_all, ")</td>"; echo "<td class='texte' align='center'>", CastToXBytes($file->size), "</td>"; echo "<td class='texte' align='center'>", PrioString($file), "</td>"; print "</tr><tr><td colspan='9' height='1' bgcolor='#c0c0c0'></td></tr>"; } ?> </table></td> <td width="24" background="images/tab_right.png"> </td> </tr> <tr> <td width="24"><img src="images/tab_bottom_left.png" width="24" height="24"></td> <td background="images/tab_bottom.png"> </td> <td width="24"><img src="images/tab_bottom_right.png" width="24" height="24"></td> </tr> </table></form></td> </tr> <tr valign="bottom">