Koozali.org: home of the SME Server

Raccourci GLPI dans server-manager, possible ?

Raccourci GLPI dans server-manager, possible ?
« on: May 24, 2014, 12:02:57 PM »
Est-il possible d'ajouter un raccourci "GLPI" dans "Administration" du "server-manager" comme il existe pour OCS inventory ?

 8-)

Offline stephdl

  • *
  • 1,523
  • +0/-0
    • Linux et Geekeries
Re: Raccourci GLPI dans server-manager, possible ?
« Reply #1 on: May 24, 2014, 01:35:58 PM »
oui mais cela demande de faire un rpm pour glpi

voila comment ils ont fais pour ocs

Code: [Select]
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;
+
+
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Re: Raccourci GLPI dans server-manager, possible ?
« Reply #2 on: May 24, 2014, 01:50:35 PM »
Vais laisser comme ça pour le moment  :D

Offline stephdl

  • *
  • 1,523
  • +0/-0
    • Linux et Geekeries
Re: Raccourci GLPI dans server-manager, possible ?
« Reply #3 on: May 24, 2014, 01:59:15 PM »
plus sérieusement tu as un tuto sur comment réaliser une contribs web pour sme http://wiki.contribs.org/Web_Application_RPM

un bon exercice serait de mettre à jour ocs puis de s'attaquer à celle la...bien évidemment le développement c'est un peu un escalier, les marches se gravissent les unes après les autres.
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!