Skip to content

Commit

Permalink
Merge branch 'afup:master' into feat-1180-plan-du-site
Browse files Browse the repository at this point in the history
  • Loading branch information
stakovicz authored Sep 1, 2024
2 parents 5f54fa8 + 647160c commit c5167c5
Show file tree
Hide file tree
Showing 56 changed files with 152 additions and 878 deletions.
11 changes: 11 additions & 0 deletions db/migrations/20240718093800_suppression_accreditation_presse.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

use Phinx\Migration\AbstractMigration;

class SuppressionAccreditationPresse extends AbstractMigration
{
public function change()
{
$this->execute('DROP TABLE IF EXISTS afup_accreditation_presse');
}
}
11 changes: 11 additions & 0 deletions db/migrations/20240720122300_suppression_blacklist.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

use Phinx\Migration\AbstractMigration;

class SuppressionBlacklist extends AbstractMigration
{
public function change()
{
$this->execute('DROP TABLE IF EXISTS afup_blacklist');
}
}
27 changes: 25 additions & 2 deletions db/seeds/Compta.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ public function run()
'description' => 'Une recette qui rapporte',
'attachment_filename' => $path.'/test_file1.pdf',
'idevenement' => 5,
'idcompte' => 1
'idclef' => '',
'idcompte' => 1,
'numero' => '',
'obs_regl' => '',
],
[
'id' => '2',
Expand All @@ -44,7 +47,11 @@ public function run()
'date_ecriture' => date('Y-10-18'),
'description' => 'Une dépense très utile',
'idevenement' => 5,
'idcompte' => 1

'idcompte' => 1,
'idclef' => 2,
'numero' => '',
'obs_regl' => '',
],
[
'id' => '3',
Expand All @@ -56,6 +63,14 @@ public function run()
'comment' => null,
'attachment_required' => 1,
'idcompte' => 1,
'idclef' => 3,
'numero' => '',
'obs_regl' => '',
'idoperation' => 0,
'idcategorie' => 0,
'idmode_regl' => 0,
'date_regl' => '0000-00-00',
'idevenement' => 0,
],
[
'id' => '4',
Expand All @@ -68,6 +83,14 @@ public function run()
'attachment_required' => 1,
'idcompte' => 1,
'montant_ht_soumis_tva_20' => 13,
'idclef' => 4,
'numero' => '',
'obs_regl' => '',
'idoperation' => 0,
'idcategorie' => 0,
'idmode_regl' => 0,
'date_regl' => '0000-00-00',
'idevenement' => 0,
],
];

Expand Down
2 changes: 1 addition & 1 deletion db/seeds/Event.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function run()
'date_fin_saisie_nuites_hotel' => $event - $oneDayInSeconds * 7,
'place_name' => 'Paris',
'place_address' => 'Marriott Rive Gauche',
'date_annonce_planning' => date('Y-m-d', $event),
'date_annonce_planning' => date('Y-m-d H:i:s', $now - $oneMonthInSeconds),
'transport_information_enabled' => 1,
'has_prices_defined_with_vat' => 1,
],
Expand Down
15 changes: 13 additions & 2 deletions db/seeds/Facture.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,12 @@ public function run()
'prenom' => 'Yan',
'etat_paiement' => 1,
'devise_facture' => 'EUR',
'ref_clt1' => 'Forum PHP 2023'
'ref_clt1' => 'Forum PHP 2023',
'service' => '',
'observation' => '',
'ref_clt2' => '',
'ref_clt3' => '',
'tel' => '',
],
[
'id' => '2',
Expand All @@ -43,7 +48,13 @@ public function run()
'prenom' => 'Yan',
'etat_paiement' => 1,
'devise_facture' => 'EUR',
'ref_clt1' => 'Forum PHP 2024'
'ref_clt1' => 'Forum PHP 2024',
'service' => '',
'observation' => '',
'ref_clt2' => '',
'ref_clt3' => '',
'tel' => '',

],
];

Expand Down
6 changes: 5 additions & 1 deletion db/seeds/Feuilles.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,10 +180,14 @@ private function prepareFeuilles(array $items, $parentId, &$baseId = null)

$preparedFeuiles = [];
foreach ($items as $item) {
$lien = null;
if (isset($item['lien'])) {
$lien = $item['lien'];
}
$preparedFeuiles[$currentId] = [
'id' => ($currentId = ++$baseId),
'nom' => $item['nom'],
'lien' => $item['lien'],
'lien' => $item['lien'] ?? null,
'id_parent' => $parentId,
'etat' => 1,
];
Expand Down
11 changes: 7 additions & 4 deletions db/seeds/Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ public function run()
'language_code' => 'fr',
'markdown' => 1,
'joindin' => 24041,
'date_publication' => null
'date_publication' => null,
'has_allowed_to_sharing_with_local_offices' => 1,
],
[
'session_id' => self::ID_SESSIONS[1],
Expand All @@ -59,7 +60,8 @@ public function run()
'language_code' => 'fr',
'markdown' => 0,
'joindin' => 24138,
'date_publication' => (new \DateTime())->modify('-1 days')->format('Y-m-d H:i:s')
'date_publication' => (new \DateTime())->modify('-1 days')->format('Y-m-d H:i:s'),
'has_allowed_to_sharing_with_local_offices' => 1,
],
[
'session_id' => 3,
Expand All @@ -81,7 +83,8 @@ public function run()
'language_code' => 'fr',
'markdown' => 1,
'joindin' => 24041,
'date_publication' => (new \DateTime())->modify('+5 days')->format('Y-m-d H:i:s')
'date_publication' => (new \DateTime())->modify('+5 days')->format('Y-m-d H:i:s'),
'has_allowed_to_sharing_with_local_offices' => 1,
],
];

Expand Down Expand Up @@ -132,7 +135,7 @@ public function run()
'fin' => $date->format('U'),
'id_salle' => 1,
'id_forum' => Event::ID_FORUM,
'keynote' => ''
'keynote' => 0,
];
++$i;
}
Expand Down
20 changes: 10 additions & 10 deletions db/seeds/Tarif.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,55 +12,55 @@ public function run()
'technical_name' => 'AFUP_FORUM_DEUXIEME_JOURNEE',
'pretty_name' => 'Deuxième journée',
'public' => true,
'members_only' => false,
'members_only' => 0,
'default_price' => 150,
'active' => true,
'day' => 'two',
'cfp_submitter_only' => false,
'cfp_submitter_only' => 0,
],
[
'id' => 2,
'technical_name' => 'AFUP_FORUM_2_JOURNEES',
'pretty_name' => '2 Jours',
'public' => true,
'members_only' => false,
'members_only' => 0,
'default_price' => 250,
'active' => true,
'day' => 'one,two',
'cfp_submitter_only' => false,
'cfp_submitter_only' => 0,
],
[
'id' => 3,
'technical_name' => 'AFUP_FORUM_2_JOURNEES_AFUP',
'pretty_name' => '2 Jours AFUP',
'public' => true,
'members_only' => true,
'members_only' => 1,
'default_price' => 150,
'active' => true,
'day' => 'one,two',
'cfp_submitter_only' => false,
'cfp_submitter_only' => 0,
],
[
'id' => 4,
'technical_name' => 'AFUP_TEST',
'pretty_name' => 'Pour les tests',
'public' => true,
'members_only' => true,
'members_only' => 1,
'default_price' => 100,
'active' => true,
'day' => 'one,two',
'cfp_submitter_only' => false,
'cfp_submitter_only' => 0,
],
[
'id' => 5,
'technical_name' => 'AFUP_CFP',
'pretty_name' => 'Spécial CFP',
'public' => true,
'members_only' => false,
'members_only' => 0,
'default_price' => 2,
'active' => true,
'day' => 'one,two',
'cfp_submitter_only' => true,
'cfp_submitter_only' => 1,
],
];

