1 |
diff -urN smeserver-phpvirtualbox-5.2.1.old/COPYING.orig smeserver-phpvirtualbox-5.2.1/COPYING.orig |
diff -urN smeserver-phpvirtualbox-5.2.1.old/createlinks smeserver-phpvirtualbox-5.2.1/createlinks |
2 |
--- smeserver-phpvirtualbox-5.2.1.old/COPYING.orig 1970-01-01 10:00:00.000000000 +1000 |
--- smeserver-phpvirtualbox-5.2.1.old/createlinks 2022-10-18 09:49:44.000000000 +1100 |
3 |
+++ smeserver-phpvirtualbox-5.2.1/COPYING.orig 2023-03-07 15:11:25.604647501 +1100 |
+++ smeserver-phpvirtualbox-5.2.1/createlinks 2023-03-01 16:58:09.000000000 +1100 |
4 |
@@ -0,0 +1,340 @@ |
@@ -9,17 +9,22 @@ |
5 |
+ GNU GENERAL PUBLIC LICENSE |
#see the /etc/systemd/system-preset/49-koozali.preset should be present for systemd integration on all you yum update event |
6 |
+ Version 2, June 1991 |
|
7 |
+ |
foreach my $file (qw( |
8 |
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc. |
- /etc/php-fpm.d/phpvirtualbox.conf |
9 |
+ 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
- /opt/phpvirtualbox/config.php |
10 |
+ Everyone is permitted to copy and distribute verbatim copies |
+ /etc/httpd/conf/httpd.conf |
11 |
+ of this license document, but changing it is not allowed. |
+ /etc/opt/remi/php74/php-fpm.d/www.conf |
12 |
+ |
+ /etc/samba/smb.conf |
13 |
+ Preamble |
+ /opt/phpvirtualbox/config.php |
14 |
+ |
)) |
15 |
+ The licenses for most software are designed to take away your |
{ |
16 |
+freedom to share and change it. By contrast, the GNU General Public |
templates2events( $file, $event ); |
17 |
+License is intended to guarantee your freedom to share and change free |
}; |
18 |
+software--to make sure the software is free for all its users. This |
+#we need to expand /opt/phpvirtualbox/config.php when changing the vboxweb runtime user passwd |
19 |
+General Public License applies to most of the Free Software |
+templates2events( '/opt/phpvirtualbox/config.php', 'smeserver-virtualbox-update'); |
20 |
+Foundation's software and to any other program whose authors commit to |
+ |
21 |
+using it. (Some other Free Software Foundation software is covered by |
#action needed in case we have a systemd unit |
22 |
+the GNU Library General Public License instead.) You can apply it to |
#event_link('systemd-default', $event, '10'); |
23 |
+your programs, too. |
#event_link('systemd-reload', $event, '50'); |
24 |
+ |
#services we need to restart |
25 |
+ When we speak of free software, we are referring to freedom, not |
-#event_services($event, 'vboxdrv' => 'restart', 'vboxweb-service' => 'restart'); |
26 |
+price. Our General Public Licenses are designed to make sure that you |
+event_services($event, 'httpd-e-smith' => 'restart', 'php74-php-fpm' => 'restart', 'smbd' => 'restart'); |
27 |
+have the freedom to distribute copies of free software (and charge for |
|
28 |
+this service if you wish), that you receive source code or can get it |
#backup_includes("smeserver-virtualbox", qw( |
29 |
+if you want it, that you can change the software or use pieces of it |
#/home/e-smith/files/users/vbox |
30 |
+in new free programs; and that you know you can do these things. |
diff -urN smeserver-phpvirtualbox-5.2.1.old/README.md smeserver-phpvirtualbox-5.2.1/README.md |
31 |
+ |
--- smeserver-phpvirtualbox-5.2.1.old/README.md 2015-08-08 21:37:59.000000000 +1000 |
32 |
+ To protect your rights, we need to make restrictions that forbid |
+++ smeserver-phpvirtualbox-5.2.1/README.md 1970-01-01 10:00:00.000000000 +1000 |
33 |
+anyone to deny you these rights or to ask you to surrender the rights. |
@@ -1,2 +0,0 @@ |
34 |
+These restrictions translate to certain responsibilities for you if you |
-smeserver-phpvirtualbox |
35 |
+distribute copies of the software, or if you modify it. |
-======================= |
36 |
+ |
diff -urN smeserver-phpvirtualbox-5.2.1.old/root/etc/e-smith/db/configuration/defaults/phpvirtualbox/adminUser smeserver-phpvirtualbox-5.2.1/root/etc/e-smith/db/configuration/defaults/phpvirtualbox/adminUser |
37 |
+ For example, if you distribute copies of such a program, whether |
--- smeserver-phpvirtualbox-5.2.1.old/root/etc/e-smith/db/configuration/defaults/phpvirtualbox/adminUser 1970-01-01 10:00:00.000000000 +1000 |
38 |
+gratis or for a fee, you must give the recipients all the rights that |
+++ smeserver-phpvirtualbox-5.2.1/root/etc/e-smith/db/configuration/defaults/phpvirtualbox/adminUser 2023-02-25 16:29:54.000000000 +1100 |
39 |
+you have. You must make sure that they, too, receive or can get the |
@@ -0,0 +1 @@ |
40 |
+source code. And you must show them these terms so they know their |
+admin |
41 |
+rights. |
diff -urN smeserver-phpvirtualbox-5.2.1.old/root/etc/e-smith/db/configuration/defaults/phpvirtualbox/authtype smeserver-phpvirtualbox-5.2.1/root/etc/e-smith/db/configuration/defaults/phpvirtualbox/authtype |
42 |
+ |
--- smeserver-phpvirtualbox-5.2.1.old/root/etc/e-smith/db/configuration/defaults/phpvirtualbox/authtype 2022-10-17 09:14:35.000000000 +1100 |
43 |
+ We protect your rights with two steps: (1) copyright the software, and |
+++ smeserver-phpvirtualbox-5.2.1/root/etc/e-smith/db/configuration/defaults/phpvirtualbox/authtype 2023-02-25 16:29:54.000000000 +1100 |
44 |
+(2) offer you this license which gives you legal permission to copy, |
@@ -1 +1 @@ |
45 |
+distribute and/or modify the software. |
-disabled |
46 |
+ |
+WebAuth |
47 |
+ Also, for each author's protection and ours, we want to make certain |
diff -urN smeserver-phpvirtualbox-5.2.1.old/root/etc/e-smith/db/configuration/defaults/phpvirtualbox/type smeserver-phpvirtualbox-5.2.1/root/etc/e-smith/db/configuration/defaults/phpvirtualbox/type |
48 |
+that everyone understands that there is no warranty for this free |
--- smeserver-phpvirtualbox-5.2.1.old/root/etc/e-smith/db/configuration/defaults/phpvirtualbox/type 2015-08-08 21:37:59.000000000 +1000 |
49 |
+software. If the software is modified by someone else and passed on, we |
+++ smeserver-phpvirtualbox-5.2.1/root/etc/e-smith/db/configuration/defaults/phpvirtualbox/type 2023-02-25 16:29:54.000000000 +1100 |
50 |
+want its recipients to know that what they have is not the original, so |
@@ -1 +1 @@ |
51 |
+that any problems introduced by others will not reflect on the original |
-service |
52 |
+authors' reputations. |
+configuration |
53 |
+ |
diff -urN smeserver-phpvirtualbox-5.2.1.old/root/etc/e-smith/db/configuration/defaults/phpvirtualbox/userGroups smeserver-phpvirtualbox-5.2.1/root/etc/e-smith/db/configuration/defaults/phpvirtualbox/userGroups |
54 |
+ Finally, any free program is threatened constantly by software |
--- smeserver-phpvirtualbox-5.2.1.old/root/etc/e-smith/db/configuration/defaults/phpvirtualbox/userGroups 1970-01-01 10:00:00.000000000 +1000 |
55 |
+patents. We wish to avoid the danger that redistributors of a free |
+++ smeserver-phpvirtualbox-5.2.1/root/etc/e-smith/db/configuration/defaults/phpvirtualbox/userGroups 2023-02-28 17:37:52.000000000 +1100 |
56 |
+program will individually obtain patent licenses, in effect making the |
@@ -0,0 +1 @@ |
57 |
+program proprietary. To prevent this, we have made it clear that any |
+vboxusers |
58 |
+patent must be licensed for everyone's free use or not licensed at all. |
\ No newline at end of file |
59 |
+ |
diff -urN smeserver-phpvirtualbox-5.2.1.old/root/etc/e-smith/db/configuration/migrate/40phpvirtualbox-change-webauth-to-enabled smeserver-phpvirtualbox-5.2.1/root/etc/e-smith/db/configuration/migrate/40phpvirtualbox-change-webauth-to-enabled |
60 |
+ The precise terms and conditions for copying, distribution and |
--- smeserver-phpvirtualbox-5.2.1.old/root/etc/e-smith/db/configuration/migrate/40phpvirtualbox-change-webauth-to-enabled 2015-08-08 21:37:59.000000000 +1000 |
61 |
+modification follow. |
+++ smeserver-phpvirtualbox-5.2.1/root/etc/e-smith/db/configuration/migrate/40phpvirtualbox-change-webauth-to-enabled 1970-01-01 10:00:00.000000000 +1000 |
62 |
+ |
@@ -1,8 +0,0 @@ |
63 |
+ GNU GENERAL PUBLIC LICENSE |
-{ |
64 |
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION |
- my $PVBwebauth = $DB->get_prop('phpvirtualbox', 'webauth') or return; |
65 |
+ |
- if ($PVBwebauth eq 'disabled') |
66 |
+ 0. This License applies to any program or other work which contains |
- { |
67 |
+a notice placed by the copyright holder saying it may be distributed |
- $DB->set_prop('phpvirtualbox',"webauth", "enabled" ); |
68 |
+under the terms of this General Public License. The "Program", below, |
- } |
69 |
+refers to any such program or work, and a "work based on the Program" |
-} |
70 |
+means either the Program or any derivative work under copyright law: |
- |
71 |
+that is to say, a work containing the Program or a portion of it, |
diff -urN smeserver-phpvirtualbox-5.2.1.old/root/etc/e-smith/db/configuration/migrate/phpvirtualbox smeserver-phpvirtualbox-5.2.1/root/etc/e-smith/db/configuration/migrate/phpvirtualbox |
72 |
+either verbatim or with modifications and/or translated into another |
--- smeserver-phpvirtualbox-5.2.1.old/root/etc/e-smith/db/configuration/migrate/phpvirtualbox 1970-01-01 10:00:00.000000000 +1000 |
73 |
+language. (Hereinafter, translation is included without limitation in |
+++ smeserver-phpvirtualbox-5.2.1/root/etc/e-smith/db/configuration/migrate/phpvirtualbox 2023-02-25 16:29:54.000000000 +1100 |
74 |
+the term "modification".) Each licensee is addressed as "you". |
@@ -0,0 +1,29 @@ |
75 |
+ |
+{ |
76 |
+Activities other than copying, distribution and modification are not |
+ my $rec = $DB->get('phpvirtualbox') |
77 |
+covered by this License; they are outside its scope. The act of |
+ || $DB->new_record('phpvirtualbox', {type => 'configuration'}); |
78 |
+running the Program is not restricted, and the output from the Program |
+ |
79 |
+is covered only if its contents constitute a work based on the |
+ # webauth replaced by authType, which can have multiple values |
80 |
+Program (independent of having been made by running the Program). |
+ if ($rec->prop('webauth')) { |
81 |
+Whether that is true depends on what the Program does. |
+ $rec->set_prop('authType', 'WebAuth'); |
82 |
+ |
+ $rec->del_prop('webauth'); |
83 |
+ 1. You may copy and distribute verbatim copies of the Program's |
+ } |
84 |
+source code as you receive it, in any medium, provided that you |
+ if ( -e '/etc/e-smith/db/configuration/defaults/phpvirtualbox/Group' ) { |
85 |
+conspicuously and appropriately publish on each copy an appropriate |
+ unlink '/etc/e-smith/db/configuration/defaults/phpvirtualbox/Group'; |
86 |
+copyright notice and disclaimer of warranty; keep intact all the |
+ } |
87 |
+notices that refer to this License and to the absence of any warranty; |
+ |
88 |
+and give any other recipients of the Program a copy of this License |
+ # Group has been replaced with userGroups, which already allowed for multiple groups |
89 |
+along with the Program. |
+ if ($rec->prop('Group')) { |
90 |
+ |
+ $rec->set_prop('userGroups', $rec->prop('Group')); |
91 |
+You may charge a fee for the physical act of transferring a copy, and |
+ $rec->del_prop('Group'); |
92 |
+you may at your option offer warranty protection in exchange for a fee. |
+ } |
93 |
+ |
+ |
94 |
+ 2. You may modify your copy or copies of the Program or any portion |
+ # User replaced by Users, because it already allows for multiple users |
95 |
+of it, thus forming a work based on the Program, and copy and |
+ if ($rec->prop('User')) { |
96 |
+distribute such modifications or work under the terms of Section 1 |
+ $rec->set_prop('Users', $rec->prop('User')); |
97 |
+above, provided that you also meet all of these conditions: |
+ $rec->del_prop('User'); |
98 |
+ |
+ } |
99 |
+ a) You must cause the modified files to carry prominent notices |
+ if ( -e '/etc/e-smith/db/configuration/defaults/phpvirtualbox/User' ) { |
100 |
+ stating that you changed the files and the date of any change. |
+ unlink '/etc/e-smith/db/configuration/defaults/phpvirtualbox/User'; |
101 |
+ |
+ } |
102 |
+ b) You must cause any work that you distribute or publish, that in |
+ |
103 |
+ whole or in part contains or is derived from the Program or any |
+} |
104 |
+ part thereof, to be licensed as a whole at no charge to all third |
diff -urN smeserver-phpvirtualbox-5.2.1.old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/35ExternalUnixGroup smeserver-phpvirtualbox-5.2.1/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/35ExternalUnixGroup |
105 |
+ parties under the terms of this License. |
--- smeserver-phpvirtualbox-5.2.1.old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/35ExternalUnixGroup 1970-01-01 10:00:00.000000000 +1000 |
106 |
+ |
+++ smeserver-phpvirtualbox-5.2.1/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/35ExternalUnixGroup 2023-03-07 12:10:50.000000000 +1100 |
107 |
+ c) If the modified program normally reads commands interactively |
@@ -0,0 +1 @@ |
108 |
+ when run, you must cause it, when started running for such |
+DefineExternalGroup ugroup environment /usr/bin/unixgroup |
109 |
+ interactive use in the most ordinary way, to print or display an |
diff -urN smeserver-phpvirtualbox-5.2.1.old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/35-group-auth smeserver-phpvirtualbox-5.2.1/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/35-group-auth |
110 |
+ announcement including an appropriate copyright notice and a |
--- smeserver-phpvirtualbox-5.2.1.old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/35-group-auth 2015-08-08 21:37:59.000000000 +1000 |
111 |
+ notice that there is no warranty (or else, saying that you provide |
+++ smeserver-phpvirtualbox-5.2.1/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/35-group-auth 1970-01-01 10:00:00.000000000 +1000 |
112 |
+ a warranty) and that users may redistribute the program under |
@@ -1,5 +0,0 @@ |
113 |
+ these conditions, and telling the user how to view a copy of this |
-{ |
114 |
+ License. (Exception: if the Program itself is interactive but |
- $OUT .= " AddExternalGroup ugroup /usr/bin/unixgroup\n"; |
115 |
+ does not normally print such an announcement, your work based on |
- $OUT .= " SetExternalGroupMethod ugroup environment\n"; |
116 |
+ the Program is not required to print an announcement.) |
-} |
117 |
+ |
- |
118 |
+These requirements apply to the modified work as a whole. If |
diff -urN smeserver-phpvirtualbox-5.2.1.old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/92phpvirtualhost smeserver-phpvirtualbox-5.2.1/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/92phpvirtualhost |
119 |
+identifiable sections of that work are not derived from the Program, |
--- smeserver-phpvirtualbox-5.2.1.old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/92phpvirtualhost 2022-10-18 08:09:34.000000000 +1100 |
120 |
+and can be reasonably considered independent and separate works in |
+++ smeserver-phpvirtualbox-5.2.1/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/92phpvirtualhost 2023-03-07 12:09:59.000000000 +1100 |
121 |
+themselves, then this License, and its terms, do not apply to those |
@@ -6,8 +6,8 @@ |
122 |
+sections when you distribute them as separate works. But when you |
$OUT = ""; |
123 |
+distribute the same sections as part of a whole which is a work based |
my $satisfy = 'all'; |
124 |
+on the Program, the distribution of the whole must be on the terms of |
my $name = $phpvirtualbox{'Name'} || 'phpvirtualbox'; |
125 |
+this License, whose permissions for other licensees extend to the |
- my @phpvuser = split(",", ($phpvirtualbox{'User'} || "") ); |
126 |
+entire whole, and thus to each and every part regardless of who wrote it. |
- my @phpvgroup = split(",", ($phpvirtualbox{'Group'} || "") ); |
127 |
+ |
+ my @phpvboxusers = split(",", ($phpvirtualbox{'Users'} || "") ); |
128 |
+Thus, it is not the intent of this section to claim rights or contest |
+ my @phpvboxgroups = split(",", ($phpvirtualbox{'userGroups'} || "") ); |
129 |
+your rights to work written entirely by you; rather, the intent is to |
my $alias = ($phpvirtualbox{'URL'} || 'phpvirtualbox'); |
130 |
+exercise the right to control the distribution of derivative or |
|
131 |
+collective works based on the Program. |
$OUT .= "#------------------------------------------------------------\n"; |
132 |
+ |
@@ -18,20 +18,23 @@ |
133 |
+In addition, mere aggregation of another work not based on the Program |
$OUT .= "\n"; |
134 |
+with the Program (or with a work based on the Program) on a volume of |
if ($phpvirtualbox{'authtype'} ne 'disabled') { |
135 |
+a storage or distribution medium does not bring the other work under |
$OUT .= "<Location /$alias>\n"; |
136 |
+the scope of this License. |
- if ($phpvirtualbox{'authtype'} eq 'httpd_webauth') { |
137 |
+ |
+ if ($phpvirtualbox{'authtype'} eq 'WebAuth') { |
138 |
+ 3. You may copy and distribute the Program (or a work based on it, |
$OUT .= " AuthName \"$name\"\n"; |
139 |
+under Section 2) in object code or executable form under the terms of |
- $OUT .= " AuthType Basic\n"; |
140 |
+Sections 1 and 2 above provided that you also do one of the following: |
- $OUT .= " AuthBasicProvider \n"; |
141 |
+ |
- $OUT .= " AuthExternal webauth\n"; |
142 |
+ a) Accompany it with the complete corresponding machine-readable |
- $OUT .= " GroupExternal ugroup\n"; |
143 |
+ source code, which must be distributed under the terms of Sections |
- $OUT .= " Require user admin @phpvuser\n"; |
144 |
+ 1 and 2 above on a medium customarily used for software interchange; or, |
- $OUT .= " Require group @phpvgroup\n"; |
145 |
+ |
+ $OUT .= " AuthType Basic\n"; |
146 |
+ b) Accompany it with a written offer, valid for at least three |
+ $OUT .= " AuthBasicProvider external\n"; |
147 |
+ years, to give any third party, for a charge no more than your |
+ $OUT .= " AuthExternal pwauth\n"; |
148 |
+ cost of physically performing source distribution, a complete |
+ $OUT .= " GroupExternal ugroup\n"; |
149 |
+ machine-readable copy of the corresponding source code, to be |
+ $OUT .= " Require user admin @phpvboxusers\n"; |
150 |
+ distributed under the terms of Sections 1 and 2 above on a medium |
+ $OUT .= " Require external-group @phpvboxgroups\n"; |
151 |
+ customarily used for software interchange; or, |
} elsif ($phpvirtualbox{'authtype'} eq 'httpd_LDAP') { |
152 |
+ |
- $OUT .= " AuthName \"$name\"\n"; |
153 |
+ c) Accompany it with the information you received as to the offer |
- $OUT .= " AuthType Basic\n"; |
154 |
+ to distribute corresponding source code. (This alternative is |
- $OUT .= " AuthBasicProvider ldap\n"; |
155 |
+ allowed only for noncommercial distribution and only if you |
- $OUT .= " Require ldap-user admin @phpvuser\n"; |
156 |
+ received the program in object code or executable form with such |
- $OUT .= " Require ldap-group cn=@phpvgroup, o=*\n"; |
157 |
+ an offer, in accord with Subsection b above.) |
+ $OUT .= " AuthName \"$name\"\n"; |
158 |
+ |
+ $OUT .= " AuthType Basic\n"; |
159 |
+The source code for a work means the preferred form of the work for |
+ $OUT .= " AuthBasicProvider ldap\n"; |
160 |
+making modifications to it. For an executable work, complete source |
+ $OUT .= " AuthLDAPURL = ldap://localhost/0=$smb{'Workgroup'},%uid\n"; |
161 |
+code means all the source code for all modules it contains, plus any |
+ $OUT .= " Require ldap-user admin @phpvboxusers\n"; |
162 |
+associated interface definition files, plus the scripts used to |
+ foreach my $group (@phpvboxgroups) { |
163 |
+control compilation and installation of the executable. However, as a |
+ $OUT .= " Require ldap-group cn=@group, o=*\n"; |
164 |
+special exception, the source code distributed need not include |
+ } |
165 |
+anything that is normally distributed (in either source or binary |
} |
166 |
+form) with the major components (compiler, kernel, and so on) of the |
$OUT .= "</Location>\n"; |
167 |
+operating system on which the executable runs, unless that component |
$OUT .= "\n"; |
168 |
+itself accompanies the executable. |
@@ -46,4 +49,3 @@ |
169 |
+ |
$OUT .= " AddType application/x-httpd-php .php\n"; |
170 |
+If distribution of executable or object code is made by offering |
$OUT .= "</Directory>\n"; |
171 |
+access to copy from a designated place, then offering equivalent |
} |
172 |
+access to copy the source code from the same place counts as |
- |
173 |
+distribution of the source code, even though third parties are not |
diff -urN smeserver-phpvirtualbox-5.2.1.old/root/etc/e-smith/templates/etc/php-fpm.d/phpvirtualbox.conf/50phpvirtualbox smeserver-phpvirtualbox-5.2.1/root/etc/e-smith/templates/etc/php-fpm.d/phpvirtualbox.conf/50phpvirtualbox |
174 |
+compelled to copy the source along with the object code. |
--- smeserver-phpvirtualbox-5.2.1.old/root/etc/e-smith/templates/etc/php-fpm.d/phpvirtualbox.conf/50phpvirtualbox 2022-10-12 14:58:16.000000000 +1100 |
175 |
+ |
+++ smeserver-phpvirtualbox-5.2.1/root/etc/e-smith/templates/etc/php-fpm.d/phpvirtualbox.conf/50phpvirtualbox 1970-01-01 10:00:00.000000000 +1000 |
176 |
+ 4. You may not copy, modify, sublicense, or distribute the Program |
@@ -1,32 +0,0 @@ |
177 |
+except as expressly provided under this License. Any attempt |
-[php74-phpvirtualbox] |
178 |
+otherwise to copy, modify, sublicense or distribute the Program is |
-user = www |
179 |
+void, and will automatically terminate your rights under this License. |
-group = www |
180 |
+However, parties who have received copies, or rights, from you under |
-listen.owner = root |
181 |
+this License will not have their licenses terminated so long as such |
-listen.group = www |
182 |
+parties remain in full compliance. |
-listen.mode = 0660 |
183 |
+ |
-listen = /var/run/php-fpm/php74-phpvirtualbox.sock |
184 |
+ 5. You are not required to accept this License, since you have not |
-pm = dynamic |
185 |
+signed it. However, nothing else grants you permission to modify or |
-pm.max_children = 15 |
186 |
+distribute the Program or its derivative works. These actions are |
-pm.start_servers = 3 |
187 |
+prohibited by law if you do not accept this License. Therefore, by |
-pm.min_spare_servers = 3 |
188 |
+modifying or distributing the Program (or any work based on the |
-pm.max_spare_servers = 4 |
189 |
+Program), you indicate your acceptance of this License to do so, and |
-pm.max_requests = 1000 |
190 |
+all its terms and conditions for copying, distributing or modifying |
-slowlog = /var/log/php/phpvirtualbox/slow.log |
191 |
+the Program or works based on it. |
-php_admin_value[session.save_path] = /var/lib/php/php74/phpvirtualbox/session |
192 |
+ |
-php_admin_value[opcache.file_cache] = /var/lib/php/php74/phpvirtualbox/opcache |
193 |
+ 6. Each time you redistribute the Program (or any work based on the |
-php_admin_value[upload_tmp_dir] = /var/lib/php/php74/phpvirtualbox/tmp |
194 |
+Program), the recipient automatically receives a license from the |
-php_admin_value[sys_temp_dir] = /var/lib/php/php74/phpvirtualbox/tmp |
195 |
+original licensor to copy, distribute or modify the Program subject to |
-php_admin_flag[display_errors] = on |
196 |
+these terms and conditions. You may not impose any further |
-php_admin_flag[log_errors] = on |
197 |
+restrictions on the recipients' exercise of the rights granted herein. |
-php_admin_value[error_log] = /var/log/php/phpvirtualbox/error.log |
198 |
+You are not responsible for enforcing compliance by third parties to |
-php_admin_value[memory_limit] = 128M |
199 |
+this License. |
-php_admin_value[max_execution_time] = 30 |
200 |
+ |
-php_admin_value[upload_max_filesize] = 10M |
201 |
+ 7. If, as a consequence of a court judgment or allegation of patent |
-php_admin_value[max_input_time] = 60 |
202 |
+infringement or for any other reason (not limited to patent issues), |
-php_admin_flag[allow_url_fopen] = 1 |
203 |
+conditions are imposed on you (whether by court order, agreement or |
-php_admin_flag[file_upload] = on |
204 |
+otherwise) that contradict the conditions of this License, they do not |
-php_admin_flag[session.cookie_httponly] = on |
205 |
+excuse you from the conditions of this License. If you cannot |
-php_admin_flag[allow_url_include] = off |
206 |
+distribute so as to satisfy simultaneously your obligations under this |
-php_admin_value[session.save_handler] = files |
207 |
+License and any other pertinent obligations, then as a consequence you |
-php_admin_value[open_basedir] = /opt/phpvirtualbox/:/var/lib/php/php74/phpvirtualbox/:/var/log/php/phpvirtualbox/:/var/run/php-fpm/ |
208 |
+may not distribute the Program at all. For example, if a patent |
-php_admin_value[eaccelerator.enable] = 1 |
209 |
+license would not permit royalty-free redistribution of the Program by |
diff -urN smeserver-phpvirtualbox-5.2.1.old/root/etc/e-smith/templates/etc/php-fpm.d/www.conf/15phpvirtualbox smeserver-phpvirtualbox-5.2.1/root/etc/e-smith/templates/etc/php-fpm.d/www.conf/15phpvirtualbox |
210 |
+all those who receive copies directly or indirectly through you, then |
--- smeserver-phpvirtualbox-5.2.1.old/root/etc/e-smith/templates/etc/php-fpm.d/www.conf/15phpvirtualbox 1970-01-01 10:00:00.000000000 +1000 |
211 |
+the only way you could satisfy both it and this License would be to |
+++ smeserver-phpvirtualbox-5.2.1/root/etc/e-smith/templates/etc/php-fpm.d/www.conf/15phpvirtualbox 2023-02-25 16:29:54.000000000 +1100 |
212 |
+refrain entirely from distribution of the Program. |
@@ -0,0 +1,65 @@ |
213 |
+ |
+{ |
214 |
+If any portion of this section is held invalid or unenforceable under |
+ |
215 |
+any particular circumstance, the balance of the section is intended to |
+ my $phpversion = ($phpvirtulabox{Version} || '74'); |
216 |
+apply and the section as a whole is intended to apply in other |
+ if ($PHP_VERSION eq $phpversion) { |
217 |
+circumstances. |
+ if (($phpvirtualbox{'status'} || 'disabled') eq 'enabled') { |
218 |
+ |
+ my $max_upload_size = ($phpvirtualbox{MaxUploadSize} || '4096'); |
219 |
+It is not the purpose of this section to induce you to infringe any |
+ $max_upload_size .= 'M' if ($max_upload_size =~ m/^\d+$/); |
220 |
+patents or other property right claims or to contest validity of any |
+ my $memory_limit = ($phpvirtualbox{MemoryLimit} || '500M'); |
221 |
+such claims; this section has the sole purpose of protecting the |
+ $memory_limit .= 'M' if ($memory_limit =~ m/^\d+$/); |
222 |
+integrity of the free software distribution system, which is |
+ my $open_basedir= $phpvirtualbox{PHPBaseDir} || ''; |
223 |
+implemented by public license practices. Many people have made |
+ my $id = 'phpvirtualbox'; |
224 |
+generous contributions to the wide range of software distributed |
+ $open_basedir = "/opt/phpvirtualbox/:/var/log/php/$id/:/var/lib/php/$id/:$open_basedir"; |
225 |
+through that system in reliance on consistent application of that |
+ my $max_children = $phpvirtualbox{'PHPmaxChildren'} || 20; |
226 |
+system; it is up to the author/donor to decide if he or she is willing |
+ my $min_spare_servers = $phpvirtualbox{'PHPminServers'} || 4; |
227 |
+to distribute software through any other system and a licensee cannot |
+ my $start_servers = $phpvirtualbox{'PHPstartServers'} || 6; |
228 |
+impose that choice. |
+ my $max_spare_servers = $phpvirtualbox{'PHPmaxServers'} || 8; |
229 |
+ |
+ my $max_requests = $phpvirtualbox{'PHPmaxRequests'} || 1000; |
230 |
+This section is intended to make thoroughly clear what is believed to |
+ $min_spare_servers = ( $min_spare_servers > $max_spare_servers ) ? printf("%.0f",$max_spare_servers/2) : $min_spare_servers; |
231 |
+be a consequence of the rest of this License. |
+ $start_servers = ( $start_servers > $max_spare_servers ) ? printf("%.0f", $max_spare_servers /2 + $min_spare_servers/2 ) : $start_servers; |
232 |
+ |
+ |
233 |
+ 8. If the distribution and/or use of the Program is restricted in |
+ $OUT .=<<_EOF; |
234 |
+certain countries either by patents or by copyrighted interfaces, the |
+ |
235 |
+original copyright holder who places the Program under this License |
+[php$PHP_VERSION-$id] |
236 |
+may add an explicit geographical distribution limitation excluding |
+user = www |
237 |
+those countries, so that distribution is permitted only in or among |
+group = www |
238 |
+countries not thus excluded. In such case, this License incorporates |
+listen.owner = root |
239 |
+the limitation as if written in the body of this License. |
+listen.group = www |
240 |
+ |
+listen.mode = 0660 |
241 |
+ 9. The Free Software Foundation may publish revised and/or new versions |
+listen = /var/run/php-fpm/php$PHP_VERSION-$id.sock |
242 |
+of the General Public License from time to time. Such new versions will |
+pm = dynamic |
243 |
+be similar in spirit to the present version, but may differ in detail to |
+pm.max_children = $max_children |
244 |
+address new problems or concerns. |
+pm.start_servers = $start_servers |
245 |
+ |
+pm.min_spare_servers = $min_spare_servers |
246 |
+Each version is given a distinguishing version number. If the Program |
+pm.max_spare_servers = $max_spare_servers |
247 |
+specifies a version number of this License which applies to it and "any |
+pm.max_requests = $max_requests |
248 |
+later version", you have the option of following the terms and conditions |
+php_admin_value[session.save_path] = /var/lib/php/$id/session |
249 |
+either of that version or of any later version published by the Free |
+php_admin_value[session.gc_maxlifetime] = 86400 |
250 |
+Software Foundation. If the Program does not specify a version number of |
+php_admin_value[opcache.file_cache] = /var/lib/php/$id/opcache |
251 |
+this License, you may choose any version ever published by the Free Software |
+php_admin_value[upload_tmp_dir] = /var/lib/php/$id/tmp |
252 |
+Foundation. |
+php_admin_value[error_log] = /var/log/php/$id/error.log |
253 |
+ |
+slowlog = /var/log/php/$id/slow.log |
254 |
+ 10. If you wish to incorporate parts of the Program into other free |
+php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f php@{ $DomainName } |
255 |
+programs whose distribution conditions are different, write to the author |
+php_admin_flag[display_errors] = off |
256 |
+to ask for permission. For software which is copyrighted by the Free |
+php_admin_flag[log_errors] = on |
257 |
+Software Foundation, write to the Free Software Foundation; we sometimes |
+php_admin_value[memory_limit] = $memory_limit |
258 |
+make exceptions for this. Our decision will be guided by the two goals |
+php_admin_value[max_execution_time] = 3600 |
259 |
+of preserving the free status of all derivatives of our free software and |
+php_admin_value[post_max_size] = $max_upload_size |
260 |
+of promoting the sharing and reuse of software generally. |
+php_admin_value[upload_max_filesize] = $max_upload_size |
261 |
+ |
+php_admin_value[disable_functions] = system, show_source, symlink, dl, passthru, phpinfo, escapeshellarg, escapeshellcmd |
262 |
+ NO WARRANTY |
+php_admin_value[open_basedir] = $open_basedir |
263 |
+ |
+php_admin_flag[allow_url_fopen] = on |
264 |
+ 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY |
+php_admin_flag[file_uploads] = on |
265 |
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN |
+php_admin_flag[session.cookie_httponly] = on |
266 |
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES |
+php_admin_flag[allow_url_include] = off |
267 |
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED |
+php_admin_value[session.save_handler] = files |
268 |
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
+php_admin_flag[output_buffering] = off |
269 |
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS |
+php_admin_flag[eaccelerator.enable] = on |
270 |
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE |
+ |
271 |
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, |
+_EOF |
272 |
+REPAIR OR CORRECTION. |
+ |
273 |
+ |
+ } else { |
274 |
+ 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING |
+ $OUT .= '; phpvirtualbox is disabled'; |
275 |
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR |
+ } |
276 |
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, |
+ } |
277 |
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING |
+} |
278 |
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED |
\ No newline at end of file |
279 |
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY |
diff -urN smeserver-phpvirtualbox-5.2.1.old/root/etc/e-smith/templates/etc/smb.conf/60phpvirtualbox smeserver-phpvirtualbox-5.2.1/root/etc/e-smith/templates/etc/smb.conf/60phpvirtualbox |
280 |
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER |
--- smeserver-phpvirtualbox-5.2.1.old/root/etc/e-smith/templates/etc/smb.conf/60phpvirtualbox 1970-01-01 10:00:00.000000000 +1000 |
281 |
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE |
+++ smeserver-phpvirtualbox-5.2.1/root/etc/e-smith/templates/etc/smb.conf/60phpvirtualbox 2023-03-07 13:11:47.000000000 +1100 |
282 |
+POSSIBILITY OF SUCH DAMAGES. |
@@ -0,0 +1,33 @@ |
283 |
+ |
+{ |
284 |
+ END OF TERMS AND CONDITIONS |
+ my $validusers = ''; |
285 |
+ |
+ if ($phpvirtualbox{'adminUser'} || $phpvirtualbox{'userGroups'}) { |
286 |
+ How to Apply These Terms to Your New Programs |
+ if ($phpvirtualbox{'adminUser'}) { |
287 |
+ |
+ $validusers = "$phpvirtualbox{'adminUser'}"; |
288 |
+ If you develop a new program, and you want it to be of the greatest |
+ if ($phpvirtualbox{'userGroups'}) { |
289 |
+possible use to the public, the best way to achieve this is to make it |
+ $validusers .= ",+$phpvirtualbox{'userGroups'}"; |
290 |
+free software which everyone can redistribute and change under these terms. |
+ } |
291 |
+ |
+ } else { |
292 |
+ To do so, attach the following notices to the program. It is safest |
+ if ($phpvirtualbox{'userGroups'}) { |
293 |
+to attach them to the start of each source file to most effectively |
+ $validusers = "+$phpvirtualbox{'userGroups'}"; |
294 |
+convey the exclusion of warranty; and each file should have at least |
+ } |
295 |
+the "copyright" line and a pointer to where the full notice is found. |
+ } |
296 |
+ |
+ } |
297 |
+ <one line to give the program's name and a brief idea of what it does.> |
+ |
298 |
+ Copyright (C) 19yy <name of author> |
+ $OUT .=<<_VBOX; |
299 |
+ |
+ |
300 |
+ This program is free software; you can redistribute it and/or modify |
+[virtualbox] |
301 |
+ it under the terms of the GNU General Public License as published by |
+comment = virtualbox ISO directory |
302 |
+ the Free Software Foundation; either version 2 of the License, or |
+path = /opt/vbox/ISOs |
303 |
+ (at your option) any later version. |
+read only = no |
304 |
+ |
+writable = yes |
305 |
+ This program is distributed in the hope that it will be useful, |
+printable = no |
306 |
+ but WITHOUT ANY WARRANTY; without even the implied warranty of |
+inherit permissions = yes |
307 |
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
+create mode = 0640 |
308 |
+ GNU General Public License for more details. |
+ |
309 |
+ |
+_VBOX |
310 |
+ You should have received a copy of the GNU General Public License |
+ |
311 |
+ along with this program; if not, write to the Free Software |
+ if ($validusers) { |
312 |
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
+ $OUT .= "valid users = $validusers\n"; |
313 |
+ |
+ } |
314 |
+ |
+ |
315 |
+Also add information on how to contact you by electronic and paper mail. |
+} |
316 |
+ |
\ No newline at end of file |
317 |
+If the program is interactive, make it output a short notice like this |
diff -urN smeserver-phpvirtualbox-5.2.1.old/root/etc/e-smith/templates/opt/phpvirtualbox/config.php/config.php smeserver-phpvirtualbox-5.2.1/root/etc/e-smith/templates/opt/phpvirtualbox/config.php/config.php |
318 |
+when it starts in an interactive mode: |
--- smeserver-phpvirtualbox-5.2.1.old/root/etc/e-smith/templates/opt/phpvirtualbox/config.php/config.php 2023-03-07 16:07:55.309653000 +1100 |
319 |
+ |
+++ smeserver-phpvirtualbox-5.2.1/root/etc/e-smith/templates/opt/phpvirtualbox/config.php/config.php 2023-03-07 12:07:39.000000000 +1100 |
320 |
+ Gnomovision version 69, Copyright (C) 19yy name of author |
@@ -1,38 +1,90 @@ |
321 |
+ Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. |
{ |
322 |
+ This is free software, and you are welcome to redistribute it |
+# domain stuff |
323 |
+ under certain conditions; type `show c' for details. |
+ my $baseDN = esmith::util::ldapBase($DomainName); |
324 |
+ |
+ my $workgroup = $smb{'Workgroup'}; |
325 |
+The hypothetical commands `show w' and `show c' should show the appropriate |
+# vboxweb parameters |
326 |
+parts of the General Public License. Of course, the commands you use may |
+ my $username = (${'vboxweb-service'}{'user'} || 'vbox'); |
327 |
+be called something other than `show w' and `show c'; they could even be |
+ my $password = ${'vboxweb-service'}{'password'}; |
328 |
+mouse-clicks or menu items--whatever suits your program. |
+ my $location = ("http://${'vboxweb-service'}{'access'}:${'vboxweb-service'}{'TCPPort'}/" || "http://127.0.0.1:18083/"); |
329 |
+ |
+# phpvirtualbox parameters for users |
330 |
+You should also get your employer (if you work as a programmer) or your |
+ my $adminUser = ($phpvirtualbox{'adminUser'} || 'admin'); |
331 |
+school, if any, to sign a "copyright disclaimer" for the program, if |
+ my $adminGroup = ($phpvirtualbox{'adminGroup'} || 'admin'); |
332 |
+necessary. Here is a sample; alter the names: |
+ my $userGroups = $phpvirtualbox{'userGroups'}; |
333 |
+ |
+# phpvirtualbox config parameters |
334 |
+ Yoyodyne, Inc., hereby disclaims all copyright interest in the program |
+ my $language = ($phpvirtualbox{'language'} || 'en'); |
335 |
+ `Gnomovision' (which makes passes at compilers) written by James Hacker. |
+ my $vrdeports = ($phpvirtualbox{'vrdeports'} || '19000-19100'); |
336 |
+ |
+ my $maxProgressList = ($phpvirtualbox{'maxProgressList'} || 5); |
337 |
+ <signature of Ty Coon>, 1 April 1989 |
+ my $deleteOnRemove = ($phpvirtualbox{'deleteOnRemove'} || true); |
338 |
+ Ty Coon, President of Vice |
+ my $browserRestrictFiles = ($phpvirtualbox{'browserRestrictFiles'} || "'.iso','.vdi','.vmdk','.img','.bin','.vhd','.hdd','.ovf','.ova','.xml','.vbox','.cdr','.dmg','.ima','.dsk','.vfd'"); |
339 |
+ |
+ my $browserRestrictFolders = ($phpvirtualbox{'browserRestrictFolders'} || "'/opt/vbox/ISOs','/opt/vbox/VMs'"); |
340 |
+This General Public License does not permit incorporating your program into |
+ my $hostMemInfoRefreshInterval = ($phpvirtualbox{'hostMemInfoRefreshInterval'} || 5); |
341 |
+proprietary programs. If your program is a subroutine library, you may |
+ my $consoleResolutions = ($phpvirtualbox{'consoleResolutions'} || "'640x480','800x600','1024x768','1280x720','1440x900'"); |
342 |
+consider it more useful to permit linking proprietary applications with the |
+ my $consoleKeyboardLayout = ($phpvirtualbox{'consoleKeyboardLayout'} || 'EN'); |
343 |
+library. If this is what you want to do, use the GNU Library General |
+ my $nicMax = ($phpvirtualbox{'nicMax'} || 4); |
344 |
+Public License instead of this License. |
+# working |
345 |
diff -urN smeserver-phpvirtualbox-5.2.1.old/COPYING.rej smeserver-phpvirtualbox-5.2.1/COPYING.rej |
+ my @phpvboxusers = split(",", ($phpvirtualbox{'Users'} || "") ); |
346 |
--- smeserver-phpvirtualbox-5.2.1.old/COPYING.rej 1970-01-01 10:00:00.000000000 +1000 |
+ my @phpvboxgroups = split(",", ($phpvirtualbox{'userGroups'} || "") ); |
347 |
+++ smeserver-phpvirtualbox-5.2.1/COPYING.rej 2023-03-07 15:11:25.604647501 +1100 |
|
348 |
@@ -0,0 +1,343 @@ |
$OUT .=<<_PARMS; |
349 |
+--- COPYING 1970-01-01 10:00:00.000000000 +1000 |
- |
350 |
++++ COPYING 2023-02-25 16:29:54.000000000 +1100 |
+ |
351 |
+@@ -0,0 +1,340 @@ |
class phpVBoxConfig { |
352 |
++ GNU GENERAL PUBLIC LICENSE |
-var \$username = 'vbox'; |
353 |
++ Version 2, June 1991 |
-var \$location = 'http://127.0.0.1:18083/'; |
354 |
++ |
-var \$language = 'en'; |
355 |
++ Copyright (C) 1989, 1991 Free Software Foundation, Inc. |
-var \$vrdeports = '9000-9100'; |
356 |
++ 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
-var \$maxProgressList = 5; |
357 |
++ Everyone is permitted to copy and distribute verbatim copies |
-var \$deleteOnRemove = true; |
358 |
++ of this license document, but changing it is not allowed. |
-var \$browserRestrictFiles = array('.iso','.vdi','.vmdk','.img','.bin','.vhd','.hdd','.ovf','.ova','.xml','.vbox','.cdr','.dmg','.ima','.dsk','.vfd'); |
359 |
++ |
-var \$hostMemInfoRefreshInterval = 5; |
360 |
++ Preamble |
-var \$consoleResolutions = array('640x480','800x600','1024x768','1280x720','1440x900'); |
361 |
++ |
-var \$consoleKeyboardLayout = 'EN'; |
362 |
++ The licenses for most software are designed to take away your |
-var \$nicMax = 4; |
363 |
++freedom to share and change it. By contrast, the GNU General Public |
+# default paramaters |
364 |
++License is intended to guarantee your freedom to share and change free |
+var \$username = '$username'; |
365 |
++software--to make sure the software is free for all its users. This |
+var \$password = '$password'; |
366 |
++General Public License applies to most of the Free Software |
+var \$location = '$location'; |
367 |
++Foundation's software and to any other program whose authors commit to |
+var \$language = '$language'; |
368 |
++using it. (Some other Free Software Foundation software is covered by |
+var \$vrdeports = '$vrdeports'; |
369 |
++the GNU Library General Public License instead.) You can apply it to |
+var \$maxProgressList = $maxProgressList; |
370 |
++your programs, too. |
+var \$deleteOnRemove = $deleteOnRemove; |
371 |
++ |
+var \$browserRestrictFiles = array($browserRestrictFiles); |
372 |
++ When we speak of free software, we are referring to freedom, not |
+var \$browserRestrictFolders = array($browserRestrictFolders); |
373 |
++price. Our General Public Licenses are designed to make sure that you |
+var \$hostMemInfoRefreshInterval = $hostMemInfoRefreshInterval; |
374 |
++have the freedom to distribute copies of free software (and charge for |
+var \$consoleResolutions = array($consoleResolutions); |
375 |
++this service if you wish), that you receive source code or can get it |
+var \$consoleKeyboardLayout = '$consoleKeyboardLayout'; |
376 |
++if you want it, that you can change the software or use pieces of it |
+var \$nicMax = $nicMax; |
377 |
++in new free programs; and that you know you can do these things. |
+ |
378 |
++ |
+# authentication parameters |
379 |
++ To protect your rights, we need to make restrictions that forbid |
_PARMS |
380 |
++anyone to deny you these rights or to ask you to surrender the rights. |
|
381 |
++These restrictions translate to certain responsibilities for you if you |
- my $authtype = $phpvirtualbox{'authtype'} || 'disabled'; |
382 |
++distribute copies of the software, or if you modify it. |
- if ($authtype eq 'webauth') { |
383 |
++ |
- $OUT .= "var \$authLib = 'WebAuth';\n"; |
384 |
++ For example, if you distribute copies of such a program, whether |
- $OUT .= "var \$authConfig = array('adminUser' => 'admin');\n"; |
385 |
++gratis or for a fee, you must give the recipients all the rights that |
- } elsif ($authtype eq 'Builtin') { |
386 |
++you have. You must make sure that they, too, receive or can get the |
+# authentication stuff |
387 |
++source code. And you must show them these terms so they know their |
+ my $authtype = ($phpvirtualbox{'authType'} || 'WebAuth'); |
388 |
++rights. |
+ if ($authtype eq 'Builtin') { |
389 |
++ |
$OUT .= "var \$authLib = 'Builtin';\n"; |
390 |
++ We protect your rights with two steps: (1) copyright the software, and |
+ } elsif ($authtype eq 'WebAuth') { |
391 |
++(2) offer you this license which gives you legal permission to copy, |
+ $OUT .= "var \$authLib = 'WebAuth';\n"; |
392 |
++distribute and/or modify the software. |
+ $OUT .= "var \$authConfig = array('adminUser' => '$adminUser');\n"; |
393 |
++ |
} elsif ($authtype eq 'LDAP') { |
394 |
++ Also, for each author's protection and ours, we want to make certain |
$OUT .= "var \$authLib = 'LDAP';\n"; |
395 |
++that everyone understands that there is no warranty for this free |
$OUT .= "var \$authConfig = array(\n"; |
396 |
++software. If the software is modified by someone else and passed on, we |
- $OUT .= " 'host' => '127.0.0.1',\n"; |
397 |
++want its recipients to know that what they have is not the original, so |
- $OUT .= " 'bind_dn' => 'uid=%s, ou=Users, dc=mycompany, dc=local',\n"; |
398 |
++that any problems introduced by others will not reflect on the original |
- $OUT .= " 'adminUser' => 'admin');\n"; |
399 |
++authors' reputations. |
+ $OUT .= " 'host' => '127.0.0.1',\n"; |
400 |
++ |
+ $OUT .= " 'bind_dn' => 'uid=%s, ou=Users, $baseDN',\n"; |
401 |
++ Finally, any free program is threatened constantly by software |
+ $OUT .= " 'adminUser' => $adminUser);\n"; |
402 |
++patents. We wish to avoid the danger that redistributors of a free |
+ } elsif ($authtype eq 'AD' && $workgroup ) { |
403 |
++program will individually obtain patent licenses, in effect making the |
+ $OUT .= "var \$authLib = 'ActiveDirectory';\n"; |
404 |
++program proprietary. To prevent this, we have made it clear that any |
+ $OUT .= "var \$authConfig = array(\n"; |
405 |
++patent must be licensed for everyone's free use or not licensed at all. |
+ $OUT .= " 'host' => '127.0.0.1',\n"; |
406 |
++ |
+ $OUT .= " 'domain' => '$workgroup',\n"; |
407 |
++ The precise terms and conditions for copying, distribution and |
+ $OUT .= " 'admin_group' => '$adminGroup'"; |
408 |
++modification follow. |
+ if ($userGroups) { |
409 |
++ |
+ foreach my $group (@phpvboxgroups) { |
410 |
++ GNU GENERAL PUBLIC LICENSE |
+ $OUT .= ",\n"; |
411 |
++ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION |
+ $OUT .= " 'user_group' => '$group'"; |
412 |
++ |
+ } |
413 |
++ 0. This License applies to any program or other work which contains |
+ }; |
414 |
++a notice placed by the copyright holder saying it may be distributed |
+ $OUT .= ");\n"; |
415 |
++under the terms of this General Public License. The "Program", below, |
} else { |
416 |
++refers to any such program or work, and a "work based on the Program" |
$OUT .= "var \$noAuth=true;\n"; |
417 |
++means either the Program or any derivative work under copyright law: |
} |
418 |
++that is to say, a work containing the Program or a portion of it, |
- |
419 |
++either verbatim or with modifications and/or translated into another |
+ |
420 |
++language. (Hereinafter, translation is included without limitation in |
+# allow inclusion of any generic parameter stored in config db for phpvirtualbox |
421 |
++the term "modification".) Each licensee is addressed as "you". |
+ $OUT .= "# additional parameters defined in configuration DB\n"; |
422 |
++ |
+ my @stdparms = qw(type status Name Users userGroups adminUser adminGroup authtype language vrdeports maxProgressList deleteOnRemove browserRestrictFiles browserRestrictFolders consolresolutions hostMemInfoRefreshInterval consoleKeyboardLayout nicMax); |
423 |
++Activities other than copying, distribution and modification are not |
+ while (my ($param, $value) = each (%phpvirtualbox)) { |
424 |
++covered by this License; they are outside its scope. The act of |
+ next if ( $param ~~ @stdparms ); |
425 |
++running the Program is not restricted, and the output from the Program |
+ $OUT .= "var \$$param = $value;\n"; |
426 |
++is covered only if its contents constitute a work based on the |
+ } |
427 |
++Program (independent of having been made by running the Program). |
+ |
428 |
++Whether that is true depends on what the Program does. |
$OUT .= "}\n"; |
429 |
++ |
- |
430 |
++ 1. You may copy and distribute verbatim copies of the Program's |
+ |
431 |
++source code as you receive it, in any medium, provided that you |
} |
432 |
++conspicuously and appropriately publish on each copy an appropriate |
|
|
++copyright notice and disclaimer of warranty; keep intact all the |
|
|
++notices that refer to this License and to the absence of any warranty; |
|
|
++and give any other recipients of the Program a copy of this License |
|
|
++along with the Program. |
|
|
++ |
|
|
++You may charge a fee for the physical act of transferring a copy, and |
|
|
++you may at your option offer warranty protection in exchange for a fee. |
|
|
++ |
|
|
++ 2. You may modify your copy or copies of the Program or any portion |
|
|
++of it, thus forming a work based on the Program, and copy and |
|
|
++distribute such modifications or work under the terms of Section 1 |
|
|
++above, provided that you also meet all of these conditions: |
|
|
++ |
|
|
++ a) You must cause the modified files to carry prominent notices |
|
|
++ stating that you changed the files and the date of any change. |
|
|
++ |
|
|
++ b) You must cause any work that you distribute or publish, that in |
|
|
++ whole or in part contains or is derived from the Program or any |
|
|
++ part thereof, to be licensed as a whole at no charge to all third |
|
|
++ parties under the terms of this License. |
|
|
++ |
|
|
++ c) If the modified program normally reads commands interactively |
|
|
++ when run, you must cause it, when started running for such |
|
|
++ interactive use in the most ordinary way, to print or display an |
|
|
++ announcement including an appropriate copyright notice and a |
|
|
++ notice that there is no warranty (or else, saying that you provide |
|
|
++ a warranty) and that users may redistribute the program under |
|
|
++ these conditions, and telling the user how to view a copy of this |
|
|
++ License. (Exception: if the Program itself is interactive but |
|
|
++ does not normally print such an announcement, your work based on |
|
|
++ the Program is not required to print an announcement.) |
|
|
++ |
|
|
++These requirements apply to the modified work as a whole. If |
|
|
++identifiable sections of that work are not derived from the Program, |
|
|
++and can be reasonably considered independent and separate works in |
|
|
++themselves, then this License, and its terms, do not apply to those |
|
|
++sections when you distribute them as separate works. But when you |
|
|
++distribute the same sections as part of a whole which is a work based |
|
|
++on the Program, the distribution of the whole must be on the terms of |
|
|
++this License, whose permissions for other licensees extend to the |
|
|
++entire whole, and thus to each and every part regardless of who wrote it. |
|
|
++ |
|
|
++Thus, it is not the intent of this section to claim rights or contest |
|
|
++your rights to work written entirely by you; rather, the intent is to |
|
|
++exercise the right to control the distribution of derivative or |
|
|
++collective works based on the Program. |
|
|
++ |
|
|
++In addition, mere aggregation of another work not based on the Program |
|
|
++with the Program (or with a work based on the Program) on a volume of |
|
|
++a storage or distribution medium does not bring the other work under |
|
|
++the scope of this License. |
|
|
++ |
|
|
++ 3. You may copy and distribute the Program (or a work based on it, |
|
|
++under Section 2) in object code or executable form under the terms of |
|
|
++Sections 1 and 2 above provided that you also do one of the following: |
|
|
++ |
|
|
++ a) Accompany it with the complete corresponding machine-readable |
|
|
++ source code, which must be distributed under the terms of Sections |
|
|
++ 1 and 2 above on a medium customarily used for software interchange; or, |
|
|
++ |
|
|
++ b) Accompany it with a written offer, valid for at least three |
|
|
++ years, to give any third party, for a charge no more than your |
|
|
++ cost of physically performing source distribution, a complete |
|
|
++ machine-readable copy of the corresponding source code, to be |
|
|
++ distributed under the terms of Sections 1 and 2 above on a medium |
|
|
++ customarily used for software interchange; or, |
|
|
++ |
|
|
++ c) Accompany it with the information you received as to the offer |
|
|
++ to distribute corresponding source code. (This alternative is |
|
|
++ allowed only for noncommercial distribution and only if you |
|
|
++ received the program in object code or executable form with such |
|
|
++ an offer, in accord with Subsection b above.) |
|
|
++ |
|
|
++The source code for a work means the preferred form of the work for |
|
|
++making modifications to it. For an executable work, complete source |
|
|
++code means all the source code for all modules it contains, plus any |
|
|
++associated interface definition files, plus the scripts used to |
|
|
++control compilation and installation of the executable. However, as a |
|
|
++special exception, the source code distributed need not include |
|
|
++anything that is normally distributed (in either source or binary |
|
|
++form) with the major components (compiler, kernel, and so on) of the |
|
|
++operating system on which the executable runs, unless that component |
|
|
++itself accompanies the executable. |
|
|
++ |
|
|
++If distribution of executable or object code is made by offering |
|
|
++access to copy from a designated place, then offering equivalent |
|
|
++access to copy the source code from the same place counts as |
|
|
++distribution of the source code, even though third parties are not |
|
|
++compelled to copy the source along with the object code. |
|
|
++ |
|
|
++ 4. You may not copy, modify, sublicense, or distribute the Program |
|
|
++except as expressly provided under this License. Any attempt |
|
|
++otherwise to copy, modify, sublicense or distribute the Program is |
|
|
++void, and will automatically terminate your rights under this License. |
|
|
++However, parties who have received copies, or rights, from you under |
|
|
++this License will not have their licenses terminated so long as such |
|
|
++parties remain in full compliance. |
|
|
++ |
|
|
++ 5. You are not required to accept this License, since you have not |
|
|
++signed it. However, nothing else grants you permission to modify or |
|
|
++distribute the Program or its derivative works. These actions are |
|
|
++prohibited by law if you do not accept this License. Therefore, by |
|
|
++modifying or distributing the Program (or any work based on the |
|
|
++Program), you indicate your acceptance of this License to do so, and |
|
|
++all its terms and conditions for copying, distributing or modifying |
|
|
++the Program or works based on it. |
|
|
++ |
|
|
++ 6. Each time you redistribute the Program (or any work based on the |
|
|
++Program), the recipient automatically receives a license from the |
|
|
++original licensor to copy, distribute or modify the Program subject to |
|
|
++these terms and conditions. You may not impose any further |
|
|
++restrictions on the recipients' exercise of the rights granted herein. |
|
|
++You are not responsible for enforcing compliance by third parties to |
|
|
++this License. |
|
|
++ |
|
|
++ 7. If, as a consequence of a court judgment or allegation of patent |
|
|
++infringement or for any other reason (not limited to patent issues), |
|
|
++conditions are imposed on you (whether by court order, agreement or |
|
|
++otherwise) that contradict the conditions of this License, they do not |
|
|
++excuse you from the conditions of this License. If you cannot |
|
|
++distribute so as to satisfy simultaneously your obligations under this |
|
|
++License and any other pertinent obligations, then as a consequence you |
|
|
++may not distribute the Program at all. For example, if a patent |
|
|
++license would not permit royalty-free redistribution of the Program by |
|
|
++all those who receive copies directly or indirectly through you, then |
|
|
++the only way you could satisfy both it and this License would be to |
|
|
++refrain entirely from distribution of the Program. |
|
|
++ |
|
|
++If any portion of this section is held invalid or unenforceable under |
|
|
++any particular circumstance, the balance of the section is intended to |
|
|
++apply and the section as a whole is intended to apply in other |
|
|
++circumstances. |
|
|
++ |
|
|
++It is not the purpose of this section to induce you to infringe any |
|
|
++patents or other property right claims or to contest validity of any |
|
|
++such claims; this section has the sole purpose of protecting the |
|
|
++integrity of the free software distribution system, which is |
|
|
++implemented by public license practices. Many people have made |
|
|
++generous contributions to the wide range of software distributed |
|
|
++through that system in reliance on consistent application of that |
|
|
++system; it is up to the author/donor to decide if he or she is willing |
|
|
++to distribute software through any other system and a licensee cannot |
|
|
++impose that choice. |
|
|
++ |
|
|
++This section is intended to make thoroughly clear what is believed to |
|
|
++be a consequence of the rest of this License. |
|
|
++ |
|
|
++ 8. If the distribution and/or use of the Program is restricted in |
|
|
++certain countries either by patents or by copyrighted interfaces, the |
|
|
++original copyright holder who places the Program under this License |
|
|
++may add an explicit geographical distribution limitation excluding |
|
|
++those countries, so that distribution is permitted only in or among |
|
|
++countries not thus excluded. In such case, this License incorporates |
|
|
++the limitation as if written in the body of this License. |
|
|
++ |
|
|
++ 9. The Free Software Foundation may publish revised and/or new versions |
|
|
++of the General Public License from time to time. Such new versions will |
|
|
++be similar in spirit to the present version, but may differ in detail to |
|
|
++address new problems or concerns. |
|
|
++ |
|
|
++Each version is given a distinguishing version number. If the Program |
|
|
++specifies a version number of this License which applies to it and "any |
|
|
++later version", you have the option of following the terms and conditions |
|
|
++either of that version or of any later version published by the Free |
|
|
++Software Foundation. If the Program does not specify a version number of |
|
|
++this License, you may choose any version ever published by the Free Software |
|
|
++Foundation. |
|
|
++ |
|
|
++ 10. If you wish to incorporate parts of the Program into other free |
|
|
++programs whose distribution conditions are different, write to the author |
|
|
++to ask for permission. For software which is copyrighted by the Free |
|
|
++Software Foundation, write to the Free Software Foundation; we sometimes |
|
|
++make exceptions for this. Our decision will be guided by the two goals |
|
|
++of preserving the free status of all derivatives of our free software and |
|
|
++of promoting the sharing and reuse of software generally. |
|
|
++ |
|
|
++ NO WARRANTY |
|
|
++ |
|
|
++ 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY |
|
|
++FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN |
|
|
++OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES |
|
|
++PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED |
|
|
++OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
|
|
++MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS |
|
|
++TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE |
|
|
++PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, |
|
|
++REPAIR OR CORRECTION. |
|
|
++ |
|
|
++ 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING |
|
|
++WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR |
|
|
++REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, |
|
|
++INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING |
|
|
++OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED |
|
|
++TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY |
|
|
++YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER |
|
|
++PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE |
|
|
++POSSIBILITY OF SUCH DAMAGES. |
|
|
++ |
|
|
++ END OF TERMS AND CONDITIONS |
|
|
++ |
|
|
++ How to Apply These Terms to Your New Programs |
|
|
++ |
|
|
++ If you develop a new program, and you want it to be of the greatest |
|
|
++possible use to the public, the best way to achieve this is to make it |
|
|
++free software which everyone can redistribute and change under these terms. |
|
|
++ |
|
|
++ To do so, attach the following notices to the program. It is safest |
|
|
++to attach them to the start of each source file to most effectively |
|
|
++convey the exclusion of warranty; and each file should have at least |
|
|
++the "copyright" line and a pointer to where the full notice is found. |
|
|
++ |
|
|
++ <one line to give the program's name and a brief idea of what it does.> |
|
|
++ Copyright (C) 19yy <name of author> |
|
|
++ |
|
|
++ This program is free software; you can redistribute it and/or modify |
|
|
++ it under the terms of the GNU General Public License as published by |
|
|
++ the Free Software Foundation; either version 2 of the License, or |
|
|
++ (at your option) any later version. |
|
|
++ |
|
|
++ This program is distributed in the hope that it will be useful, |
|
|
++ but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
|
++ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
|
++ GNU General Public License for more details. |
|
|
++ |
|
|
++ You should have received a copy of the GNU General Public License |
|
|
++ along with this program; if not, write to the Free Software |
|
|
++ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
|
++ |
|
|
++ |
|
|
++Also add information on how to contact you by electronic and paper mail. |
|
|
++ |
|
|
++If the program is interactive, make it output a short notice like this |
|
|
++when it starts in an interactive mode: |
|
|
++ |
|
|
++ Gnomovision version 69, Copyright (C) 19yy name of author |
|
|
++ Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. |
|
|
++ This is free software, and you are welcome to redistribute it |
|
|
++ under certain conditions; type `show c' for details. |
|
|
++ |
|
|
++The hypothetical commands `show w' and `show c' should show the appropriate |
|
|
++parts of the General Public License. Of course, the commands you use may |
|
|
++be called something other than `show w' and `show c'; they could even be |
|
|
++mouse-clicks or menu items--whatever suits your program. |
|
|
++ |
|
|
++You should also get your employer (if you work as a programmer) or your |
|
|
++school, if any, to sign a "copyright disclaimer" for the program, if |
|
|
++necessary. Here is a sample; alter the names: |
|
|
++ |
|
|
++ Yoyodyne, Inc., hereby disclaims all copyright interest in the program |
|
|
++ `Gnomovision' (which makes passes at compilers) written by James Hacker. |
|
|
++ |
|
|
++ <signature of Ty Coon>, 1 April 1989 |
|
|
++ Ty Coon, President of Vice |
|
|
++ |
|
|
++This General Public License does not permit incorporating your program into |
|
|
++proprietary programs. If your program is a subroutine library, you may |
|
|
++consider it more useful to permit linking proprietary applications with the |
|
|
++library. If this is what you want to do, use the GNU Library General |
|
|
++Public License instead of this License. |
|