diff options
Diffstat (limited to 'usr/local/www/pkg_mgr.php')
-rwxr-xr-x | usr/local/www/pkg_mgr.php | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/usr/local/www/pkg_mgr.php b/usr/local/www/pkg_mgr.php index 08135aa..ec6d480 100755 --- a/usr/local/www/pkg_mgr.php +++ b/usr/local/www/pkg_mgr.php @@ -106,30 +106,30 @@ if(!$pkg_config['packages']) { $pkgs[] = $pkg['name']; } } - sort($pkgs); - foreach($pkgs as $pkg) { + asort($pkgs); + foreach($pkgs as $index => $pkg) { if(!is_string($instpkgs[0])) { echo "<tr><td colspan=\"3\"><center>There are currently no available packages for installation.</td></tr>"; } ?> <tr valign="top"> <td class="listlr"> - <A target="_new" href="<?= $pkg['website'] ?>"><?= $pkg['name'] ?></a> + <A target="_new" href="<?= $pkg_config['packages'][$index]['website'] ?>"><?= $pkg_config['packages'][$index]['name'] ?></a> </td> <td class="listlr"> - <?= $pkg['category'] ?> + <?= $pkg_config['packages'][$index]['category'] ?> </td> <td class="listlr"> - <?= $pkg['status'] ?> + <?= $pkg_config['packages'][$index]['status'] ?> <br> - <?= $pkg['version'] ?> + <?= $pkg_config['packages'][$index]['version'] ?> </td> <td class="listbg"> <font color="#FFFFFFF"> - <?= $pkg['descr'] ?> + <?= $pkg_config['packages'][$index]['descr'] ?> </td> <td valign="middle" class="list" nowrap> - <a onclick="return confirm('Do you really want to install this package?')" href="pkg_mgr_install.php?id=<?=$i;?>"><img src="plus.gif" width="17" height="17" border="0"></a> + <a onclick="return confirm('Do you really want to install this package?')" href="pkg_mgr_install.php?id=<?=$index;?>"><img src="plus.gif" width="17" height="17" border="0"></a> </td> </tr> <?php |