Commit 25931590 authored by Stephane Crozat's avatar Stephane Crozat
Browse files

Correction bug views.php

parent 18087853
...@@ -7,6 +7,9 @@ add student.csv to data ...@@ -7,6 +7,9 @@ add student.csv to data
sudo su postgres sudo su postgres
sql/db_init.sh password sql/db_init.sh password
## pgcrypto module
apt install postgresql-contrib
## Test ## Test
psql -h localhost -U apisub -d apisub psql -h localhost -U apisub -d apisub
......
...@@ -44,7 +44,8 @@ class Views { ...@@ -44,7 +44,8 @@ class Views {
public function printUser($isResp, $isAdmin) { public function printUser($isResp, $isAdmin) {
echo "<div class='user'><span class='name'>$this->firstname $this->surname</span> (<span class='login'>$this->utclogin</span>)</div>"; echo "<div class='user'><span class='name'>$this->firstname $this->surname</span> (<span class='login'>$this->utclogin</span>)</div>";
actuels if ($isResp) { echo "<div class='menu'>";
if ($isResp) {
echo '<a href="index.php?mode=resp">[Gérer ses Api]</a> '; echo '<a href="index.php?mode=resp">[Gérer ses Api]</a> ';
} }
if ($isAdmin) { if ($isAdmin) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment