svg
This commit is contained in:
parent
3988986d60
commit
ada20f01f6
@ -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}NkKjK3fXfmGDKmwfTtA11qPwVFmE3SsW
|
||||
(-100, -100, 'admin', 'Administrateur', 'draaf', '{SSHA}/Ord89DmD7WPXj/gZEt7CEvzfhNztOLv
|
||||
', 'admin@transnum.cadol.es', 'admin.jpg', 'ROLE_ADMIN', '130007107', 'simple');
|
||||
|
||||
|
||||
|
@ -17,17 +17,19 @@ class FeedController extends Controller
|
||||
$feeds=[];
|
||||
$fs = new Filesystem();
|
||||
|
||||
$file=file_get_contents($directory."/invitation.json");
|
||||
$json = substr($file, 0, -2); // sup dernier ,
|
||||
$surveys = json_decode("{".$json."}", true);
|
||||
foreach($surveys as $id => $survey) {
|
||||
array_push($feeds,[
|
||||
"id"=>$id,
|
||||
"title"=>$survey["title"],
|
||||
"url"=>$survey["url"],
|
||||
"date"=>$survey["date"],
|
||||
"description"=>$survey["description"],
|
||||
"category"=>"limesurvey"]);
|
||||
if($fs->exists($directory."/invitation.json")) {
|
||||
$file=file_get_contents($directory."/invitation.json");
|
||||
$json = substr($file, 0, -2); // sup dernier ,
|
||||
$surveys = json_decode("{".$json."}", true);
|
||||
foreach($surveys as $id => $survey) {
|
||||
array_push($feeds,[
|
||||
"id"=>$id,
|
||||
"title"=>$survey["title"],
|
||||
"url"=>$survey["url"],
|
||||
"date"=>$survey["date"],
|
||||
"description"=>$survey["description"],
|
||||
"category"=>"limesurvey"]);
|
||||
}
|
||||
}
|
||||
|
||||
$response = new Response($this->renderView('CadolesPortalBundle:Feed:index.xml.twig',array(
|
||||
|
@ -1530,12 +1530,14 @@ class PagewidgetController extends Controller
|
||||
$files=[];
|
||||
$fs = new Filesystem();
|
||||
|
||||
$file=file_get_contents($directory."/survey.json");
|
||||
$json = substr($file, 0, -2); // sup dernier ,
|
||||
$surveys = json_decode("{".$json."}", true);
|
||||
if(is_array($surveys)) {
|
||||
foreach($surveys as $id => $survey) {
|
||||
array_push($items,["id"=>$id,"title"=>$survey["title"],"subtitle"=>"Sondage","url"=>$survey["url"],"itemcategory"=>$category,"color"=>"328637","icon"=>"icon_limesurvey.png"]);
|
||||
if($fs->exists($directory."/survey.json")) {
|
||||
$file=file_get_contents($directory."/survey.json");
|
||||
$json = substr($file, 0, -2); // sup dernier ,
|
||||
$surveys = json_decode("{".$json."}", true);
|
||||
if(is_array($surveys)) {
|
||||
foreach($surveys as $id => $survey) {
|
||||
array_push($items,["id"=>$id,"title"=>$survey["title"],"subtitle"=>"Sondage","url"=>$survey["url"],"itemcategory"=>$category,"color"=>"328637","icon"=>"icon_limesurvey.png"]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user