Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
canap
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SI-FSD
canap
Commits
c36a9cfe
Commit
c36a9cfe
authored
5 years ago
by
nicrausaz
Browse files
Options
Downloads
Patches
Plain Diff
Prepare migration
parent
55b3db0b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
canapEPFL/README.md
+5
-5
5 additions, 5 deletions
canapEPFL/README.md
canapEPFL/configs/config.php
+2
-2
2 additions, 2 deletions
canapEPFL/configs/config.php
canapEPFL/configs/db.template.php
+1
-1
1 addition, 1 deletion
canapEPFL/configs/db.template.php
with
8 additions
and
8 deletions
canapEPFL/README.md
+
5
−
5
View file @
c36a9cfe
...
@@ -3,12 +3,12 @@
...
@@ -3,12 +3,12 @@
-
[x] Adapter pour ajouter les postulations dans une DB
-
[x] Adapter pour ajouter les postulations dans une DB
-
[x] Ajouter une page pour voir / supprimer ses postulations
-
[x] Ajouter une page pour voir / supprimer ses postulations
-
[x] Commentaires et section du code
-
[x] Commentaires et section du code
-
[
] Editer ses postulations
-
[
x
] Editer ses postulations
# Améliorations possibles du formulaire canap.epfl.ch
# Améliorations possibles du formulaire canap.epfl.ch
-
[ ] Refonte pour utiliser l'API (canap-gest)
# Infos
# Infos
> Ouvrir la postulation dans configs/config.php
> Les candidtures s'ouvrent lorsque des places sont disponibles (admin. canap-gest)
> Résultats sur \\scxdata\apprentis$\candidatures
> Résultats sur \\scxdata\apprentis$\candidatures et DB (canap_db)
> Fichier de config pour choisir les postulations autorisées: configs/config.php
\ No newline at end of file
> En début de période de postulations, ne pas autoriser les laborantins (qui postulent -> AVML).
\ No newline at end of file
This diff is collapsed.
Click to expand it.
canapEPFL/configs/config.php
+
2
−
2
View file @
c36a9cfe
...
@@ -2,10 +2,10 @@
...
@@ -2,10 +2,10 @@
if
(
count
(
get_included_files
())
==
1
)
exit
(
"Direct access not permitted."
);
if
(
count
(
get_included_files
())
==
1
)
exit
(
"Direct access not permitted."
);
// default (production): \\\\scxdata\\apprentis$\\candidatures\\
// default (production): \\\\scxdata\\apprentis$\\candidatures\\
$FILESERVERPATH
=
'\\\\scxdata.epfl.ch\\apprentis$\\candidatures\\nouvelles\\
test-Nicolas-Crausaz\\
'
;
$FILESERVERPATH
=
'\\\\scxdata.epfl.ch\\apprentis$\\candidatures\\nouvelles\\'
;
// Mettre a false pour pas spammer pendant le dev
// Mettre a false pour pas spammer pendant le dev
$SENDEMAILS
=
fals
e
;
$SENDEMAILS
=
tru
e
;
$POSTULATION_OPEN
=
count
(
$DBController
->
getOpenPositions
())
>
0
;
// close/open postulation
$POSTULATION_OPEN
=
count
(
$DBController
->
getOpenPositions
())
>
0
;
// close/open postulation
...
...
This diff is collapsed.
Click to expand it.
canapEPFL/configs/db.template.php
+
1
−
1
View file @
c36a9cfe
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
/* template pour la connection DB, renommer en db.php */
/* template pour la connection DB, renommer en db.php */
$db_user
=
''
;
$db_user
=
''
;
$db_pass
=
''
;
$db_pass
=
''
;
$pdo
=
new
PDO
(
'mysql:host=mysql-fac.epfl.ch;port=33003;dbname=canap_db'
,
$db_user
,
$db_pass
);
$pdo
=
new
PDO
(
'mysql:host=mysql-fac.epfl.ch;port=33003;dbname=canap_db'
,
$db_user
,
$db_pass
,
array
(
PDO
::
MYSQL_ATTR_INIT_COMMAND
=>
'SET NAMES utf8'
)
);
$pdo
->
setAttribute
(
PDO
::
ATTR_DEFAULT_FETCH_MODE
,
PDO
::
FETCH_ASSOC
);
$pdo
->
setAttribute
(
PDO
::
ATTR_DEFAULT_FETCH_MODE
,
PDO
::
FETCH_ASSOC
);
// for dev
// for dev
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment