aboutsummaryrefslogtreecommitdiff
path: root/src/installation.php
diff options
context:
space:
mode:
authorpolo <ordipolo@gmx.fr>2025-12-16 22:41:57 +0100
committerpolo <ordipolo@gmx.fr>2025-12-16 22:41:57 +0100
commit423755b019a09111b971e36c53e2557e2f5a704f (patch)
tree022c0a911133d676dd8e4e90379f8b186863fc88 /src/installation.php
parent22da81bbcb9bb61fa484c9af6fbb667b685d2f9b (diff)
downloadcms-423755b019a09111b971e36c53e2557e2f5a704f.tar.gz
cms-423755b019a09111b971e36c53e2557e2f5a704f.tar.bz2
cms-423755b019a09111b971e36c53e2557e2f5a704f.zip
page emails, application du RGPD: table email et nettoyeur, renommage de $id_email
Diffstat (limited to 'src/installation.php')
-rw-r--r--src/installation.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/installation.php b/src/installation.php
index 3d75449..78f1768 100644
--- a/src/installation.php
+++ b/src/installation.php
@@ -100,6 +100,9 @@ function fillStartingDatabase(EntityManager $entityManager){
100 $new_page = new Page('Nouvelle page', 'new_page', "Nouvelle page", true, false, false, NULL, NULL); 100 $new_page = new Page('Nouvelle page', 'new_page', "Nouvelle page", true, false, false, NULL, NULL);
101 $new_page->addCSS('new_page'); 101 $new_page->addCSS('new_page');
102 $new_page->addJS('new_page'); 102 $new_page->addJS('new_page');
103 $emails = new Page("Courriels", 'emails', "Consulter les courriels en base de données", true, false, false, NULL, NULL);
104 $emails->addCSS('show_emails');
105 $emails->addJS('form');
103 106
104 /* -- table node -- */ 107 /* -- table node -- */
105 // paramètres: name_node, article_timestamp, attributes, position, parent, page, article 108 // paramètres: name_node, article_timestamp, attributes, position, parent, page, article
@@ -113,12 +116,14 @@ function fillStartingDatabase(EntityManager $entityManager){
113 $user_edit = new Node('user_edit', 1, $main, $my_account, NULL); 116 $user_edit = new Node('user_edit', 1, $main, $my_account, NULL);
114 $bloc_edit_menu = new Node('menu', 1, $main, $menu_paths, NULL); 117 $bloc_edit_menu = new Node('menu', 1, $main, $menu_paths, NULL);
115 $bloc_new_page = new Node('new_page', 1, $main, $new_page, NULL); 118 $bloc_new_page = new Node('new_page', 1, $main, $new_page, NULL);
119 $bloc_emails = new Node('show_emails', 1, $main, $emails, NULL);
116 120
117 /* -- table node_data -- */ 121 /* -- table node_data -- */
118 // paramètres: data, node, images 122 // paramètres: data, node, images
119 $head_data = new NodeData([], $head); 123 $head_data = new NodeData([], $head);
120 $header_data = new NodeData([], $header); 124 $header_data = new NodeData([], $header);
121 $footer_data = new NodeData([], $footer); 125 $footer_data = new NodeData([], $footer);
126 $emails_data = new NodeData([], $bloc_emails);
122 127
123 /* -- table page -- */ 128 /* -- table page -- */
124 $entityManager->persist($accueil); 129 $entityManager->persist($accueil);
@@ -127,6 +132,7 @@ function fillStartingDatabase(EntityManager $entityManager){
127 $entityManager->persist($my_account); 132 $entityManager->persist($my_account);
128 $entityManager->persist($menu_paths); 133 $entityManager->persist($menu_paths);
129 $entityManager->persist($new_page); 134 $entityManager->persist($new_page);
135 $entityManager->persist($emails);
130 136
131 /* -- table node -- */ 137 /* -- table node -- */
132 $entityManager->persist($head); 138 $entityManager->persist($head);
@@ -139,11 +145,13 @@ function fillStartingDatabase(EntityManager $entityManager){
139 $entityManager->persist($user_edit); 145 $entityManager->persist($user_edit);
140 $entityManager->persist($bloc_edit_menu); 146 $entityManager->persist($bloc_edit_menu);
141 $entityManager->persist($bloc_new_page); 147 $entityManager->persist($bloc_new_page);
148 $entityManager->persist($bloc_emails);
142 149
143 /* -- table node_data -- */ 150 /* -- table node_data -- */
144 $entityManager->persist($head_data); 151 $entityManager->persist($head_data);
145 $entityManager->persist($header_data); 152 $entityManager->persist($header_data);
146 $entityManager->persist($footer_data); 153 $entityManager->persist($footer_data);
154 $entityManager->persist($emails_data);
147 155
148 $entityManager->flush(); 156 $entityManager->flush();
149 header('Location: ' . new URL); 157 header('Location: ' . new URL);