This commit is contained in:
afornerot 2019-06-21 14:40:21 +02:00
parent 102ed218a9
commit 9f1b56504b
7 changed files with 33 additions and 2 deletions

View File

@ -149,7 +149,7 @@
<value>non</value> <value>non</value>
</variable> </variable>
<variable type='string' name='ninegate_widpiwik_url' description='URL complète de votre Piwik' mandatory='True' /> <variable type='string' name='ninegate_widpiwik_url' description='URL complète de votre Piwik' mandatory='True' />
<variable type='string' name='ninegate_widpiwik_syncenvole' description='URL Posh-Profil pour synchronisation Piwik' mandatory='True' />
<!-- WORDPRESS --> <!-- WORDPRESS -->
@ -352,6 +352,7 @@
<target type='variable'>ninegate_widlimesurvey_syncenvole</target> <target type='variable'>ninegate_widlimesurvey_syncenvole</target>
<target type='variable'>ninegate_widmoodle_syncenvole</target> <target type='variable'>ninegate_widmoodle_syncenvole</target>
<target type='variable'>ninegate_widpiwik_syncenvole</target>
<target type='variable'>ninegate_widwordpress_syncenvole</target> <target type='variable'>ninegate_widwordpress_syncenvole</target>
</condition> </condition>
@ -485,6 +486,7 @@
<param>non</param> <param>non</param>
<target type='variable'>ninegate_widpiwik_url</target> <target type='variable'>ninegate_widpiwik_url</target>
<target type='variable'>ninegate_widpiwik_syncenvole</target>
</condition> </condition>
<fill name='calc_multi_condition' target='ninegate_widpiwik_url'> <fill name='calc_multi_condition' target='ninegate_widpiwik_url'>
@ -494,6 +496,13 @@
<param name='default_mismatch'>None</param> <param name='default_mismatch'>None</param>
</fill> </fill>
<fill name='calc_multi_condition' target='ninegate_widpiwik_syncenvole'>
<param>oui</param>
<param type='eole' name='condition_1' hidden='False'>activer_piwik</param>
<param name='match'>/posh-profil</param>
<param name='default_mismatch'>None</param>
</fill>

View File

