X-Git-Url: https://git.piment-noir.org/?p=Project_webapp.git;a=blobdiff_plain;f=index.php;h=8bceb64bb6702c58fa45b66bb7f4ea744d6415d5;hp=01b3ce32fed45e398ceee1032a2c0798f187065f;hb=b5f60f89589412e18b51326378ab13b9a4fa0f19;hpb=fb6aedc24c1522dd61aabe01263eb88f69accee0 diff --git a/index.php b/index.php index 01b3ce3..8bceb64 100644 --- a/index.php +++ b/index.php @@ -1,61 +1,117 @@ "; + } + $found_action = true; break; - } else { - echo "Action to display do not exist"; } } + if (!$found_action) { + echo "Action to display do not exist
"; + } } -display_action(valid_page($page)); +//password_hash('12345678', PASSWORD_DEFAULT); + +$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(); -require('footer.html'); +require('includes/footer.html'); ?>