X-Git-Url: https://git.piment-noir.org/?p=Project_webapp.git;a=blobdiff_plain;f=index.php;h=9dc9e0bff683e93bc416467c952f29a9e88095af;hp=2829b2676d9a720de486008b50984ba1f355fb97;hb=a2f7a7290d0b54650c249a0bf59e66d8d7691135;hpb=265d1374774a414bfe668b15a4508d5315309ae3 diff --git a/index.php b/index.php index 2829b26..9dc9e0b 100644 --- a/index.php +++ b/index.php @@ -1,38 +1,67 @@ "; + } $found_action = true; break; } } if (!$found_action) { - echo "Action to display do not exist"; + echo "Action to display do not exist.
"; } } -$action = valid_page($page); -display_action($action); +$action_type = get_action_type(); +$url_action = get_url_action($action_type); +$action = validate_url_action($url_action); +display_action($action, $action_type); + +$connection->close(); -session_destroy(); +session_write_close(); -require('footer.html'); +require('includes/footer.html'); ?>