@ -8,7 +8,7 @@ INSERT IGNORE INTO `niveau01` (`id`, `label`, `siren`) VALUES
(-100, 'DRAAF', '130007107'); (-100, 'DRAAF', '130007107');
INSERT IGNORE INTO `user` (`id`, `niveau01_id`, `username`, `firstname`, `lastname`, `password`, `email`, `avatar`, `role`,`siren`,`authlevel`) VALUES INSERT IGNORE INTO `user` (`id`, `niveau01_id`, `username`, `firstname`, `lastname`, `password`, `email`, `avatar`, `role`,`siren`,`authlevel`) VALUES
(-100, -100, 'admin', 'Administrateur', 'draaf', '{SSHA}vVFWm4leqk5s1yL2v3YhSABW45sQmnWx (-100, -100, 'admin', 'Administrateur', 'draaf', '{SSHA}QGvYXVU6ChpCKv9oPx0P6nHMgnlHAwBK
', 'admin@ldapbundle.ac-arno.fr', 'admin.jpg', 'ROLE_ADMIN', '130007107', 'simple'); ', 'admin@ldapbundle.ac-arno.fr', 'admin.jpg', 'ROLE_ADMIN', '130007107', 'simple');
@ -52,6 +52,7 @@ INSERT IGNORE INTO `sidebar` (`id`, `parent_id`, `roworder`, `label`, `path`, `f
(3001, 3000, 3001, 'Délégation', 'cadoles_portal_config_syncdelegation', 'fa-balance-scale', 'ROLE_ADMIN,ROLE_MODO', 'syncenvole_activate'), (3001, 3000, 3001, 'Délégation', 'cadoles_portal_config_syncdelegation', 'fa-balance-scale', 'ROLE_ADMIN,ROLE_MODO', 'syncenvole_activate'),
(3120, 3000, 3120, 'Limesurvey', 'cadoles_portal_config_synclimesurvey', 'fa-question', 'ROLE_ADMIN,ROLE_MODO', 'activate_widlimesurvey'), (3120, 3000, 3120, 'Limesurvey', 'cadoles_portal_config_synclimesurvey', 'fa-question', 'ROLE_ADMIN,ROLE_MODO', 'activate_widlimesurvey'),
(3130, 3000, 3130, 'Moodle', 'cadoles_portal_config_syncmoodle', 'fa-graduation-cap', 'ROLE_ADMIN,ROLE_MODO', 'activate_widmoodle'), (3130, 3000, 3130, 'Moodle', 'cadoles_portal_config_syncmoodle', 'fa-graduation-cap', 'ROLE_ADMIN,ROLE_MODO', 'activate_widmoodle'),
(3160, 3000, 3160, 'Piwik', 'cadoles_portal_config_syncpiwik', 'fa-poll', 'ROLE_ADMIN,ROLE_MODO', 'activate_widpiwik'),
(3230, 3000, 3230, 'Wordpress', 'cadoles_portal_config_syncwordpress', 'fa-wordpress', 'ROLE_ADMIN,ROLE_MODO', 'activate_widwordpress'), (3230, 3000, 3230, 'Wordpress', 'cadoles_portal_config_syncwordpress', 'fa-wordpress', 'ROLE_ADMIN,ROLE_MODO', 'activate_widwordpress'),
(7000, NULL, 7000, 'CRON', NULL, 'fa-bolt', 'ROLE_ADMIN,ROLE_MODO', 'cron_activate'), (7000, NULL, 7000, 'CRON', NULL, 'fa-bolt', 'ROLE_ADMIN,ROLE_MODO', 'cron_activate'),

View File

@ -82,6 +82,7 @@
$app["syncenvole_activate"] =$this->container->getParameter('syncenvole_activate'); $app["syncenvole_activate"] =$this->container->getParameter('syncenvole_activate');
$app["activate_widlimesurvey"] =$this->container->getParameter('activate_widlimesurvey'); $app["activate_widlimesurvey"] =$this->container->getParameter('activate_widlimesurvey');
$app["activate_widmoodle"] =$this->container->getParameter('activate_widmoodle'); $app["activate_widmoodle"] =$this->container->getParameter('activate_widmoodle');
$app["activate_widpiwik"] =$this->container->getParameter('activate_widpiwik');
$app["activate_widwordpress"] =$this->container->getParameter('activate_widwordpress'); $app["activate_widwordpress"] =$this->container->getParameter('activate_widwordpress');
// Masteridentity // Masteridentity

View File

@ -53,6 +53,20 @@ class SyncenvoleController extends Controller
]); ]);
} }
public function piwikAction()
{
$url=$this->getParameter("widpiwik_syncenvole");
$color=$this->get('session')->get('colormain');
$themename=$this->get('session')->get("theme");
return $this->render('CadolesPortalBundle:Tool:frame.html.twig', [
'useheader' => true,
'usemenu' => false,
'usesidebar' => true,
'url' => $url."/synchro.php?app=piwik&color=#color#"
]);
}
public function wordpressAction() public function wordpressAction()
{ {
$url=$this->getParameter("widwordpress_syncenvole"); $url=$this->getParameter("widwordpress_syncenvole");

View File

@ -13,6 +13,10 @@ cadoles_portal_config_syncmoodle:
path: /config/syncenvole/moodle path: /config/syncenvole/moodle
defaults: { _controller: CadolesPortalBundle:Syncenvole:moodle } defaults: { _controller: CadolesPortalBundle:Syncenvole:moodle }
cadoles_portal_config_syncpiwik:
path: /config/syncenvole/piwik
defaults: { _controller: CadolesPortalBundle:Syncenvole:piwik }
cadoles_portal_config_syncwordpress: cadoles_portal_config_syncwordpress:
path: /config/syncenvole/wordpress path: /config/syncenvole/wordpress
defaults: { _controller: CadolesPortalBundle:Syncenvole:wordpress } defaults: { _controller: CadolesPortalBundle:Syncenvole:wordpress }

View File

@ -63,6 +63,7 @@ INSERT IGNORE INTO `sidebar` (`id`, `parent_id`, `roworder`, `label`, `path`, `f
(3001, 3000, 3001, 'Délégation', 'cadoles_portal_config_syncdelegation', 'fa-balance-scale', 'ROLE_ADMIN,ROLE_MODO', 'syncenvole_activate'), (3001, 3000, 3001, 'Délégation', 'cadoles_portal_config_syncdelegation', 'fa-balance-scale', 'ROLE_ADMIN,ROLE_MODO', 'syncenvole_activate'),
(3120, 3000, 3120, 'Limesurvey', 'cadoles_portal_config_synclimesurvey', 'fa-question', 'ROLE_ADMIN,ROLE_MODO', 'activate_widlimesurvey'), (3120, 3000, 3120, 'Limesurvey', 'cadoles_portal_config_synclimesurvey', 'fa-question', 'ROLE_ADMIN,ROLE_MODO', 'activate_widlimesurvey'),
(3130, 3000, 3130, 'Moodle', 'cadoles_portal_config_syncmoodle', 'fa-graduation-cap', 'ROLE_ADMIN,ROLE_MODO', 'activate_widmoodle'), (3130, 3000, 3130, 'Moodle', 'cadoles_portal_config_syncmoodle', 'fa-graduation-cap', 'ROLE_ADMIN,ROLE_MODO', 'activate_widmoodle'),
(3160, 3000, 3160, 'Piwik', 'cadoles_portal_config_syncpiwik', 'fa-signal', 'ROLE_ADMIN,ROLE_MODO', 'activate_widpiwik'),
(3230, 3000, 3230, 'Wordpress', 'cadoles_portal_config_syncwordpress', 'fa-wordpress', 'ROLE_ADMIN,ROLE_MODO', 'activate_widwordpress'), (3230, 3000, 3230, 'Wordpress', 'cadoles_portal_config_syncwordpress', 'fa-wordpress', 'ROLE_ADMIN,ROLE_MODO', 'activate_widwordpress'),
(7000, NULL, 7000, 'CRON', NULL, 'fa-bolt', 'ROLE_ADMIN,ROLE_MODO', 'cron_activate'), (7000, NULL, 7000, 'CRON', NULL, 'fa-bolt', 'ROLE_ADMIN,ROLE_MODO', 'cron_activate'),

View File

@ -194,6 +194,7 @@ parameters:
%if %%getVar("ninegate_activate_widpiwik", 'non') == "oui" %if %%getVar("ninegate_activate_widpiwik", 'non') == "oui"
activate_widpiwik: true activate_widpiwik: true
widpiwik_url: %%ninegate_widpiwik_url widpiwik_url: %%ninegate_widpiwik_url
widpiwik_syncenvole: %%ninegate_widpiwik_syncenvole
%else %else
activate_widpiwik: false activate_widpiwik: false
%end if %end if