Project

General

Profile

Download (3.99 KB) Statistics
| Branch: | Tag: | Revision:
1
#!/usr/local/bin/php
2
<?php
3
/*
4
    pkg_mgr.php
5
    Copyright (C) 2004 Scott Ullrich
6
    All rights reserved.
7

    
8
    Redistribution and use in source and binary forms, with or without
9
    modification, are permitted provided that the following conditions are met:
10

    
11
    1. Redistributions of source code must retain the above copyright notice,
12
       this list of conditions and the following disclaimer.
13

    
14
    2. Redistributions in binary form must reproduce the above copyright
15
       notice, this list of conditions and the following disclaimer in the
16
       documentation and/or other materials provided with the distribution.
17

    
18
    THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
19
    INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
20
    AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
21
    AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
22
    OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
23
    SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24
    INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
25
    CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26
    ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27
    POSSIBILITY OF SUCH DAMAGE.
28
*/
29

    
30
require("guiconfig.inc");
31
require("xmlparse_pkg.inc");
32

    
33
?>
34
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
35
<html>
36
<head>
37
<title><?=gentitle("System: Package Manager");?></title>
38
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
39
<link href="gui.css" rel="stylesheet" type="text/css">
40
</head>
41

    
42
<body link="#0000CC" vlink="#0000CC" alink="#0000CC">
43
<?php
44
$config_tmp = $config;
45
$config = $pfSense_config;
46
include("fbegin.inc");
47
$config = $config_tmp;
48
?>
49
<p class="pgtitle">System: Package Manager</p>
50
<form action="firewall_nat_out_load_balancing.php" method="post">
51
<?php if ($savemsg) print_info_box($savemsg); ?>
52
<table width="100%" border="0" cellpadding="0" cellspacing="0">  <tr><td>
53
  <ul id="tabnav">
54
    <li class="tabinact"><a href="pkg_mgr.php">Available Packages</a></li>
55
    <li class="tabact">Installed Packages</li>
56
  </ul>
57
  </td></tr>
58
  <tr>
59
    <td class="tabcont">
60
              <table width="100%" border="0" cellpadding="6" cellspacing="0">
61
                <tr>
62
                  <td width="25%" class="listhdrr">Package Name</td>
63
                  <td width="25%" class="listhdrr">Category</td>
64
                  <td width="50%" class="listhdr">Description</td>
65
                </tr>
66

    
67
		<?php
68
		 $i = 0;
69
                 if($config['installedpackages']['package']) {
70
		    foreach ($config['installedpackages']['package'] as $pkg) {
71
                        if($pkg['name'] <> "") {
72
                            ?>
73
                            <tr valign="top">
74
                                <td class="listlr">
75
                                    <?= $pkg['name'] ?>
76
                                </td>
77
                                <td class="listlr">
78
                                    <?= $pkg['category'] ?>
79
                                </td>
80
                                <td class="listbg">
81
                                    <font color="#FFFFFFF">
82
                                    <?= $pkg['descr'] ?>
83
                                </td>
84
                                <td valign="middle" class="list" nowrap>
85
                                    <a onclick="return confirm('Do you really want to remove this package?')" href="pkg_mgr_delete.php?id=<?=$i;?>"><img src="x.gif" width="17" height="17" border="0"></a>
86
                                </td>
87
                            </tr>
88
                            <?php
89
                            $i++;
90
                        }
91
		    }
92
                 }
93
                 if($i == 0) echo "<tr><td colspan=\"3\"><center>There are currently no packages installed.</td></tr>";
94
		?>
95
        </table>
96
    </td>
97
  </tr>
98
</table>
99
</form>
100
<?php include("fend.inc"); ?>
101
</body>
102
</html>
103

    
104

    
105

    
106

    
107

    
108

    
109

    
110

    
111

    
112

    
(56-56/99)