1 |
unnilennium |
1.1 |
diff -Nur -x '*.orig' -x '*.rej' smeserver-ocsinventory-0.1/createlinks mezzanine_patched_smeserver-ocsinventory-0.1/createlinks |
2 |
|
|
--- smeserver-ocsinventory-0.1/createlinks 2008-12-09 04:54:55.000000000 +0100 |
3 |
|
|
+++ mezzanine_patched_smeserver-ocsinventory-0.1/createlinks 2008-12-09 04:54:40.000000000 +0100 |
4 |
|
|
@@ -15,3 +15,7 @@ |
5 |
|
|
|
6 |
|
|
safe_symlink("/etc/e-smith/templates-default/template-begin-php", "root/etc/e-smith/templates/etc/ocsinventory/ocsinventory-reports/dbconfig.inc.php/template-begin"); |
7 |
|
|
|
8 |
|
|
+panel_link("ocs", 'manager'); |
9 |
|
|
+ |
10 |
|
|
+ |
11 |
|
|
+ |
12 |
|
|
diff -Nur -x '*.orig' -x '*.rej' smeserver-ocsinventory-0.1/root/etc/e-smith/web/functions/ocs mezzanine_patched_smeserver-ocsinventory-0.1/root/etc/e-smith/web/functions/ocs |
13 |
|
|
--- smeserver-ocsinventory-0.1/root/etc/e-smith/web/functions/ocs 1970-01-01 01:00:00.000000000 +0100 |
14 |
|
|
+++ mezzanine_patched_smeserver-ocsinventory-0.1/root/etc/e-smith/web/functions/ocs 2008-12-09 04:47:58.000000000 +0100 |
15 |
|
|
@@ -0,0 +1,32 @@ |
16 |
|
|
+#!/usr/bin/perl |
17 |
|
|
+#---------------------------------------------------------------------- |
18 |
|
|
+# heading : Administration |
19 |
|
|
+# description : OCS Inventory |
20 |
|
|
+# navigation : 4000 4200 |
21 |
|
|
+#---------------------------------------------------------------------- |
22 |
|
|
+ |
23 |
|
|
+use strict; |
24 |
|
|
+use CGI':all'; |
25 |
|
|
+use CGI::Carp qw(fatalsToBrowser); |
26 |
|
|
+ |
27 |
|
|
+ |
28 |
|
|
+BEGIN |
29 |
|
|
+{ |
30 |
|
|
+ $ENV {'PATH'} = '/bin:/usr/bin:/sbin'; |
31 |
|
|
+ $ENV {'SHELL'} = '/bin/bash'; |
32 |
|
|
+ delete $ENV {'ENV'}; |
33 |
|
|
+} |
34 |
|
|
+ |
35 |
|
|
+ |
36 |
|
|
+my $q = new CGI; |
37 |
|
|
+my $content="0; url=https://".$ENV {'HTTP_X_FORWARDED_HOST'}."/ocs"; |
38 |
|
|
+$q->default_dtd('-//W3C//DTD XHTML 1.0 Transitional//EN'); |
39 |
|
|
+ |
40 |
|
|
+print $q->header ('text/html'); |
41 |
|
|
+print $q->start_html (-head=>meta({-http_equiv=>'refresh', -content=>$content})); |
42 |
|
|
+ |
43 |
|
|
+ |
44 |
|
|
+ |
45 |
|
|
+print $q->end_html; |
46 |
|
|
+ |
47 |
|
|
+ |