Fix the authenfication check.
[Project_webapp.git] / includes / home.php
... / ...
CommitLineData
1<table id="home">
2<?php
3global $is_logged_in;
4
5if (!$is_logged_in) {
6 $root_url = $configs['root_url'];
7 echo " <tr>\n";
8 echo " <td><a href=\"$root_url/index.php?page=login\">S'identifier</a></td>\n";
9 echo " <td><a href=\"$root_url/index.php?page=register\">Cre&#769;er un compte</a></td>\n";
10 echo " </tr>\n";
11}
12?>
13 <tr>
14 <td<?php if (!$is_logged_in) { echo " colspan=\"2\""; } ?>><a href="<?php echo $configs['root_url'] ?>/index.php?page=search">Rechercher un vol</a></td>
15 </tr>
16</table>