X-Git-Url: https://git.piment-noir.org/?p=Project_webapp.git;a=blobdiff_plain;f=lib%2Futils.php;h=f8867162fb601c03aef41246a8c47015e729191a;hp=47c8bda2e0d0c1784fb129f09fb9709de4c99e1d;hb=68cee0ac3fe728566e16dc0460416c77022f4b22;hpb=33eb6f2ab954597a257e9eb8f793a9bc52dd9524 diff --git a/lib/utils.php b/lib/utils.php index 47c8bda..f886716 100644 --- a/lib/utils.php +++ b/lib/utils.php @@ -1,5 +1,9 @@ prepare_query($sql_pquery); - $connection->prepared_query_bind_param("is", array($client_id, $flight_id)); + $connection->prepared_query_bind_param("iss", array($client_id, $flight_id, $class_name)); $connection->run_prepared_query(); $connection->get_pquery_result(); $row = $connection->get_result_array(); @@ -78,6 +108,10 @@ function nb_booked($client_id, $flight_id) return $row[0][0]; } +/** + * [chk_logged_in description] + * @return [type] [description] + */ function chk_logged_in() { if (isset($_SESSION['email']) && isset($_SESSION['IP_address'])) { @@ -87,6 +121,12 @@ function chk_logged_in() } } +/** + * [redirect description] + * @param [type] $url [description] + * @param [type] $delay [description] + * @return [type] [description] + */ function redirect($url, $delay) { header("refresh:$delay; url=$url");