X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=index.php;h=5c12c9e0477395dd88a9d26353b096dcd9e58440;hb=22f1dc6402dbc9a9c5d2ed2f17ef54044d35ec2a;hp=9d22f3e15361790b8c2fe89561b28cc88ebd0cf2;hpb=65fc0194b3ae059f212c577db4f4a8fec43069d6;p=Project_webapp.git diff --git a/index.php b/index.php index 9d22f3e..5c12c9e 100644 --- a/index.php +++ b/index.php @@ -1,18 +1,14 @@ "; } $found_action = true; break; } } if (!$found_action) { - echo "Action to display do not exist"; + echo "Action to display do not exist.
"; } } -$url_action = get_url_action(); +$action_type = get_action_type(); +$url_action = get_url_action($action_type); $action = validate_url_action($url_action); -display_action($action); +display_action($action, $action_type); + +$connection->close(); -session_destroy(); +session_write_close(); -require('footer.html'); +require('includes/footer.html'); ?>