Skip to content

Commit 4bd5f99

Browse files
authored
Merge pull request #154 from RubyFri/issue-#152
change everything to php files including navbars
2 parents 72030a5 + b9c1820 commit 4bd5f99

File tree

9 files changed

+23
-17
lines changed

9 files changed

+23
-17
lines changed

.DS_Store

0 Bytes
Binary file not shown.

MeetDancers.html renamed to MeetDancers.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,14 @@
1515
</head>
1616

1717
<body>
18-
18+
<?php
19+
session_start();
20+
?>
1921
<div class="dancers">
2022
<div id="navbar" class="navbar">
2123
<ul>
22-
<li><a href="index.html">Home Page</a></li>
23-
<li><a href="MeetDancers.html">Meet the Dancers</a></li>
24+
<li><a href="index.php">Home Page</a></li>
25+
<li><a href="MeetDancers.php">Meet the Dancers</a></li>
2426
<li><a href="createAcc.php">Create Account</a></li>
2527
<li><a href="logIn.php">Log In</a></li>
2628
</ul>

changeBooking.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
<body>
1313
<div id="navbar" class="navbar">
1414
<ul>
15-
<li><a href="index.html">Home Page</a></li>
16-
<li><a href="MeetDancers.html">Meet the Dancers</a></li>
15+
<li><a href="index.php">Home Page</a></li>
16+
<li><a href="MeetDancers.php">Meet the Dancers</a></li>
1717
<li><a href="logInLanding.php">My Profile</a></li>
1818
</ul>
1919
</div>

createAcc.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
<body>
1212
<div id="navbar" class="navbar">
1313
<ul>
14-
<li><a href="index.html#home">Home Page</a></li>
15-
<li><a href="MeetDancers.html">Meet the Dancers</a></li>
14+
<li><a href="index.php#home">Home Page</a></li>
15+
<li><a href="MeetDancers.php">Meet the Dancers</a></li>
1616
</ul>
1717
</div>
1818
<div id="form">

createBooking.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
<body>
2828
<div id="navbar" class="navbar">
2929
<ul>
30-
<li><a href="index.html">Home Page</a></li>
31-
<li><a href="MeetDancers.html">Meet the Dancers</a></li>
30+
<li><a href="index.php">Home Page</a></li>
31+
<li><a href="MeetDancers.php">Meet the Dancers</a></li>
3232
<li><a href="logInLanding.php">My Profile</a></li>
3333
</ul>
3434
</div>

deleteBooking.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
<body>
2424
<div id="navbar" class="navbar">
2525
<ul>
26-
<li><a href="index.html">Home Page</a></li>
27-
<li><a href="MeetDancers.html">Meet the Dancers</a></li>
26+
<li><a href="index.php">Home Page</a></li>
27+
<li><a href="MeetDancers.php">Meet the Dancers</a></li>
2828
<li><a href="logInLanding.php">My Profile</a></li>
2929
</ul>
3030
</div>

index.html renamed to index.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,13 @@
1111
</head>
1212

1313
<body>
14+
<?php
15+
session_start();
16+
?>
1417
<div id="navbar" class="navbar">
1518
<ul>
16-
<li><a href="index.html">Home Page</a></li>
17-
<li><a href="MeetDancers.html">Meet the Dancers</a></li>
19+
<li><a href="index.php">Home Page</a></li>
20+
<li><a href="MeetDancers.php">Meet the Dancers</a></li>
1821
<li><a href="createAcc.php">Create Account</a></li>
1922
<li><a href="logIn.php">My Profile</a></li>
2023
</ul>

logIn.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
<body>
1212
<div id="navbar" class="navbar">
1313
<ul>
14-
<li><a href="index.html">Home Page</a></li>
15-
<li><a href="MeetDancers.html">Meet the Dancers</a></li>
14+
<li><a href="index.php">Home Page</a></li>
15+
<li><a href="MeetDancers.php">Meet the Dancers</a></li>
1616
</ul>
1717
</div>
1818
<div id="form">

loginLanding.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,13 @@
1111
<body>
1212
<div id="navbar" class="navbar">
1313
<ul>
14-
<li><a href="index.html">Home Page</a></li>
15-
<li><a href="MeetDancers.html">Meet the Dancers</a></li>
14+
<li><a href="index.php">Home Page</a></li>
15+
<li><a href="MeetDancers.php">Meet the Dancers</a></li>
1616
</ul>
1717
</div>
1818
<?php
1919
session_start();
20+
2021
if (isset($_SESSION['username'])) {
2122
$username = $_SESSION['username'];
2223
echo "<h2>Welcome, $username</h2>";

0 commit comments

Comments
 (0)