Expand Down
2 changes: 1 addition & 1 deletion db/seeds/TechletterSubscriptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class TechletterSubscriptions extends AbstractSeed
{
public function run()
{
$subscriptionDate = (new DateTime())->format(DateTime::ATOM);
$subscriptionDate = (new DateTime())->format('Y-m-d H:i:s');
$data = [
[
'user_id' => Users::ID_USER_ADMIN,
Expand Down
15 changes: 12 additions & 3 deletions db/seeds/Users.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ public function run()
'niveau' => 2, // AFUP_DROITS_NIVEAU_ADMINISTRATEUR,
'prenom' => 'Admin',
'email' => '[email protected]',
'niveau_modules' => '00000'
'niveau_modules' => '00000',
'roles' => '',
'adresse' => '',
],
// utilisateur ayant expiré, avec une date de cotisation fixe, utile pour les tests
[
Expand All @@ -84,6 +86,8 @@ public function run()
'prenom' => 'Jean',
'email' => '[email protected]',
'niveau_modules' => '00000',
'roles' => '',
'adresse' => '',
],
// utilisateurs avec des cotisations à dates fixes pour les tests
[
Expand All @@ -97,7 +101,8 @@ public function run()
'niveau_modules' => '00000',
'adresse' => '15, main road',
'code_postal' => '93501-1100',
'ville' => 'Mojave, CA'
'ville' => 'Mojave, CA',
'roles' => '',
],
[
'id' => self::ID_USER_PERSONNE_LIE_PERSONNE_MORALE_FIXED_COTISATIONS,
Expand All @@ -110,6 +115,7 @@ public function run()
'roles' => '["ROLE_COMPANY_MANAGER"]',
'id_personne_morale' => self::ID_PERSONNE_MORALE_HELIOS_AEROSPACE,
'niveau_modules' => '00000',
'adresse' => '',
],
[
'id' => self::ID_USER_PERSONNE_MORALE,
Expand All @@ -122,6 +128,7 @@ public function run()
'roles' => '["ROLE_COMPANY_MANAGER"]',
'id_personne_morale' => self::ID_PERSONNE_MORALE_MY_CORP,
'niveau_modules' => '00000',
'adresse' => '',
],
[
'id' => self::ID_USER_PERSONNE_MORALE_NON_MANAGER,
Expand All @@ -134,7 +141,8 @@ public function run()
'roles' => '[]',
'id_personne_morale' => self::ID_PERSONNE_MORALE_MY_CORP,
'niveau_modules' => '00000',
'etat' => 1
'etat' => 1,
'adresse' => '',
],
[
'id' => self::ID_USER_PERSONNE_PHYSIQUE,
Expand All @@ -147,6 +155,7 @@ public function run()
'roles' => '[]',
'etat' => User::STATUS_ACTIVE,
'niveau_modules' => '00000',
'adresse' => '',
],
];

Expand Down
5 changes: 3 additions & 2 deletions htdocs/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ RewriteRule ^enquete$ "https://docs.google.com/forms/d/e/1FAIpQLSdtPRqp7AL73RhUS

# If the requested filename exists, simply serve it.
# We only want to let Apache serve files and not directories.
RewriteCond %{HTTPS} off
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ https://%1/$1 [R=301,L]
Expand All @@ -51,6 +49,9 @@ RewriteRule ^ - [END]
RewriteRule ^m/ /event/latest/calendar [R=301,L]
RewriteRule ^calendrier/?(index.php)? /event/latest/calendar [R=301,L]
RewriteRule ^forumphp/? https://event.afup.org [R=301,L]
RewriteRule ^ask/barometre/? https://barometre.afup.org [R=301,L]
RewriteRule ^ask/forum/? https://event.afup.org [R=301,L]
RewriteRule ^ask/? / [R=301,L]

## This url are handled by symfony
RewriteRule (event|connect|_|association|talks|meetups|blog|admin|p|home|news|techno_watch|member|rss.xml)/? /app.php [END]
56 changes: 0 additions & 56 deletions htdocs/ask/barometre/2013.html

This file was deleted.

Loading

0 comments on commit c5167c5

Please sign in to comment.