ajout item fluxbb (fixes #66)
This commit is contained in:
@ -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');
|
||||
|
||||
|
||||
|
@ -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');
|
||||
|
BIN
src/ninegate-1.0/web/uploads/icon/icon_fluxbb.png
Normal file
BIN
src/ninegate-1.0/web/uploads/icon/icon_fluxbb.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.3 KiB |
Reference in New Issue
Block a user