diff --git a/dicos/90_ninegate.xml b/dicos/90_ninegate.xml index 80cb3a67..7b235ac7 100644 --- a/dicos/90_ninegate.xml +++ b/dicos/90_ninegate.xml @@ -31,6 +31,7 @@ + @@ -173,6 +174,12 @@ + + + non + + + non @@ -314,6 +321,7 @@ Paramètres associés à Dokuwiki Paramètres associés à eConnect Paramètres associés à Etherhome + Paramètres associés à Fluxbb Paramètres associés à GEPI Paramètres associés à Grr Paramètres associés à Kanboard @@ -471,6 +479,7 @@ ninegate_activate_widdokuwiki ninegate_activate_wideconnect ninegate_activate_widetherhome + ninegate_activate_widfluxbb ninegate_activate_widgepi ninegate_activate_widgrr ninegate_activate_widkanboard @@ -674,6 +683,30 @@ + + + oui + activer_fluxbb + oui + non + non + + + + non + + ninegate_widfluxbb_url + + + + oui + activer_fluxbb + /fluxbb + None + + + + oui diff --git a/src/ninegate-1.0/src/Cadoles/CoreBundle/Command/data/core-init-01.sql b/src/ninegate-1.0/src/Cadoles/CoreBundle/Command/data/core-init-01.sql index 7cb69baf..fdebccb3 100644 --- a/src/ninegate-1.0/src/Cadoles/CoreBundle/Command/data/core-init-01.sql +++ b/src/ninegate-1.0/src/Cadoles/CoreBundle/Command/data/core-init-01.sql @@ -8,7 +8,7 @@ INSERT IGNORE INTO `niveau01` (`id`, `label`, `siren`) VALUES (-100, 'DRAAF', '130007107'); INSERT IGNORE INTO `user` (`id`, `niveau01_id`, `username`, `firstname`, `lastname`, `password`, `email`, `avatar`, `role`,`siren`,`authlevel`) VALUES -(-100, -100, 'admin', 'Administrateur', 'draaf', '{SSHA}iEIczoPGRG4AD3gT80NOruss2uA94dV9 +(-100, -100, 'admin', 'Administrateur', 'draaf', '{SSHA}hTAPycxp8kXFhZIjteFA4fsB2CQcIenW ', 'admin@ldapbundle.ac-arno.fr', 'admin.jpg', 'ROLE_ADMIN', '130007107', 'simple'); diff --git a/src/ninegate-1.0/src/Cadoles/PortalBundle/Command/InitDataCommand.php b/src/ninegate-1.0/src/Cadoles/PortalBundle/Command/InitDataCommand.php index 5b4fd08b..216cdd32 100644 --- a/src/ninegate-1.0/src/Cadoles/PortalBundle/Command/InitDataCommand.php +++ b/src/ninegate-1.0/src/Cadoles/PortalBundle/Command/InitDataCommand.php @@ -43,6 +43,7 @@ class InitDataCommand extends ContainerAwareCommand $activate_widdokuwiki = $this->getContainer()->getParameter('activate_widdokuwiki'); $activate_wideconnect = $this->getContainer()->getParameter('activate_wideconnect'); $activate_widetherhome = $this->getContainer()->getParameter('activate_widetherhome'); + $activate_widfluxbb = $this->getContainer()->getParameter('activate_widfluxbb'); $activate_widgepi = $this->getContainer()->getParameter('activate_widgepi'); $activate_widgrr = $this->getContainer()->getParameter('activate_widgrr'); $activate_widkanboard = $this->getContainer()->getParameter('activate_widkanboard'); @@ -354,6 +355,28 @@ class InitDataCommand extends ContainerAwareCommand $em->persist($entityItem); } + // Item fluxbb + if($activate_widfluxbb) { + $widfluxbb_url =$this->getContainer()->getParameter('widfluxbb_url'); + $entityItem = $em->getRepository('CadolesPortalBundle:Item')->find(-397); + if(!$entityItem) { + $entityicon = $em->getRepository('CadolesPortalBundle:Icon')->findoneby(["label"=>"uploads/icon/icon_fluxbb.png"]); + + $entityItem = new Item(); + $entityItem->setId(-397); + $entityItem->setRowOrder(0); + $entityItem->setTitle('Fluxbb'); + $entityItem->SetSubtitle("Forum"); + $entityItem->setIcon($entityicon); + $entityItem->setTarget("_blank"); + $entityItem->setItemcategory($entityItemcategoryapp); + $entityItem->setEssential(true); + $entityItem->addGroup($groupall); + } + $entityItem->setUrl($widfluxbb_url); + $em->persist($entityItem); + } + // Item gepi if($activate_widgepi) { $widgepi_url =$this->getContainer()->getParameter('widgepi_url'); diff --git a/src/ninegate-1.0/web/uploads/icon/icon_fluxbb.png b/src/ninegate-1.0/web/uploads/icon/icon_fluxbb.png new file mode 100644 index 00000000..ff9d8c28 Binary files /dev/null and b/src/ninegate-1.0/web/uploads/icon/icon_fluxbb.png differ diff --git a/tmpl/ninegate-template.yml b/tmpl/ninegate-template.yml index 86b4a5ed..d51bb12b 100644 --- a/tmpl/ninegate-template.yml +++ b/tmpl/ninegate-template.yml @@ -220,6 +220,13 @@ parameters: activate_widetherhome: false %end if +%if %%getVar("ninegate_activate_widfluxbb", 'non') == "oui" + activate_widfluxbb: true + widfluxbb_url: %%ninegate_widfluxbb_url +%else + activate_widfluxbb: false +%end if + %if %%getVar("ninegate_activate_widgepi", 'non') == "oui" activate_widgepi: true widgepi_url: %%ninegate_widgepi_url