diff -Nur -x '*.orig' -x '*.rej' smeserver-ocsinventory-0.1/createlinks mezzanine_patched_smeserver-ocsinventory-0.1/createlinks --- smeserver-ocsinventory-0.1/createlinks 2008-12-09 04:54:55.000000000 +0100 +++ mezzanine_patched_smeserver-ocsinventory-0.1/createlinks 2008-12-09 04:54:40.000000000 +0100 @@ -15,3 +15,7 @@ safe_symlink("/etc/e-smith/templates-default/template-begin-php", "root/etc/e-smith/templates/etc/ocsinventory/ocsinventory-reports/dbconfig.inc.php/template-begin"); +panel_link("ocs", 'manager'); + + + 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 --- smeserver-ocsinventory-0.1/root/etc/e-smith/web/functions/ocs 1970-01-01 01:00:00.000000000 +0100 +++ mezzanine_patched_smeserver-ocsinventory-0.1/root/etc/e-smith/web/functions/ocs 2008-12-09 04:47:58.000000000 +0100 @@ -0,0 +1,32 @@ +#!/usr/bin/perl +#---------------------------------------------------------------------- +# heading : Administration +# description : OCS Inventory +# navigation : 4000 4200 +#---------------------------------------------------------------------- + +use strict; +use CGI':all'; +use CGI::Carp qw(fatalsToBrowser); + + +BEGIN +{ + $ENV {'PATH'} = '/bin:/usr/bin:/sbin'; + $ENV {'SHELL'} = '/bin/bash'; + delete $ENV {'ENV'}; +} + + +my $q = new CGI; +my $content="0; url=https://".$ENV {'HTTP_X_FORWARDED_HOST'}."/ocs"; +$q->default_dtd('-//W3C//DTD XHTML 1.0 Transitional//EN'); + +print $q->header ('text/html'); +print $q->start_html (-head=>meta({-http_equiv=>'refresh', -content=>$content})); + + + +print $q->end_html; + +