X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=index.php;h=33db471dab67fc5cf393608b7f00565ffa2f8f09;hb=refs%2Fheads%2Fmaster;hp=9dc9e0bff683e93bc416467c952f29a9e88095af;hpb=a96fefe119b8c91c2f5ae6ad04e11af676e5540b;p=Project_webapp.git diff --git a/index.php b/index.php index 9dc9e0b..33db471 100644 --- a/index.php +++ b/index.php @@ -13,7 +13,7 @@ if (!isset($page)) { } /** - * form MUST have an hidden field named 'form' to enable proper routing + * form MUST have an hidden field named 'form' to enable proper routing here */ $form = filter_input(INPUT_POST, 'form', FILTER_SANITIZE_URL); $is_form = true; @@ -22,6 +22,12 @@ if (!isset($form)) { $form = ""; } +//var_dump($_SESSION); + +/** + * [get_action_type description] + * @return [type] [description] + */ function get_action_type() { global $is_page, $is_form; @@ -36,6 +42,11 @@ function get_action_type() { } } +/** + * [get_url_action description] + * @param [type] $action_type [description] + * @return [type] [description] + */ function get_url_action($action_type) { global $page, $form; @@ -70,6 +81,12 @@ function validate_url_action($action_name) return $configs['actions'][0]; } +/** + * [display_action description] + * @param [type] $action_name [description] + * @param [type] $action_type [description] + * @return [type] [description] + */ function display_action($action_name, $action_type) { global $configs;