Project

General

Profile

« Previous | Next » 

Revision dcd18c94

Added by Colin Smith about 20 years ago

  • Handle XML versions.
  • Don't pass &version=.

View differences:

usr/local/www/pkg_mgr_installed.php
108 108
					    echo $pkg['version'];
109 109
					    ?></td><?php
110 110
					}
111
					$latest_xml = explode(" ", $pkg['xmlver']);
112
					$latest_xml = $latest_xml[1];
111
					$latest_xml = $currentvers[$pkg['name']]['xmlver'];
113 112
					if(($latest_xml == false) and ($pkg['xmlver']) == false) {
114 113
						?><td class="listlr"><?php
115 114
						echo "Unknown.";
......
125 124
                                                ?></td><?php
126 125
					} elseif($pkg['xmlver'] < $latest_xml) {
127 126
						?><td class="listbg"><font color="#FFFFFFF"><?php
128
	                                        echo "Current: {$latest_version}";
129
						echo "<br>Installed: {$pkg['version']}";
127
	                                        echo "Current: {$latest_xml}";
128
						echo "<br>Installed: {$pkg['xmlver']}";
130 129
                            			?></td><?php
131 130
					} else {
132 131
						?><td class="listlr"><?php
......
141 140
                                <td valign="middle" class="list" nowrap>
142 141
                                    <a onclick="return confirm('Do you really want to remove this package?')" href="pkg_mgr_install.php?mode=delete&pkg=<?= $pkg['name']; ?>"><img title="Remove this package." src="x.gif" width="17" height="17" border="0"></a>
143 142
                                    <br>
144
				    <a href="pkg_mgr_install.php?mode=reinstallpkg&pkg=<?= $pkg['name']; ?>&version=<?= $pkg['version']; ?>"><img title="Reinstall this package." src="reinstall_pkg.gif" width="17" height="17" border="0"</a>
145
				    <a href="pkg_mgr_install.php?mode=reinstallxml&pkg=<?= $pkg['name']; ?>&version=<?= $pkg['version']; ?>"><img title="Reinstall this package's GUI components." src="reinstall_xml.gif" width="17" height="17" border="0"</a>
143
				    <a href="pkg_mgr_install.php?mode=reinstallpkg&pkg=<?= $pkg['name']; ?>"><img title="Reinstall this package." src="reinstall_pkg.gif" width="17" height="17" border="0"</a>
144
				    <a href="pkg_mgr_install.php?mode=reinstallxml&pkg=<?= $pkg['name']; ?>"><img title="Reinstall this package's GUI components." src="reinstall_xml.gif" width="17" height="17" border="0"</a>
146 145
				</td>
147 146
                            </tr>
148 147
                            <?php

Also available in: Unified diff