Webbserverprogrammering 1

Show sourcecode

The following files exists in this folder. Click to view.

webbserverprogrammering/projekt/snake_oil_seller/php/

about_us.php
admin.php
contact.php
create_products.php
create_tables.php
createtable.php
dbconnection.php
delete_post.php
delete_tables.php
deletepost.php
deletetable.php
entry.php
header.php
insert_posts.php
insertposts.php
leaderboard.php
log_in.php
log_out.php
main.php
my_account.php
question_maker.php
quiz_form.php
quiz_list.php
quiz_maker.php
result.php
select_posts.php
selectposts.php
shop.php
shop_item.php
shopping_cart.php
sign_in.php
title_card.php
update_posts.php
updateposts.php
user_verified.php
verify_page.php

title_card.php

15 lines UTF-8 Windows (CRLF)
<h1>Snake Oil Seller</h1>

<?php
session_start
();

if (isset(
$_SESSION["username"], $_SESSION["email"], $_SESSION["usertype"], $_SESSION["is_verified"])) {
  
$username $_SESSION["username"];
  
$email $_SESSION["email"];
  
$usertype $_SESSION["usertype"];
  
$is_verified $_SESSION["is_verified"];

  echo 
"<h3>Välkommen $username! E-mail = [$email], Användartyp = [$usertype], Verifierad = [$is_verified]</h3>";
}
?>