/[smeserver]/rpms/e-smith-manager/sme9/e-smith-manager-2.6.0-Koozali_manager.patch
ViewVC logotype

Annotation of /rpms/e-smith-manager/sme9/e-smith-manager-2.6.0-Koozali_manager.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (hide annotations) (download)
Tue Jul 19 13:14:58 2016 UTC (8 years, 4 months ago) by unnilennium
Branch: MAIN
CVS Tags: e-smith-manager-2_6_0-11_el6_sme
Changes since 1.1: +11 -0 lines
* Tue Jul 19 2016 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-11.sme
- Update server-manager to Koozali branding [SME: 9678]
- We thanks John Crisp for his wonderful work.
- e-smith-manager-2.6.0-Koozali_manager.patch

1 unnilennium 1.2 diff -Nur e-smith-manager-2.6.0.old/createlinks e-smith-manager-2.6.0/createlinks
2     --- e-smith-manager-2.6.0.old/createlinks 2007-01-26 20:51:30.000000000 -0500
3     +++ e-smith-manager-2.6.0/createlinks 2016-07-19 09:14:21.039000000 -0400
4     @@ -12,6 +12,7 @@
5     sme_main.css
6     sme_menu.css
7     sme_panel_menu.css
8     + tkt.css
9     ) )
10     {
11     templates2events("/etc/e-smith/web/common/css/$_", qw(
12 unnilennium 1.1 diff -Nur e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/COPYING e-smith-manager-2.6.0/e-smith-manager-2.6.0/COPYING
13     --- e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/COPYING 2002-03-01 13:33:07.000000000 -0500
14     +++ e-smith-manager-2.6.0/e-smith-manager-2.6.0/COPYING 1969-12-31 19:00:00.000000000 -0500
15     @@ -1,340 +0,0 @@
16     - GNU GENERAL PUBLIC LICENSE
17     - Version 2, June 1991
18     -
19     - Copyright (C) 1989, 1991 Free Software Foundation, Inc.
20     - 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21     - Everyone is permitted to copy and distribute verbatim copies
22     - of this license document, but changing it is not allowed.
23     -
24     - Preamble
25     -
26     - The licenses for most software are designed to take away your
27     -freedom to share and change it. By contrast, the GNU General Public
28     -License is intended to guarantee your freedom to share and change free
29     -software--to make sure the software is free for all its users. This
30     -General Public License applies to most of the Free Software
31     -Foundation's software and to any other program whose authors commit to
32     -using it. (Some other Free Software Foundation software is covered by
33     -the GNU Library General Public License instead.) You can apply it to
34     -your programs, too.
35     -
36     - When we speak of free software, we are referring to freedom, not
37     -price. Our General Public Licenses are designed to make sure that you
38     -have the freedom to distribute copies of free software (and charge for
39     -this service if you wish), that you receive source code or can get it
40     -if you want it, that you can change the software or use pieces of it
41     -in new free programs; and that you know you can do these things.
42     -
43     - To protect your rights, we need to make restrictions that forbid
44     -anyone to deny you these rights or to ask you to surrender the rights.
45     -These restrictions translate to certain responsibilities for you if you
46     -distribute copies of the software, or if you modify it.
47     -
48     - For example, if you distribute copies of such a program, whether
49     -gratis or for a fee, you must give the recipients all the rights that
50     -you have. You must make sure that they, too, receive or can get the
51     -source code. And you must show them these terms so they know their
52     -rights.
53     -
54     - We protect your rights with two steps: (1) copyright the software, and
55     -(2) offer you this license which gives you legal permission to copy,
56     -distribute and/or modify the software.
57     -
58     - Also, for each author's protection and ours, we want to make certain
59     -that everyone understands that there is no warranty for this free
60     -software. If the software is modified by someone else and passed on, we
61     -want its recipients to know that what they have is not the original, so
62     -that any problems introduced by others will not reflect on the original
63     -authors' reputations.
64     -
65     - Finally, any free program is threatened constantly by software
66     -patents. We wish to avoid the danger that redistributors of a free
67     -program will individually obtain patent licenses, in effect making the
68     -program proprietary. To prevent this, we have made it clear that any
69     -patent must be licensed for everyone's free use or not licensed at all.
70     -
71     - The precise terms and conditions for copying, distribution and
72     -modification follow.
73     -
74     - GNU GENERAL PUBLIC LICENSE
75     - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
76     -
77     - 0. This License applies to any program or other work which contains
78     -a notice placed by the copyright holder saying it may be distributed
79     -under the terms of this General Public License. The "Program", below,
80     -refers to any such program or work, and a "work based on the Program"
81     -means either the Program or any derivative work under copyright law:
82     -that is to say, a work containing the Program or a portion of it,
83     -either verbatim or with modifications and/or translated into another
84     -language. (Hereinafter, translation is included without limitation in
85     -the term "modification".) Each licensee is addressed as "you".
86     -
87     -Activities other than copying, distribution and modification are not
88     -covered by this License; they are outside its scope. The act of
89     -running the Program is not restricted, and the output from the Program
90     -is covered only if its contents constitute a work based on the
91     -Program (independent of having been made by running the Program).
92     -Whether that is true depends on what the Program does.
93     -
94     - 1. You may copy and distribute verbatim copies of the Program's
95     -source code as you receive it, in any medium, provided that you
96     -conspicuously and appropriately publish on each copy an appropriate
97     -copyright notice and disclaimer of warranty; keep intact all the
98     -notices that refer to this License and to the absence of any warranty;
99     -and give any other recipients of the Program a copy of this License
100     -along with the Program.
101     -
102     -You may charge a fee for the physical act of transferring a copy, and
103     -you may at your option offer warranty protection in exchange for a fee.
104     -
105     - 2. You may modify your copy or copies of the Program or any portion
106     -of it, thus forming a work based on the Program, and copy and
107     -distribute such modifications or work under the terms of Section 1
108     -above, provided that you also meet all of these conditions:
109     -
110     - a) You must cause the modified files to carry prominent notices
111     - stating that you changed the files and the date of any change.
112     -
113     - b) You must cause any work that you distribute or publish, that in
114     - whole or in part contains or is derived from the Program or any
115     - part thereof, to be licensed as a whole at no charge to all third
116     - parties under the terms of this License.
117     -
118     - c) If the modified program normally reads commands interactively
119     - when run, you must cause it, when started running for such
120     - interactive use in the most ordinary way, to print or display an
121     - announcement including an appropriate copyright notice and a
122     - notice that there is no warranty (or else, saying that you provide
123     - a warranty) and that users may redistribute the program under
124     - these conditions, and telling the user how to view a copy of this
125     - License. (Exception: if the Program itself is interactive but
126     - does not normally print such an announcement, your work based on
127     - the Program is not required to print an announcement.)
128     -
129     -These requirements apply to the modified work as a whole. If
130     -identifiable sections of that work are not derived from the Program,
131     -and can be reasonably considered independent and separate works in
132     -themselves, then this License, and its terms, do not apply to those
133     -sections when you distribute them as separate works. But when you
134     -distribute the same sections as part of a whole which is a work based
135     -on the Program, the distribution of the whole must be on the terms of
136     -this License, whose permissions for other licensees extend to the
137     -entire whole, and thus to each and every part regardless of who wrote it.
138     -
139     -Thus, it is not the intent of this section to claim rights or contest
140     -your rights to work written entirely by you; rather, the intent is to
141     -exercise the right to control the distribution of derivative or
142     -collective works based on the Program.
143     -
144     -In addition, mere aggregation of another work not based on the Program
145     -with the Program (or with a work based on the Program) on a volume of
146     -a storage or distribution medium does not bring the other work under
147     -the scope of this License.
148     -
149     - 3. You may copy and distribute the Program (or a work based on it,
150     -under Section 2) in object code or executable form under the terms of
151     -Sections 1 and 2 above provided that you also do one of the following:
152     -
153     - a) Accompany it with the complete corresponding machine-readable
154     - source code, which must be distributed under the terms of Sections
155     - 1 and 2 above on a medium customarily used for software interchange; or,
156     -
157     - b) Accompany it with a written offer, valid for at least three
158     - years, to give any third party, for a charge no more than your
159     - cost of physically performing source distribution, a complete
160     - machine-readable copy of the corresponding source code, to be
161     - distributed under the terms of Sections 1 and 2 above on a medium
162     - customarily used for software interchange; or,
163     -
164     - c) Accompany it with the information you received as to the offer
165     - to distribute corresponding source code. (This alternative is
166     - allowed only for noncommercial distribution and only if you
167     - received the program in object code or executable form with such
168     - an offer, in accord with Subsection b above.)
169     -
170     -The source code for a work means the preferred form of the work for
171     -making modifications to it. For an executable work, complete source
172     -code means all the source code for all modules it contains, plus any
173     -associated interface definition files, plus the scripts used to
174     -control compilation and installation of the executable. However, as a
175     -special exception, the source code distributed need not include
176     -anything that is normally distributed (in either source or binary
177     -form) with the major components (compiler, kernel, and so on) of the
178     -operating system on which the executable runs, unless that component
179     -itself accompanies the executable.
180     -
181     -If distribution of executable or object code is made by offering
182     -access to copy from a designated place, then offering equivalent
183     -access to copy the source code from the same place counts as
184     -distribution of the source code, even though third parties are not
185     -compelled to copy the source along with the object code.
186     -
187     - 4. You may not copy, modify, sublicense, or distribute the Program
188     -except as expressly provided under this License. Any attempt
189     -otherwise to copy, modify, sublicense or distribute the Program is
190     -void, and will automatically terminate your rights under this License.
191     -However, parties who have received copies, or rights, from you under
192     -this License will not have their licenses terminated so long as such
193     -parties remain in full compliance.
194     -
195     - 5. You are not required to accept this License, since you have not
196     -signed it. However, nothing else grants you permission to modify or
197     -distribute the Program or its derivative works. These actions are
198     -prohibited by law if you do not accept this License. Therefore, by
199     -modifying or distributing the Program (or any work based on the
200     -Program), you indicate your acceptance of this License to do so, and
201     -all its terms and conditions for copying, distributing or modifying
202     -the Program or works based on it.
203     -
204     - 6. Each time you redistribute the Program (or any work based on the
205     -Program), the recipient automatically receives a license from the
206     -original licensor to copy, distribute or modify the Program subject to
207     -these terms and conditions. You may not impose any further
208     -restrictions on the recipients' exercise of the rights granted herein.
209     -You are not responsible for enforcing compliance by third parties to
210     -this License.
211     -
212     - 7. If, as a consequence of a court judgment or allegation of patent
213     -infringement or for any other reason (not limited to patent issues),
214     -conditions are imposed on you (whether by court order, agreement or
215     -otherwise) that contradict the conditions of this License, they do not
216     -excuse you from the conditions of this License. If you cannot
217     -distribute so as to satisfy simultaneously your obligations under this
218     -License and any other pertinent obligations, then as a consequence you
219     -may not distribute the Program at all. For example, if a patent
220     -license would not permit royalty-free redistribution of the Program by
221     -all those who receive copies directly or indirectly through you, then
222     -the only way you could satisfy both it and this License would be to
223     -refrain entirely from distribution of the Program.
224     -
225     -If any portion of this section is held invalid or unenforceable under
226     -any particular circumstance, the balance of the section is intended to
227     -apply and the section as a whole is intended to apply in other
228     -circumstances.
229     -
230     -It is not the purpose of this section to induce you to infringe any
231     -patents or other property right claims or to contest validity of any
232     -such claims; this section has the sole purpose of protecting the
233     -integrity of the free software distribution system, which is
234     -implemented by public license practices. Many people have made
235     -generous contributions to the wide range of software distributed
236     -through that system in reliance on consistent application of that
237     -system; it is up to the author/donor to decide if he or she is willing
238     -to distribute software through any other system and a licensee cannot
239     -impose that choice.
240     -
241     -This section is intended to make thoroughly clear what is believed to
242     -be a consequence of the rest of this License.
243     -
244     - 8. If the distribution and/or use of the Program is restricted in
245     -certain countries either by patents or by copyrighted interfaces, the
246     -original copyright holder who places the Program under this License
247     -may add an explicit geographical distribution limitation excluding
248     -those countries, so that distribution is permitted only in or among
249     -countries not thus excluded. In such case, this License incorporates
250     -the limitation as if written in the body of this License.
251     -
252     - 9. The Free Software Foundation may publish revised and/or new versions
253     -of the General Public License from time to time. Such new versions will
254     -be similar in spirit to the present version, but may differ in detail to
255     -address new problems or concerns.
256     -
257     -Each version is given a distinguishing version number. If the Program
258     -specifies a version number of this License which applies to it and "any
259     -later version", you have the option of following the terms and conditions
260     -either of that version or of any later version published by the Free
261     -Software Foundation. If the Program does not specify a version number of
262     -this License, you may choose any version ever published by the Free Software
263     -Foundation.
264     -
265     - 10. If you wish to incorporate parts of the Program into other free
266     -programs whose distribution conditions are different, write to the author
267     -to ask for permission. For software which is copyrighted by the Free
268     -Software Foundation, write to the Free Software Foundation; we sometimes
269     -make exceptions for this. Our decision will be guided by the two goals
270     -of preserving the free status of all derivatives of our free software and
271     -of promoting the sharing and reuse of software generally.
272     -
273     - NO WARRANTY
274     -
275     - 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
276     -FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
277     -OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
278     -PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
279     -OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
280     -MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
281     -TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
282     -PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
283     -REPAIR OR CORRECTION.
284     -
285     - 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
286     -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
287     -REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
288     -INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
289     -OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
290     -TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
291     -YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
292     -PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
293     -POSSIBILITY OF SUCH DAMAGES.
294     -
295     - END OF TERMS AND CONDITIONS
296     -
297     - How to Apply These Terms to Your New Programs
298     -
299     - If you develop a new program, and you want it to be of the greatest
300     -possible use to the public, the best way to achieve this is to make it
301     -free software which everyone can redistribute and change under these terms.
302     -
303     - To do so, attach the following notices to the program. It is safest
304     -to attach them to the start of each source file to most effectively
305     -convey the exclusion of warranty; and each file should have at least
306     -the "copyright" line and a pointer to where the full notice is found.
307     -
308     - <one line to give the program's name and a brief idea of what it does.>
309     - Copyright (C) 19yy <name of author>
310     -
311     - This program is free software; you can redistribute it and/or modify
312     - it under the terms of the GNU General Public License as published by
313     - the Free Software Foundation; either version 2 of the License, or
314     - (at your option) any later version.
315     -
316     - This program is distributed in the hope that it will be useful,
317     - but WITHOUT ANY WARRANTY; without even the implied warranty of
318     - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
319     - GNU General Public License for more details.
320     -
321     - You should have received a copy of the GNU General Public License
322     - along with this program; if not, write to the Free Software
323     - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
324     -
325     -
326     -Also add information on how to contact you by electronic and paper mail.
327     -
328     -If the program is interactive, make it output a short notice like this
329     -when it starts in an interactive mode:
330     -
331     - Gnomovision version 69, Copyright (C) 19yy name of author
332     - Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
333     - This is free software, and you are welcome to redistribute it
334     - under certain conditions; type `show c' for details.
335     -
336     -The hypothetical commands `show w' and `show c' should show the appropriate
337     -parts of the General Public License. Of course, the commands you use may
338     -be called something other than `show w' and `show c'; they could even be
339     -mouse-clicks or menu items--whatever suits your program.
340     -
341     -You should also get your employer (if you work as a programmer) or your
342     -school, if any, to sign a "copyright disclaimer" for the program, if
343     -necessary. Here is a sample; alter the names:
344     -
345     - Yoyodyne, Inc., hereby disclaims all copyright interest in the program
346     - `Gnomovision' (which makes passes at compilers) written by James Hacker.
347     -
348     - <signature of Ty Coon>, 1 April 1989
349     - Ty Coon, President of Vice
350     -
351     -This General Public License does not permit incorporating your program into
352     -proprietary programs. If your program is a subroutine library, you may
353     -consider it more useful to permit linking proprietary applications with the
354     -library. If this is what you want to do, use the GNU Library General
355     -Public License instead of this License.
356     diff -Nur e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/createlinks e-smith-manager-2.6.0/e-smith-manager-2.6.0/createlinks
357     --- e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/createlinks 2007-01-26 20:51:30.000000000 -0500
358     +++ e-smith-manager-2.6.0/e-smith-manager-2.6.0/createlinks 1969-12-31 19:00:00.000000000 -0500
359     @@ -1,91 +0,0 @@
360     -#!/usr/bin/perl -w
361     -
362     -use esmith::Build::CreateLinks qw(:all);
363     -
364     -panel_link("navigation", "manager");
365     -panel_link("noframes", "manager");
366     -
367     -event_link("navigation-conf", 'bootstrap-console-save', 50);
368     -
369     -for ( qw( sme_core.css
370     - sme_header.css
371     - sme_main.css
372     - sme_menu.css
373     - sme_panel_menu.css
374     - ) )
375     -{
376     - templates2events("/etc/e-smith/web/common/css/$_", qw(
377     - bootstrap-console-save
378     - ));
379     -}
380     -
381     -templates2events("/etc/e-smith/web/panels/manager/html/header.htm", qw(
382     - console-save
383     - bootstrap-console-save
384     - network-create
385     - network-delete
386     - logrotate
387     - ));
388     -templates2events("/etc/e-smith/web/common/head.tmpl", qw(
389     - console-save
390     - bootstrap-console-save
391     - network-create
392     - network-delete
393     - logrotate
394     - ));
395     -templates2events("/etc/e-smith/web/common/foot.tmpl", qw(
396     - console-save
397     - bootstrap-console-save
398     - network-create
399     - network-delete
400     - logrotate
401     - ));
402     -
403     -# conf-httpd-admin
404     -
405     -templates2events("/etc/httpd/admin-conf/httpd.conf", qw(
406     - console-save
407     - bootstrap-console-save
408     - network-create
409     - network-delete
410     - remoteaccess-update
411     - logrotate
412     - ));
413     -
414     -templates2events("/etc/e-smith/web/common/cgi-bin/AuthTKT.cfg", 'bootstrap-console-save');
415     -
416     -# Set up generic logfile timestamp renaming/symlinking
417     -
418     -foreach (qw(
419     - /var/log/httpd/admin_access_log
420     - /var/log/httpd/admin_error_log
421     - ))
422     -{
423     - safe_touch "root/etc/e-smith/events/logrotate/logfiles2timestamp/$_";
424     - safe_touch "root/etc/e-smith/events/post-install/logfiles2timestamp/$_";
425     - safe_touch "root/etc/e-smith/events/post-upgrade/logfiles2timestamp/$_";
426     -}
427     -
428     -foreach (qw(console-save remoteaccess-update logrotate))
429     -{
430     - safe_symlink("sigusr1", "root/etc/e-smith/events/$_/services2adjust/httpd-admin");
431     -}
432     -
433     -my %service2order =
434     -(
435     - 'httpd-admin' => "86",
436     -);
437     -
438     -foreach my $service (keys %service2order)
439     -{
440     - service_link_enhanced($service, $service2order{$service}, 7);
441     -}
442     -
443     -# Symlink httpd-admin to httpd.
444     -safe_symlink("httpd", "root/usr/sbin/httpd-admin");
445     -
446     -# Set up links to daemontools.
447     -safe_symlink("daemontools", "root/etc/rc.d/init.d/httpd-admin");
448     -service_link_enhanced("httpd-admin", "K15", "6");
449     -service_link_enhanced("httpd-admin", "K15", "0");
450     -
451     diff -Nur e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/db/configuration/defaults/httpd-admin/access e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/db/configuration/defaults/httpd-admin/access
452     --- e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/db/configuration/defaults/httpd-admin/access 2006-11-02 11:38:41.000000000 -0500
453     +++ e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/db/configuration/defaults/httpd-admin/access 1969-12-31 19:00:00.000000000 -0500
454     @@ -1 +0,0 @@
455     -localhost
456     diff -Nur e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/db/configuration/defaults/httpd-admin/PermitPlainTextAccess e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/db/configuration/defaults/httpd-admin/PermitPlainTextAccess
457     --- e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/db/configuration/defaults/httpd-admin/PermitPlainTextAccess 2006-11-02 11:38:41.000000000 -0500
458     +++ e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/db/configuration/defaults/httpd-admin/PermitPlainTextAccess 1969-12-31 19:00:00.000000000 -0500
459     @@ -1 +0,0 @@
460     -no
461     diff -Nur e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/db/configuration/defaults/httpd-admin/status e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/db/configuration/defaults/httpd-admin/status
462     --- e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/db/configuration/defaults/httpd-admin/status 2006-11-02 11:38:41.000000000 -0500
463     +++ e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/db/configuration/defaults/httpd-admin/status 1969-12-31 19:00:00.000000000 -0500
464     @@ -1 +0,0 @@
465     -enabled
466     diff -Nur e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/db/configuration/defaults/httpd-admin/TCPPort e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/db/configuration/defaults/httpd-admin/TCPPort
467     --- e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/db/configuration/defaults/httpd-admin/TCPPort 2006-11-02 11:38:41.000000000 -0500
468     +++ e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/db/configuration/defaults/httpd-admin/TCPPort 1969-12-31 19:00:00.000000000 -0500
469     @@ -1 +0,0 @@
470     -980
471     diff -Nur e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/db/configuration/defaults/httpd-admin/type e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/db/configuration/defaults/httpd-admin/type
472     --- e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/db/configuration/defaults/httpd-admin/type 2006-11-02 11:38:41.000000000 -0500
473     +++ e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/db/configuration/defaults/httpd-admin/type 1969-12-31 19:00:00.000000000 -0500
474     @@ -1 +0,0 @@
475     -service
476     diff -Nur e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/db/configuration/migrate/20TKTAuthSecret e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/db/configuration/migrate/20TKTAuthSecret
477     --- e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/db/configuration/migrate/20TKTAuthSecret 2007-01-26 20:51:30.000000000 -0500
478     +++ e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/db/configuration/migrate/20TKTAuthSecret 1969-12-31 19:00:00.000000000 -0500
479     @@ -1,7 +0,0 @@
480     -{
481     - my $admin = $DB->get('httpd-admin');
482     - return unless $admin;
483     - return if $admin->prop('TKTAuthSecret');
484     - use Data::UUID;
485     - $admin->set_prop('TKTAuthSecret', Data::UUID->new->create_str());
486     -}
487     diff -Nur e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/events/actions/navigation-conf e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/events/actions/navigation-conf
488     --- e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/events/actions/navigation-conf 2008-10-07 13:36:17.000000000 -0400
489     +++ e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/events/actions/navigation-conf 1969-12-31 19:00:00.000000000 -0500
490     @@ -1,153 +0,0 @@
491     -#!/usr/bin/perl -w
492     -
493     -#----------------------------------------------------------------------
494     -# copyright (C) 1999-2006 Mitel Networks Corporation
495     -#
496     -# This program is free software; you can redistribute it and/or modify
497     -# it under the terms of the GNU General Public License as published by
498     -# the Free Software Foundation; either version 2 of the License, or
499     -# (at your option) any later version.
500     -#
501     -# This program is distributed in the hope that it will be useful,
502     -# but WITHOUT ANY WARRANTY; without even the implied warranty of
503     -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
504     -# GNU General Public License for more details.
505     -#
506     -# You should have received a copy of the GNU General Public License
507     -# along with this program; if not, write to the Free Software
508     -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
509     -#
510     -#----------------------------------------------------------------------
511     -package esmith;
512     -
513     -use strict;
514     -
515     -use esmith::NavigationDB;
516     -use esmith::I18N;
517     -
518     -use constant WEBFUNCTIONS => '/etc/e-smith/web/functions';
519     -use constant NAVIGATIONDIR => '/home/e-smith/db/navigation';
520     -use constant NEW_NAVDIR => '/home/e-smith/db';
521     -
522     -my $navigation_ignore =
523     - "(\.\.?|navigation|noframes|online-manual|(internal|pleasewait)(-.*)?)";
524     -
525     -my $i18n = new esmith::I18N;
526     -
527     -my %navdbs;
528     -
529     -opendir FUNCTIONS, WEBFUNCTIONS or
530     - die "Couldn't open ", WEBFUNCTIONS, "\n";
531     -
532     -my @files = grep (!/^${navigation_ignore}$/, readdir (FUNCTIONS));
533     -my @langs = $i18n->availableLanguages();
534     -
535     -use XML::Parser;
536     -my $parser = new XML::Parser (Style => 'Tree',
537     - ProtocolEncoding => 'UTF-8');
538     -
539     -foreach my $file (@files)
540     -{
541     - next if (-d WEBFUNCTIONS . "/$file");
542     - next unless (-x WEBFUNCTIONS . "/$file");
543     -
544     - #--------------------------------------------------
545     - # extract heading, description and weight information
546     - # from CGI script
547     - #--------------------------------------------------
548     - open(SCRIPT, WEBFUNCTIONS . "/$file");
549     - my $heading = undef;
550     - my $description = undef;
551     - my $heading_weight = undef;
552     - my $description_weight = undef;
553     - while ( <SCRIPT> )
554     - {
555     - $heading = $1 if (/^\s*#\s*heading\s*:\s*(.+?)\s*$/);
556     -
557     - $description = $1
558     - if (/^\s*#\s*description\s*:\s*(.+?)\s*$/);
559     -
560     - ($heading_weight, $description_weight) = ($1, $2)
561     - if (/^\s*#\s*navigation\s*:\s*(\d+?)\s+(\d+?)\s*$/);
562     -
563     - last if (defined $heading and
564     - defined $description and
565     - defined $heading_weight and
566     - defined $description_weight);
567     - }
568     - close SCRIPT;
569     - foreach my $lang (@langs)
570     - {
571     -#warn "updating script $file for lang $lang\n";
572     - my $navdb = $navdbs{$lang};
573     - my $navinfo = NAVIGATIONDIR . "/navigation.$lang";
574     - $navdb ||= esmith::NavigationDB->open($navinfo);
575     - $navdb ||= esmith::NavigationDB->create($navinfo) or
576     - die "Couldn't create $navinfo\n";
577     - $navdbs{$lang} ||= $navdb;
578     - my $rec = $navdb->get($file) ||
579     - $navdb->new_record($file, { type => 'panel' } );
580     -
581     - my $lexicon = {};
582     -
583     - foreach my $lfile ( "/etc/e-smith/locale/$lang/FormMagick/general",
584     - "/etc/e-smith/locale/$lang/etc/e-smith/web/functions/$file" )
585     - {
586     - if (-f $lfile)
587     - {
588     - # Do a quick and dirty parse of the lexicon file
589     - my $xmlstr = "";
590     - open(FILE, $lfile) or die "Couldn't open $lfile:\n$!";
591     - binmode(FILE, ":utf8");
592     - {
593     - local $^W = 0;
594     - while ( my $line = <FILE> ) {
595     - unless ( utf8::valid($line) ) {
596     - warn "$lfile not in UTF-8 format\n";
597     - utf8::encode($line);
598     - }
599     - $xmlstr .= $line;
600     - }
601     - }
602     - my $xml = $parser->parsestring($xmlstr);
603     - my @lexicon = @{$xml->[1]};
604     - shift @lexicon; # Remove lexicon attributes
605     - while (@lexicon)
606     - {
607     - my ($tag, $data) = splice(@lexicon, 0, 2);
608     - next unless $tag eq 'entry';
609     - my %entry_hash = ('attributes', @$data);
610     - my $base = $entry_hash{base};
611     - $base = @{$base}[2];
612     - my $trans = $entry_hash{trans};
613     - $trans = @{$trans}[2];
614     - next unless defined $base && defined $trans;
615     - $lexicon->{$base} = $trans;
616     - }
617     - }
618     - }
619     -
620     - my $loc_heading = localise($lexicon, $heading);
621     - $loc_heading =~ s/^\s*(\w.*?)\s*$/$1/;
622     - my $loc_description = localise($lexicon, $description);
623     - $loc_description =~ s/^\s*(\w.*?)\s*$/$1/;
624     - $rec->merge_props(
625     - Heading => $loc_heading,
626     - Description => $loc_description,
627     - HeadingWeight => localise($lexicon, $heading_weight),
628     - DescriptionWeight => localise($lexicon, $description_weight));
629     - }
630     -}
631     -foreach my $lang (@langs)
632     -{
633     -#warn "trying to close for lang $lang\n";
634     - my $navdb = $navdbs{$lang};
635     - $navdb->close();
636     -}
637     -
638     -sub localise {
639     - my ($lexicon, $string) = @_;
640     - $string = "" unless defined $string;
641     - return $lexicon->{$string} || $string;
642     -}
643     -
644     diff -Nur e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/common/cgi-bin/AuthTKT.cfg/manager_access e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/common/cgi-bin/AuthTKT.cfg/manager_access
645     --- e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/common/cgi-bin/AuthTKT.cfg/manager_access 2016-07-19 09:03:46.681000000 -0400
646     +++ e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/common/cgi-bin/AuthTKT.cfg/manager_access 1969-12-31 19:00:00.000000000 -0500
647     @@ -1,6 +0,0 @@
648     -{
649     - my $secret = ${'httpd-admin'}{TKTAuthSecret} || "34322500-7330-4400-423A-3A00434F5245";
650     - $OUT .= "TKTAuthSecret $secret\n";
651     - $OUT .= "TKTAuthTimeout 5m\n";
652     - $OUT .= "TKTAuthCookieExpires 5m";
653     -}
654     diff -Nur e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/common/css/sme_core.css/50body e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/common/css/sme_core.css/50body
655     --- e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/common/css/sme_core.css/50body 2006-03-15 16:59:54.000000000 -0500
656     +++ e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/common/css/sme_core.css/50body 1969-12-31 19:00:00.000000000 -0500
657     @@ -1,229 +0,0 @@
658     -{
659     - $OUT = <<'EOF';
660     -
661     -
662     -/* INSERT COPYRIGHT HERE */
663     -
664     -/* This is the stylesheet used as the basis for older broswers.
665     -
666     -Note that you CANNOT simly add styles here and hope they work. ONLY CSS
667     -level 1 styles should be in this file. Everyting else goes into the other 3
668     -files.
669     -
670     -These basic styles ensire that browsers that don't understand the @import
671     -method will still be usable. All modern browsers will use the styles in
672     -sme_main.css, sme_menu.css or sme_header.css depending on the frame in which
673     -the page is found.
674     -*/
675     -
676     -/* Default HTML styles */
677     -body {
678     - background: #ffffff;
679     - color: #000000;
680     - font-family: Verdana, Arial, Helvetica, sans-serif;
681     - font-size: 11px;
682     - border-width: 0;
683     -}
684     -
685     -table, tr, td, div, p, form {
686     - color: #000000;
687     - font-family: Verdana, Arial, Helvetica, sans-serif;
688     - font-size: 11px;
689     -}
690     -
691     -p {
692     - margin-top: 8px;
693     - margin-bottom: 2px;
694     -}
695     -
696     -form {
697     - margin-top: 2px;
698     - margin-bottom: 2px;
699     -}
700     -
701     -span {
702     - font-family: Verdana, Arial, Helvetica, sans-serif;
703     - font-size: 11px;
704     -}
705     -
706     -.notsmall {
707     - font-family: Verdana, Arial, Helvetica, sans-serif;
708     - font-size: 11px;
709     -}
710     -
711     -h1, .h1 {
712     - font-family: Verdana, Arial, Helvetica, sans-serif;
713     - color: #333333;
714     - font-size: 18px;
715     - margin-bottom: 4px;
716     - margin-top: 12px;
717     -}
718     -
719     -h2, .h2 {
720     - font-family: Verdana, Arial, Helvetica, sans-serif;
721     - color: #333333;
722     - font-size: 14px;
723     - margin-bottom: 3px;
724     - margin-top: 12px;
725     -}
726     -
727     -h3, .h3 {
728     - font-family: Verdana, Arial, Helvetica, sans-serif;
729     - color: #333333;
730     - font-size: 12px;
731     - margin-bottom: 2px;
732     - margin-top: 12px;
733     -}
734     -
735     -h4, .h4 {
736     - font-family: Verdana, Arial, Helvetica, sans-serif;
737     - font-style: italic;
738     - color: #333333;
739     - font-size: 12px;
740     - margin-bottom: 2px;
741     - margin-top: 10px;
742     -}
743     -
744     -ol, ul, li {
745     - font-family: Verdana, Arial, Helvetica, sans-serif;
746     - font-size: 10px;
747     - font-weight: normal;
748     - color: black;
749     -}
750     -
751     -ul {
752     - list-style-type: circle;
753     -}
754     -
755     -/* Core styles for use with sme_header.css*/
756     -body.header {
757     - font-family: Verdana, Arial, Helvetica, sans-serif;
758     - font-size: 11px;
759     - background: #cccccc;
760     - margin-top: 0px;
761     - margin-right: 0px;
762     - margin-bottom: 0px;
763     - margin-left: 0px;
764     -}
765     -
766     -.hilightbar {
767     - background-color: #ffc50a;
768     - font-size: 4px;
769     -}
770     -
771     -.infobar {
772     - font-family: Verdana, Arial, Helvetica, sans-serif;
773     - font-size: 11px;
774     - background-color: #cccccc;
775     -}
776     -
777     -.darkergrey {
778     - color: #666666;
779     -}
780     -
781     -td.darkgrey {
782     - background-color: #888888;
783     -}
784     -
785     -a.update {
786     - color: red;
787     - font-family: Verdana, Arial, Helvetica, sans-serif;
788     - font-size: 11px;
789     - background: #cccccc;
790     -}
791     -
792     -/* Core styles for use with sme_menu.css */
793     -
794     -body.menu {
795     - font-family: Verdana, Arial, Helvetica, sans-serif;
796     - font-size: 11px;
797     - background-color: #eeeeee;
798     -}
799     -
800     -td.section {
801     - padding-bottom: 2px;
802     - padding-top: 8px;
803     -}
804     -
805     -.section {
806     - font-family: Verdana, Arial, Helvetica, sans-serif;
807     - font-size: 11px;
808     - font-weight: bold;
809     - background-color: #eeeeee;
810     -}
811     -
812     -a.item {
813     - color: #00008b;
814     - font-family: Verdana, Arial, Helvetica, sans-serif;
815     - font-size: 11px;
816     - background: #eeeeee;
817     -}
818     -
819     -a.sl {
820     - color: green;
821     - font-family: Verdana, Arial, Helvetica, sans-serif;
822     - font-size: 11px;
823     - background: #eeeeee;
824     -}
825     -
826     -a.alert {
827     - color: red;
828     - font-family: Verdana, Arial, Helvetica, sans-serif;
829     - font-size: 11px;
830     - background: #eeeeee;
831     -}
832     -
833     -/* Core styles for use with sme_main.css */
834     -body.main {
835     - font-family: Verdana, Arial, Helvetica, sans-serif;
836     - font-size: 11px;
837     - background-color: #ffffff;
838     - color: #000000;
839     -}
840     -
841     -td.sme-noborders-label {
842     - font-weight: bold;
843     - width: 33%;
844     - text-align: right;
845     -}
846     -
847     -hr.sectionbar {
848     - color: #666666;
849     - background-color: #666666;
850     - height: 1px;
851     - width: 80%;
852     - border: 0;
853     -}
854     -
855     -hr.sme-copyrightbar {
856     - color: #dddddd;
857     - background-color: #dddddd;
858     - height: 1px;
859     - width: 100%;
860     - border: 0;
861     -}
862     -
863     -.sme-copyright {
864     - color: #777777;
865     - font-family: Verdana, Arial, Helvetica, sans-serif;
866     - font-size: 10px;
867     -}
868     -
869     -/*These style definitions were found int he old css file (manager.css)
870     -but don't seem to ever be referenced in the code. They're here
871     -for reference.
872     -
873     -.centerit {
874     - text-align: center;
875     -}
876     -.highlight {
877     - background: #ffc61e;
878     -}
879     -.subheading {
880     - background: #ffffff;
881     - color: #1e385b;
882     -}
883     -*/
884     -
885     -EOF
886     -}
887     diff -Nur e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/common/css/sme_core.css/template-begin e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/common/css/sme_core.css/template-begin
888     --- e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/common/css/sme_core.css/template-begin 2006-03-15 16:59:54.000000000 -0500
889     +++ e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/common/css/sme_core.css/template-begin 1969-12-31 19:00:00.000000000 -0500
890     @@ -1 +0,0 @@
891     -/* DO NOT MODIFY THIS FILE! It is updated automatically */
892     diff -Nur e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/common/css/sme_header.css/50body e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/common/css/sme_header.css/50body
893     --- e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/common/css/sme_header.css/50body 2006-03-15 16:59:54.000000000 -0500
894     +++ e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/common/css/sme_header.css/50body 1969-12-31 19:00:00.000000000 -0500
895     @@ -1,128 +0,0 @@
896     -{
897     - $OUT = <<'EOF';
898     -
899     -/* INSERT COPYRIGHT HERE */
900     -
901     -/* This is the stylesheet used in the header panel only
902     -
903     - This file inherits the styles use in sme_core in the "header" section, and
904     - as noted in the code below. Note that some of the styles here are empty.
905     - This is because the style definition has moved safely to sme_core.css
906     - and the placeholder is left here for reference or future use.
907     -
908     - There are a lot of styles in here, so read carefully. Each one is documented.
909     -
910     - Styles that were in the old stylesheets, but are not used in the UI are at the
911     - bottom, commented out. These can be removed at the end of the 6.0 cycle */
912     -
913     -/* general table cell properties */
914     -td {
915     - font-family: Verdana, Arial, Helvetica, sans-serif;
916     - font-size: 11px;
917     - color: black;
918     -}
919     -
920     -table {
921     - width=100%;
922     - margin-top: 0px;
923     - margin-right: 0px;
924     - margin-bottom: 1px;
925     - margin-left: 0px;
926     -}
927     -
928     -/* This is the class of the product bar, orange in the case of the 6000 MAS */
929     -.hilightbar {
930     - border-color: #888888 ;
931     - border-style: solid;
932     - border-top-width: 1px;
933     - border-right-width: 0px;
934     - border-bottom-width: 1px;
935     - border-left-width: 0px;
936     -}
937     -
938     -/* this is the class of the grey bar under the hilight bar, where text and
939     - buttons live.
940     -*/
941     -.infobar {
942     - border-color: #888888 ;
943     - border-style: solid;
944     - border-top-width: 0px;
945     - border-right-width: 0px;
946     - border-bottom-width: 10px;
947     - border-left-width: 0px;
948     -}
949     -
950     -.darkergrey {
951     - color: #666666;
952     -}
953     -
954     -/* default class for links*/
955     -a:link, a:visited, a:hover, a:active {
956     - font-family: Verdana, Arial, Helvetica, sans-serif;
957     - font-size: 11px;
958     - color: black;
959     - background: #cccccc;
960     - text-decoration: none;
961     - text-align: left;
962     - border-color: #cccccc #cccccc #cccccc #cccccc ;
963     - margin-top: 0px;
964     - margin-right: 0px;
965     - margin-bottom: 0px;
966     - margin-left: 0px;
967     - border-style: solid;
968     - border-top-width: 1px;
969     - border-right-width: 1px;
970     - border-bottom-width: 1px;
971     - border-left-width: 1px;
972     - padding-right: 10px;
973     - padding-left: 10px;
974     - }
975     -
976     -a:hover {
977     - background: #eeeeee;
978     - border-color: #000000 #000000 #000000 #000000;
979     -}
980     -
981     -a:active {
982     - color: white;
983     - background: black;
984     - border-color: #000000 #000000 #000000 #000000;
985     -}
986     -
987     -
988     -/* These a classes define the update link appearance, using a pseudoclass
989     - called "update" */
990     -a.update:link, a.update:visited, a.update:hover, a.update:active {
991     - font-family: Verdana, Arial, Helvetica, sans-serif;
992     - font-size: 11px;
993     - color: #ffffff;
994     - background-color: #ee0000;
995     - text-decoration: none;
996     - text-align: left;
997     - border-color: #cccccc ;
998     - margin-top: 0px;
999     - margin-right: 0px;
1000     - margin-bottom: 0px;
1001     - margin-left: 0px;
1002     - border-style: solid;
1003     - border-top-width: 1px;
1004     - border-right-width: 1px;
1005     - border-bottom-width: 1px;
1006     - border-left-width: 1px;
1007     - padding-right: 10px;
1008     - padding-left: 10px;
1009     - }
1010     -
1011     -a.update:hover {
1012     - background: #FF8080;
1013     - border-color: #ff0000;
1014     -}
1015     -
1016     -a.update:active {
1017     - color: #ff0000;
1018     - background: #ffffff;
1019     - border-color: #ff0000;
1020     -}
1021     -
1022     -EOF
1023     -}
1024     diff -Nur e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/common/css/sme_header.css/template-begin e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/common/css/sme_header.css/template-begin
1025     --- e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/common/css/sme_header.css/template-begin 2006-03-15 16:59:54.000000000 -0500
1026     +++ e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/common/css/sme_header.css/template-begin 1969-12-31 19:00:00.000000000 -0500
1027     @@ -1 +0,0 @@
1028     -/* DO NOT MODIFY THIS FILE! It is updated automatically */
1029     diff -Nur e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/common/css/sme_main.css/50body e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/common/css/sme_main.css/50body
1030     --- e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/common/css/sme_main.css/50body 2013-01-31 16:31:37.000000000 -0500
1031     +++ e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/common/css/sme_main.css/50body 1969-12-31 19:00:00.000000000 -0500
1032     @@ -1,418 +0,0 @@
1033     -{
1034     - $OUT = <<'EOF';
1035     -
1036     -/* INSERT COPYRIGHT HERE */
1037     -
1038     -/* This is the stylesheet used in the main panels only.
1039     -
1040     - This file inherits the styles use in sme_core in the "header" section, and
1041     - as noted in the code below. Note that some of the styles here are empty.
1042     - This is because the style definition has moved safely to sme_core.css
1043     - and the placeholder is left here for reference or future use.
1044     -
1045     - There are a lot of styles in here, so read carefully. Each one is documented.
1046     -
1047     - Styles that were in the old stylesheets, but are not used in the UI are at the
1048     - bottom, commented out. These can be removed at the end of the 6.0 cycle */
1049     -
1050     -/* general page properties */
1051     -body, body.main {
1052     - margin-top: 5px;
1053     - margin-right: 20px;
1054     - margin-bottom: 5px;
1055     - margin-left: 5px;
1056     -}
1057     -
1058     -
1059     -/* Table properties ****************************************/
1060     -/* There are THREE types of tables
1061     - 1. *.sme-layout* is used for layout purposes. It is the "master
1062     - container" on a page. It controls the top-level table
1063     - inside of which everything else is put.
1064     - 2. *.sme-noborders* is used for layout, and defines a borderless table and
1065     - cells used within it.
1066     - 2. *.sme-border* is used for tabular data, and defines a header row and borders
1067     - for tables that need borders
1068     -
1069     - */
1070     -
1071     -/*First, some defaults */
1072     -td {
1073     - text-align: left;
1074     -}
1075     -
1076     -
1077     -/*
1078     -sme-layout* : Used for top-level layout
1079     -*/
1080     -
1081     -table.sme-layout {
1082     - border-collapse: collapse;
1083     - margin-bottom: 2px;
1084     - margin-top: 2px;
1085     -}
1086     -
1087     -tr.sme-layout {
1088     - border: 1px solid #dddddd;
1089     -}
1090     -
1091     -td.sme-layout {
1092     - border: 1px solid #dddddd;
1093     -}
1094     -
1095     -/*This special style is actually used only for the button row along the bottom of each page*/
1096     -th.sme-layout {
1097     - border: 1px solid #dddddd;
1098     - background-color: #eeeeee;
1099     - font-family: Verdana, Arial, Helvetica, sans-serif;
1100     - font-size: 9pt;
1101     - font-weight: bold;
1102     - color: #000000;
1103     - text-align: right;
1104     - padding: 4px;
1105     -}
1106     -
1107     -/*
1108     -sme-noborders* : Used for mid-level layout
1109     -*/
1110     -table.sme-noborders {
1111     - padding: 0px;
1112     - margin-top: 0px;
1113     - margin-bottom: 20px;
1114     - margin-left: 0px;
1115     - margin-right: 0px;
1116     - font-family: Verdana, Arial, Helvetica, sans-serif;
1117     - font-size: 11px;
1118     -}
1119     -td.sme-noborders-label {
1120     - font-weight: bold;
1121     - /*width: 250px;*/
1122     - text-align: right;
1123     - /*vertical-align: top;*/
1124     - background-color: #eeeeee;
1125     - font-family: Verdana, Arial, Helvetica, sans-serif;
1126     - font-size: 11px;
1127     -}
1128     -td.sme-noborders-content {
1129     - text-align: left;
1130     - vertical-align: top;
1131     - font-family: Verdana, Arial, Helvetica, sans-serif;
1132     - font-size: 11px;
1133     -}
1134     -td.sme-noborders-info, div.sme-noborders-info {
1135     - text-align: left;
1136     - vertical-align: top;
1137     -}
1138     -/* Used for a left-most column of radio buttons (see date/time panel) */
1139     -td.sme-radiobutton {
1140     - width: 30px;
1141     -}
1142     -/*
1143     -sme-border* : Used for tabular data
1144     -*/
1145     -table.sme-border {
1146     - border-collapse: collapse;
1147     - border: 2px solid #cccccc;
1148     - empty-cells: show;
1149     - margin: 5px 5px 5px 2px;
1150     -}
1151     -td.sme-border,
1152     -td.sme-border-warning,
1153     -td.sme-border-right,
1154     -td.sme-border-center {
1155     - border: 1px solid #cccccc;
1156     - font-family: Verdana, Arial, Helvetica, sans-serif;
1157     - font-size: 10px;
1158     - font-weight: normal;
1159     - color: #000000;
1160     - text-align: left;
1161     - padding-left: 2px;
1162     - padding-right: 2px;
1163     - padding-top: 3px;
1164     - padding-bottom: 3px;
1165     -}
1166     -td.sme-border-warning {
1167     - color: red;
1168     - }
1169     -td.sme-border-right {text-align: right;}
1170     -td.sme-border-center {text-align: center;}
1171     -th.sme-border {
1172     - border: 1px solid #cccccc;
1173     - background-color: #dedfde;
1174     - font-family: Verdana, Arial, Helvetica, sans-serif;
1175     - font-size: 10px;
1176     - font-weight: bold;
1177     - color: #000000;
1178     - text-align: center;
1179     - vertical-align: bottom;
1180     - padding-left: 2px;
1181     - padding-right: 2px;
1182     - padding-left: 3px;
1183     - padding-right: 3px;
1184     - padding-top: 3px;
1185     - padding-bottom: 3px;
1186     - /*border-width: 1px;
1187     - border-style: solid;
1188     - border-color: #F2F0EE #75736E #75736E #F2F0EE ;*/
1189     -}
1190     -td.sme-border a, td.sme-border-right a, td.sme-border-center a {
1191     - font-size: 10px;
1192     -}
1193     -
1194     -/* misc layout stuff*/
1195     -/* these two are for any error messages that pop up*/
1196     -div.error, div.sme-error, span.error, span.sme-error {
1197     - color: red;
1198     - background-color: #ffffff;
1199     - border-width: 1px;
1200     - border-style: solid;
1201     - border-color: red ;
1202     - padding: 2px;
1203     - margin-left: 20px;
1204     - margin-right: 20px;
1205     - margin-top:0px;
1206     - margin-bottom:0px;
1207     -
1208     -}
1209     -
1210     -div.error-noborders, div.sme-error-noborders,
1211     -span.error-noborders, span.sme-error-noborders
1212     -{
1213     - color: red;
1214     - background-color: #ffffff;
1215     - border-width: 0px;
1216     -}
1217     -
1218     -div.error h2, span.error h2,
1219     -div.error p, span.error p
1220     -{
1221     - color: red;
1222     -}
1223     -/* These are for the special case of a link being inside an error message */
1224     -div.sme-error a, div.error a, span.error a, span.sme-error a,
1225     -div.error-noborders a, div.sme-error-noborders a,
1226     -span.error-noborders a, span.sme-error-noborders a
1227     -{
1228     - color: #ff0000;
1229     - font-weight: bold;
1230     - text-decoration: underline;
1231     -}
1232     -
1233     -/* For when a link is the error message */
1234     -a.error:link, a.error:visited, a.error:hover, a.error:active {
1235     - color: #ff0000;
1236     - font-weight: normal;
1237     - text-decoration: underline;
1238     -}
1239     -
1240     -/* these two are for any success messages that pop up*/
1241     -div.success, span.success {
1242     - color: #006400;
1243     - background-color: #ffffff;
1244     - border-width: 1px;
1245     - border-style: solid;
1246     - border-color: #006400 ;
1247     - padding: 2px;
1248     - margin-left: 20px;
1249     - margin-right: 20px;
1250     - margin-top:0px;
1251     - margin-bottom:0px;
1252     -
1253     -}
1254     -
1255     -/* These two are for the special case of a link being inside a success message */
1256     -div.success a, span.success a
1257     -{
1258     - color: #006400;
1259     - font-weight: bold;
1260     - text-decoration: underline;
1261     -}
1262     -
1263     -div.success h2, span.success h2,
1264     -div.success p, span.success p
1265     -{
1266     - color: green;
1267     -}
1268     -
1269     -/*These two define the copyright footer styles, one for the line and one for the text*/
1270     -hr.sme-copyrightbar {
1271     -}
1272     -.sme-copyright {
1273     -}
1274     -
1275     -/* These ones define styles for the links that are made to look like
1276     - standard form submit buttons */
1277     -a.button-like:link,
1278     -a.button-like:visited,
1279     -a.button-like:hover,
1280     -a.button-like:active,
1281     -a.button-like-small:link,
1282     -a.button-like-small:visited,
1283     -a.button-like-small:hover,
1284     -a.button-like-small:active {
1285     - font-family: sans-serif;
1286     - font-size: 13px;
1287     - color: black;
1288     - background: #D4D0C8;
1289     - text-decoration: none;
1290     - text-align: left;
1291     - border-color: #F2F0EE #75736E #75736E #F2F0EE ;
1292     - margin-top: 10px;
1293     - margin-right: 2px;
1294     - margin-bottom: 10px;
1295     - margin-left: 2px;
1296     - border-style: solid;
1297     - border-top-width: 2px;
1298     - border-right-width: 2px;
1299     - border-bottom-width: 2px;
1300     - border-left-width: 2px;
1301     - padding-top: 2px;
1302     - padding-bottom: 2px;
1303     - padding-left: 6px;
1304     - padding-right: 6px;
1305     - }
1306     -a.button-like-small:link,
1307     -a.button-like-small:visited,
1308     -a.button-like-small:hover,
1309     -a.button-like-small:active {
1310     - border-top-width: 1px;
1311     - border-right-width: 1px;
1312     - border-bottom-width: 1px;
1313     - border-left-width: 1px;
1314     - font-size: 10px;
1315     - padding-top: 0px;
1316     - padding-bottom: 0px;
1317     - padding-left: 1px;
1318     - padding-right: 1px;
1319     -}
1320     -a.button-like:active,
1321     -a.button-like-small:active {
1322     - border-color: #75736E #F2F0EE #F2F0EE #75736E ;
1323     -}
1324     -
1325     -/* EXPERIMENTAL SECTION */
1326     -/* These are styles used to experiment with. */
1327     -
1328     -/* class for links, similar to the class in sme_menu.css, but for a red button */
1329     -a.button-like-red:link,
1330     -a.button-like-red:visited,
1331     -a.button-like-red:hover,
1332     -a.button-like-red:active {
1333     - border-left: #F1726C 2px solid;
1334     - border-right: #B42025 2px solid;
1335     - border-top: #F1726C 2px solid;
1336     - border-bottom: #B42025 2px solid;
1337     - }
1338     -a.button-like-red:active {
1339     - border-color: #75736E #F2F0EE #F2F0EE #75736E ;
1340     -}
1341     -
1342     -/*These are style definitions found in the UI but not defined in any file I
1343     - could locate. They're listed here for historical purposes, but have been
1344     - removed from the UI
1345     -
1346     -pagedescription (used in the first paragraph of text on a page) [HTML.pm]
1347     -label (used in forms) [HTML.pm]
1348     -field (used in forms) [HTML.pm]
1349     -fielddescription (used ???)[HTML.pm]
1350     -buttons (used in forms) [HTML.pm]
1351     -*/
1352     -/*td.sme-submitbutton {
1353     - text-align: right;
1354     -}
1355     -*/
1356     -
1357     -/*These style definitions were found int he old css file (manager.css)
1358     - but don't seem to ever be referenced in the code. They're here
1359     - for reference.
1360     -
1361     -.banner {
1362     - background: #000000;
1363     - color: #ffffff;
1364     -}
1365     -.banner-right {
1366     - font-family: Verdana, Arial, Helvetica, sans-serif;
1367     - background: #e17200;
1368     - color: #ffffff;
1369     -}
1370     -.border {
1371     - background: #000000;
1372     - color: #000000;
1373     - border-color: #000000;
1374     -}
1375     -.sidebar {
1376     - width: 200px;
1377     - background: #ffffff;
1378     - font-size: smaller;
1379     - font-family: Verdana, Arial, Helvetica, sans-serif;
1380     - font-weight: normal;
1381     -}
1382     -.sidebar-title {
1383     - background: #1e385b;
1384     - color: #ffffff;
1385     - font-family: Verdana, Arial, Helvetica, sans-serif;
1386     - font-weight: bold;
1387     -}
1388     -.newsitem {
1389     - background: #ffffff;
1390     - color: #000000;
1391     - font-family: Verdana, Arial, Helvetica, sans-serif;
1392     - margin-left: 5px;
1393     - margin-right: 5px;
1394     - margin-top: 5px;
1395     - margin-bottom: 5px;
1396     -}
1397     -.newsitem-title {
1398     - background: #cccccc;
1399     - color: #ffffff;
1400     - font-family: Verdana, Arial, Helvetica, sans-serif;
1401     - font-weight: bold;
1402     -}
1403     -.newsitem-footer {
1404     - background: #cccccc;
1405     - color: #000000;
1406     - font-family: Verdana, Arial, Helvetica, sans-serif;
1407     - font-size: smaller;
1408     - text-align: right;
1409     -}
1410     -.newsitem-detail {
1411     - font-size: smaller;
1412     - font-weight: normal;
1413     -}
1414     -.formlabel {
1415     - background: #c0c0c0;
1416     - color: #000000;
1417     - font-family: Verdana, Arial, Helvetica, sans-serif;
1418     - font-size: small;
1419     - font-weight: bold;
1420     - text-align: right;
1421     -}
1422     -.welcome-link {
1423     - background: #ffffff;
1424     - color: #1e385b;
1425     -}
1426     -.littlelink {
1427     - font-family: Verdana, Arial, Helvetica, sans-serif;
1428     -}
1429     -#textlayer {
1430     - position: absolute;
1431     - visibility: inherit;
1432     - top: 160px;
1433     - left: 50px;
1434     - z-index: 2;
1435     -}
1436     -#para {
1437     - font-family: Verdana, Arial, Helvetica, sans-serif;
1438     - font-weight: bold;
1439     - color: #000000;
1440     -}
1441     -#title {
1442     - font-family: Verdana, Arial, Helvetica, sans-serif;
1443     - font-weight: bold;
1444     - padding: 7px 7px 7px 7px;
1445     - color: #ffffff;
1446     -}
1447     -*/
1448     -
1449     -EOF
1450     -}
1451     diff -Nur e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/common/css/sme_main.css/template-begin e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/common/css/sme_main.css/template-begin
1452     --- e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/common/css/sme_main.css/template-begin 2006-03-15 16:59:54.000000000 -0500
1453     +++ e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/common/css/sme_main.css/template-begin 1969-12-31 19:00:00.000000000 -0500
1454     @@ -1 +0,0 @@
1455     -/* DO NOT MODIFY THIS FILE! It is updated automatically */
1456     diff -Nur e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/common/css/sme_menu.css/50body e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/common/css/sme_menu.css/50body
1457     --- e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/common/css/sme_menu.css/50body 2006-03-15 16:59:54.000000000 -0500
1458     +++ e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/common/css/sme_menu.css/50body 1969-12-31 19:00:00.000000000 -0500
1459     @@ -1,227 +0,0 @@
1460     -{
1461     - $OUT = <<'EOF';
1462     -
1463     -/*----------------------------------------------------------------------
1464     - * copyright (C) 1999-2003 Mitel Networks Corporation
1465     - *
1466     - * This program is free software; you can redistribute it and/or modify
1467     - * it under the terms of the GNU General Public License as published by
1468     - * the Free Software Foundation; either version 2 of the License, or
1469     - * (at your option) any later version.
1470     - *
1471     - * This program is distributed in the hope that it will be useful,
1472     - * but WITHOUT ANY WARRANTY; without even the implied warranty of
1473     - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1474     - * GNU General Public License for more details.
1475     - *
1476     - * You should have received a copy of the GNU General Public License
1477     - * along with this program; if not, write to the Free Software
1478     - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
1479     - *
1480     - * Technical support for this program is available from Mitel Networks
1481     - * Please visit our web site www.mitel.com for details.
1482     - *----------------------------------------------------------------------
1483     - */
1484     -
1485     -/* This is the stylesheet used in the navigation panel only
1486     -
1487     - This file inherits the styles use in sme_core in the "navigation" section,
1488     - and as noted in the code below. Note that some of the styles here are empty.
1489     - This is because the style definition has moved safely to sme_core.css and
1490     - the placeholder is left here for reference or future use.
1491     -
1492     - There are a lot of styles in here, so read carefully. Each one is
1493     - documented.
1494     -
1495     - Styles that were in the old stylesheets, but are not used in the UI are at
1496     - the bottom, commented out. These can be removed at the end of the 6.0
1497     - cycle */
1498     -
1499     -/* Sets the general page properties */
1500     -body, body.menu {
1501     - margin-top: 0px;
1502     - margin-right: 0px;
1503     - margin-bottom: 0px;
1504     - margin-left: 2px;
1505     -}
1506     -
1507     -/* This is the section heading style */
1508     -.section {
1509     -}
1510     -
1511     -td.menu-cell {
1512     - margin-top: 0px;
1513     - margin-right: 0px;
1514     - margin-bottom: 0px;
1515     - margin-left: 0px;
1516     - padding-left: 0px;
1517     - padding-right: 0px;
1518     - padding-top: 0px;
1519     - padding-bottom: 0px;
1520     -
1521     -}
1522     -
1523     -/*
1524     -All the a links use pseudoclasses to control the two visual link styles.
1525     -For example:
1526     - a.item:link the general link item
1527     - a.item-current:link: the active link item
1528     -
1529     -The switch from item to item-current is done with a javascript script in the head of the
1530     -navigation page, using the onClick event.
1531     -
1532     -We are making heavy use of the cascade with these.
1533     -*/
1534     -
1535     -/* a:link controls the look of a link when the mouse is nowhere near it */
1536     -a.item:link, a.item-current:link,
1537     -a.warn:link, a.warn-current:link {
1538     - display: block;
1539     - font-family: Verdana, Arial, Helvetica, sans-serif;
1540     - font-size: 10px;
1541     - color: black;
1542     - background: #eeeeee;
1543     - text-decoration: none;
1544     - text-align: left;
1545     - border-color: #eeeeee;
1546     - margin-top: 0px;
1547     - margin-right: 0px;
1548     - margin-bottom: 0px;
1549     - margin-left: 0px;
1550     - border-style: solid;
1551     - border-top-width: 1px;
1552     - border-right-width: 1px;
1553     - border-bottom-width: 1px;
1554     - border-left-width: 1px;
1555     - padding-right: 10px;
1556     - padding-left: 10px;
1557     - padding-top: 0px;
1558     - padding-bottom: 2px;
1559     - }
1560     -
1561     -/* a:visited controls the look of a visited link (one that has been clicked) */
1562     -a.item:visited, a.item-current:visited,
1563     -a.warn:visited, a.warn-current:visited {
1564     - display: block;
1565     - font-family: Verdana, Arial, Helvetica, sans-serif;
1566     - font-size: 10px;
1567     - color: black;
1568     - background: #eeeeee;
1569     - text-decoration: none;
1570     - border-color: #eeeeee;
1571     - margin-top: 0px;
1572     - margin-right: 0px;
1573     - margin-bottom: 0px;
1574     - margin-left: 0px;
1575     - border-style: solid;
1576     - border-top-width: 1px;
1577     - border-right-width: 1px;
1578     - border-bottom-width: 1px;
1579     - border-left-width: 1px;
1580     - padding-right: 10px;
1581     - padding-left: 10px;
1582     - padding-bottom: 2px;
1583     - text-align: left;
1584     -}
1585     -
1586     -/* a:hover controls the look of a link under the curser*/
1587     -a.item:hover, a.item-current:hover,
1588     -a.warn:hover, a.warn-current:hover {
1589     - display: block;
1590     - font-family: Verdana, Arial, Helvetica, sans-serif;
1591     - font-size: 10px;
1592     - color: black;
1593     - text-decoration: none;
1594     - background: #cccccc;
1595     - border-color: #888888;
1596     - margin-top: 0px;
1597     - margin-right: 0px;
1598     - margin-bottom: 0px;
1599     - margin-left: 0px;
1600     - border-style: solid;
1601     - border-top-width: 1px;
1602     - border-right-width: 1px;
1603     - border-bottom-width: 1px;
1604     - border-left-width: 1px;
1605     - padding-right: 10px;
1606     - padding-left: 10px;
1607     - padding-bottom: 2px;
1608     - text-align: left;
1609     -}
1610     -
1611     -/* a:active controls the look of a link as it is selected*/
1612     -a.item:active, a.item-current:active,
1613     -a.warn:active, a.warn-current:active {
1614     - display: block;
1615     - font-family: Verdana, Arial, Helvetica, sans-serif;
1616     - font-size: 10px;
1617     - color: white;
1618     - background: black;
1619     - text-decoration: none ;
1620     - border-color: #000000;
1621     - margin-top: 0px;
1622     - margin-right: 0px;
1623     - margin-bottom: 0px;
1624     - margin-left: 0px;
1625     - border-style: solid;
1626     - border-top-width: 1px;
1627     - border-right-width: 1px;
1628     - border-bottom-width: 1px;
1629     - border-left-width: 1px;
1630     - padding-right: 10px;
1631     - padding-left: 10px;
1632     - padding-bottom: 2px;
1633     - text-align: left;
1634     -}
1635     -
1636     -/*
1637     -These styles are to ensure that a selected link appears selected, even if the link
1638     -opens in another frame. This uses a javascript chunk in the head of the navigation
1639     -frame to change the style using the onClick event.
1640     -*/
1641     -a.item-current:link, a.warn-current:link,
1642     -a.item-current:visited, a.warn-current:visited,
1643     -a.item-current:active, a.warn-current:active,
1644     -a.item-current:hover, a.warn-current:hover {
1645     - display: block;
1646     - font-family: Verdana, Arial, Helvetica, sans-serif;
1647     - font-size: 10px;
1648     - color: black;
1649     - text-decoration: none;
1650     - background: #ffffff;
1651     - border-color: #888888;
1652     - margin-top: 0px;
1653     - margin-right: 0px;
1654     - margin-bottom: 0px;
1655     - margin-left: 0px;
1656     - border-style: solid;
1657     - border-top-width: 1px;
1658     - border-right-width: 1px;
1659     - border-bottom-width: 1px;
1660     - border-left-width: 1px;
1661     - padding-right: 10px;
1662     - padding-left: 10px;
1663     - padding-bottom: 2px;
1664     - text-align: left;
1665     -}
1666     -
1667     -/* these two add a border on the styles defined directly above when
1668     -the mouse is hovering over them */
1669     -a.item-current:hover, a.warn-current:hover {
1670     - border-color: #888888;
1671     -}
1672     -
1673     -/* These redefine a few elements to make room for the icon to the left of the warn class*/
1674     -a.warn:link, a.warn-current:link,
1675     -a.warn:visited, a.warn-current:visited,
1676     -a.warn:active, a.warn-current:active,
1677     -a.warn:hover, a.warn-current:hover {
1678     - background-image: url(/server-common/warn.gif);
1679     - background-repeat: no-repeat;
1680     - background-position: 10px;
1681     - padding-left: 25px;
1682     -}
1683     -/*end*/
1684     -
1685     -EOF
1686     -}
1687     diff -Nur e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/common/css/sme_menu.css/template-begin e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/common/css/sme_menu.css/template-begin
1688     --- e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/common/css/sme_menu.css/template-begin 2006-03-15 16:59:54.000000000 -0500
1689     +++ e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/common/css/sme_menu.css/template-begin 1969-12-31 19:00:00.000000000 -0500
1690     @@ -1 +0,0 @@
1691     -/* DO NOT MODIFY THIS FILE! It is updated automatically */
1692     diff -Nur e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/common/css/sme_panel_menu.css/50body e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/common/css/sme_panel_menu.css/50body
1693     --- e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/common/css/sme_panel_menu.css/50body 2006-03-15 16:59:54.000000000 -0500
1694     +++ e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/common/css/sme_panel_menu.css/50body 1969-12-31 19:00:00.000000000 -0500
1695     @@ -1,89 +0,0 @@
1696     -{
1697     - $OUT = <<'EOF';
1698     -
1699     -/*----------------------------------------------------------------------
1700     - * copyright (C) 1999-2003 Mitel Networks Corporation
1701     - *
1702     - * This program is free software; you can redistribute it and/or modify
1703     - * it under the terms of the GNU General Public License as published by
1704     - * the Free Software Foundation; either version 2 of the License, or
1705     - * (at your option) any later version.
1706     - *
1707     - * This program is distributed in the hope that it will be useful,
1708     - * but WITHOUT ANY WARRANTY; without even the implied warranty of
1709     - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1710     - * GNU General Public License for more details.
1711     - *
1712     - * You should have received a copy of the GNU General Public License
1713     - * along with this program; if not, write to the Free Software
1714     - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
1715     - *
1716     - * Technical support for this program is available from Mitel Networks
1717     - * Please visit our web site www.mitel.com for details.
1718     - *----------------------------------------------------------------------
1719     - */
1720     -
1721     -/* This set of classes is intended for use as a tabbed menu in a panel. The
1722     - * menu itself is built out of an itemized list, with the navmenu style applied
1723     - * to it. In this way, if the browser does not support CSS 2.0, a standard
1724     - * itemized list will be seen instead. This also makes the menu perfectly
1725     - * workable in Lynx.
1726     - *
1727     - * To make use of this menu, see the new menu attribute of the page tab in
1728     - * FormMagick, perl-CGI-FormMagick-0.91-09. Use that callback to output your
1729     - * itemized list with this style, and set the 'here' class to indicate the
1730     - * current position in the menu.
1731     - *
1732     - * This code is currently being tested using inline styles in the Teleworker
1733     - * product, version 3.1 or higher, and the mps_2004_05_21-16_16_27 branch of
1734     - * e-smith-backup. Look to those initially for examples of use.
1735     - *
1736     - * While this does not yet support nested tabs, it would not be difficult to
1737     - * add.
1738     - */
1739     -
1740     -#navmenu {
1741     - border-bottom : 1px solid #ccc;
1742     - margin : 0;
1743     - padding-bottom : 19px;
1744     - padding-left : 10px;
1745     -}
1746     -
1747     -#navmenu ul, #navmenu li {
1748     - display : inline;
1749     - list-style-type : none;
1750     - margin : 0;
1751     - padding : 0;
1752     -}
1753     -
1754     -#navmenu a {
1755     - background : #E8EBF0;
1756     - border : 1px solid #ccc;
1757     - color : #666;
1758     - float : left;
1759     - font-size : small;
1760     - font-weight : normal;
1761     - line-height : 14px;
1762     - margin-right : 8px;
1763     - padding : 2px 10px 2px 10px;
1764     - text-decoration : none;
1765     -}
1766     -
1767     -#navmenu a:link.active, #navmenu a:visited.active, #navmenu a.here {
1768     - background : #fff;
1769     - border-bottom : 1px solid #fff;
1770     - color : #000;
1771     -}
1772     -
1773     -#navmenu a:hover {
1774     - color : #f00;
1775     -}
1776     -
1777     -#navmenu ul a:hover {
1778     - color : #f00 !important;
1779     -}
1780     -
1781     -/* End sme panel menu. */
1782     -
1783     -EOF
1784     -}
1785     diff -Nur e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/common/css/sme_panel_menu.css/template-begin e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/common/css/sme_panel_menu.css/template-begin
1786     --- e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/common/css/sme_panel_menu.css/template-begin 2006-03-15 16:59:54.000000000 -0500
1787     +++ e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/common/css/sme_panel_menu.css/template-begin 1969-12-31 19:00:00.000000000 -0500
1788     @@ -1 +0,0 @@
1789     -/* DO NOT MODIFY THIS FILE! It is updated automatically */
1790     diff -Nur e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/common/foot.tmpl/10Setup e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/common/foot.tmpl/10Setup
1791     --- e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/common/foot.tmpl/10Setup 2013-01-31 16:31:37.000000000 -0500
1792     +++ e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/common/foot.tmpl/10Setup 1969-12-31 19:00:00.000000000 -0500
1793     @@ -1,20 +0,0 @@
1794     -\{
1795     - # we can snag lexical $fi_filename from Text::Template to find out how
1796     - # we were called
1797     - $NO_FRAMES = ($fi_filename =~ /noframes_.*\.tmpl$/) ? 1 : 0;
1798     - $OUT;
1799     -\}
1800     -<HR class="sme-copyrightbar">
1801     -<FONT class="sme-copyright">
1802     - \{
1803     - use esmith::ConfigDB;
1804     - my $db = esmith::ConfigDB->open();
1805     -
1806     - my $sysconfig = $db->get("sysconfig");
1807     -
1808     - my $lang = (split(/,/, $ENV\{"HTTP_ACCEPT_LANGUAGE"\}))[0];
1809     - # convert xx_XX lang format to xx-xx
1810     - ($lang = lc($lang)) =~ s/_/-/;
1811     -
1812     - my $releaseVersion = $sysconfig->prop("ReleaseVersion");
1813     -
1814     diff -Nur e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/common/foot.tmpl/25Copyright e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/common/foot.tmpl/25Copyright
1815     --- e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/common/foot.tmpl/25Copyright 2006-11-02 11:38:41.000000000 -0500
1816     +++ e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/common/foot.tmpl/25Copyright 1969-12-31 19:00:00.000000000 -0500
1817     @@ -1,10 +0,0 @@
1818     - $OUT .= "Copyright 1999-2006 Mitel Corporation<BR>";
1819     -
1820     - use Locale::gettext;
1821     - use esmith::I18N;
1822     - my $i18n = esmith::I18N->new();
1823     - $i18n->setLocale('foot.tmpl', $i18n->preferredLanguage());
1824     - $OUT .= gettext("All rights reserved.");
1825     - $OUT;
1826     - \}
1827     -
1828     diff -Nur e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/common/foot.tmpl/90Finish e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/common/foot.tmpl/90Finish
1829     --- e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/common/foot.tmpl/90Finish 2006-11-02 11:38:41.000000000 -0500
1830     +++ e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/common/foot.tmpl/90Finish 1969-12-31 19:00:00.000000000 -0500
1831     @@ -1,10 +0,0 @@
1832     -</FONT>
1833     -</BODY>
1834     -\{
1835     - if ($NO_FRAMES)
1836     - \{
1837     - $OUT .= "</NOFRAMES>\n";
1838     - \}
1839     - $OUT;
1840     -\}
1841     -</HTML>
1842     diff -Nur e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/common/head.tmpl/10Setup e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/common/head.tmpl/10Setup
1843     --- e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/common/head.tmpl/10Setup 2006-11-02 11:38:41.000000000 -0500
1844     +++ e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/common/head.tmpl/10Setup 1969-12-31 19:00:00.000000000 -0500
1845     @@ -1,12 +0,0 @@
1846     -\{
1847     - # we can snag lexical $fi_filename from Text::Template to find out how
1848     - # we were called
1849     - $NO_FRAMES = ($fi_filename =~ /noframes_.*\.tmpl$/) ? 1 : 0;
1850     - $USER_PASSWORD = ($fi_filename =~ /userpassword_.*\.tmpl$/) ? 1 : 0;
1851     - $OUT;
1852     -\}
1853     -<!DOCTYPE html
1854     - PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
1855     - "http://www.w3.org/TR/html4/loose.dtd">
1856     -<html>
1857     -<head>
1858     diff -Nur e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/common/head.tmpl/30FrameSetup00 e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/common/head.tmpl/30FrameSetup00
1859     --- e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/common/head.tmpl/30FrameSetup00 2007-01-26 20:51:30.000000000 -0500
1860     +++ e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/common/head.tmpl/30FrameSetup00 1969-12-31 19:00:00.000000000 -0500
1861     @@ -1,15 +0,0 @@
1862     -\{
1863     - unless ($NO_FRAMES)
1864     - \{
1865     - $OUT .= <<EOF;
1866     - <link rev="made" href="mailto:bugs%40e-smith.com">
1867     - <meta name="copyright" content="(head.tmpl)Copyright 2003-2004 Mitel Corporation">
1868     - <link rel="stylesheet" type="text/css" href="/server-common/css/sme_core.css">
1869     - <style type="text/css">
1870     - \@import url("/server-common/css/sme_main.css");
1871     - </style>
1872     -EOF
1873     - \}
1874     - $OUT;
1875     -\}
1876     -</head>
1877     diff -Nur e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/common/head.tmpl/30FrameSetup01 e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/common/head.tmpl/30FrameSetup01
1878     --- e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/common/head.tmpl/30FrameSetup01 2014-03-23 22:15:04.000000000 -0400
1879     +++ e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/common/head.tmpl/30FrameSetup01 1969-12-31 19:00:00.000000000 -0500
1880     @@ -1,45 +0,0 @@
1881     -\{
1882     - if ($NO_FRAMES)
1883     - \{
1884     - $OUT .= <<EOF;
1885     -<frameset rows="68,*" cols="*" frameborder="NO" border="0" framespacing="0">
1886     - <frame src="/server-manager/header.htm" name="header" scrolling="NO" noresize >
1887     - <frameset rows="*" cols="192,*" framespacing="0" frameborder="NO" border="0">
1888     - <frame src="/server-manager/navigation" name="navigation" scrolling="auto" noresize>
1889     - <frame src="/server-manager/initial.cgi" name="main">
1890     - </frameset>
1891     -</frameset>
1892     -
1893     -</FRAMESET>
1894     -
1895     -<NOFRAMES>
1896     -EOF
1897     - \}
1898     - else
1899     - \{
1900     - my $panel = "Server manager";
1901     - my $img = "smeserver_logo.jpg";
1902     -
1903     - $OUT .= <<EOF;
1904     -<body>
1905     -EOF
1906     - \}
1907     -
1908     - if( $ENV\{REQUEST_URI\} =~ m/(server-manager)/) \{
1909     -
1910     - $DB = esmith::ConfigDB->open();
1911     - $OUT .= qq(<div class="sme-error"><h5>
1912     - Warning: you have not yet changed the default system password.</h5></div>)
1913     - unless ($DB->get('PasswordSet')->value eq "yes");
1914     -
1915     - $OUT .= qq(<div class="sme-error"><h5>
1916     - Warning: a reconfigure and reboot is required before proceeding! Failure to do so now
1917     - may leave your system in an unknown state!</h5></div>)
1918     - if ($DB->get('bootstrap-console') and $DB->get('bootstrap-console')->prop('Run') eq 'yes') ||
1919     - ($DB->get('UnsavedChanges') and $DB->get('UnsavedChanges')->value eq 'yes');
1920     -
1921     - $OUT;
1922     -
1923     - \}
1924     -
1925     -\}
1926     diff -Nur e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/panels/manager/html/header.htm/10Head e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/panels/manager/html/header.htm/10Head
1927     --- e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/panels/manager/html/header.htm/10Head 2008-10-07 13:36:17.000000000 -0400
1928     +++ e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/panels/manager/html/header.htm/10Head 1969-12-31 19:00:00.000000000 -0500
1929     @@ -1,10 +0,0 @@
1930     -<html>
1931     -<head>
1932     -<title>Untitled Document</title>
1933     -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
1934     -<link rel="stylesheet" type="text/css" href="/server-common/css/sme_core.css">
1935     -<link rel="stylesheet" type="text/css" href="/server-common/css/sme_panel_menu.css">
1936     -<style type="text/css">
1937     -@import url("/server-common/css/sme_header.css");
1938     -</style>
1939     -</head>
1940     diff -Nur e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/panels/manager/html/header.htm/20Body e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/panels/manager/html/header.htm/20Body
1941     --- e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/panels/manager/html/header.htm/20Body 2002-12-10 09:54:09.000000000 -0500
1942     +++ e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/panels/manager/html/header.htm/20Body 1969-12-31 19:00:00.000000000 -0500
1943     @@ -1 +0,0 @@
1944     -<body class=header leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
1945     diff -Nur e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/panels/manager/html/header.htm/50HilightBar e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/panels/manager/html/header.htm/50HilightBar
1946     --- e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/panels/manager/html/header.htm/50HilightBar 2002-12-10 09:54:09.000000000 -0500
1947     +++ e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/panels/manager/html/header.htm/50HilightBar 1969-12-31 19:00:00.000000000 -0500
1948     @@ -1,7 +0,0 @@
1949     -<table width="100%" border="0" cellspacing="0" cellpadding="0">
1950     - <tr>
1951     - <td class="hilightbar">
1952     - <img src="/server-common/spacer.gif" height="6" width="1">
1953     - </td>
1954     - </tr>
1955     -</table>
1956     diff -Nur e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/panels/manager/html/header.htm/60InfoBar e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/panels/manager/html/header.htm/60InfoBar
1957     --- e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/panels/manager/html/header.htm/60InfoBar 2008-10-07 13:36:17.000000000 -0400
1958     +++ e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/panels/manager/html/header.htm/60InfoBar 1969-12-31 19:00:00.000000000 -0500
1959     @@ -1,15 +0,0 @@
1960     -<table width="100%" border="0" cellspacing="0" cellpadding="0">
1961     - <tr>
1962     - <td align=left nowrap class="infobar">
1963     - <img src="/server-common/spacer.gif" height="14" width="1" align="left">
1964     - <b>admin@{ "${SystemName}.${DomainName}" }</b>
1965     - &nbsp;&nbsp;&nbsp;
1966     - <!-- <a href="#">Logout</a> --></td>
1967     - <td align=right nowrap class="infobar">
1968     - <!-- <a class="update" target="main" href="/server-manager/cgi-bin/blades">Update Available</a>|-->
1969     - <a target="main" href="/server-manager/cgi-bin/online-manual">&nbsp;&nbsp;<b> ? </b>&nbsp;&nbsp;</a>&nbsp;</td>
1970     - <td nowrap class="infobar">
1971     - <a target="_parent" href="/server-common/cgi-bin/logout"><b>Logout</b></a>&nbsp;</td>
1972     - </tr>
1973     -</table>
1974     -
1975     diff -Nur e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/panels/manager/html/header.htm/99End e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/panels/manager/html/header.htm/99End
1976     --- e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/panels/manager/html/header.htm/99End 2002-11-22 11:34:50.000000000 -0500
1977     +++ e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/panels/manager/html/header.htm/99End 1969-12-31 19:00:00.000000000 -0500
1978     @@ -1,2 +0,0 @@
1979     -</body>
1980     -</html>
1981     diff -Nur e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/panels/manager/html/header.htm/template-begin e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/panels/manager/html/header.htm/template-begin
1982     --- e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/panels/manager/html/header.htm/template-begin 2002-11-22 11:34:50.000000000 -0500
1983     +++ e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/panels/manager/html/header.htm/template-begin 1969-12-31 19:00:00.000000000 -0500
1984     @@ -1,10 +0,0 @@
1985     -<!--
1986     -#------------------------------------------------------------
1987     -# DO NOT MODIFY THIS FILE! It is updated automatically by the
1988     -# SME Server software. Instead, modify the source template in
1989     -# an /etc/e-smith/templates-custom directory. For more
1990     -# information, see http://www.e-smith.org/custom/
1991     -#
1992     -# copyright (C) 2002 Mitel Networks Corporation
1993     -#------------------------------------------------------------
1994     --->
1995     diff -Nur e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/httpd/admin-conf/httpd.conf/01localAccessString e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/httpd/admin-conf/httpd.conf/01localAccessString
1996     --- e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/httpd/admin-conf/httpd.conf/01localAccessString 2006-11-02 11:38:41.000000000 -0500
1997     +++ e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/httpd/admin-conf/httpd.conf/01localAccessString 1969-12-31 19:00:00.000000000 -0500
1998     @@ -1,22 +0,0 @@
1999     -{
2000     - #---------------------------------------------------------------------
2001     - # Grab ValidFrom access list property of httpd-admin
2002     - # SSL enabled virtual hosts should only allow access from IP's in
2003     - # this list, as well as local networks.
2004     - #---------------------------------------------------------------------
2005     - use esmith::NetworksDB;
2006     -
2007     - my $ndb = esmith::NetworksDB->open_ro();
2008     -
2009     - my @localAccess = $ndb->local_access_spec();
2010     - my $validFrom = ${'httpd-admin'}{'ValidFrom'};
2011     - if ($validFrom)
2012     - {
2013     - push @localAccess, split /,/, $validFrom;
2014     - }
2015     - $localAccess .= join ' ',
2016     - map { s:/255.255.255.255::; $_ }
2017     - @localAccess;
2018     -
2019     - "";
2020     -}
2021     diff -Nur e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/httpd/admin-conf/httpd.conf/20Manager e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/httpd/admin-conf/httpd.conf/20Manager
2022     --- e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/httpd/admin-conf/httpd.conf/20Manager 2014-03-23 22:15:04.000000000 -0400
2023     +++ e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/httpd/admin-conf/httpd.conf/20Manager 1969-12-31 19:00:00.000000000 -0500
2024     @@ -1,163 +0,0 @@
2025     -{
2026     - $OUT .= "Listen 127.0.0.1:${'httpd-admin'}{TCPPort}\n";
2027     -
2028     - $OUT .= <<HERE;
2029     -
2030     -HostnameLookups off
2031     -
2032     -ServerAdmin admin@$DomainName
2033     -ServerRoot /etc/httpd
2034     -ServerTokens ProductOnly
2035     -
2036     -User admin
2037     -Group admin
2038     -
2039     -ErrorLog /var/log/httpd/admin_error_log
2040     -LogLevel warn
2041     -HERE
2042     -
2043     -foreach (qw(
2044     - env
2045     - log_config
2046     - mime
2047     - negotiation
2048     - status
2049     - info
2050     - include
2051     - autoindex
2052     - dir
2053     - cgi
2054     - asis
2055     - imap
2056     - imagemap
2057     - actions
2058     - userdir
2059     - proxy
2060     - proxy_http
2061     - alias
2062     - rewrite
2063     - access
2064     - authz_host
2065     - authz_user
2066     - auth
2067     - auth_anon
2068     - auth_digest
2069     - expires
2070     - headers
2071     - usertrack
2072     - setenvif
2073     - ))
2074     -{
2075     - next unless -f "/usr/lib/httpd/modules/mod_${_}.so" ||
2076     - -f "/usr/lib64/httpd/modules/mod_${_}.so";
2077     - $OUT .= "LoadModule ${_}_module modules/mod_${_}.so\n";
2078     -}
2079     -
2080     -$OUT .= <<HERE;
2081     -PidFile /var/run/httpd-admin.pid
2082     -ScoreBoardFile /var/run/httpd-admin.scoreboard
2083     -UseCanonicalName off
2084     -LogFormat "%h %l %u %t \\"%r\\" %>s %b" common
2085     -LogFormat "%{User-agent}i" agent
2086     -
2087     -CustomLog /var/log/httpd/admin_access_log common
2088     -
2089     -KeepAlive On
2090     -MaxKeepAliveRequests 100
2091     -KeepAliveTimeout 15
2092     -
2093     -MaxClients 150
2094     -MaxRequestsPerChild 100
2095     -
2096     -ServerName www.$DomainName
2097     -
2098     -MinSpareServers 1
2099     -MaxSpareServers 5
2100     -StartServers 1
2101     -Timeout 300
2102     -
2103     -DefaultIcon /icons/unknown.gif
2104     -DirectoryIndex index.htm index.html index.shtml index.cgi
2105     -IndexOptions FancyIndexing VersionSort NameWidth=*
2106     -IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
2107     -AccessFileName .htaccess
2108     -
2109     -AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
2110     -AddIconByType (TXT,/icons/text.gif) text/*
2111     -AddIconByType (IMG,/icons/image2.gif) image/*
2112     -AddIconByType (SND,/icons/sound2.gif) audio/*
2113     -AddIconByType (VID,/icons/movie.gif) video/*
2114     -DefaultType text/plain
2115     -TypesConfig /etc/mime.types
2116     -
2117     -AddEncoding x-compress Z
2118     -AddEncoding x-gzip gz
2119     -
2120     -AddIcon /icons/binary.gif .bin .exe
2121     -AddIcon /icons/binhex.gif .hqx
2122     -AddIcon /icons/tar.gif .tar
2123     -AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
2124     -AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
2125     -AddIcon /icons/a.gif .ps .ai .eps
2126     -AddIcon /icons/layout.gif .html .shtml .htm .pdf
2127     -AddIcon /icons/text.gif .txt
2128     -AddIcon /icons/c.gif .c
2129     -AddIcon /icons/p.gif .pl .py
2130     -AddIcon /icons/f.gif .for
2131     -AddIcon /icons/dvi.gif .dvi
2132     -AddIcon /icons/uuencoded.gif .uu
2133     -AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
2134     -AddIcon /icons/tex.gif .tex
2135     -AddIcon /icons/bomb.gif core
2136     -
2137     -AddIcon /icons/back.gif ..
2138     -AddIcon /icons/hand.right.gif README
2139     -AddIcon /icons/folder.gif ^^DIRECTORY^^
2140     -AddIcon /icons/blank.gif ^^BLANKICON^^
2141     -
2142     -AddLanguage en .en
2143     -AddLanguage fr .fr
2144     -AddLanguage de .de
2145     -AddLanguage da .da
2146     -AddLanguage el .el
2147     -AddLanguage it .it
2148     -
2149     -LanguagePriority en fr de
2150     -
2151     -AddType text/html .shtml
2152     -AddType application/x-pkcs7-crl .crl
2153     -
2154     -AddType application/x-x509-ca-cert .crt
2155     -
2156     -BrowserMatch "Mozilla/2" nokeepalive
2157     -BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
2158     -BrowserMatch "RealPlayer 4\.0" force-response-1.0
2159     -BrowserMatch "Java/1\.0" force-response-1.0
2160     -BrowserMatch "JDK/1\.0" force-response-1.0
2161     -
2162     -AddHandler cgi-script .cgi
2163     -AddHandler server-parsed .shtml
2164     -AddHandler imap-file map
2165     -
2166     -DocumentRoot /etc/e-smith/web/panels/manager/html
2167     -
2168     -ScriptAlias /server-common/cgi-bin/ /etc/e-smith/web/common/cgi-bin/
2169     -Alias /server-common/ /etc/e-smith/web/common/
2170     -ScriptAlias /server-manager/noframes /etc/e-smith/web/panels/manager/cgi-bin/noframes
2171     -ScriptAlias /server-manager/support /etc/e-smith/web/panels/manager/cgi-bin/support
2172     -ScriptAlias /server-manager/navigation /etc/e-smith/web/panels/manager/cgi-bin/navigation
2173     -
2174     -# e-smith manager panel
2175     -ScriptAlias /server-manager/cgi-bin /etc/e-smith/web/panels/manager/cgi-bin
2176     -Alias /server-manager /etc/e-smith/web/panels/manager/html
2177     -
2178     -# e-smith password panel
2179     -ScriptAlias /user-password /etc/e-smith/web/panels/password/cgi-bin/userpassword
2180     -
2181     -Alias /server-resources/ /home/e-smith/files/server-resources/
2182     -
2183     -Alias /icons/ /var/www/icons/
2184     -
2185     -HERE
2186     -}
2187     -
2188     diff -Nur e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/httpd/admin-conf/httpd.conf/20ManagerAuthTKT e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/httpd/admin-conf/httpd.conf/20ManagerAuthTKT
2189     --- e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/httpd/admin-conf/httpd.conf/20ManagerAuthTKT 2007-01-26 20:51:30.000000000 -0500
2190     +++ e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/httpd/admin-conf/httpd.conf/20ManagerAuthTKT 1969-12-31 19:00:00.000000000 -0500
2191     @@ -1,6 +0,0 @@
2192     -{
2193     - $OUT .= "LoadModule auth_tkt_module modules/mod_auth_tkt.so\n";
2194     -
2195     - my $secret = ${'httpd-admin'}{TKTAuthSecret} || "34322500-7330-4400-423A-3A00434F5245";
2196     - $OUT .= "TKTAuthSecret \"$secret\"\n";
2197     -}
2198     diff -Nur e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/httpd/admin-conf/httpd.conf/85DefaultAccess e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/httpd/admin-conf/httpd.conf/85DefaultAccess
2199     --- e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/httpd/admin-conf/httpd.conf/85DefaultAccess 2006-11-02 11:38:41.000000000 -0500
2200     +++ e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/httpd/admin-conf/httpd.conf/85DefaultAccess 1969-12-31 19:00:00.000000000 -0500
2201     @@ -1,12 +0,0 @@
2202     -
2203     -# First, we configure the "default" to be a very restrictive set of
2204     -# permissions.
2205     -
2206     -<Directory />
2207     - Options None
2208     - AllowOverride None
2209     - order deny,allow
2210     - deny from all
2211     - allow from none
2212     -</Directory>
2213     -
2214     diff -Nur e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/httpd/admin-conf/httpd.conf/85ServerResourcesAccess e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/httpd/admin-conf/httpd.conf/85ServerResourcesAccess
2215     --- e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/httpd/admin-conf/httpd.conf/85ServerResourcesAccess 2006-11-02 11:38:41.000000000 -0500
2216     +++ e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/httpd/admin-conf/httpd.conf/85ServerResourcesAccess 1969-12-31 19:00:00.000000000 -0500
2217     @@ -1,10 +0,0 @@
2218     -# Server resources access configuration
2219     -
2220     -<Directory /home/e-smith/files/server-resources>
2221     - Options +Indexes
2222     - order deny,allow
2223     - deny from all
2224     -{
2225     - $OUT .= " allow from $localAccess\n";
2226     -}
2227     -</Directory>
2228     diff -Nur e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/httpd/admin-conf/httpd.conf/90e-smithAccess15brand e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/httpd/admin-conf/httpd.conf/90e-smithAccess15brand
2229     --- e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/httpd/admin-conf/httpd.conf/90e-smithAccess15brand 2006-11-02 11:38:41.000000000 -0500
2230     +++ e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/httpd/admin-conf/httpd.conf/90e-smithAccess15brand 1969-12-31 19:00:00.000000000 -0500
2231     @@ -1,12 +0,0 @@
2232     -#------------------------------------------------------------
2233     -# e-smith files shared by manager and other control packages
2234     -#------------------------------------------------------------
2235     -
2236     -<Directory "/home/e-smith/web/common">
2237     - Options Indexes Includes
2238     - AllowOverride None
2239     - order deny,allow
2240     - deny from all
2241     - allow from all
2242     -</Directory>
2243     -
2244     diff -Nur e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/httpd/admin-conf/httpd.conf/90e-smithAccess15common e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/httpd/admin-conf/httpd.conf/90e-smithAccess15common
2245     --- e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/httpd/admin-conf/httpd.conf/90e-smithAccess15common 2016-07-19 09:03:46.683000000 -0400
2246     +++ e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/httpd/admin-conf/httpd.conf/90e-smithAccess15common 1969-12-31 19:00:00.000000000 -0500
2247     @@ -1,40 +0,0 @@
2248     -#------------------------------------------------------------
2249     -# e-smith files shared by manager and other control packages
2250     -#------------------------------------------------------------
2251     -
2252     -<Directory "/etc/e-smith/web/common/cgi-bin">
2253     - AllowOverride None
2254     - Options ExecCGI
2255     - order deny,allow
2256     - deny from all
2257     - allow from { $localAccess }
2258     - Satisfy all
2259     -</Directory>
2260     -
2261     -<Directory "/etc/e-smith/web/common">
2262     - Options Includes
2263     - AllowOverride None
2264     - order deny,allow
2265     - deny from all
2266     - allow from all
2267     - <FilesMatch ".*\.tmpl">
2268     - Order allow,deny
2269     - Deny from all
2270     - </FilesMatch>
2271     -</Directory>
2272     -
2273     -<Directory "/etc/e-smith/web/panels/manager/common">
2274     - Options Includes FollowSymLinks
2275     - AllowOverride None
2276     - order deny,allow
2277     - deny from all
2278     - allow from all
2279     - AuthType basic
2280     -
2281     - TKTAuthLoginURL /server-common/cgi-bin/login
2282     - TKTAuthTimeout 5m
2283     - TKTAuthCookieExpires 5m
2284     - require valid-user
2285     - Satisfy all
2286     -</Directory>
2287     -
2288     diff -Nur e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/httpd/admin-conf/httpd.conf/90e-smithAccess20manager e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/httpd/admin-conf/httpd.conf/90e-smithAccess20manager
2289     --- e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/httpd/admin-conf/httpd.conf/90e-smithAccess20manager 2016-07-19 09:03:46.683000000 -0400
2290     +++ e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/httpd/admin-conf/httpd.conf/90e-smithAccess20manager 1969-12-31 19:00:00.000000000 -0500
2291     @@ -1,34 +0,0 @@
2292     -
2293     -#------------------------------------------------------------
2294     -# e-smith-manager panel
2295     -#------------------------------------------------------------
2296     -
2297     -<Directory "/etc/e-smith/web/panels/manager/html" >
2298     - Options Includes FollowSymLinks ExecCGI
2299     - AllowOverride None
2300     - order deny,allow
2301     - deny from all
2302     - allow from { $localAccess }
2303     - AuthType Basic
2304     - TKTAuthLoginURL /server-common/cgi-bin/login
2305     - TKTAuthTimeout 5m
2306     - TKTAuthCookieExpires 5m
2307     -
2308     - require user admin
2309     - Satisfy all
2310     -</Directory>
2311     -
2312     -<Directory "/etc/e-smith/web/panels/manager/cgi-bin">
2313     - Options Includes FollowSymLinks ExecCGI
2314     - AllowOverride None
2315     - order deny,allow
2316     - deny from all
2317     - allow from { $localAccess }
2318     - AuthType Basic
2319     - TKTAuthLoginURL /server-common/cgi-bin/login
2320     - TKTAuthTimeout 5m
2321     - TKTAuthCookieExpires 5m
2322     -
2323     - require user admin
2324     - Satisfy all
2325     -</Directory>
2326     diff -Nur e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/httpd/admin-conf/httpd.conf/90e-smithAccess20password e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/httpd/admin-conf/httpd.conf/90e-smithAccess20password
2327     --- e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/httpd/admin-conf/httpd.conf/90e-smithAccess20password 2014-03-23 22:15:04.000000000 -0400
2328     +++ e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/httpd/admin-conf/httpd.conf/90e-smithAccess20password 1969-12-31 19:00:00.000000000 -0500
2329     @@ -1,16 +0,0 @@
2330     -
2331     -#------------------------------------------------------------
2332     -# e-smith-password panel
2333     -#------------------------------------------------------------
2334     -<Directory "/etc/e-smith/web/panels/password/html">
2335     - order deny,allow
2336     - deny from all
2337     - allow from { $localAccess }
2338     -</Directory>
2339     -
2340     -<Directory "/etc/e-smith/web/panels/password/cgi-bin">
2341     - order deny,allow
2342     - deny from all
2343     - allow from { $localAccess }
2344     -</Directory>
2345     -
2346     diff -Nur e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/27ManagerProxyPass e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/27ManagerProxyPass
2347     --- e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/27ManagerProxyPass 2016-07-19 09:03:46.681000000 -0400
2348     +++ e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/27ManagerProxyPass 1969-12-31 19:00:00.000000000 -0500
2349     @@ -1,40 +0,0 @@
2350     -{
2351     - # vim: ft=perl:
2352     -
2353     - $haveSSL = (exists ${modSSL}{status} and ${modSSL}{status} eq "enabled") ? 'yes' : 'no';
2354     - $plainTextAccess = ${'httpd-admin'}{PermitPlainTextAccess} || 'no';
2355     - $plainPort = ${'httpd-e-smith'}{TCPPort} || '80';
2356     - $sslPort = ${modSSL}{TCPPort} || '443';
2357     -
2358     - $OUT = '';
2359     - foreach $place ('server-manager','server-common','user-password')
2360     - {
2361     - if (($port eq $plainPort) && ($haveSSL eq 'yes') && ($plainTextAccess ne 'yes'))
2362     - {
2363     - $OUT .= ' RewriteCond %{REMOTE_ADDR} !^127\.0\.0\.1$' . "\n";
2364     - $OUT .= " RewriteRule ^/$place(/.*|\$) https://%{HTTP_HOST}/$place\$1 [L,R]\n";
2365     - }
2366     - if ($port eq $sslPort)
2367     - {
2368     - # mod_auth_tkt needs to know the protocol to write 307 redirection
2369     - $OUT .= " RequestHeader set X-Forwarded-Proto \"https\"\n";
2370     - }
2371     - $OUT .= " ProxyPass /$place http://127.0.0.1:${'httpd-admin'}{TCPPort}/$place\n";
2372     - $OUT .= " ProxyPassReverse /$place http://127.0.0.1:${'httpd-admin'}{TCPPort}/$place\n";
2373     -
2374     - $OUT .= " <Location /$place>\n";
2375     - $OUT .= " order deny,allow\n";
2376     - $OUT .= " deny from all\n";
2377     - if ($port eq $plainPort)
2378     - {
2379     - $OUT .= ' allow from 127.0.0.1' . "\n";
2380     - }
2381     - elsif (($haveSSL eq 'yes') && (($port eq $sslPort) || ($plainTextAccess ne 'yes')))
2382     - {
2383     - $OUT .= " allow from $localAccess $externalSSLAccess\n";
2384     - } else {
2385     - $OUT .= " allow from $localAccess\n";
2386     - }
2387     - $OUT .= " </Location>\n";
2388     - }
2389     -}
2390     diff -Nur e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/services/20http-admin e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/services/20http-admin
2391     --- e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/services/20http-admin 2007-01-26 20:51:30.000000000 -0500
2392     +++ e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/services/20http-admin 1969-12-31 19:00:00.000000000 -0500
2393     @@ -1 +0,0 @@
2394     -http-admin { ${'httpd-admin'}{TCPPort} }/tcp # admin HTTP server
2395     diff -Nur e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/web/common/cgi-bin/login e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/web/common/cgi-bin/login
2396     --- e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/web/common/cgi-bin/login 2016-07-19 09:03:46.679000000 -0400
2397     +++ e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/web/common/cgi-bin/login 1969-12-31 19:00:00.000000000 -0500
2398     @@ -1,352 +0,0 @@
2399     -#!/usr/bin/perl -w
2400     -#
2401     -# mod_auth_tkt sample login script - runs as a vanilla CGI, under
2402     -# mod_perl 1 via Apache::Registry, and under mod_perl2 via
2403     -# ModPerl::Registry.
2404     -#
2405     -# This script can run in a few different modes, depending on how it is
2406     -# named. Copy the script to a cgi-bin area, and create appropriately
2407     -# named symlinks to access the different behaviours.
2408     -# Modes:
2409     -# - login mode (default): request a username and password and test via
2410     -# $validate_sub - if successful, issue an auth ticket and redirect to
2411     -# the back location
2412     -# - guest mode ('guest.cgi'): automatically issues an auth ticket a
2413     -# special username (as defined in $guest_sub, default 'guest'), and
2414     -# redirect to the back location (now largely obsolete - use
2415     -# TKTAuthGuestLogin instead)
2416     -# - autologin mode ('autologin.cgi'): [typically used to allow tickets
2417     -# across multiple domains] if no valid auth ticket exists, redirect
2418     -# to the login (or guest) version; otherwise automatically redirect
2419     -# to the back location passing the current auth ticket as a GET
2420     -# argument. mod_auth_tkt (>= 1.3.8) will turn this new ticket into
2421     -# an auth cookie for the new domain if none already exists.
2422     -#
2423     -
2424     -use File::Basename;
2425     -use lib dirname($ENV{SCRIPT_FILENAME});
2426     -use Apache::AuthTkt 0.03;
2427     -use CGI qw(:standard);
2428     -use CGI::Cookie;
2429     -use URI::Escape;
2430     -use URI;
2431     -use strict;
2432     -
2433     -# ------------------------------------------------------------------------
2434     -# Configure this section to taste
2435     -
2436     -# CSS stylesheet to use (optional)
2437     -my $STYLESHEET = '/server-common/css/tkt.css';
2438     -# Page title (optional)
2439     -my $TITLE = 'SME Server manager';
2440     -# For autologin, mode to fallback to if autologin fails ('login' or 'guest')
2441     -my $AUTOLOGIN_FALLBACK_MODE = 'login';
2442     -# Boolean flag, whether to fallback to HTTP_REFERER for back link
2443     -my $BACK_REFERER = 0;
2444     -
2445     -# For login mode (if used), setup username/password validation
2446     -# (modify or point $validate_sub somewhere appropriate).
2447     -# The validation routine should return a true value (e.g. 1) if the
2448     -# given username/password combination is valid, and a false value
2449     -# (e.g. 0) otherwise.
2450     -# This version uses Apache::Htpasswd and a standard htpasswd file.
2451     -sub validate
2452     -{
2453     - my ($username, $password) = @_;
2454     - unless (open(PWAUTH, "|/usr/bin/pwauth"))
2455     - {
2456     - warn "Could not open pipe to pwauth: $!";
2457     - return 0;
2458     - }
2459     - print PWAUTH "$username\n";
2460     - print PWAUTH "$password\n";
2461     - return close(PWAUTH) ? 1 : 0;
2462     -#require Apache::Htpasswd;
2463     -# my $ht = Apache::Htpasswd->new({
2464     -# passwdFile => '/etc/httpd/conf/htpasswd', ReadOnly => 1 });
2465     -# return $ht->htCheckPassword($username, $password);
2466     -}
2467     -my $validate_sub = \&validate;
2468     -
2469     -# For guest mode (if used), setup guest username
2470     -# Could use a counter or a random suffix etc.
2471     -sub guest_user
2472     -{
2473     - return 'guest';
2474     -}
2475     -my $guest_sub = \&guest_user;
2476     -
2477     -# ------------------------------------------------------------------------
2478     -# Main code begins
2479     -my $debug = 0;
2480     -my $at = Apache::AuthTkt->new(conf => "/etc/e-smith/web/common/cgi-bin/AuthTKT.cfg");
2481     -my $q = CGI->new;
2482     -my $x_f = $q->http('X-Forwarded-Host');
2483     -#warn "X-Forwarded-Host is $x_f\n" if $x_f;
2484     -#warn "HTTP_HOST is $ENV{HTTP_HOST}\n" if $ENV{HTTP_HOST};
2485     -my ($server_name, $server_port) = split /:/, $q->http('X-Forwarded-Host') || $ENV{HTTP_HOST};
2486     -$server_name ||= $ENV{SERVER_NAME} if $ENV{SERVER_NAME};
2487     -$server_port ||= $ENV{SERVER_PORT} if $ENV{SERVER_PORT};
2488     -#my $AUTH_DOMAIN = $at->domain || $server_name;
2489     -my $AUTH_DOMAIN = $server_name;
2490     -#warn "AUTH_DOMAIN is $AUTH_DOMAIN\n";
2491     -#warn "AuthTkt->domain was set\n" if $at->domain;
2492     -my @auth_domain = $AUTH_DOMAIN && $AUTH_DOMAIN =~ /\./ ? ( -domain => $AUTH_DOMAIN ) : ();
2493     -my $ticket = $q->cookie($at->cookie_name);
2494     -my $probe = $q->cookie('auth_probe');
2495     -my $back = $q->cookie($at->back_cookie_name) if $at->back_cookie_name;
2496     -#warn "back from cookie is $back\n" if $back;
2497     -my $have_cookies = $ticket || $probe || $back || '';
2498     -$back ||= $q->param($at->back_arg_name) if $at->back_arg_name;
2499     -#warn "back from cgi param is $back\n" if $back;
2500     -$back ||= $ENV{HTTP_REFERER} if $ENV{HTTP_REFERER} && $BACK_REFERER;
2501     -$back = uri_unescape($back) if $back && $back =~ m/^https?%3A%2F%2F/i;
2502     -$back =~ s/^http:/https:/ if $server_name ne 'localhost';
2503     -#warn "back is $back\n";
2504     -if ($back && $back =~ m!^/!) {
2505     - my $hostname = $server_name;
2506     - my $port = $server_port;
2507     - $hostname .= ':' . $port if $port && $port != 80 && $port != 443;
2508     - $back = sprintf "http%s://%s%s", ($port == 443 ? 's' : ''), $hostname, $back;
2509     -#warn "back is $back\n";
2510     -} elsif ($back && $back !~ m/^http/i) {
2511     - $back = 'http://' . $back;
2512     -#warn "back is $back\n";
2513     -}
2514     -
2515     -#warn "back is $back\n";
2516     -my $back_esc = uri_escape($back) if $back;
2517     -my $back_html = escapeHTML($back) if $back;
2518     -
2519     -my ($fatal, @errors);
2520     -my ($mode, $location, $suffix) = fileparse($ENV{SCRIPT_NAME}, '\.cgi', '\.pl');
2521     -$mode = 'login' unless $mode eq 'guest' || $mode eq 'autologin';
2522     -my $self_redirect = $q->param('redirect') || 0;
2523     -my $username = lc($q->param('username'));
2524     -my $password = $q->param('password');
2525     -my $timeout = $q->param('timeout');
2526     -my $unauth = $q->param('unauth');
2527     -my $ip_addr = $at->ignore_ip ? undef : $ENV{REMOTE_ADDR};
2528     -my $redirected = 0;
2529     -
2530     -# ------------------------------------------------------------------------
2531     -# Set the auth cookie and redirect to $back
2532     -my $set_cookie_redirect = sub {
2533     - my ($tkt, $back) = @_;
2534     - my @expires = $at->cookie_expires ?
2535     - ( -expires => sprintf("+%ss", $at->cookie_expires) ) :
2536     - ();
2537     - my $cookie = CGI::Cookie->new(
2538     - -name => $at->cookie_name,
2539     - -value => $tkt,
2540     - -path => '/',
2541     - -secure => $at->require_ssl,
2542     - @expires,
2543     - @auth_domain,
2544     - );
2545     -
2546     - # If no $back, just set the auth cookie and hope for the best
2547     - if (! $back) {
2548     - print $q->header( -cookie => $cookie );
2549     - print $q->start_html, $q->p("Login successful"), $q->end_html;
2550     - return 0;
2551     - }
2552     -
2553     - # Set (local) cookie, and redirect to $back
2554     - print $q->header( -cookie => $cookie );
2555     -#return 0 if $debug;
2556     -
2557     - my $b = URI->new($back);
2558     - # If $back domain doesn't match $AUTH_DOMAIN, pass ticket via back GET param
2559     - my $domain = $AUTH_DOMAIN || $server_name;
2560     - if ($b->host !~ m/\b$domain$/i) {
2561     - $back .= $b->query ? '&' : '?';
2562     - $back .= $at->cookie_name . '=' . $tkt;
2563     - }
2564     -
2565     - # For some reason, using a Location: header doesn't seem to then see the
2566     - # cookie, but a meta refresh one does - weird
2567     - print $q->start_html(
2568     - -head => meta({ -http_equiv => 'refresh', -content => "0;URL=$back" }),
2569     - ),
2570     - $q->end_html;
2571     - return 1;
2572     -};
2573     -
2574     -# ------------------------------------------------------------------------
2575     -# Actual processing
2576     -
2577     -# If no cookies found, first check whether cookies are supported
2578     -if (! $have_cookies) {
2579     - # If this is a self redirect warn the user about cookie support
2580     - if ($self_redirect) {
2581     - $fatal = "Your browser does not appear to support cookies or has cookie support disabled.<br />\nThis site requires cookies - please turn cookie support on or try again using a different browser.";
2582     - }
2583     - # If no cookies and not a redirect, redirect to self to test cookies
2584     - else {
2585     - my $extra = '';
2586     - $extra .= 'timeout=1' if $timeout;
2587     - $extra .= 'unauth=1' if $unauth;
2588     - $extra = "&$extra" if $extra;
2589     - print $q->header(
2590     - -cookie => CGI::Cookie->new(-name => 'auth_probe', -value => 1, @auth_domain),
2591     - );
2592     - # For some reason, a Location: redirect doesn't seem to then see the cookie,
2593     - # but a meta refresh one does - go figure
2594     - print $q->start_html(
2595     - -head => meta({
2596     - -http_equiv => 'refresh', -content => ("0;URL=" . sprintf("%s%s%s?redirect=%s&%s=%s%s",
2597     - $location, $mode, $suffix, $self_redirect + 1, $at->back_arg_name,
2598     - $back_esc || '', $extra))
2599     - }));
2600     - $redirected = 1;
2601     - }
2602     -}
2603     -
2604     -elsif ($mode eq 'autologin') {
2605     - # If we have a ticket, redirect to $back, including ticket as GET param
2606     - if ($ticket && $back && ! $timeout) {
2607     - my $b = URI->new($back);
2608     - $back .= $b->query ? '&' : '?';
2609     - $back .= $at->cookie_name . '=' . $ticket;
2610     - print $q->redirect($back);
2611     - $redirected = 1;
2612     - }
2613     - # Can't autologin - change mode to either guest or login
2614     - else {
2615     - $mode = $AUTOLOGIN_FALLBACK_MODE;
2616     - }
2617     -}
2618     -
2619     -unless ($fatal || $redirected) {
2620     - if (! $at) {
2621     - $fatal = "AuthTkt error: " . $at->errstr;
2622     - }
2623     - elsif ($mode eq 'login') {
2624     - if ($username && $validate_sub->($username, $password)) {
2625     -# my $user_data = join(':', encrypt($password), time(), $ip_addr);
2626     - my $user_data = join(':', time(), $ip_addr || ''); # Optional
2627     - my $tkt = $at->ticket(uid => $username, data => $user_data, ip_addr => $ip_addr, debug => $debug);
2628     - if (! @errors) {
2629     - $redirected = $set_cookie_redirect->($tkt, $back);
2630     - $fatal = "Login successful.";
2631     - }
2632     - }
2633     - elsif ($username) {
2634     - push @errors, "Invalid username or password.";
2635     - }
2636     - }
2637     -
2638     - elsif ($mode eq 'guest') {
2639     - # Generate a guest ticket and redirect to $back
2640     - my $tkt = $at->ticket(uid => $guest_sub->(), ip_addr => $ip_addr);
2641     - if (! @errors) {
2642     - $redirected = $set_cookie_redirect->($tkt, $back);
2643     - $fatal = "No back link found.";
2644     - }
2645     - }
2646     -}
2647     -
2648     -my @style = $STYLESHEET ? ('-style' => { src => $STYLESHEET }) : ();
2649     -$TITLE ||= "\u$mode Page";
2650     -unless ($redirected) {
2651     - # If here, either some kind of error or a login page
2652     - if ($fatal) {
2653     - print $q->header,
2654     - $q->start_html(
2655     - -title => $TITLE,
2656     - @style,
2657     - );
2658     - }
2659     - else {
2660     - push @errors, qq(Your session has timed out.) if $timeout;
2661     - push @errors, qq(You are not authorised to access this area.) if $unauth;
2662     - print $q->header,
2663     - $q->start_html(
2664     - -title => $TITLE,
2665     - -onLoad => "getFocus()",
2666     - @style,
2667     - -script => qq(
2668     -function getFocus() {
2669     - document.forms[0].elements[0].focus();
2670     - document.forms[0].elements[0].select();
2671     -}));
2672     - }
2673     - print <<EOD;
2674     -<div align="center">
2675     -<p>&nbsp;</p>
2676     -<p>&nbsp;</p>
2677     -<h2>Welcome to SME server</h2>
2678     -EOD
2679     -
2680     - if ($debug) {
2681     - my $cookie_name = $at->cookie_name;
2682     - my $back_cookie_name = $at->back_cookie_name || '';
2683     - my $back_cookie_path = $q->cookie($at->back_cookie_name) || '';
2684     - my $back_arg_name = $at->back_arg_name || '';
2685     - my $cookie_expires = $at->cookie_expires || 0;
2686     - my $referer = $ENV{HTTP_REFERER};
2687     - print <<EOD;
2688     -<pre>
2689     -server_name: $server_name
2690     -server_port: $server_port
2691     -domain: $AUTH_DOMAIN
2692     -mode: $mode
2693     -suffix: $suffix
2694     -cookie_name: $cookie_name
2695     -cookie_expires: $cookie_expires
2696     -back_cookie_name: $back_cookie_name
2697     -back_cookie_path: $back_cookie_path
2698     -back_arg_name: $back_arg_name
2699     -referer: $referer
2700     -back: $back
2701     -back_esc: $back_esc
2702     -back_html: $back_html
2703     -have_cookies: $have_cookies
2704     -ip_addr: $ip_addr
2705     -</pre>
2706     -EOD
2707     - }
2708     -
2709     - if ($fatal) {
2710     - print qq(<p class="error">$fatal</p>\n);
2711     - }
2712     -
2713     - else {
2714     - print qq(<p class="error">\n), join(qq(<br />\n), @errors), "</p>\n"
2715     - if @errors;
2716     - print <<EOD;
2717     -<form name="login" method="post" action="$mode$suffix">
2718     -<table border="0" cellpadding="5">
2719     -<tr><th>Username:</th><td><input type="text" name="username" /></td></tr>
2720     -<tr><th>Password:</th><td><input type="password" name="password" /></td></tr>
2721     -<tr><td colspan="2" align="center">
2722     -<input type="submit" value="Login" />
2723     -</td></tr>
2724     -</table>
2725     -EOD
2726     - print qq(<input type="hidden" name="back" value="$back_html" />\n) if $back_html;
2727     - print qq(</form>\n);
2728     -}
2729     -
2730     -# print qq(<p><a href="$back_html">Previous Page</a></p>\n) if $back_html;
2731     - print <<EOD;
2732     -<!-- Start Donate section -->
2733     -<p>Remember that SME Server is <i>free to download</i> and use, but it is <i><b>not</b>
2734     -free to build</i></p>
2735     -<p>Please help the project</p>
2736     -<p><a href="http://www.smeserver.org/donate/" target="_blank"><img
2737     -src="../btn_donateCC_LG.gif"
2738     -alt="http://www.smeserver.org/donate/" align="middle"></a>
2739     -</p>
2740     -<p>-- The SME Server Team --</p>
2741     -<!-- Finish Donate section -->
2742     -</div>
2743     -</body>
2744     -</html>
2745     -EOD
2746     -}
2747     -
2748     -# arch-tag: 1cac856d-534c-4c81-9e9a-34e39d26f4f2
2749     -# vim:sw=2:sm:cin
2750     -
2751     diff -Nur e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/web/common/cgi-bin/logout e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/web/common/cgi-bin/logout
2752     --- e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/web/common/cgi-bin/logout 2016-07-19 09:03:46.679000000 -0400
2753     +++ e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/web/common/cgi-bin/logout 1969-12-31 19:00:00.000000000 -0500
2754     @@ -1,128 +0,0 @@
2755     -#!/usr/bin/perl -w
2756     -#
2757     -# mod_auth_tkt sample logout script
2758     -#
2759     -# Note that this needs script needs to be available locally on all domains
2760     -# if using multiple domains (unlike login.cgi, which only needs to exist
2761     -# on one domain).
2762     -#
2763     -
2764     -use File::Basename;
2765     -use lib dirname($ENV{SCRIPT_FILENAME});
2766     -use Apache::AuthTkt 0.03;
2767     -use CGI qw(:standard);
2768     -use URI::Escape;
2769     -use URI;
2770     -use strict;
2771     -
2772     -# ------------------------------------------------------------------------
2773     -# Configure this section to taste
2774     -
2775     -# CSS stylesheet to use (optional)
2776     -my $STYLESHEET = '/server-common/css/tkt.css';
2777     -# Page title (optional)
2778     -my $TITLE = '';
2779     -# Boolean flag, whether to fallback to HTTP_REFERER for back link
2780     -my $BACK_REFERER = 1;
2781     -# Additional cookies to clear on logout e.g. PHPSESSID
2782     -my @NUKE_COOKIES = qw();
2783     -
2784     -# ------------------------------------------------------------------------
2785     -# Main code begins
2786     -my $debug = 0;
2787     -my $at = Apache::AuthTkt->new(conf => "/etc/e-smith/web/common/cgi-bin/AuthTKT.cfg");
2788     -my $q = CGI->new;
2789     -my ($server_name, $server_port) = split /:/, $q->http('X-Forwarded-Host') || $ENV{HTTP_HOST};
2790     -#warn "servername is $server_name; HOST is $ENV{HTTP_HOST}\n";
2791     -$server_name ||= $ENV{SERVER_NAME};
2792     -$server_port ||= $ENV{SERVER_PORT};
2793     -$server_port = ( $server_name eq 'localhost' ) ? '80' : '443';
2794     -my $AUTH_DOMAIN = $server_name;
2795     -my $back = $q->cookie($at->back_cookie_name) if $at->back_cookie_name;
2796     -$back ||= $q->param($at->back_arg_name) if $at->back_arg_name;
2797     -$back ||= $ENV{HTTP_REFERER} if $BACK_REFERER;
2798     -$back = "/server-manager/";
2799     -if ($back && $back =~ m!^/!) {
2800     - my $hostname = $server_name;
2801     - my $port = $server_port;
2802     - $hostname .= ':' . $port if $port && $port != 80 && $port != 443;
2803     - $back = sprintf "http%s://%s%s", ($port == 443 ? 's' : ''), $hostname, $back;
2804     -} elsif ($back && $back !~ m/^http/i) {
2805     - $back = 'http://' . $back;
2806     -}
2807     -$back = uri_unescape($back) if $back =~ m/^https?%3A%2F%2F/;
2808     -my $back_html = escapeHTML($back) if $back;
2809     -
2810     -# Logout by resetting the auth cookie
2811     -my @cookies = cookie(-name => $at->cookie_name, -value => '', -expires => '-1h',
2812     - ($AUTH_DOMAIN && $AUTH_DOMAIN =~ /\./ ? (-domain => $AUTH_DOMAIN) : ()));
2813     -push @cookies, map { cookie(-name => $_, -value => '', -expires => '-1h') } @NUKE_COOKIES;
2814     -
2815     -my $redirected = 0;
2816     -if ($back) {
2817     - my $b = URI->new($back);
2818     - # If $back domain doesn't match $AUTH_DOMAIN, add ticket reset to back
2819     - if ($b->host !~ m/\b$AUTH_DOMAIN$/i) {
2820     - $back .= $b->query ? '&' : '?';
2821     - $back .= $at->cookie_name . '=';
2822     - }
2823     -
2824     - if ($debug) {
2825     - print $q->header(-cookie => \@cookies);
2826     - }
2827     -
2828     - else {
2829     - # Set (local) cookie, and redirect to $back
2830     - print $q->header(
2831     - -cookie => \@cookies,
2832     -# -location => $back,
2833     - );
2834     - # For some reason, a Location: redirect doesn't seem to then see the cookie,
2835     - # but a meta refresh one does - weird
2836     - print $q->start_html(
2837     - -head => meta({
2838     - -http_equiv => 'refresh', -content => "0;URL=$back"
2839     - }));
2840     - $redirected = 1;
2841     - }
2842     -}
2843     -
2844     -# If no $back, just set the auth cookie and hope for the best
2845     -else {
2846     - print $q->header(-cookie => \@cookies);
2847     -}
2848     -
2849     -my @style = $STYLESHEET ? ('-style' => { src => $STYLESHEET }) : ();
2850     -$TITLE ||= 'Logout Page';
2851     -unless ($redirected) {
2852     - # If here, either some kind of error or no back ref found
2853     - print $q->start_html(
2854     - -title => $TITLE,
2855     - @style,
2856     - );
2857     - print <<EOD;
2858     -<div align="center">
2859     -<h1>$TITLE</h1>
2860     -EOD
2861     - if ($debug) {
2862     - print <<EOD;
2863     -<pre>
2864     -back: $back
2865     -back_html: $back_html
2866     -</pre>
2867     -EOD
2868     - }
2869     - print <<EOD;
2870     -<p>You are now logged out.</p>
2871     -EOD
2872     - print qq(<p><a href="$back_html">Return to server manager login</a></p>\n) if $back_html;
2873     - print <<EOD;
2874     -</div>
2875     -</body>
2876     -</html>
2877     -EOD
2878     -}
2879     -
2880     -# arch-tag: 09c96fc6-5119-4c79-8086-6c6b24951f96
2881     -# vim:sw=2:sm:cin
2882     -
2883     diff -Nur e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/web/common/css/tkt.css e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/web/common/css/tkt.css
2884     --- e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/web/common/css/tkt.css 2008-10-07 13:36:17.000000000 -0400
2885     +++ e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/web/common/css/tkt.css 1969-12-31 19:00:00.000000000 -0500
2886     @@ -1,32 +0,0 @@
2887     -/* mod_auth_tkt example css */
2888     -
2889     -BODY {background-image: url(../smeserver_logo.jpg);
2890     - background-repeat: no-repeat;
2891     - background-position: 600px 40px;
2892     - background-position: top;
2893     -
2894     - font-family: arial, helvetica, sans-serif;
2895     - font-size: small;
2896     -}
2897     -
2898     -P, TH, TD {
2899     - font-family: arial, helvetica, sans-serif;
2900     - font-size: small;
2901     -}
2902     -
2903     -H1, H2, H3, H4, H5, H6 { color: #006; }
2904     -H1 { font-size: x-large; }
2905     -H2 { font-size: large; }
2906     -H3 { font-size: medium; }
2907     -
2908     -.warning { color: #c00; font-size: medium; font-weight: bold; }
2909     -
2910     -TABLE {
2911     - background-color: #eee;
2912     - color: #666;
2913     - border: 1px solid #ccc;
2914     - padding: 20px;
2915     -}
2916     -
2917     -
2918     -/* arch-tag: ac35e093-c2c0-4994-bc18-2d25715b1192 */
2919     Binary files e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/web/common/sl_icon.gif and e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/web/common/sl_icon.gif differ
2920     Binary files e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/web/common/spacer.gif and e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/web/common/spacer.gif differ
2921     Binary files e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/web/common/warn.gif and e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/web/common/warn.gif differ
2922     diff -Nur e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/web/functions/index.cgi e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/web/functions/index.cgi
2923     --- e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/web/functions/index.cgi 2006-11-02 11:38:41.000000000 -0500
2924     +++ e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/web/functions/index.cgi 1969-12-31 19:00:00.000000000 -0500
2925     @@ -1,36 +0,0 @@
2926     -#!/usr/bin/perl -wT
2927     -
2928     -#----------------------------------------------------------------------
2929     -# copyright (C) 1999-2006 Mitel Networks Corporation
2930     -#
2931     -# This program is free software; you can redistribute it and/or modify
2932     -# it under the terms of the GNU General Public License as published by
2933     -# the Free Software Foundation; either version 2 of the License, or
2934     -# (at your option) any later version.
2935     -#
2936     -# This program is distributed in the hope that it will be useful,
2937     -# but WITHOUT ANY WARRANTY; without even the implied warranty of
2938     -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2939     -# GNU General Public License for more details.
2940     -#
2941     -# You should have received a copy of the GNU General Public License
2942     -# along with this program; if not, write to the Free Software
2943     -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
2944     -#
2945     -#----------------------------------------------------------------------
2946     -
2947     -use strict;
2948     -use esmith::FormMagick;
2949     -
2950     -my $fm = new esmith::FormMagick;
2951     -$fm->display();
2952     -
2953     -exit 0;
2954     -
2955     -__DATA__
2956     -<form title="FORM_TITLE" header="/etc/e-smith/web/common/noframes_head.tmpl" footer="/etc/e-smith/web/common/noframes_foot.tmpl">
2957     - <page name="First">
2958     - <description>NOFRAMES_BODY</description>
2959     - </page>
2960     -
2961     -</form>
2962     diff -Nur e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/web/functions/initial.cgi e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/web/functions/initial.cgi
2963     --- e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/web/functions/initial.cgi 2006-11-02 11:38:41.000000000 -0500
2964     +++ e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/web/functions/initial.cgi 1969-12-31 19:00:00.000000000 -0500
2965     @@ -1,36 +0,0 @@
2966     -#!/usr/bin/perl -wT
2967     -
2968     -#----------------------------------------------------------------------
2969     -# copyright (C) 1999-2006 Mitel Networks Corporation
2970     -#
2971     -# This program is free software; you can redistribute it and/or modify
2972     -# it under the terms of the GNU General Public License as published by
2973     -# the Free Software Foundation; either version 2 of the License, or
2974     -# (at your option) any later version.
2975     -#
2976     -# This program is distributed in the hope that it will be useful,
2977     -# but WITHOUT ANY WARRANTY; without even the implied warranty of
2978     -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2979     -# GNU General Public License for more details.
2980     -#
2981     -# You should have received a copy of the GNU General Public License
2982     -# along with this program; if not, write to the Free Software
2983     -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
2984     -#
2985     -#----------------------------------------------------------------------
2986     -use strict;
2987     -use esmith::FormMagick;
2988     -
2989     -my $fm = new esmith::FormMagick;
2990     -
2991     -$fm->display();
2992     -
2993     -exit 0;
2994     -
2995     -__DATA__
2996     -<form title="FORM_TITLE" header="/etc/e-smith/web/common/head.tmpl" footer="/etc/e-smith/web/common/foot.tmpl">
2997     - <page name="First">
2998     - <description>FRAMES_BODY</description>
2999     - </page>
3000     -
3001     -</form>
3002     diff -Nur e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/web/functions/navigation e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/web/functions/navigation
3003     --- e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/web/functions/navigation 2008-10-07 13:36:17.000000000 -0400
3004     +++ e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/web/functions/navigation 1969-12-31 19:00:00.000000000 -0500
3005     @@ -1,340 +0,0 @@
3006     -#!/usr/bin/perl -wT
3007     -
3008     -#----------------------------------------------------------------------
3009     -# e-smith manager functions: navigation
3010     -#
3011     -# copyright (C) 2002 Mitel Networks Corporation
3012     -#
3013     -# This program is free software; you can redistribute it and/or modify
3014     -# it under the terms of the GNU General Public License as published by
3015     -# the Free Software Foundation; either version 2 of the License, or
3016     -# (at your option) any later version.
3017     -#
3018     -# This program is distributed in the hope that it will be useful,
3019     -# but WITHOUT ANY WARRANTY; without even the implied warranty of
3020     -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
3021     -# GNU General Public License for more details.
3022     -#
3023     -# You should have received a copy of the GNU General Public License
3024     -# along with this program; if not, write to the Free Software
3025     -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
3026     -#
3027     -# Technical support for this program is available from Mitel Networks
3028     -# Please visit our web site www.e-smith.com for details.
3029     -#----------------------------------------------------------------------
3030     -package esmith;
3031     -
3032     -use strict;
3033     -use CGI ':no_xhtml', ':all';
3034     -use CGI::Carp qw(fatalsToBrowser);
3035     -
3036     -use esmith::cgi;
3037     -use esmith::config;
3038     -use esmith::NavigationDB;
3039     -use esmith::util;
3040     -use esmith::I18N;
3041     -
3042     -sub determineGroup;
3043     -sub showNavigation ($);
3044     -
3045     -BEGIN
3046     -{
3047     - # Clear PATH and related environment variables so that calls to
3048     - # external programs do not cause results to be tainted. See
3049     - # "perlsec" manual page for details.
3050     -
3051     - $ENV {'PATH'} = '';
3052     - $ENV {'SHELL'} = '/bin/bash';
3053     - delete $ENV {'ENV'};
3054     -}
3055     -
3056     -esmith::util::setRealToEffective ();
3057     -
3058     -$CGI::POST_MAX=1024 * 100; # max 100K posts
3059     -$CGI::DISABLE_UPLOADS = 1; # no uploads
3060     -
3061     -# Use the one script for navigation and noframes
3062     -my $NO_FRAMES = ($0 =~ /noframes/);
3063     -
3064     -my %conf;
3065     -tie %conf, 'esmith::config';
3066     -
3067     -my $q = new CGI;
3068     -
3069     -showNavigation ($q);
3070     -exit (0);
3071     -
3072     -
3073     -#------------------------------------------------------
3074     -# subroutine to determine which group a user belongs to
3075     -#------------------------------------------------------
3076     -
3077     -sub determineGroup
3078     -{
3079     - my ($user) = shift;
3080     -
3081     - # Group file for authentication
3082     - my $group_file = '/etc/group';
3083     - open ( GF, $group_file )
3084     - or die "Cannot open group file: $group_file: $!\n";
3085     -
3086     - # list of groups this user belongs to
3087     - my @groupList;
3088     - while (<GF>)
3089     - {
3090     - if (/[:,]$user\b/)
3091     - {
3092     - my ($groupName, undef) = split(/:/);
3093     - push @groupList, $groupName;
3094     - }
3095     - }
3096     - close GF;
3097     - return @groupList;
3098     -}
3099     -
3100     -#------------------------------------------------------------
3101     -# subroutine to display navigation bar
3102     -#------------------------------------------------------------
3103     -
3104     -sub showNavigation ($)
3105     -{
3106     - my $q = shift;
3107     -
3108     - # enable utf8 binmode so new translations work
3109     - binmode STDOUT, ":utf8";
3110     -
3111     - # Use this variable throughout to keep track of files
3112     - # list of just the files
3113     - my $c = "1";
3114     - my @files = ();
3115     - my %files_hash = ();
3116     - my @panel_group = $ENV{'REMOTE_USER'} eq "admin" ?
3117     - ("admin") : determineGroup($ENV{'REMOTE_USER'});
3118     -
3119     - #-----------------------------------------------------
3120     - # Determine the directory where the functions are kept
3121     - #-----------------------------------------------------
3122     -
3123     - my $navigation_ignore =
3124     - "(\.\.?|navigation|noframes|online-manual|(internal|pleasewait)(-.*)?)";
3125     -
3126     - my $cgidir = 'nowhere';
3127     - if ($panel_group[0] eq 'admin')
3128     - {
3129     - $cgidir = '/etc/e-smith/web/panels/manager/cgi-bin/';
3130     -
3131     - if (opendir (DIR, $cgidir))
3132     - {
3133     - @files = grep (!/^${navigation_ignore}$/,
3134     - readdir (DIR));
3135     - closedir (DIR);
3136     - }
3137     - else
3138     - {
3139     - warn "Can't open directory $cgidir\n";
3140     - }
3141     -
3142     - foreach my $file (@files)
3143     - {
3144     - next if (-d "$cgidir/$file");
3145     - $files_hash{$file} = $cgidir;
3146     - }
3147     - }
3148     - else
3149     - {
3150     - foreach my $panel (@panel_group)
3151     - {
3152     - $cgidir = "/etc/e-smith/web/panels/manager/$panel/cgi-bin";
3153     -
3154     - if (opendir (DIR, $cgidir))
3155     - {
3156     - @files = grep (!/^${navigation_ignore}$/,
3157     - readdir (DIR));
3158     - closedir (DIR);
3159     - foreach my $file (@files)
3160     - {
3161     - next if (-d "$cgidir/$file");
3162     - $files_hash{$file} = $cgidir;
3163     - }
3164     - }
3165     - else
3166     - {
3167     - warn "Can't open directory $cgidir\n";
3168     - }
3169     - }
3170     - }
3171     -
3172     - #--------------------------------------------------
3173     - # For each script, extract the description and category
3174     - # information. Build up an associative array mapping headings
3175     - # to heading structures. Each heading structure contains the
3176     - # total weight for the heading, the number of times the heading
3177     - # has been encountered, and another associative array mapping
3178     - # descriptions to description structures. Each description
3179     - # structure contains the filename of the particular cgi script
3180     - # and a weight.
3181     - #--------------------------------------------------
3182     - my %nav = ();
3183     -
3184     - use constant NAVIGATIONDIR => '/home/e-smith/db/navigation';
3185     - use constant WEBFUNCTIONS => '/etc/e-smith/web/functions';
3186     -
3187     - my $i18n = new esmith::I18N;
3188     -
3189     - my $language = $i18n->preferredLanguage( $ENV{HTTP_ACCEPT_LANGUAGE} );
3190     -
3191     - my $navinfo = NAVIGATIONDIR . "/navigation.$language";
3192     -
3193     - my $navdb = esmith::NavigationDB->open_ro( $navinfo ) or
3194     - die "Couldn't open $navinfo\n";
3195     -
3196     - # Check the navdb for anything with a UrlPath, which means that it doesn't
3197     - # have a cgi file to be picked up by the above code. Ideally, only pages
3198     - # that exist should be in the db, but that's not the case. Anything
3199     - # without a cgi file will have to remove themselves on uninstall from the
3200     - # navigation dbs.
3201     - foreach my $rec ($navdb->get_all)
3202     - {
3203     - if ($rec->prop('UrlPath'))
3204     - {
3205     - $files_hash{$rec->{key}} = $cgidir;
3206     - }
3207     - }
3208     -
3209     - foreach my $file (keys %files_hash)
3210     - {
3211     - my $heading = 'Unknown';
3212     - my $description = $file;
3213     - my $headingWeight = 99999;
3214     - my $descriptionWeight = 99999;
3215     - my $urlpath = '';
3216     -
3217     - my $rec = $navdb->get($file);
3218     -
3219     - if (defined $rec)
3220     - {
3221     - $heading = $rec->prop('Heading');
3222     - $description = $rec->prop('Description');
3223     - $headingWeight = $rec->prop('HeadingWeight');
3224     - $descriptionWeight = $rec->prop('DescriptionWeight');
3225     - $urlpath = $rec->prop('UrlPath') || '';
3226     - }
3227     -
3228     - #--------------------------------------------------
3229     - # add heading, description and weight information to data structure
3230     - #--------------------------------------------------
3231     -
3232     - unless (exists $nav {$heading})
3233     - {
3234     - $nav {$heading} = { COUNT => 0, WEIGHT => 0, DESCRIPTIONS => [] };
3235     - }
3236     -
3237     - $nav {$heading} {'COUNT'} ++;
3238     - $nav {$heading} {'WEIGHT'} += $headingWeight;
3239     -
3240     - # Check for manager panel, and assign the appropriate
3241     - # cgi-bin prefix for the links.
3242     - # Grab the last 2 directories by splitting for '/'s and
3243     - # then concatenating the last 2
3244     - # probably a better way, but I don't know it.
3245     - my @filename = split /\//, $files_hash{$file};
3246     - my $path = ($cgidir eq '/etc/e-smith/web/panels/manager/cgi-bin/') ?
3247     - "/$filename[scalar @filename - 1]" :
3248     - "/$filename[scalar @filename - 2]/$filename[scalar @filename - 1]";
3249     -
3250     - push @{ $nav {$heading} {'DESCRIPTIONS'} },
3251     - { DESCRIPTION => $description,
3252     - WEIGHT => $descriptionWeight,
3253     - FILENAME => $urlpath ? $urlpath : "$path/$file",
3254     - CGIPATH => $path
3255     - };
3256     - }
3257     -
3258     - #--------------------------------------------------
3259     - # generate list of headings sorted by average weight
3260     - #--------------------------------------------------
3261     - if ( $NO_FRAMES )
3262     - {
3263     - esmith::cgi::genNoframesHeader ($q);
3264     - }
3265     - else
3266     - {
3267     - esmith::cgi::genNavigationHeader ($q, undef);
3268     - print "\n<TABLE BORDER=\"0\" CELLSPACING=\"0\" CELLPADDING=\"0\">\n";
3269     - }
3270     -
3271     - print '<script language="JavaScript" type="text/javascript">
3272     - <!-- Hide script
3273     - //This swap the class of the selected item.
3274     - function swapClass() {
3275     - var i,x,tB,j=0,tA=new Array(),arg=swapClass.arguments;
3276     - if(document.getElementsByTagName){for(i=4;i<arg.length;i++){tB=document.getElementsByTagName(arg[i]);
3277     - for(x=0;x<tB.length;x++){tA[j]=tB[x];j++;}}for(i=0;i<tA.length;i++){
3278     - if(tA[i].className){if(tA[i].id==arg[1]){if(arg[0]==1){
3279     - tA[i].className=(tA[i].className==arg[3])?arg[2]:arg[3];}else{tA[i].className=arg[2];}
3280     - }else if(arg[0]==1 && arg[1]==\'none\'){if(tA[i].className==arg[2] || tA[i].className==arg[3]){
3281     - tA[i].className=(tA[i].className==arg[3])?arg[2]:arg[3];}
3282     - }else if(tA[i].className==arg[2]){tA[i].className=arg[3];}}}}}
3283     - ';
3284     - print "
3285     - //This swap the class of the selected item.
3286     - function swapClasses() {
3287     - var arg=swapClasses.arguments;
3288     - swapClass(0,'none','item-current','item','a');
3289     - swapClass(0,'none','warn-current','warn','a');
3290     - swapClass(0,arg[0],'item-current','item','a');
3291     - }
3292     -
3293     - // End script hiding -->
3294     - </script>
3295     - ";
3296     -
3297     - foreach my $h (sort {
3298     - ($nav{$a}{'WEIGHT'}/$nav{$a}{'COUNT'}) <=>
3299     - ($nav{$b}{'WEIGHT'}/$nav{$b}{'COUNT'}) } keys %nav)
3300     - {
3301     - if ( $NO_FRAMES )
3302     - {
3303     - print $q->h2 ($h);
3304     - }
3305     - else
3306     - {
3307     - print "\n", $q->Tr ($q->td({class => "section"},$q->span({class => "section"}, $h)));
3308     - }
3309     -
3310     - #--------------------------------------------------
3311     - # generate list of descriptions sorted by weight
3312     - #--------------------------------------------------
3313     - print "<ul>\n" if ( $NO_FRAMES );
3314     -
3315     - foreach (sort { $a->{'WEIGHT'} <=> $b->{'WEIGHT'} } @{$nav {$h}{'DESCRIPTIONS'}})
3316     - {
3317     - my $href = "/server-manager" . $_->{'FILENAME'};
3318     - if ( $NO_FRAMES )
3319     - {
3320     - print $q->li ($q->a ({href => "$href?noframes=1"}, $_->{'DESCRIPTION'}));
3321     - }
3322     - else
3323     - {
3324     - print "\n",$q->Tr(
3325     - $q->td ({-class => "menu-cell"},
3326     - $q->a ({-id => "sme$c",
3327     - -class => "item",
3328     - -onClick => "swapClasses('sme$c')",
3329     - href => $href,
3330     - target => 'main'},
3331     - $_->{'DESCRIPTION'})
3332     - ));
3333     - }
3334     - $c++;
3335     -
3336     - }
3337     - print "</ul>\n" if ($NO_FRAMES);
3338     - }
3339     -
3340     - unless ( $NO_FRAMES )
3341     - {
3342     - print "\n</TABLE>\n";
3343     - esmith::cgi::genNavigationFooter ($q);
3344     - }
3345     -}
3346     diff -Nur e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/web/functions/noframes e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/web/functions/noframes
3347     --- e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/etc/e-smith/web/functions/noframes 2008-10-07 13:36:17.000000000 -0400
3348     +++ e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/etc/e-smith/web/functions/noframes 1969-12-31 19:00:00.000000000 -0500
3349     @@ -1,340 +0,0 @@
3350     -#!/usr/bin/perl -wT
3351     -
3352     -#----------------------------------------------------------------------
3353     -# e-smith manager functions: navigation
3354     -#
3355     -# copyright (C) 2002 Mitel Networks Corporation
3356     -#
3357     -# This program is free software; you can redistribute it and/or modify
3358     -# it under the terms of the GNU General Public License as published by
3359     -# the Free Software Foundation; either version 2 of the License, or
3360     -# (at your option) any later version.
3361     -#
3362     -# This program is distributed in the hope that it will be useful,
3363     -# but WITHOUT ANY WARRANTY; without even the implied warranty of
3364     -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
3365     -# GNU General Public License for more details.
3366     -#
3367     -# You should have received a copy of the GNU General Public License
3368     -# along with this program; if not, write to the Free Software
3369     -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
3370     -#
3371     -# Technical support for this program is available from Mitel Networks
3372     -# Please visit our web site www.e-smith.com for details.
3373     -#----------------------------------------------------------------------
3374     -package esmith;
3375     -
3376     -use strict;
3377     -use CGI ':no_xhtml', ':all';
3378     -use CGI::Carp qw(fatalsToBrowser);
3379     -
3380     -use esmith::cgi;
3381     -use esmith::config;
3382     -use esmith::NavigationDB;
3383     -use esmith::util;
3384     -use esmith::I18N;
3385     -
3386     -sub determineGroup;
3387     -sub showNavigation ($);
3388     -
3389     -BEGIN
3390     -{
3391     - # Clear PATH and related environment variables so that calls to
3392     - # external programs do not cause results to be tainted. See
3393     - # "perlsec" manual page for details.
3394     -
3395     - $ENV {'PATH'} = '';
3396     - $ENV {'SHELL'} = '/bin/bash';
3397     - delete $ENV {'ENV'};
3398     -}
3399     -
3400     -esmith::util::setRealToEffective ();
3401     -
3402     -$CGI::POST_MAX=1024 * 100; # max 100K posts
3403     -$CGI::DISABLE_UPLOADS = 1; # no uploads
3404     -
3405     -# Use the one script for navigation and noframes
3406     -my $NO_FRAMES = ($0 =~ /noframes/);
3407     -
3408     -my %conf;
3409     -tie %conf, 'esmith::config';
3410     -
3411     -my $q = new CGI;
3412     -
3413     -showNavigation ($q);
3414     -exit (0);
3415     -
3416     -
3417     -#------------------------------------------------------
3418     -# subroutine to determine which group a user belongs to
3419     -#------------------------------------------------------
3420     -
3421     -sub determineGroup
3422     -{
3423     - my ($user) = shift;
3424     -
3425     - # Group file for authentication
3426     - my $group_file = '/etc/group';
3427     - open ( GF, $group_file )
3428     - or die "Cannot open group file: $group_file: $!\n";
3429     -
3430     - # list of groups this user belongs to
3431     - my @groupList;
3432     - while (<GF>)
3433     - {
3434     - if (/[:,]$user\b/)
3435     - {
3436     - my ($groupName, undef) = split(/:/);
3437     - push @groupList, $groupName;
3438     - }
3439     - }
3440     - close GF;
3441     - return @groupList;
3442     -}
3443     -
3444     -#------------------------------------------------------------
3445     -# subroutine to display navigation bar
3446     -#------------------------------------------------------------
3447     -
3448     -sub showNavigation ($)
3449     -{
3450     - my $q = shift;
3451     -
3452     - # enable utf8 binmode so new translations work
3453     - binmode STDOUT, ":utf8";
3454     -
3455     - # Use this variable throughout to keep track of files
3456     - # list of just the files
3457     - my $c = "1";
3458     - my @files = ();
3459     - my %files_hash = ();
3460     - my @panel_group = $ENV{'REMOTE_USER'} eq "admin" ?
3461     - ("admin") : determineGroup($ENV{'REMOTE_USER'});
3462     -
3463     - #-----------------------------------------------------
3464     - # Determine the directory where the functions are kept
3465     - #-----------------------------------------------------
3466     -
3467     - my $navigation_ignore =
3468     - "(\.\.?|navigation|noframes|online-manual|(internal|pleasewait)(-.*)?)";
3469     -
3470     - my $cgidir = 'nowhere';
3471     - if ($panel_group[0] eq 'admin')
3472     - {
3473     - $cgidir = '/etc/e-smith/web/panels/manager/cgi-bin/';
3474     -
3475     - if (opendir (DIR, $cgidir))
3476     - {
3477     - @files = grep (!/^${navigation_ignore}$/,
3478     - readdir (DIR));
3479     - closedir (DIR);
3480     - }
3481     - else
3482     - {
3483     - warn "Can't open directory $cgidir\n";
3484     - }
3485     -
3486     - foreach my $file (@files)
3487     - {
3488     - next if (-d "$cgidir/$file");
3489     - $files_hash{$file} = $cgidir;
3490     - }
3491     - }
3492     - else
3493     - {
3494     - foreach my $panel (@panel_group)
3495     - {
3496     - $cgidir = "/etc/e-smith/web/panels/manager/$panel/cgi-bin";
3497     -
3498     - if (opendir (DIR, $cgidir))
3499     - {
3500     - @files = grep (!/^${navigation_ignore}$/,
3501     - readdir (DIR));
3502     - closedir (DIR);
3503     - foreach my $file (@files)
3504     - {
3505     - next if (-d "$cgidir/$file");
3506     - $files_hash{$file} = $cgidir;
3507     - }
3508     - }
3509     - else
3510     - {
3511     - warn "Can't open directory $cgidir\n";
3512     - }
3513     - }
3514     - }
3515     -
3516     - #--------------------------------------------------
3517     - # For each script, extract the description and category
3518     - # information. Build up an associative array mapping headings
3519     - # to heading structures. Each heading structure contains the
3520     - # total weight for the heading, the number of times the heading
3521     - # has been encountered, and another associative array mapping
3522     - # descriptions to description structures. Each description
3523     - # structure contains the filename of the particular cgi script
3524     - # and a weight.
3525     - #--------------------------------------------------
3526     - my %nav = ();
3527     -
3528     - use constant NAVIGATIONDIR => '/home/e-smith/db/navigation';
3529     - use constant WEBFUNCTIONS => '/etc/e-smith/web/functions';
3530     -
3531     - my $i18n = new esmith::I18N;
3532     -
3533     - my $language = $i18n->preferredLanguage( $ENV{HTTP_ACCEPT_LANGUAGE} );
3534     -
3535     - my $navinfo = NAVIGATIONDIR . "/navigation.$language";
3536     -
3537     - my $navdb = esmith::NavigationDB->open_ro( $navinfo ) or
3538     - die "Couldn't open $navinfo\n";
3539     -
3540     - # Check the navdb for anything with a UrlPath, which means that it doesn't
3541     - # have a cgi file to be picked up by the above code. Ideally, only pages
3542     - # that exist should be in the db, but that's not the case. Anything
3543     - # without a cgi file will have to remove themselves on uninstall from the
3544     - # navigation dbs.
3545     - foreach my $rec ($navdb->get_all)
3546     - {
3547     - if ($rec->prop('UrlPath'))
3548     - {
3549     - $files_hash{$rec->{key}} = $cgidir;
3550     - }
3551     - }
3552     -
3553     - foreach my $file (keys %files_hash)
3554     - {
3555     - my $heading = 'Unknown';
3556     - my $description = $file;
3557     - my $headingWeight = 99999;
3558     - my $descriptionWeight = 99999;
3559     - my $urlpath = '';
3560     -
3561     - my $rec = $navdb->get($file);
3562     -
3563     - if (defined $rec)
3564     - {
3565     - $heading = $rec->prop('Heading');
3566     - $description = $rec->prop('Description');
3567     - $headingWeight = $rec->prop('HeadingWeight');
3568     - $descriptionWeight = $rec->prop('DescriptionWeight');
3569     - $urlpath = $rec->prop('UrlPath') || '';
3570     - }
3571     -
3572     - #--------------------------------------------------
3573     - # add heading, description and weight information to data structure
3574     - #--------------------------------------------------
3575     -
3576     - unless (exists $nav {$heading})
3577     - {
3578     - $nav {$heading} = { COUNT => 0, WEIGHT => 0, DESCRIPTIONS => [] };
3579     - }
3580     -
3581     - $nav {$heading} {'COUNT'} ++;
3582     - $nav {$heading} {'WEIGHT'} += $headingWeight;
3583     -
3584     - # Check for manager panel, and assign the appropriate
3585     - # cgi-bin prefix for the links.
3586     - # Grab the last 2 directories by splitting for '/'s and
3587     - # then concatenating the last 2
3588     - # probably a better way, but I don't know it.
3589     - my @filename = split /\//, $files_hash{$file};
3590     - my $path = ($cgidir eq '/etc/e-smith/web/panels/manager/cgi-bin/') ?
3591     - "/$filename[scalar @filename - 1]" :
3592     - "/$filename[scalar @filename - 2]/$filename[scalar @filename - 1]";
3593     -
3594     - push @{ $nav {$heading} {'DESCRIPTIONS'} },
3595     - { DESCRIPTION => $description,
3596     - WEIGHT => $descriptionWeight,
3597     - FILENAME => $urlpath ? $urlpath : "$path/$file",
3598     - CGIPATH => $path
3599     - };
3600     - }
3601     -
3602     - #--------------------------------------------------
3603     - # generate list of headings sorted by average weight
3604     - #--------------------------------------------------
3605     - if ( $NO_FRAMES )
3606     - {
3607     - esmith::cgi::genNoframesHeader ($q);
3608     - }
3609     - else
3610     - {
3611     - esmith::cgi::genNavigationHeader ($q, undef);
3612     - print "\n<TABLE BORDER=\"0\" CELLSPACING=\"0\" CELLPADDING=\"0\">\n";
3613     - }
3614     -
3615     - print '<script language="JavaScript" type="text/javascript">
3616     - <!-- Hide script
3617     - //This swap the class of the selected item.
3618     - function swapClass() {
3619     - var i,x,tB,j=0,tA=new Array(),arg=swapClass.arguments;
3620     - if(document.getElementsByTagName){for(i=4;i<arg.length;i++){tB=document.getElementsByTagName(arg[i]);
3621     - for(x=0;x<tB.length;x++){tA[j]=tB[x];j++;}}for(i=0;i<tA.length;i++){
3622     - if(tA[i].className){if(tA[i].id==arg[1]){if(arg[0]==1){
3623     - tA[i].className=(tA[i].className==arg[3])?arg[2]:arg[3];}else{tA[i].className=arg[2];}
3624     - }else if(arg[0]==1 && arg[1]==\'none\'){if(tA[i].className==arg[2] || tA[i].className==arg[3]){
3625     - tA[i].className=(tA[i].className==arg[3])?arg[2]:arg[3];}
3626     - }else if(tA[i].className==arg[2]){tA[i].className=arg[3];}}}}}
3627     - ';
3628     - print "
3629     - //This swap the class of the selected item.
3630     - function swapClasses() {
3631     - var arg=swapClasses.arguments;
3632     - swapClass(0,'none','item-current','item','a');
3633     - swapClass(0,'none','warn-current','warn','a');
3634     - swapClass(0,arg[0],'item-current','item','a');
3635     - }
3636     -
3637     - // End script hiding -->
3638     - </script>
3639     - ";
3640     -
3641     - foreach my $h (sort {
3642     - ($nav{$a}{'WEIGHT'}/$nav{$a}{'COUNT'}) <=>
3643     - ($nav{$b}{'WEIGHT'}/$nav{$b}{'COUNT'}) } keys %nav)
3644     - {
3645     - if ( $NO_FRAMES )
3646     - {
3647     - print $q->h2 ($h);
3648     - }
3649     - else
3650     - {
3651     - print "\n", $q->Tr ($q->td({class => "section"},$q->span({class => "section"}, $h)));
3652     - }
3653     -
3654     - #--------------------------------------------------
3655     - # generate list of descriptions sorted by weight
3656     - #--------------------------------------------------
3657     - print "<ul>\n" if ( $NO_FRAMES );
3658     -
3659     - foreach (sort { $a->{'WEIGHT'} <=> $b->{'WEIGHT'} } @{$nav {$h}{'DESCRIPTIONS'}})
3660     - {
3661     - my $href = "/server-manager" . $_->{'FILENAME'};
3662     - if ( $NO_FRAMES )
3663     - {
3664     - print $q->li ($q->a ({href => "$href?noframes=1"}, $_->{'DESCRIPTION'}));
3665     - }
3666     - else
3667     - {
3668     - print "\n",$q->Tr(
3669     - $q->td ({-class => "menu-cell"},
3670     - $q->a ({-id => "sme$c",
3671     - -class => "item",
3672     - -onClick => "swapClasses('sme$c')",
3673     - href => $href,
3674     - target => 'main'},
3675     - $_->{'DESCRIPTION'})
3676     - ));
3677     - }
3678     - $c++;
3679     -
3680     - }
3681     - print "</ul>\n" if ($NO_FRAMES);
3682     - }
3683     -
3684     - unless ( $NO_FRAMES )
3685     - {
3686     - print "\n</TABLE>\n";
3687     - esmith::cgi::genNavigationFooter ($q);
3688     - }
3689     -}
3690     diff -Nur e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/var/service/httpd-admin/log/run e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/var/service/httpd-admin/log/run
3691     --- e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/var/service/httpd-admin/log/run 2006-11-02 11:38:41.000000000 -0500
3692     +++ e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/var/service/httpd-admin/log/run 1969-12-31 19:00:00.000000000 -0500
3693     @@ -1,26 +0,0 @@
3694     -#!/bin/sh
3695     -
3696     -#----------------------------------------------------------------------
3697     -# copyright (C) 2005 Mitel Networks Corporation
3698     -#
3699     -# This program is free software; you can redistribute it and/or modify
3700     -# it under the terms of the GNU General Public License as published by
3701     -# the Free Software Foundation; either version 2 of the License, or
3702     -# (at your option) any later version.
3703     -#
3704     -# This program is distributed in the hope that it will be useful,
3705     -# but WITHOUT ANY WARRANTY; without even the implied warranty of
3706     -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
3707     -# GNU General Public License for more details.
3708     -#
3709     -# You should have received a copy of the GNU General Public License
3710     -# along with this program; if not, write to the Free Software
3711     -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
3712     -#
3713     -# Technical support for this program is available from Mitel Networks
3714     -# Please visit our web site www.mitel.com/sme/ for details.
3715     -#----------------------------------------------------------------------
3716     -exec \
3717     - /usr/local/bin/setuidgid smelog \
3718     - /usr/local/bin/multilog t s5000000 \
3719     - /var/log/httpd-admin
3720     diff -Nur e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/var/service/httpd-admin/run e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/var/service/httpd-admin/run
3721     --- e-smith-manager-2.6.0.old/e-smith-manager-2.6.0/root/var/service/httpd-admin/run 2006-11-02 11:38:41.000000000 -0500
3722     +++ e-smith-manager-2.6.0/e-smith-manager-2.6.0/root/var/service/httpd-admin/run 1969-12-31 19:00:00.000000000 -0500
3723     @@ -1,11 +0,0 @@
3724     -#!/bin/sh
3725     -#----------------------------------------------------------------------
3726     -# copyright (C) 1999-2004 Mitel Networks Corporation
3727     -#----------------------------------------------------------------------
3728     -
3729     -config=/etc/httpd/admin-conf/httpd.conf
3730     -
3731     -[ -e $config ] || exit 1
3732     -
3733     -exec 2>&1
3734     -exec chpst -P /usr/sbin/httpd-admin -f $config -D FOREGROUND
3735     diff -Nur e-smith-manager-2.6.0.old/e-smith-manager-2.6.0-6.el6.sme-filelist e-smith-manager-2.6.0/e-smith-manager-2.6.0-6.el6.sme-filelist
3736     --- e-smith-manager-2.6.0.old/e-smith-manager-2.6.0-6.el6.sme-filelist 2016-06-13 04:18:01.339000000 -0400
3737     +++ e-smith-manager-2.6.0/e-smith-manager-2.6.0-6.el6.sme-filelist 1969-12-31 19:00:00.000000000 -0500
3738     @@ -1,254 +0,0 @@
3739     -%dir %attr(0755,root,root) /etc/e-smith
3740     -%dir %attr(0755,root,root) /etc/e-smith/templates
3741     -%dir %attr(0755,root,root) /etc/e-smith/templates/etc
3742     -%dir %attr(0755,root,root) /etc/e-smith/templates/etc/services
3743     -/etc/e-smith/templates/etc/services/20http-admin
3744     -%dir %attr(0755,root,root) /etc/e-smith/templates/etc/httpd
3745     -%dir %attr(0755,root,root) /etc/e-smith/templates/etc/httpd/conf
3746     -%dir %attr(0755,root,root) /etc/e-smith/templates/etc/httpd/conf/httpd.conf
3747     -%dir %attr(0755,root,root) /etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts
3748     -/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/27ManagerProxyPass
3749     -%dir %attr(0755,root,root) /etc/e-smith/templates/etc/httpd/admin-conf
3750     -%dir %attr(0755,root,root) /etc/e-smith/templates/etc/httpd/admin-conf/httpd.conf
3751     -/etc/e-smith/templates/etc/httpd/admin-conf/httpd.conf/20Manager
3752     -/etc/e-smith/templates/etc/httpd/admin-conf/httpd.conf/90e-smithAccess15common
3753     -/etc/e-smith/templates/etc/httpd/admin-conf/httpd.conf/90e-smithAccess15brand
3754     -/etc/e-smith/templates/etc/httpd/admin-conf/httpd.conf/85ServerResourcesAccess
3755     -/etc/e-smith/templates/etc/httpd/admin-conf/httpd.conf/90e-smithAccess20password
3756     -/etc/e-smith/templates/etc/httpd/admin-conf/httpd.conf/85DefaultAccess
3757     -/etc/e-smith/templates/etc/httpd/admin-conf/httpd.conf/90e-smithAccess20manager
3758     -/etc/e-smith/templates/etc/httpd/admin-conf/httpd.conf/01localAccessString
3759     -/etc/e-smith/templates/etc/httpd/admin-conf/httpd.conf/20ManagerAuthTKT
3760     -%dir %attr(0755,root,root) /etc/e-smith/templates/etc/e-smith
3761     -%dir %attr(0755,root,root) /etc/e-smith/templates/etc/e-smith/web
3762     -%dir %attr(0755,root,root) /etc/e-smith/templates/etc/e-smith/web/panels
3763     -%dir %attr(0755,root,root) /etc/e-smith/templates/etc/e-smith/web/panels/manager
3764     -%dir %attr(0755,root,root) /etc/e-smith/templates/etc/e-smith/web/panels/manager/html
3765     -%dir %attr(0755,root,root) /etc/e-smith/templates/etc/e-smith/web/panels/manager/html/header.htm
3766     -/etc/e-smith/templates/etc/e-smith/web/panels/manager/html/header.htm/template-begin
3767     -/etc/e-smith/templates/etc/e-smith/web/panels/manager/html/header.htm/99End
3768     -/etc/e-smith/templates/etc/e-smith/web/panels/manager/html/header.htm/10Head
3769     -/etc/e-smith/templates/etc/e-smith/web/panels/manager/html/header.htm/70LayoutTableEnd
3770     -/etc/e-smith/templates/etc/e-smith/web/panels/manager/html/header.htm/60InfoBar
3771     -/etc/e-smith/templates/etc/e-smith/web/panels/manager/html/header.htm/30LayoutTableStart
3772     -/etc/e-smith/templates/etc/e-smith/web/panels/manager/html/header.htm/20Body
3773     -/etc/e-smith/templates/etc/e-smith/web/panels/manager/html/header.htm/50HilightBar
3774     -%dir %attr(0755,root,root) /etc/e-smith/templates/etc/e-smith/web/common
3775     -%dir %attr(0755,root,root) /etc/e-smith/templates/etc/e-smith/web/common/cgi-bin
3776     -%dir %attr(0755,root,root) /etc/e-smith/templates/etc/e-smith/web/common/cgi-bin/AuthTKT.cfg
3777     -/etc/e-smith/templates/etc/e-smith/web/common/cgi-bin/AuthTKT.cfg/manager_access
3778     -%dir %attr(0755,root,root) /etc/e-smith/templates/etc/e-smith/web/common/css
3779     -%dir %attr(0755,root,root) /etc/e-smith/templates/etc/e-smith/web/common/css/sme_header.css
3780     -/etc/e-smith/templates/etc/e-smith/web/common/css/sme_header.css/template-begin
3781     -/etc/e-smith/templates/etc/e-smith/web/common/css/sme_header.css/50body
3782     -%dir %attr(0755,root,root) /etc/e-smith/templates/etc/e-smith/web/common/css/sme_panel_menu.css
3783     -/etc/e-smith/templates/etc/e-smith/web/common/css/sme_panel_menu.css/template-begin
3784     -/etc/e-smith/templates/etc/e-smith/web/common/css/sme_panel_menu.css/50body
3785     -%dir %attr(0755,root,root) /etc/e-smith/templates/etc/e-smith/web/common/css/sme_main.css
3786     -/etc/e-smith/templates/etc/e-smith/web/common/css/sme_main.css/template-begin
3787     -/etc/e-smith/templates/etc/e-smith/web/common/css/sme_main.css/50body
3788     -%dir %attr(0755,root,root) /etc/e-smith/templates/etc/e-smith/web/common/css/sme_menu.css
3789     -/etc/e-smith/templates/etc/e-smith/web/common/css/sme_menu.css/template-begin
3790     -/etc/e-smith/templates/etc/e-smith/web/common/css/sme_menu.css/50body
3791     -%dir %attr(0755,root,root) /etc/e-smith/templates/etc/e-smith/web/common/css/sme_core.css
3792     -/etc/e-smith/templates/etc/e-smith/web/common/css/sme_core.css/template-begin
3793     -/etc/e-smith/templates/etc/e-smith/web/common/css/sme_core.css/50body
3794     -%dir %attr(0755,root,root) /etc/e-smith/templates/etc/e-smith/web/common/head.tmpl
3795     -/etc/e-smith/templates/etc/e-smith/web/common/head.tmpl/30FrameSetup00
3796     -/etc/e-smith/templates/etc/e-smith/web/common/head.tmpl/30FrameSetup01
3797     -/etc/e-smith/templates/etc/e-smith/web/common/head.tmpl/10Setup
3798     -%dir %attr(0755,root,root) /etc/e-smith/templates/etc/e-smith/web/common/foot.tmpl
3799     -/etc/e-smith/templates/etc/e-smith/web/common/foot.tmpl/25Copyright
3800     -/etc/e-smith/templates/etc/e-smith/web/common/foot.tmpl/90Finish
3801     -/etc/e-smith/templates/etc/e-smith/web/common/foot.tmpl/10Setup
3802     -%dir %attr(0755,root,root) /etc/e-smith/events
3803     -%dir %attr(0755,root,root) /etc/e-smith/events/actions
3804     -%attr(0554,root,root) /etc/e-smith/events/actions/navigation-conf
3805     -%dir %attr(0755,root,root) /etc/e-smith/events/bootstrap-console-save
3806     -/etc/e-smith/events/bootstrap-console-save/S50navigation-conf
3807     -%dir %attr(0755,root,root) /etc/e-smith/events/bootstrap-console-save/templates2expand
3808     -%dir %attr(0755,root,root) /etc/e-smith/events/bootstrap-console-save/templates2expand/etc
3809     -%dir %attr(0755,root,root) /etc/e-smith/events/bootstrap-console-save/templates2expand/etc/e-smith
3810     -%dir %attr(0755,root,root) /etc/e-smith/events/bootstrap-console-save/templates2expand/etc/e-smith/web
3811     -%dir %attr(0755,root,root) /etc/e-smith/events/bootstrap-console-save/templates2expand/etc/e-smith/web/common
3812     -/etc/e-smith/events/bootstrap-console-save/templates2expand/etc/e-smith/web/common/head.tmpl
3813     -/etc/e-smith/events/bootstrap-console-save/templates2expand/etc/e-smith/web/common/foot.tmpl
3814     -%dir %attr(0755,root,root) /etc/e-smith/events/bootstrap-console-save/templates2expand/etc/e-smith/web/common/css
3815     -/etc/e-smith/events/bootstrap-console-save/templates2expand/etc/e-smith/web/common/css/sme_core.css
3816     -/etc/e-smith/events/bootstrap-console-save/templates2expand/etc/e-smith/web/common/css/sme_header.css
3817     -/etc/e-smith/events/bootstrap-console-save/templates2expand/etc/e-smith/web/common/css/sme_main.css
3818     -/etc/e-smith/events/bootstrap-console-save/templates2expand/etc/e-smith/web/common/css/sme_menu.css
3819     -/etc/e-smith/events/bootstrap-console-save/templates2expand/etc/e-smith/web/common/css/sme_panel_menu.css
3820     -%dir %attr(0755,root,root) /etc/e-smith/events/bootstrap-console-save/templates2expand/etc/e-smith/web/common/cgi-bin
3821     -/etc/e-smith/events/bootstrap-console-save/templates2expand/etc/e-smith/web/common/cgi-bin/AuthTKT.cfg
3822     -%dir %attr(0755,root,root) /etc/e-smith/events/bootstrap-console-save/templates2expand/etc/e-smith/web/panels
3823     -%dir %attr(0755,root,root) /etc/e-smith/events/bootstrap-console-save/templates2expand/etc/e-smith/web/panels/manager
3824     -%dir %attr(0755,root,root) /etc/e-smith/events/bootstrap-console-save/templates2expand/etc/e-smith/web/panels/manager/html
3825     -/etc/e-smith/events/bootstrap-console-save/templates2expand/etc/e-smith/web/panels/manager/html/header.htm
3826     -%dir %attr(0755,root,root) /etc/e-smith/events/bootstrap-console-save/templates2expand/etc/httpd
3827     -%dir %attr(0755,root,root) /etc/e-smith/events/bootstrap-console-save/templates2expand/etc/httpd/admin-conf
3828     -/etc/e-smith/events/bootstrap-console-save/templates2expand/etc/httpd/admin-conf/httpd.conf
3829     -%dir %attr(0755,root,root) /etc/e-smith/events/console-save
3830     -%dir %attr(0755,root,root) /etc/e-smith/events/console-save/templates2expand
3831     -%dir %attr(0755,root,root) /etc/e-smith/events/console-save/templates2expand/etc
3832     -%dir %attr(0755,root,root) /etc/e-smith/events/console-save/templates2expand/etc/e-smith
3833     -%dir %attr(0755,root,root) /etc/e-smith/events/console-save/templates2expand/etc/e-smith/web
3834     -%dir %attr(0755,root,root) /etc/e-smith/events/console-save/templates2expand/etc/e-smith/web/panels
3835     -%dir %attr(0755,root,root) /etc/e-smith/events/console-save/templates2expand/etc/e-smith/web/panels/manager
3836     -%dir %attr(0755,root,root) /etc/e-smith/events/console-save/templates2expand/etc/e-smith/web/panels/manager/html
3837     -/etc/e-smith/events/console-save/templates2expand/etc/e-smith/web/panels/manager/html/header.htm
3838     -%dir %attr(0755,root,root) /etc/e-smith/events/console-save/templates2expand/etc/e-smith/web/common
3839     -/etc/e-smith/events/console-save/templates2expand/etc/e-smith/web/common/head.tmpl
3840     -/etc/e-smith/events/console-save/templates2expand/etc/e-smith/web/common/foot.tmpl
3841     -%dir %attr(0755,root,root) /etc/e-smith/events/console-save/templates2expand/etc/httpd
3842     -%dir %attr(0755,root,root) /etc/e-smith/events/console-save/templates2expand/etc/httpd/admin-conf
3843     -/etc/e-smith/events/console-save/templates2expand/etc/httpd/admin-conf/httpd.conf
3844     -%dir %attr(0755,root,root) /etc/e-smith/events/console-save/services2adjust
3845     -/etc/e-smith/events/console-save/services2adjust/httpd-admin
3846     -%dir %attr(0755,root,root) /etc/e-smith/events/network-create
3847     -%dir %attr(0755,root,root) /etc/e-smith/events/network-create/templates2expand
3848     -%dir %attr(0755,root,root) /etc/e-smith/events/network-create/templates2expand/etc
3849     -%dir %attr(0755,root,root) /etc/e-smith/events/network-create/templates2expand/etc/e-smith
3850     -%dir %attr(0755,root,root) /etc/e-smith/events/network-create/templates2expand/etc/e-smith/web
3851     -%dir %attr(0755,root,root) /etc/e-smith/events/network-create/templates2expand/etc/e-smith/web/panels
3852     -%dir %attr(0755,root,root) /etc/e-smith/events/network-create/templates2expand/etc/e-smith/web/panels/manager
3853     -%dir %attr(0755,root,root) /etc/e-smith/events/network-create/templates2expand/etc/e-smith/web/panels/manager/html
3854     -/etc/e-smith/events/network-create/templates2expand/etc/e-smith/web/panels/manager/html/header.htm
3855     -%dir %attr(0755,root,root) /etc/e-smith/events/network-create/templates2expand/etc/e-smith/web/common
3856     -/etc/e-smith/events/network-create/templates2expand/etc/e-smith/web/common/head.tmpl
3857     -/etc/e-smith/events/network-create/templates2expand/etc/e-smith/web/common/foot.tmpl
3858     -%dir %attr(0755,root,root) /etc/e-smith/events/network-create/templates2expand/etc/httpd
3859     -%dir %attr(0755,root,root) /etc/e-smith/events/network-create/templates2expand/etc/httpd/admin-conf
3860     -/etc/e-smith/events/network-create/templates2expand/etc/httpd/admin-conf/httpd.conf
3861     -%dir %attr(0755,root,root) /etc/e-smith/events/network-delete
3862     -%dir %attr(0755,root,root) /etc/e-smith/events/network-delete/templates2expand
3863     -%dir %attr(0755,root,root) /etc/e-smith/events/network-delete/templates2expand/etc
3864     -%dir %attr(0755,root,root) /etc/e-smith/events/network-delete/templates2expand/etc/e-smith
3865     -%dir %attr(0755,root,root) /etc/e-smith/events/network-delete/templates2expand/etc/e-smith/web
3866     -%dir %attr(0755,root,root) /etc/e-smith/events/network-delete/templates2expand/etc/e-smith/web/panels
3867     -%dir %attr(0755,root,root) /etc/e-smith/events/network-delete/templates2expand/etc/e-smith/web/panels/manager
3868     -%dir %attr(0755,root,root) /etc/e-smith/events/network-delete/templates2expand/etc/e-smith/web/panels/manager/html
3869     -/etc/e-smith/events/network-delete/templates2expand/etc/e-smith/web/panels/manager/html/header.htm
3870     -%dir %attr(0755,root,root) /etc/e-smith/events/network-delete/templates2expand/etc/e-smith/web/common
3871     -/etc/e-smith/events/network-delete/templates2expand/etc/e-smith/web/common/head.tmpl
3872     -/etc/e-smith/events/network-delete/templates2expand/etc/e-smith/web/common/foot.tmpl
3873     -%dir %attr(0755,root,root) /etc/e-smith/events/network-delete/templates2expand/etc/httpd
3874     -%dir %attr(0755,root,root) /etc/e-smith/events/network-delete/templates2expand/etc/httpd/admin-conf
3875     -/etc/e-smith/events/network-delete/templates2expand/etc/httpd/admin-conf/httpd.conf
3876     -%dir %attr(0755,root,root) /etc/e-smith/events/logrotate
3877     -%dir %attr(0755,root,root) /etc/e-smith/events/logrotate/templates2expand
3878     -%dir %attr(0755,root,root) /etc/e-smith/events/logrotate/templates2expand/etc
3879     -%dir %attr(0755,root,root) /etc/e-smith/events/logrotate/templates2expand/etc/e-smith
3880     -%dir %attr(0755,root,root) /etc/e-smith/events/logrotate/templates2expand/etc/e-smith/web
3881     -%dir %attr(0755,root,root) /etc/e-smith/events/logrotate/templates2expand/etc/e-smith/web/panels
3882     -%dir %attr(0755,root,root) /etc/e-smith/events/logrotate/templates2expand/etc/e-smith/web/panels/manager
3883     -%dir %attr(0755,root,root) /etc/e-smith/events/logrotate/templates2expand/etc/e-smith/web/panels/manager/html
3884     -/etc/e-smith/events/logrotate/templates2expand/etc/e-smith/web/panels/manager/html/header.htm
3885     -%dir %attr(0755,root,root) /etc/e-smith/events/logrotate/templates2expand/etc/e-smith/web/common
3886     -/etc/e-smith/events/logrotate/templates2expand/etc/e-smith/web/common/head.tmpl
3887     -/etc/e-smith/events/logrotate/templates2expand/etc/e-smith/web/common/foot.tmpl
3888     -%dir %attr(0755,root,root) /etc/e-smith/events/logrotate/templates2expand/etc/httpd
3889     -%dir %attr(0755,root,root) /etc/e-smith/events/logrotate/templates2expand/etc/httpd/admin-conf
3890     -/etc/e-smith/events/logrotate/templates2expand/etc/httpd/admin-conf/httpd.conf
3891     -%dir %attr(0755,root,root) /etc/e-smith/events/logrotate/logfiles2timestamp
3892     -%dir %attr(0755,root,root) /etc/e-smith/events/logrotate/logfiles2timestamp/var
3893     -%dir %attr(0755,root,root) /etc/e-smith/events/logrotate/logfiles2timestamp/var/log
3894     -%dir %attr(0755,root,root) /etc/e-smith/events/logrotate/logfiles2timestamp/var/log/httpd
3895     -/etc/e-smith/events/logrotate/logfiles2timestamp/var/log/httpd/admin_access_log
3896     -/etc/e-smith/events/logrotate/logfiles2timestamp/var/log/httpd/admin_error_log
3897     -%dir %attr(0755,root,root) /etc/e-smith/events/logrotate/services2adjust
3898     -/etc/e-smith/events/logrotate/services2adjust/httpd-admin
3899     -%dir %attr(0755,root,root) /etc/e-smith/events/remoteaccess-update
3900     -%dir %attr(0755,root,root) /etc/e-smith/events/remoteaccess-update/templates2expand
3901     -%dir %attr(0755,root,root) /etc/e-smith/events/remoteaccess-update/templates2expand/etc
3902     -%dir %attr(0755,root,root) /etc/e-smith/events/remoteaccess-update/templates2expand/etc/httpd
3903     -%dir %attr(0755,root,root) /etc/e-smith/events/remoteaccess-update/templates2expand/etc/httpd/admin-conf
3904     -/etc/e-smith/events/remoteaccess-update/templates2expand/etc/httpd/admin-conf/httpd.conf
3905     -%dir %attr(0755,root,root) /etc/e-smith/events/remoteaccess-update/services2adjust
3906     -/etc/e-smith/events/remoteaccess-update/services2adjust/httpd-admin
3907     -%dir %attr(0755,root,root) /etc/e-smith/events/post-install
3908     -%dir %attr(0755,root,root) /etc/e-smith/events/post-install/logfiles2timestamp
3909     -%dir %attr(0755,root,root) /etc/e-smith/events/post-install/logfiles2timestamp/var
3910     -%dir %attr(0755,root,root) /etc/e-smith/events/post-install/logfiles2timestamp/var/log
3911     -%dir %attr(0755,root,root) /etc/e-smith/events/post-install/logfiles2timestamp/var/log/httpd
3912     -/etc/e-smith/events/post-install/logfiles2timestamp/var/log/httpd/admin_access_log
3913     -/etc/e-smith/events/post-install/logfiles2timestamp/var/log/httpd/admin_error_log
3914     -%dir %attr(0755,root,root) /etc/e-smith/events/post-upgrade
3915     -%dir %attr(0755,root,root) /etc/e-smith/events/post-upgrade/logfiles2timestamp
3916     -%dir %attr(0755,root,root) /etc/e-smith/events/post-upgrade/logfiles2timestamp/var
3917     -%dir %attr(0755,root,root) /etc/e-smith/events/post-upgrade/logfiles2timestamp/var/log
3918     -%dir %attr(0755,root,root) /etc/e-smith/events/post-upgrade/logfiles2timestamp/var/log/httpd
3919     -/etc/e-smith/events/post-upgrade/logfiles2timestamp/var/log/httpd/admin_access_log
3920     -/etc/e-smith/events/post-upgrade/logfiles2timestamp/var/log/httpd/admin_error_log
3921     -%dir %attr(0755,root,root) /etc/e-smith/db
3922     -%dir %attr(0755,root,root) /etc/e-smith/db/configuration
3923     -%dir %attr(0755,root,root) /etc/e-smith/db/configuration/defaults
3924     -%dir %attr(0755,root,root) /etc/e-smith/db/configuration/defaults/httpd-admin
3925     -/etc/e-smith/db/configuration/defaults/httpd-admin/type
3926     -/etc/e-smith/db/configuration/defaults/httpd-admin/TCPPort
3927     -/etc/e-smith/db/configuration/defaults/httpd-admin/status
3928     -/etc/e-smith/db/configuration/defaults/httpd-admin/access
3929     -/etc/e-smith/db/configuration/defaults/httpd-admin/PermitPlainTextAccess
3930     -%dir %attr(0755,root,root) /etc/e-smith/db/configuration/migrate
3931     -/etc/e-smith/db/configuration/migrate/20TKTAuthSecret
3932     -%dir %attr(0755,root,root) /etc/e-smith/web
3933     -%dir %attr(0550,root,admin) /etc/e-smith/web/functions
3934     -%attr(04750,root,admin) /etc/e-smith/web/functions/index.cgi
3935     -%attr(04750,root,admin) /etc/e-smith/web/functions/navigation
3936     -/etc/e-smith/web/functions/noframes
3937     -%attr(04750,root,admin) /etc/e-smith/web/functions/initial.cgi
3938     -%dir %attr(0550,www,admin) /etc/e-smith/web/common
3939     -/etc/e-smith/web/common/spacer.gif
3940     -/etc/e-smith/web/common/warn.gif
3941     -/etc/e-smith/web/common/sl_icon.gif
3942     -/etc/e-smith/web/common/userpassword_head.tmpl
3943     -/etc/e-smith/web/common/noframes_head.tmpl
3944     -/etc/e-smith/web/common/noframes_foot.tmpl
3945     -%dir %attr(0755,root,root) /etc/e-smith/web/common/cgi-bin
3946     -%attr(0755,root,root) /etc/e-smith/web/common/cgi-bin/login
3947     -%attr(0755,root,root) /etc/e-smith/web/common/cgi-bin/logout
3948     -%dir %attr(0755,root,root) /etc/e-smith/web/common/css
3949     -/etc/e-smith/web/common/css/tkt.css
3950     -%dir %attr(0550,root,admin) /etc/e-smith/web/panels
3951     -%dir %attr(0755,root,root) /etc/e-smith/web/panels/manager
3952     -%dir %attr(0755,root,root) /etc/e-smith/web/panels/manager/cgi-bin
3953     -/etc/e-smith/web/panels/manager/cgi-bin/navigation
3954     -/etc/e-smith/web/panels/manager/cgi-bin/noframes
3955     -%dir %attr(0755,root,root) /etc/e-smith/web/panels/manager/html
3956     -/etc/e-smith/web/panels/manager/html/index.cgi
3957     -/etc/e-smith/web/panels/manager/html/initial.cgi
3958     -%dir %attr(0755,root,root) /etc/e-smith/web/panels/password
3959     -%dir %attr(0755,root,root) /etc/e-smith/web/panels/password/cgi-bin
3960     -%dir %attr(0755,root,root) /etc/e-smith/web/panels/password/html
3961     -%dir %attr(0755,root,root) /etc/rc.d/rc7.d
3962     -/etc/rc.d/rc7.d/S86httpd-admin
3963     -/etc/rc.d/init.d/httpd-admin
3964     -%dir %attr(0755,root,root) /etc/rc.d/init.d/supervise
3965     -/etc/rc.d/init.d/supervise/httpd-admin
3966     -%dir %attr(0755,root,root) /etc/rc.d/rc6.d
3967     -/etc/rc.d/rc6.d/K15httpd-admin
3968     -%dir %attr(0755,root,root) /etc/rc.d/rc0.d
3969     -/etc/rc.d/rc0.d/K15httpd-admin
3970     -%dir %attr(0755,root,root) /etc/httpd
3971     -%dir %attr(0755,root,root) /etc/httpd/admin-conf
3972     -%dir %attr(0755,root,root) /var/service
3973     -%dir %attr(01755,root,root) /var/service/httpd-admin
3974     -%attr(0755,root,root) /var/service/httpd-admin/run
3975     -%attr(0644,root,root) /var/service/httpd-admin/down
3976     -%dir %attr(0755,root,root) /var/service/httpd-admin/log
3977     -%attr(0755,root,root) /var/service/httpd-admin/log/run
3978     -%dir %attr(0700,root,root) /var/service/httpd-admin/log/supervise
3979     -%dir %attr(0700,root,root) /var/service/httpd-admin/supervise
3980     -%dir %attr(0750,smelog,smelog) /var/log/httpd-admin
3981     -%dir %attr(0755,root,root) /usr/sbin
3982     -/usr/sbin/httpd-admin
3983     -%dir %attr(0755,root,root) /usr/share/locale
3984     -%dir %attr(0755,root,root) /usr/share/locale/en_US
3985     -%dir %attr(0755,root,root) /usr/share/locale/en_US/LC_MESSAGES
3986     -/usr/share/locale/en_US/LC_MESSAGES/foot.tmpl.po
3987     -%dir %attr(0755,admin,admin) /home/e-smith
3988     -%dir %attr(0755,root,root) /home/e-smith/db
3989     -%dir %attr(0755,root,root) /home/e-smith/db/navigation
3990     -%dir %attr(0755,root,root) /service
3991     -/service/httpd-admin
3992     -%doc COPYING
3993     diff -Nur e-smith-manager-2.6.0.old/root/etc/e-smith/events/bootstrap-console-save/S50navigation-conf e-smith-manager-2.6.0/root/etc/e-smith/events/bootstrap-console-save/S50navigation-conf
3994     --- e-smith-manager-2.6.0.old/root/etc/e-smith/events/bootstrap-console-save/S50navigation-conf 2008-10-07 13:36:17.000000000 -0400
3995     +++ e-smith-manager-2.6.0/root/etc/e-smith/events/bootstrap-console-save/S50navigation-conf 1969-12-31 19:00:00.000000000 -0500
3996     @@ -1,153 +0,0 @@
3997     -#!/usr/bin/perl -w
3998     -
3999     -#----------------------------------------------------------------------
4000     -# copyright (C) 1999-2006 Mitel Networks Corporation
4001     -#
4002     -# This program is free software; you can redistribute it and/or modify
4003     -# it under the terms of the GNU General Public License as published by
4004     -# the Free Software Foundation; either version 2 of the License, or
4005     -# (at your option) any later version.
4006     -#
4007     -# This program is distributed in the hope that it will be useful,
4008     -# but WITHOUT ANY WARRANTY; without even the implied warranty of
4009     -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
4010     -# GNU General Public License for more details.
4011     -#
4012     -# You should have received a copy of the GNU General Public License
4013     -# along with this program; if not, write to the Free Software
4014     -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
4015     -#
4016     -#----------------------------------------------------------------------
4017     -package esmith;
4018     -
4019     -use strict;
4020     -
4021     -use esmith::NavigationDB;
4022     -use esmith::I18N;
4023     -
4024     -use constant WEBFUNCTIONS => '/etc/e-smith/web/functions';
4025     -use constant NAVIGATIONDIR => '/home/e-smith/db/navigation';
4026     -use constant NEW_NAVDIR => '/home/e-smith/db';
4027     -
4028     -my $navigation_ignore =
4029     - "(\.\.?|navigation|noframes|online-manual|(internal|pleasewait)(-.*)?)";
4030     -
4031     -my $i18n = new esmith::I18N;
4032     -
4033     -my %navdbs;
4034     -
4035     -opendir FUNCTIONS, WEBFUNCTIONS or
4036     - die "Couldn't open ", WEBFUNCTIONS, "\n";
4037     -
4038     -my @files = grep (!/^${navigation_ignore}$/, readdir (FUNCTIONS));
4039     -my @langs = $i18n->availableLanguages();
4040     -
4041     -use XML::Parser;
4042     -my $parser = new XML::Parser (Style => 'Tree',
4043     - ProtocolEncoding => 'UTF-8');
4044     -
4045     -foreach my $file (@files)
4046     -{
4047     - next if (-d WEBFUNCTIONS . "/$file");
4048     - next unless (-x WEBFUNCTIONS . "/$file");
4049     -
4050     - #--------------------------------------------------
4051     - # extract heading, description and weight information
4052     - # from CGI script
4053     - #--------------------------------------------------
4054     - open(SCRIPT, WEBFUNCTIONS . "/$file");
4055     - my $heading = undef;
4056     - my $description = undef;
4057     - my $heading_weight = undef;
4058     - my $description_weight = undef;
4059     - while ( <SCRIPT> )
4060     - {
4061     - $heading = $1 if (/^\s*#\s*heading\s*:\s*(.+?)\s*$/);
4062     -
4063     - $description = $1
4064     - if (/^\s*#\s*description\s*:\s*(.+?)\s*$/);
4065     -
4066     - ($heading_weight, $description_weight) = ($1, $2)
4067     - if (/^\s*#\s*navigation\s*:\s*(\d+?)\s+(\d+?)\s*$/);
4068     -
4069     - last if (defined $heading and
4070     - defined $description and
4071     - defined $heading_weight and
4072     - defined $description_weight);
4073     - }
4074     - close SCRIPT;
4075     - foreach my $lang (@langs)
4076     - {
4077     -#warn "updating script $file for lang $lang\n";
4078     - my $navdb = $navdbs{$lang};
4079     - my $navinfo = NAVIGATIONDIR . "/navigation.$lang";
4080     - $navdb ||= esmith::NavigationDB->open($navinfo);
4081     - $navdb ||= esmith::NavigationDB->create($navinfo) or
4082     - die "Couldn't create $navinfo\n";
4083     - $navdbs{$lang} ||= $navdb;
4084     - my $rec = $navdb->get($file) ||
4085     - $navdb->new_record($file, { type => 'panel' } );
4086     -
4087     - my $lexicon = {};
4088     -
4089     - foreach my $lfile ( "/etc/e-smith/locale/$lang/FormMagick/general",
4090     - "/etc/e-smith/locale/$lang/etc/e-smith/web/functions/$file" )
4091     - {
4092     - if (-f $lfile)
4093     - {
4094     - # Do a quick and dirty parse of the lexicon file
4095     - my $xmlstr = "";
4096     - open(FILE, $lfile) or die "Couldn't open $lfile:\n$!";
4097     - binmode(FILE, ":utf8");
4098     - {
4099     - local $^W = 0;
4100     - while ( my $line = <FILE> ) {
4101     - unless ( utf8::valid($line) ) {
4102     - warn "$lfile not in UTF-8 format\n";
4103     - utf8::encode($line);
4104     - }
4105     - $xmlstr .= $line;
4106     - }
4107     - }
4108     - my $xml = $parser->parsestring($xmlstr);
4109     - my @lexicon = @{$xml->[1]};
4110     - shift @lexicon; # Remove lexicon attributes
4111     - while (@lexicon)
4112     - {
4113     - my ($tag, $data) = splice(@lexicon, 0, 2);
4114     - next unless $tag eq 'entry';
4115     - my %entry_hash = ('attributes', @$data);
4116     - my $base = $entry_hash{base};
4117     - $base = @{$base}[2];
4118     - my $trans = $entry_hash{trans};
4119     - $trans = @{$trans}[2];
4120     - next unless defined $base && defined $trans;
4121     - $lexicon->{$base} = $trans;
4122     - }
4123     - }
4124     - }
4125     -
4126     - my $loc_heading = localise($lexicon, $heading);
4127     - $loc_heading =~ s/^\s*(\w.*?)\s*$/$1/;
4128     - my $loc_description = localise($lexicon, $description);
4129     - $loc_description =~ s/^\s*(\w.*?)\s*$/$1/;
4130     - $rec->merge_props(
4131     - Heading => $loc_heading,
4132     - Description => $loc_description,
4133     - HeadingWeight => localise($lexicon, $heading_weight),
4134     - DescriptionWeight => localise($lexicon, $description_weight));
4135     - }
4136     -}
4137     -foreach my $lang (@langs)
4138     -{
4139     -#warn "trying to close for lang $lang\n";
4140     - my $navdb = $navdbs{$lang};
4141     - $navdb->close();
4142     -}
4143     -
4144     -sub localise {
4145     - my ($lexicon, $string) = @_;
4146     - $string = "" unless defined $string;
4147     - return $lexicon->{$string} || $string;
4148     -}
4149     -
4150     diff -Nur e-smith-manager-2.6.0.old/root/etc/e-smith/templates/etc/e-smith/web/common/css/sme_core.css/50body e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/common/css/sme_core.css/50body
4151     --- e-smith-manager-2.6.0.old/root/etc/e-smith/templates/etc/e-smith/web/common/css/sme_core.css/50body 2006-03-15 16:59:54.000000000 -0500
4152     +++ e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/common/css/sme_core.css/50body 2016-06-23 08:13:57.000000000 -0400
4153     @@ -137,7 +137,7 @@
4154     body.menu {
4155     font-family: Verdana, Arial, Helvetica, sans-serif;
4156     font-size: 11px;
4157     - background-color: #eeeeee;
4158     + background-color: #e8f3e1;
4159     }
4160    
4161     td.section {
4162     @@ -149,28 +149,28 @@
4163     font-family: Verdana, Arial, Helvetica, sans-serif;
4164     font-size: 11px;
4165     font-weight: bold;
4166     - background-color: #eeeeee;
4167     + background-color: #e8f3e1;
4168     }
4169    
4170     a.item {
4171     color: #00008b;
4172     font-family: Verdana, Arial, Helvetica, sans-serif;
4173     font-size: 11px;
4174     - background: #eeeeee;
4175     + background: #e8f3e1;
4176     }
4177    
4178     a.sl {
4179     color: green;
4180     font-family: Verdana, Arial, Helvetica, sans-serif;
4181     font-size: 11px;
4182     - background: #eeeeee;
4183     + background: #e8f3e1;
4184     }
4185    
4186     a.alert {
4187     color: red;
4188     font-family: Verdana, Arial, Helvetica, sans-serif;
4189     font-size: 11px;
4190     - background: #eeeeee;
4191     + background: #e8f3e1;
4192     }
4193    
4194     /* Core styles for use with sme_main.css */
4195     diff -Nur e-smith-manager-2.6.0.old/root/etc/e-smith/templates/etc/e-smith/web/common/css/sme_header.css/50body e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/common/css/sme_header.css/50body
4196     --- e-smith-manager-2.6.0.old/root/etc/e-smith/templates/etc/e-smith/web/common/css/sme_header.css/50body 2006-03-15 16:59:54.000000000 -0500
4197     +++ e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/common/css/sme_header.css/50body 2016-06-23 08:14:45.000000000 -0400
4198     @@ -79,7 +79,7 @@
4199     }
4200    
4201     a:hover {
4202     - background: #eeeeee;
4203     + background: #e8f3e1;
4204     border-color: #000000 #000000 #000000 #000000;
4205     }
4206    
4207     diff -Nur e-smith-manager-2.6.0.old/root/etc/e-smith/templates/etc/e-smith/web/common/css/sme_main.css/50body e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/common/css/sme_main.css/50body
4208     --- e-smith-manager-2.6.0.old/root/etc/e-smith/templates/etc/e-smith/web/common/css/sme_main.css/50body 2013-01-31 16:31:37.000000000 -0500
4209     +++ e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/common/css/sme_main.css/50body 2016-06-22 07:06:47.000000000 -0400
4210     @@ -63,7 +63,7 @@
4211     /*This special style is actually used only for the button row along the bottom of each page*/
4212     th.sme-layout {
4213     border: 1px solid #dddddd;
4214     - background-color: #eeeeee;
4215     + background-color: #e8f3e1;
4216     font-family: Verdana, Arial, Helvetica, sans-serif;
4217     font-size: 9pt;
4218     font-weight: bold;
4219     @@ -89,7 +89,7 @@
4220     /*width: 250px;*/
4221     text-align: right;
4222     /*vertical-align: top;*/
4223     - background-color: #eeeeee;
4224     + background-color: #e8f3e1;
4225     font-family: Verdana, Arial, Helvetica, sans-serif;
4226     font-size: 11px;
4227     }
4228     @@ -138,7 +138,7 @@
4229     td.sme-border-center {text-align: center;}
4230     th.sme-border {
4231     border: 1px solid #cccccc;
4232     - background-color: #dedfde;
4233     + background-color: #bee6a2;
4234     font-family: Verdana, Arial, Helvetica, sans-serif;
4235     font-size: 10px;
4236     font-weight: bold;
4237     diff -Nur e-smith-manager-2.6.0.old/root/etc/e-smith/templates/etc/e-smith/web/common/css/sme_menu.css/50body e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/common/css/sme_menu.css/50body
4238     --- e-smith-manager-2.6.0.old/root/etc/e-smith/templates/etc/e-smith/web/common/css/sme_menu.css/50body 2006-03-15 16:59:54.000000000 -0500
4239     +++ e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/common/css/sme_menu.css/50body 2016-06-22 07:06:47.000000000 -0400
4240     @@ -80,10 +80,10 @@
4241     font-family: Verdana, Arial, Helvetica, sans-serif;
4242     font-size: 10px;
4243     color: black;
4244     - background: #eeeeee;
4245     + background: #e8f3e1;
4246     text-decoration: none;
4247     text-align: left;
4248     - border-color: #eeeeee;
4249     + border-color: #e8f3e1;
4250     margin-top: 0px;
4251     margin-right: 0px;
4252     margin-bottom: 0px;
4253     @@ -106,9 +106,9 @@
4254     font-family: Verdana, Arial, Helvetica, sans-serif;
4255     font-size: 10px;
4256     color: black;
4257     - background: #eeeeee;
4258     + background: #e8f3e1;
4259     text-decoration: none;
4260     - border-color: #eeeeee;
4261     + border-color: #e8f3e1;
4262     margin-top: 0px;
4263     margin-right: 0px;
4264     margin-bottom: 0px;
4265     diff -Nur e-smith-manager-2.6.0.old/root/etc/e-smith/templates/etc/e-smith/web/common/css/sme_panel_menu.css/50body e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/common/css/sme_panel_menu.css/50body
4266     --- e-smith-manager-2.6.0.old/root/etc/e-smith/templates/etc/e-smith/web/common/css/sme_panel_menu.css/50body 2006-03-15 16:59:54.000000000 -0500
4267     +++ e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/common/css/sme_panel_menu.css/50body 2016-06-22 07:06:47.000000000 -0400
4268     @@ -57,7 +57,7 @@
4269     }
4270    
4271     #navmenu a {
4272     - background : #E8EBF0;
4273     + background : #e8f0e8;
4274     border : 1px solid #ccc;
4275     color : #666;
4276     float : left;
4277     diff -Nur e-smith-manager-2.6.0.old/root/etc/e-smith/templates/etc/e-smith/web/common/css/tkt.css/50body e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/common/css/tkt.css/50body
4278     --- e-smith-manager-2.6.0.old/root/etc/e-smith/templates/etc/e-smith/web/common/css/tkt.css/50body 1969-12-31 19:00:00.000000000 -0500
4279     +++ e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/common/css/tkt.css/50body 2016-06-22 07:44:23.000000000 -0400
4280     @@ -0,0 +1,36 @@
4281     +{
4282     + $OUT =<<'HERE';
4283     +/* mod_auth_tkt example css */
4284     +
4285     +BODY {background-image: url(../smeserver_login.jpg);
4286     +background-repeat: no-repeat;
4287     +/*background-size: 600px 40px; */
4288     +background-position: center top;
4289     +font-family: arial, helvetica, sans-serif;
4290     +font-size: small;
4291     +}
4292     +
4293     +P, TH, TD {
4294     + font-family: arial, helvetica, sans-serif;
4295     + font-size: small;
4296     +}
4297     +
4298     +H1, H2, H3, H4, H5, H6 { color: #006600; }
4299     +H1 { font-size: x-large; }
4300     +H2 { font-size: large; }
4301     +H3 { font-size: medium; }
4302     +
4303     +.warning { color: #c00; font-size: medium; font-weight: bold; }
4304     +
4305     +TABLE {
4306     + background-color: #eee;
4307     + color: #666;
4308     + border: 1px solid #ccc;
4309     + padding: 20px;
4310     +}
4311     +
4312     +
4313     +/* arch-tag: ac35e093-c2c0-4994-bc18-2d25715b1192 */
4314     +
4315     +HERE
4316     +}
4317     diff -Nur e-smith-manager-2.6.0.old/root/etc/e-smith/templates/etc/e-smith/web/common/css/tkt.css/template-begin e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/common/css/tkt.css/template-begin
4318     --- e-smith-manager-2.6.0.old/root/etc/e-smith/templates/etc/e-smith/web/common/css/tkt.css/template-begin 1969-12-31 19:00:00.000000000 -0500
4319     +++ e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/common/css/tkt.css/template-begin 2016-06-23 08:05:36.000000000 -0400
4320     @@ -0,0 +1 @@
4321     +/* DO NOT MODIFY THIS FILE! It is updated automatically */
4322     diff -Nur e-smith-manager-2.6.0.old/root/etc/e-smith/templates/etc/e-smith/web/common/head.tmpl/30FrameSetup00 e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/common/head.tmpl/30FrameSetup00
4323     --- e-smith-manager-2.6.0.old/root/etc/e-smith/templates/etc/e-smith/web/common/head.tmpl/30FrameSetup00 2007-01-26 20:51:30.000000000 -0500
4324     +++ e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/e-smith/web/common/head.tmpl/30FrameSetup00 2016-06-23 08:20:49.000000000 -0400
4325     @@ -2,7 +2,7 @@
4326     unless ($NO_FRAMES)
4327     \{
4328     $OUT .= <<EOF;
4329     - <link rev="made" href="mailto:bugs%40e-smith.com">
4330     + <link rev="made" href="mailto:bugs%40koozali.org">
4331     <meta name="copyright" content="(head.tmpl)Copyright 2003-2004 Mitel Corporation">
4332     <link rel="stylesheet" type="text/css" href="/server-common/css/sme_core.css">
4333     <style type="text/css">
4334     diff -Nur e-smith-manager-2.6.0.old/root/etc/e-smith/templates/etc/httpd/admin-conf/httpd.conf/90e-smithAccess15common e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/httpd/admin-conf/httpd.conf/90e-smithAccess15common
4335     --- e-smith-manager-2.6.0.old/root/etc/e-smith/templates/etc/httpd/admin-conf/httpd.conf/90e-smithAccess15common 2016-06-13 04:18:01.134000000 -0400
4336     +++ e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/httpd/admin-conf/httpd.conf/90e-smithAccess15common 2016-07-19 09:03:46.683000000 -0400
4337     @@ -12,15 +12,19 @@
4338     </Directory>
4339    
4340     <Directory "/etc/e-smith/web/common">
4341     - Options Indexes Includes
4342     + Options Includes
4343     AllowOverride None
4344     order deny,allow
4345     deny from all
4346     allow from all
4347     + <FilesMatch ".*\.tmpl">
4348     + Order allow,deny
4349     + Deny from all
4350     + </FilesMatch>
4351     </Directory>
4352    
4353     <Directory "/etc/e-smith/web/panels/manager/common">
4354     - Options Indexes Includes FollowSymLinks
4355     + Options Includes FollowSymLinks
4356     AllowOverride None
4357     order deny,allow
4358     deny from all
4359     diff -Nur e-smith-manager-2.6.0.old/root/etc/e-smith/templates/etc/httpd/admin-conf/httpd.conf/90e-smithAccess20manager e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/httpd/admin-conf/httpd.conf/90e-smithAccess20manager
4360     --- e-smith-manager-2.6.0.old/root/etc/e-smith/templates/etc/httpd/admin-conf/httpd.conf/90e-smithAccess20manager 2016-06-13 04:18:01.134000000 -0400
4361     +++ e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/httpd/admin-conf/httpd.conf/90e-smithAccess20manager 2016-07-19 09:03:46.683000000 -0400
4362     @@ -4,7 +4,7 @@
4363     #------------------------------------------------------------
4364    
4365     <Directory "/etc/e-smith/web/panels/manager/html" >
4366     - Options Includes Indexes FollowSymLinks ExecCGI
4367     + Options Includes FollowSymLinks ExecCGI
4368     AllowOverride None
4369     order deny,allow
4370     deny from all
4371     @@ -19,7 +19,7 @@
4372     </Directory>
4373    
4374     <Directory "/etc/e-smith/web/panels/manager/cgi-bin">
4375     - Options Includes Indexes FollowSymLinks ExecCGI
4376     + Options Includes FollowSymLinks ExecCGI
4377     AllowOverride None
4378     order deny,allow
4379     deny from all
4380     diff -Nur e-smith-manager-2.6.0.old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/27ManagerProxyPass e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/27ManagerProxyPass
4381     --- e-smith-manager-2.6.0.old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/27ManagerProxyPass 2016-06-13 04:18:01.130000000 -0400
4382     +++ e-smith-manager-2.6.0/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/27ManagerProxyPass 2016-07-19 09:03:46.681000000 -0400
4383     @@ -14,6 +14,11 @@
4384     $OUT .= ' RewriteCond %{REMOTE_ADDR} !^127\.0\.0\.1$' . "\n";
4385     $OUT .= " RewriteRule ^/$place(/.*|\$) https://%{HTTP_HOST}/$place\$1 [L,R]\n";
4386     }
4387     + if ($port eq $sslPort)
4388     + {
4389     + # mod_auth_tkt needs to know the protocol to write 307 redirection
4390     + $OUT .= " RequestHeader set X-Forwarded-Proto \"https\"\n";
4391     + }
4392     $OUT .= " ProxyPass /$place http://127.0.0.1:${'httpd-admin'}{TCPPort}/$place\n";
4393     $OUT .= " ProxyPassReverse /$place http://127.0.0.1:${'httpd-admin'}{TCPPort}/$place\n";
4394    
4395     diff -Nur e-smith-manager-2.6.0.old/root/etc/e-smith/web/common/cgi-bin/login e-smith-manager-2.6.0/root/etc/e-smith/web/common/cgi-bin/login
4396     --- e-smith-manager-2.6.0.old/root/etc/e-smith/web/common/cgi-bin/login 2016-06-13 04:18:01.132000000 -0400
4397     +++ e-smith-manager-2.6.0/root/etc/e-smith/web/common/cgi-bin/login 2016-07-19 09:09:58.116000000 -0400
4398     @@ -276,6 +276,7 @@
4399     <div align="center">
4400     <p>&nbsp;</p>
4401     <p>&nbsp;</p>
4402     +<p>&nbsp;</p>
4403     <h2>Welcome to SME server</h2>
4404     EOD
4405    
4406     diff -Nur e-smith-manager-2.6.0.old/root/etc/e-smith/web/panels/manager/cgi-bin/navigation e-smith-manager-2.6.0/root/etc/e-smith/web/panels/manager/cgi-bin/navigation
4407     --- e-smith-manager-2.6.0.old/root/etc/e-smith/web/panels/manager/cgi-bin/navigation 2008-10-07 13:36:17.000000000 -0400
4408     +++ e-smith-manager-2.6.0/root/etc/e-smith/web/panels/manager/cgi-bin/navigation 1969-12-31 19:00:00.000000000 -0500
4409     @@ -1,340 +0,0 @@
4410     -#!/usr/bin/perl -wT
4411     -
4412     -#----------------------------------------------------------------------
4413     -# e-smith manager functions: navigation
4414     -#
4415     -# copyright (C) 2002 Mitel Networks Corporation
4416     -#
4417     -# This program is free software; you can redistribute it and/or modify
4418     -# it under the terms of the GNU General Public License as published by
4419     -# the Free Software Foundation; either version 2 of the License, or
4420     -# (at your option) any later version.
4421     -#
4422     -# This program is distributed in the hope that it will be useful,
4423     -# but WITHOUT ANY WARRANTY; without even the implied warranty of
4424     -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
4425     -# GNU General Public License for more details.
4426     -#
4427     -# You should have received a copy of the GNU General Public License
4428     -# along with this program; if not, write to the Free Software
4429     -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
4430     -#
4431     -# Technical support for this program is available from Mitel Networks
4432     -# Please visit our web site www.e-smith.com for details.
4433     -#----------------------------------------------------------------------
4434     -package esmith;
4435     -
4436     -use strict;
4437     -use CGI ':no_xhtml', ':all';
4438     -use CGI::Carp qw(fatalsToBrowser);
4439     -
4440     -use esmith::cgi;
4441     -use esmith::config;
4442     -use esmith::NavigationDB;
4443     -use esmith::util;
4444     -use esmith::I18N;
4445     -
4446     -sub determineGroup;
4447     -sub showNavigation ($);
4448     -
4449     -BEGIN
4450     -{
4451     - # Clear PATH and related environment variables so that calls to
4452     - # external programs do not cause results to be tainted. See
4453     - # "perlsec" manual page for details.
4454     -
4455     - $ENV {'PATH'} = '';
4456     - $ENV {'SHELL'} = '/bin/bash';
4457     - delete $ENV {'ENV'};
4458     -}
4459     -
4460     -esmith::util::setRealToEffective ();
4461     -
4462     -$CGI::POST_MAX=1024 * 100; # max 100K posts
4463     -$CGI::DISABLE_UPLOADS = 1; # no uploads
4464     -
4465     -# Use the one script for navigation and noframes
4466     -my $NO_FRAMES = ($0 =~ /noframes/);
4467     -
4468     -my %conf;
4469     -tie %conf, 'esmith::config';
4470     -
4471     -my $q = new CGI;
4472     -
4473     -showNavigation ($q);
4474     -exit (0);
4475     -
4476     -
4477     -#------------------------------------------------------
4478     -# subroutine to determine which group a user belongs to
4479     -#------------------------------------------------------
4480     -
4481     -sub determineGroup
4482     -{
4483     - my ($user) = shift;
4484     -
4485     - # Group file for authentication
4486     - my $group_file = '/etc/group';
4487     - open ( GF, $group_file )
4488     - or die "Cannot open group file: $group_file: $!\n";
4489     -
4490     - # list of groups this user belongs to
4491     - my @groupList;
4492     - while (<GF>)
4493     - {
4494     - if (/[:,]$user\b/)
4495     - {
4496     - my ($groupName, undef) = split(/:/);
4497     - push @groupList, $groupName;
4498     - }
4499     - }
4500     - close GF;
4501     - return @groupList;
4502     -}
4503     -
4504     -#------------------------------------------------------------
4505     -# subroutine to display navigation bar
4506     -#------------------------------------------------------------
4507     -
4508     -sub showNavigation ($)
4509     -{
4510     - my $q = shift;
4511     -
4512     - # enable utf8 binmode so new translations work
4513     - binmode STDOUT, ":utf8";
4514     -
4515     - # Use this variable throughout to keep track of files
4516     - # list of just the files
4517     - my $c = "1";
4518     - my @files = ();
4519     - my %files_hash = ();
4520     - my @panel_group = $ENV{'REMOTE_USER'} eq "admin" ?
4521     - ("admin") : determineGroup($ENV{'REMOTE_USER'});
4522     -
4523     - #-----------------------------------------------------
4524     - # Determine the directory where the functions are kept
4525     - #-----------------------------------------------------
4526     -
4527     - my $navigation_ignore =
4528     - "(\.\.?|navigation|noframes|online-manual|(internal|pleasewait)(-.*)?)";
4529     -
4530     - my $cgidir = 'nowhere';
4531     - if ($panel_group[0] eq 'admin')
4532     - {
4533     - $cgidir = '/etc/e-smith/web/panels/manager/cgi-bin/';
4534     -
4535     - if (opendir (DIR, $cgidir))
4536     - {
4537     - @files = grep (!/^${navigation_ignore}$/,
4538     - readdir (DIR));
4539     - closedir (DIR);
4540     - }
4541     - else
4542     - {
4543     - warn "Can't open directory $cgidir\n";
4544     - }
4545     -
4546     - foreach my $file (@files)
4547     - {
4548     - next if (-d "$cgidir/$file");
4549     - $files_hash{$file} = $cgidir;
4550     - }
4551     - }
4552     - else
4553     - {
4554     - foreach my $panel (@panel_group)
4555     - {
4556     - $cgidir = "/etc/e-smith/web/panels/manager/$panel/cgi-bin";
4557     -
4558     - if (opendir (DIR, $cgidir))
4559     - {
4560     - @files = grep (!/^${navigation_ignore}$/,
4561     - readdir (DIR));
4562     - closedir (DIR);
4563     - foreach my $file (@files)
4564     - {
4565     - next if (-d "$cgidir/$file");
4566     - $files_hash{$file} = $cgidir;
4567     - }
4568     - }
4569     - else
4570     - {
4571     - warn "Can't open directory $cgidir\n";
4572     - }
4573     - }
4574     - }
4575     -
4576     - #--------------------------------------------------
4577     - # For each script, extract the description and category
4578     - # information. Build up an associative array mapping headings
4579     - # to heading structures. Each heading structure contains the
4580     - # total weight for the heading, the number of times the heading
4581     - # has been encountered, and another associative array mapping
4582     - # descriptions to description structures. Each description
4583     - # structure contains the filename of the particular cgi script
4584     - # and a weight.
4585     - #--------------------------------------------------
4586     - my %nav = ();
4587     -
4588     - use constant NAVIGATIONDIR => '/home/e-smith/db/navigation';
4589     - use constant WEBFUNCTIONS => '/etc/e-smith/web/functions';
4590     -
4591     - my $i18n = new esmith::I18N;
4592     -
4593     - my $language = $i18n->preferredLanguage( $ENV{HTTP_ACCEPT_LANGUAGE} );
4594     -
4595     - my $navinfo = NAVIGATIONDIR . "/navigation.$language";
4596     -
4597     - my $navdb = esmith::NavigationDB->open_ro( $navinfo ) or
4598     - die "Couldn't open $navinfo\n";
4599     -
4600     - # Check the navdb for anything with a UrlPath, which means that it doesn't
4601     - # have a cgi file to be picked up by the above code. Ideally, only pages
4602     - # that exist should be in the db, but that's not the case. Anything
4603     - # without a cgi file will have to remove themselves on uninstall from the
4604     - # navigation dbs.
4605     - foreach my $rec ($navdb->get_all)
4606     - {
4607     - if ($rec->prop('UrlPath'))
4608     - {
4609     - $files_hash{$rec->{key}} = $cgidir;
4610     - }
4611     - }
4612     -
4613     - foreach my $file (keys %files_hash)
4614     - {
4615     - my $heading = 'Unknown';
4616     - my $description = $file;
4617     - my $headingWeight = 99999;
4618     - my $descriptionWeight = 99999;
4619     - my $urlpath = '';
4620     -
4621     - my $rec = $navdb->get($file);
4622     -
4623     - if (defined $rec)
4624     - {
4625     - $heading = $rec->prop('Heading');
4626     - $description = $rec->prop('Description');
4627     - $headingWeight = $rec->prop('HeadingWeight');
4628     - $descriptionWeight = $rec->prop('DescriptionWeight');
4629     - $urlpath = $rec->prop('UrlPath') || '';
4630     - }
4631     -
4632     - #--------------------------------------------------
4633     - # add heading, description and weight information to data structure
4634     - #--------------------------------------------------
4635     -
4636     - unless (exists $nav {$heading})
4637     - {
4638     - $nav {$heading} = { COUNT => 0, WEIGHT => 0, DESCRIPTIONS => [] };
4639     - }
4640     -
4641     - $nav {$heading} {'COUNT'} ++;
4642     - $nav {$heading} {'WEIGHT'} += $headingWeight;
4643     -
4644     - # Check for manager panel, and assign the appropriate
4645     - # cgi-bin prefix for the links.
4646     - # Grab the last 2 directories by splitting for '/'s and
4647     - # then concatenating the last 2
4648     - # probably a better way, but I don't know it.
4649     - my @filename = split /\//, $files_hash{$file};
4650     - my $path = ($cgidir eq '/etc/e-smith/web/panels/manager/cgi-bin/') ?
4651     - "/$filename[scalar @filename - 1]" :
4652     - "/$filename[scalar @filename - 2]/$filename[scalar @filename - 1]";
4653     -
4654     - push @{ $nav {$heading} {'DESCRIPTIONS'} },
4655     - { DESCRIPTION => $description,
4656     - WEIGHT => $descriptionWeight,
4657     - FILENAME => $urlpath ? $urlpath : "$path/$file",
4658     - CGIPATH => $path
4659     - };
4660     - }
4661     -
4662     - #--------------------------------------------------
4663     - # generate list of headings sorted by average weight
4664     - #--------------------------------------------------
4665     - if ( $NO_FRAMES )
4666     - {
4667     - esmith::cgi::genNoframesHeader ($q);
4668     - }
4669     - else
4670     - {
4671     - esmith::cgi::genNavigationHeader ($q, undef);
4672     - print "\n<TABLE BORDER=\"0\" CELLSPACING=\"0\" CELLPADDING=\"0\">\n";
4673     - }
4674     -
4675     - print '<script language="JavaScript" type="text/javascript">
4676     - <!-- Hide script
4677     - //This swap the class of the selected item.
4678     - function swapClass() {
4679     - var i,x,tB,j=0,tA=new Array(),arg=swapClass.arguments;
4680     - if(document.getElementsByTagName){for(i=4;i<arg.length;i++){tB=document.getElementsByTagName(arg[i]);
4681     - for(x=0;x<tB.length;x++){tA[j]=tB[x];j++;}}for(i=0;i<tA.length;i++){
4682     - if(tA[i].className){if(tA[i].id==arg[1]){if(arg[0]==1){
4683     - tA[i].className=(tA[i].className==arg[3])?arg[2]:arg[3];}else{tA[i].className=arg[2];}
4684     - }else if(arg[0]==1 && arg[1]==\'none\'){if(tA[i].className==arg[2] || tA[i].className==arg[3]){
4685     - tA[i].className=(tA[i].className==arg[3])?arg[2]:arg[3];}
4686     - }else if(tA[i].className==arg[2]){tA[i].className=arg[3];}}}}}
4687     - ';
4688     - print "
4689     - //This swap the class of the selected item.
4690     - function swapClasses() {
4691     - var arg=swapClasses.arguments;
4692     - swapClass(0,'none','item-current','item','a');
4693     - swapClass(0,'none','warn-current','warn','a');
4694     - swapClass(0,arg[0],'item-current','item','a');
4695     - }
4696     -
4697     - // End script hiding -->
4698     - </script>
4699     - ";
4700     -
4701     - foreach my $h (sort {
4702     - ($nav{$a}{'WEIGHT'}/$nav{$a}{'COUNT'}) <=>
4703     - ($nav{$b}{'WEIGHT'}/$nav{$b}{'COUNT'}) } keys %nav)
4704     - {
4705     - if ( $NO_FRAMES )
4706     - {
4707     - print $q->h2 ($h);
4708     - }
4709     - else
4710     - {
4711     - print "\n", $q->Tr ($q->td({class => "section"},$q->span({class => "section"}, $h)));
4712     - }
4713     -
4714     - #--------------------------------------------------
4715     - # generate list of descriptions sorted by weight
4716     - #--------------------------------------------------
4717     - print "<ul>\n" if ( $NO_FRAMES );
4718     -
4719     - foreach (sort { $a->{'WEIGHT'} <=> $b->{'WEIGHT'} } @{$nav {$h}{'DESCRIPTIONS'}})
4720     - {
4721     - my $href = "/server-manager" . $_->{'FILENAME'};
4722     - if ( $NO_FRAMES )
4723     - {
4724     - print $q->li ($q->a ({href => "$href?noframes=1"}, $_->{'DESCRIPTION'}));
4725     - }
4726     - else
4727     - {
4728     - print "\n",$q->Tr(
4729     - $q->td ({-class => "menu-cell"},
4730     - $q->a ({-id => "sme$c",
4731     - -class => "item",
4732     - -onClick => "swapClasses('sme$c')",
4733     - href => $href,
4734     - target => 'main'},
4735     - $_->{'DESCRIPTION'})
4736     - ));
4737     - }
4738     - $c++;
4739     -
4740     - }
4741     - print "</ul>\n" if ($NO_FRAMES);
4742     - }
4743     -
4744     - unless ( $NO_FRAMES )
4745     - {
4746     - print "\n</TABLE>\n";
4747     - esmith::cgi::genNavigationFooter ($q);
4748     - }
4749     -}
4750     diff -Nur e-smith-manager-2.6.0.old/root/etc/e-smith/web/panels/manager/cgi-bin/noframes e-smith-manager-2.6.0/root/etc/e-smith/web/panels/manager/cgi-bin/noframes
4751     --- e-smith-manager-2.6.0.old/root/etc/e-smith/web/panels/manager/cgi-bin/noframes 2008-10-07 13:36:17.000000000 -0400
4752     +++ e-smith-manager-2.6.0/root/etc/e-smith/web/panels/manager/cgi-bin/noframes 1969-12-31 19:00:00.000000000 -0500
4753     @@ -1,340 +0,0 @@
4754     -#!/usr/bin/perl -wT
4755     -
4756     -#----------------------------------------------------------------------
4757     -# e-smith manager functions: navigation
4758     -#
4759     -# copyright (C) 2002 Mitel Networks Corporation
4760     -#
4761     -# This program is free software; you can redistribute it and/or modify
4762     -# it under the terms of the GNU General Public License as published by
4763     -# the Free Software Foundation; either version 2 of the License, or
4764     -# (at your option) any later version.
4765     -#
4766     -# This program is distributed in the hope that it will be useful,
4767     -# but WITHOUT ANY WARRANTY; without even the implied warranty of
4768     -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
4769     -# GNU General Public License for more details.
4770     -#
4771     -# You should have received a copy of the GNU General Public License
4772     -# along with this program; if not, write to the Free Software
4773     -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
4774     -#
4775     -# Technical support for this program is available from Mitel Networks
4776     -# Please visit our web site www.e-smith.com for details.
4777     -#----------------------------------------------------------------------
4778     -package esmith;
4779     -
4780     -use strict;
4781     -use CGI ':no_xhtml', ':all';
4782     -use CGI::Carp qw(fatalsToBrowser);
4783     -
4784     -use esmith::cgi;
4785     -use esmith::config;
4786     -use esmith::NavigationDB;
4787     -use esmith::util;
4788     -use esmith::I18N;
4789     -
4790     -sub determineGroup;
4791     -sub showNavigation ($);
4792     -
4793     -BEGIN
4794     -{
4795     - # Clear PATH and related environment variables so that calls to
4796     - # external programs do not cause results to be tainted. See
4797     - # "perlsec" manual page for details.
4798     -
4799     - $ENV {'PATH'} = '';
4800     - $ENV {'SHELL'} = '/bin/bash';
4801     - delete $ENV {'ENV'};
4802     -}
4803     -
4804     -esmith::util::setRealToEffective ();
4805     -
4806     -$CGI::POST_MAX=1024 * 100; # max 100K posts
4807     -$CGI::DISABLE_UPLOADS = 1; # no uploads
4808     -
4809     -# Use the one script for navigation and noframes
4810     -my $NO_FRAMES = ($0 =~ /noframes/);
4811     -
4812     -my %conf;
4813     -tie %conf, 'esmith::config';
4814     -
4815     -my $q = new CGI;
4816     -
4817     -showNavigation ($q);
4818     -exit (0);
4819     -
4820     -
4821     -#------------------------------------------------------
4822     -# subroutine to determine which group a user belongs to
4823     -#------------------------------------------------------
4824     -
4825     -sub determineGroup
4826     -{
4827     - my ($user) = shift;
4828     -
4829     - # Group file for authentication
4830     - my $group_file = '/etc/group';
4831     - open ( GF, $group_file )
4832     - or die "Cannot open group file: $group_file: $!\n";
4833     -
4834     - # list of groups this user belongs to
4835     - my @groupList;
4836     - while (<GF>)
4837     - {
4838     - if (/[:,]$user\b/)
4839     - {
4840     - my ($groupName, undef) = split(/:/);
4841     - push @groupList, $groupName;
4842     - }
4843     - }
4844     - close GF;
4845     - return @groupList;
4846     -}
4847     -
4848     -#------------------------------------------------------------
4849     -# subroutine to display navigation bar
4850     -#------------------------------------------------------------
4851     -
4852     -sub showNavigation ($)
4853     -{
4854     - my $q = shift;
4855     -
4856     - # enable utf8 binmode so new translations work
4857     - binmode STDOUT, ":utf8";
4858     -
4859     - # Use this variable throughout to keep track of files
4860     - # list of just the files
4861     - my $c = "1";
4862     - my @files = ();
4863     - my %files_hash = ();
4864     - my @panel_group = $ENV{'REMOTE_USER'} eq "admin" ?
4865     - ("admin") : determineGroup($ENV{'REMOTE_USER'});
4866     -
4867     - #-----------------------------------------------------
4868     - # Determine the directory where the functions are kept
4869     - #-----------------------------------------------------
4870     -
4871     - my $navigation_ignore =
4872     - "(\.\.?|navigation|noframes|online-manual|(internal|pleasewait)(-.*)?)";
4873     -
4874     - my $cgidir = 'nowhere';
4875     - if ($panel_group[0] eq 'admin')
4876     - {
4877     - $cgidir = '/etc/e-smith/web/panels/manager/cgi-bin/';
4878     -
4879     - if (opendir (DIR, $cgidir))
4880     - {
4881     - @files = grep (!/^${navigation_ignore}$/,
4882     - readdir (DIR));
4883     - closedir (DIR);
4884     - }
4885     - else
4886     - {
4887     - warn "Can't open directory $cgidir\n";
4888     - }
4889     -
4890     - foreach my $file (@files)
4891     - {
4892     - next if (-d "$cgidir/$file");
4893     - $files_hash{$file} = $cgidir;
4894     - }
4895     - }
4896     - else
4897     - {
4898     - foreach my $panel (@panel_group)
4899     - {
4900     - $cgidir = "/etc/e-smith/web/panels/manager/$panel/cgi-bin";
4901     -
4902     - if (opendir (DIR, $cgidir))
4903     - {
4904     - @files = grep (!/^${navigation_ignore}$/,
4905     - readdir (DIR));
4906     - closedir (DIR);
4907     - foreach my $file (@files)
4908     - {
4909     - next if (-d "$cgidir/$file");
4910     - $files_hash{$file} = $cgidir;
4911     - }
4912     - }
4913     - else
4914     - {
4915     - warn "Can't open directory $cgidir\n";
4916     - }
4917     - }
4918     - }
4919     -
4920     - #--------------------------------------------------
4921     - # For each script, extract the description and category
4922     - # information. Build up an associative array mapping headings
4923     - # to heading structures. Each heading structure contains the
4924     - # total weight for the heading, the number of times the heading
4925     - # has been encountered, and another associative array mapping
4926     - # descriptions to description structures. Each description
4927     - # structure contains the filename of the particular cgi script
4928     - # and a weight.
4929     - #--------------------------------------------------
4930     - my %nav = ();
4931     -
4932     - use constant NAVIGATIONDIR => '/home/e-smith/db/navigation';
4933     - use constant WEBFUNCTIONS => '/etc/e-smith/web/functions';
4934     -
4935     - my $i18n = new esmith::I18N;
4936     -
4937     - my $language = $i18n->preferredLanguage( $ENV{HTTP_ACCEPT_LANGUAGE} );
4938     -
4939     - my $navinfo = NAVIGATIONDIR . "/navigation.$language";
4940     -
4941     - my $navdb = esmith::NavigationDB->open_ro( $navinfo ) or
4942     - die "Couldn't open $navinfo\n";
4943     -
4944     - # Check the navdb for anything with a UrlPath, which means that it doesn't
4945     - # have a cgi file to be picked up by the above code. Ideally, only pages
4946     - # that exist should be in the db, but that's not the case. Anything
4947     - # without a cgi file will have to remove themselves on uninstall from the
4948     - # navigation dbs.
4949     - foreach my $rec ($navdb->get_all)
4950     - {
4951     - if ($rec->prop('UrlPath'))
4952     - {
4953     - $files_hash{$rec->{key}} = $cgidir;
4954     - }
4955     - }
4956     -
4957     - foreach my $file (keys %files_hash)
4958     - {
4959     - my $heading = 'Unknown';
4960     - my $description = $file;
4961     - my $headingWeight = 99999;
4962     - my $descriptionWeight = 99999;
4963     - my $urlpath = '';
4964     -
4965     - my $rec = $navdb->get($file);
4966     -
4967     - if (defined $rec)
4968     - {
4969     - $heading = $rec->prop('Heading');
4970     - $description = $rec->prop('Description');
4971     - $headingWeight = $rec->prop('HeadingWeight');
4972     - $descriptionWeight = $rec->prop('DescriptionWeight');
4973     - $urlpath = $rec->prop('UrlPath') || '';
4974     - }
4975     -
4976     - #--------------------------------------------------
4977     - # add heading, description and weight information to data structure
4978     - #--------------------------------------------------
4979     -
4980     - unless (exists $nav {$heading})
4981     - {
4982     - $nav {$heading} = { COUNT => 0, WEIGHT => 0, DESCRIPTIONS => [] };
4983     - }
4984     -
4985     - $nav {$heading} {'COUNT'} ++;
4986     - $nav {$heading} {'WEIGHT'} += $headingWeight;
4987     -
4988     - # Check for manager panel, and assign the appropriate
4989     - # cgi-bin prefix for the links.
4990     - # Grab the last 2 directories by splitting for '/'s and
4991     - # then concatenating the last 2
4992     - # probably a better way, but I don't know it.
4993     - my @filename = split /\//, $files_hash{$file};
4994     - my $path = ($cgidir eq '/etc/e-smith/web/panels/manager/cgi-bin/') ?
4995     - "/$filename[scalar @filename - 1]" :
4996     - "/$filename[scalar @filename - 2]/$filename[scalar @filename - 1]";
4997     -
4998     - push @{ $nav {$heading} {'DESCRIPTIONS'} },
4999     - { DESCRIPTION => $description,
5000     - WEIGHT => $descriptionWeight,
5001     - FILENAME => $urlpath ? $urlpath : "$path/$file",
5002     - CGIPATH => $path
5003     - };
5004     - }
5005     -
5006     - #--------------------------------------------------
5007     - # generate list of headings sorted by average weight
5008     - #--------------------------------------------------
5009     - if ( $NO_FRAMES )
5010     - {
5011     - esmith::cgi::genNoframesHeader ($q);
5012     - }
5013     - else
5014     - {
5015     - esmith::cgi::genNavigationHeader ($q, undef);
5016     - print "\n<TABLE BORDER=\"0\" CELLSPACING=\"0\" CELLPADDING=\"0\">\n";
5017     - }
5018     -
5019     - print '<script language="JavaScript" type="text/javascript">
5020     - <!-- Hide script
5021     - //This swap the class of the selected item.
5022     - function swapClass() {
5023     - var i,x,tB,j=0,tA=new Array(),arg=swapClass.arguments;
5024     - if(document.getElementsByTagName){for(i=4;i<arg.length;i++){tB=document.getElementsByTagName(arg[i]);
5025     - for(x=0;x<tB.length;x++){tA[j]=tB[x];j++;}}for(i=0;i<tA.length;i++){
5026     - if(tA[i].className){if(tA[i].id==arg[1]){if(arg[0]==1){
5027     - tA[i].className=(tA[i].className==arg[3])?arg[2]:arg[3];}else{tA[i].className=arg[2];}
5028     - }else if(arg[0]==1 && arg[1]==\'none\'){if(tA[i].className==arg[2] || tA[i].className==arg[3]){
5029     - tA[i].className=(tA[i].className==arg[3])?arg[2]:arg[3];}
5030     - }else if(tA[i].className==arg[2]){tA[i].className=arg[3];}}}}}
5031     - ';
5032     - print "
5033     - //This swap the class of the selected item.
5034     - function swapClasses() {
5035     - var arg=swapClasses.arguments;
5036     - swapClass(0,'none','item-current','item','a');
5037     - swapClass(0,'none','warn-current','warn','a');
5038     - swapClass(0,arg[0],'item-current','item','a');
5039     - }
5040     -
5041     - // End script hiding -->
5042     - </script>
5043     - ";
5044     -
5045     - foreach my $h (sort {
5046     - ($nav{$a}{'WEIGHT'}/$nav{$a}{'COUNT'}) <=>
5047     - ($nav{$b}{'WEIGHT'}/$nav{$b}{'COUNT'}) } keys %nav)
5048     - {
5049     - if ( $NO_FRAMES )
5050     - {
5051     - print $q->h2 ($h);
5052     - }
5053     - else
5054     - {
5055     - print "\n", $q->Tr ($q->td({class => "section"},$q->span({class => "section"}, $h)));
5056     - }
5057     -
5058     - #--------------------------------------------------
5059     - # generate list of descriptions sorted by weight
5060     - #--------------------------------------------------
5061     - print "<ul>\n" if ( $NO_FRAMES );
5062     -
5063     - foreach (sort { $a->{'WEIGHT'} <=> $b->{'WEIGHT'} } @{$nav {$h}{'DESCRIPTIONS'}})
5064     - {
5065     - my $href = "/server-manager" . $_->{'FILENAME'};
5066     - if ( $NO_FRAMES )
5067     - {
5068     - print $q->li ($q->a ({href => "$href?noframes=1"}, $_->{'DESCRIPTION'}));
5069     - }
5070     - else
5071     - {
5072     - print "\n",$q->Tr(
5073     - $q->td ({-class => "menu-cell"},
5074     - $q->a ({-id => "sme$c",
5075     - -class => "item",
5076     - -onClick => "swapClasses('sme$c')",
5077     - href => $href,
5078     - target => 'main'},
5079     - $_->{'DESCRIPTION'})
5080     - ));
5081     - }
5082     - $c++;
5083     -
5084     - }
5085     - print "</ul>\n" if ($NO_FRAMES);
5086     - }
5087     -
5088     - unless ( $NO_FRAMES )
5089     - {
5090     - print "\n</TABLE>\n";
5091     - esmith::cgi::genNavigationFooter ($q);
5092     - }
5093     -}
5094     diff -Nur e-smith-manager-2.6.0.old/root/etc/e-smith/web/panels/manager/html/index.cgi e-smith-manager-2.6.0/root/etc/e-smith/web/panels/manager/html/index.cgi
5095     --- e-smith-manager-2.6.0.old/root/etc/e-smith/web/panels/manager/html/index.cgi 2006-11-02 11:38:41.000000000 -0500
5096     +++ e-smith-manager-2.6.0/root/etc/e-smith/web/panels/manager/html/index.cgi 1969-12-31 19:00:00.000000000 -0500
5097     @@ -1,36 +0,0 @@
5098     -#!/usr/bin/perl -wT
5099     -
5100     -#----------------------------------------------------------------------
5101     -# copyright (C) 1999-2006 Mitel Networks Corporation
5102     -#
5103     -# This program is free software; you can redistribute it and/or modify
5104     -# it under the terms of the GNU General Public License as published by
5105     -# the Free Software Foundation; either version 2 of the License, or
5106     -# (at your option) any later version.
5107     -#
5108     -# This program is distributed in the hope that it will be useful,
5109     -# but WITHOUT ANY WARRANTY; without even the implied warranty of
5110     -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
5111     -# GNU General Public License for more details.
5112     -#
5113     -# You should have received a copy of the GNU General Public License
5114     -# along with this program; if not, write to the Free Software
5115     -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
5116     -#
5117     -#----------------------------------------------------------------------
5118     -
5119     -use strict;
5120     -use esmith::FormMagick;
5121     -
5122     -my $fm = new esmith::FormMagick;
5123     -$fm->display();
5124     -
5125     -exit 0;
5126     -
5127     -__DATA__
5128     -<form title="FORM_TITLE" header="/etc/e-smith/web/common/noframes_head.tmpl" footer="/etc/e-smith/web/common/noframes_foot.tmpl">
5129     - <page name="First">
5130     - <description>NOFRAMES_BODY</description>
5131     - </page>
5132     -
5133     -</form>
5134     diff -Nur e-smith-manager-2.6.0.old/root/etc/e-smith/web/panels/manager/html/initial.cgi e-smith-manager-2.6.0/root/etc/e-smith/web/panels/manager/html/initial.cgi
5135     --- e-smith-manager-2.6.0.old/root/etc/e-smith/web/panels/manager/html/initial.cgi 2006-11-02 11:38:41.000000000 -0500
5136     +++ e-smith-manager-2.6.0/root/etc/e-smith/web/panels/manager/html/initial.cgi 1969-12-31 19:00:00.000000000 -0500
5137     @@ -1,36 +0,0 @@
5138     -#!/usr/bin/perl -wT
5139     -
5140     -#----------------------------------------------------------------------
5141     -# copyright (C) 1999-2006 Mitel Networks Corporation
5142     -#
5143     -# This program is free software; you can redistribute it and/or modify
5144     -# it under the terms of the GNU General Public License as published by
5145     -# the Free Software Foundation; either version 2 of the License, or
5146     -# (at your option) any later version.
5147     -#
5148     -# This program is distributed in the hope that it will be useful,
5149     -# but WITHOUT ANY WARRANTY; without even the implied warranty of
5150     -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
5151     -# GNU General Public License for more details.
5152     -#
5153     -# You should have received a copy of the GNU General Public License
5154     -# along with this program; if not, write to the Free Software
5155     -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
5156     -#
5157     -#----------------------------------------------------------------------
5158     -use strict;
5159     -use esmith::FormMagick;
5160     -
5161     -my $fm = new esmith::FormMagick;
5162     -
5163     -$fm->display();
5164     -
5165     -exit 0;
5166     -
5167     -__DATA__
5168     -<form title="FORM_TITLE" header="/etc/e-smith/web/common/head.tmpl" footer="/etc/e-smith/web/common/foot.tmpl">
5169     - <page name="First">
5170     - <description>FRAMES_BODY</description>
5171     - </page>
5172     -
5173     -</form>
5174     diff -Nur e-smith-manager-2.6.0.old/root/usr/share/locale/en_US/LC_MESSAGES/foot.tmpl.po e-smith-manager-2.6.0/root/usr/share/locale/en_US/LC_MESSAGES/foot.tmpl.po
5175     --- e-smith-manager-2.6.0.old/root/usr/share/locale/en_US/LC_MESSAGES/foot.tmpl.po 2016-06-13 04:18:01.270000000 -0400
5176     +++ e-smith-manager-2.6.0/root/usr/share/locale/en_US/LC_MESSAGES/foot.tmpl.po 1969-12-31 19:00:00.000000000 -0500
5177     @@ -1,22 +0,0 @@
5178     -# SOME DESCRIPTIVE TITLE.
5179     -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
5180     -# This file is distributed under the same license as the PACKAGE package.
5181     -# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5182     -#
5183     -#, fuzzy
5184     -msgid ""
5185     -msgstr ""
5186     -"Project-Id-Version: PACKAGE VERSION\n"
5187     -"Report-Msgid-Bugs-To: \n"
5188     -"POT-Creation-Date: 2016-06-13 04:18-0400\n"
5189     -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
5190     -"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
5191     -"Language-Team: LANGUAGE <LL@li.org>\n"
5192     -"Language: \n"
5193     -"MIME-Version: 1.0\n"
5194     -"Content-Type: text/plain; charset=CHARSET\n"
5195     -"Content-Transfer-Encoding: 8bit\n"
5196     -
5197     -#: root/etc/e-smith/templates/etc/e-smith/web/common/foot.tmpl/25Copyright:7
5198     -msgid "All rights reserved."
5199     -msgstr ""

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed