Skip to content

Commit

Permalink
photographer's page is pulling data from db now. but will need to add…
Browse files Browse the repository at this point in the history
… profile photo, portfolio url as well
  • Loading branch information
bindumareedu committed Apr 19, 2019
1 parent 5746bf7 commit 97ea326
Show file tree
Hide file tree
Showing 36 changed files with 182 additions and 7,925 deletions.
Binary file modified .DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion about-me.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
<a class="nav-link" href="about-me.html">About</a>
</li>
<li class="nav-item">
<a class="nav-link" href="photographers.html">Photographers</a>
<a class="nav-link" href="photographers.php">Photographers</a>
</li>
<li class="nav-item">
<a class="nav-link" href="contact.html">Contact</a>
Expand Down
2 changes: 1 addition & 1 deletion backend/login.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
if (isset($_GET['email']) and isset($_GET['pass'])){
//3.1.1 Assigning posted values to variables.
$username = $_GET['email'];
$password = $_GET['pass'];
$password = sha1($_GET['pass']);
//3.1.2 Checking the values are existing in the database or not
$query = "SELECT * FROM public.users_info WHERE email='$username' and pass='$password'";
$result = pg_query($connection, $query) or die('Query failed: ' . pg_last_error());
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
<a class="nav-link" href="about-me.html">About</a>
</li>
<li class="nav-item">
<a class="nav-link" href="photographers.html">Photographers</a>
<a class="nav-link" href="photographers.php">Photographers</a>
</li>
<li class="nav-item">
<a class="nav-link" href="contact.html">Contact</a>
Expand Down
2 changes: 1 addition & 1 deletion login.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
<a class="nav-link" href="about-me.html">About</a>
</li>
<li class="nav-item">
<a class="nav-link" href="photographers.html">Photographers</a>
<a class="nav-link" href="photographers.php">Photographers</a>
</li>
<li class="nav-item">
<a class="nav-link" href="contact.html">Contact</a>
Expand Down
2 changes: 1 addition & 1 deletion loginfail.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
<a class="nav-link" href="about-me.html">About</a>
</li>
<li class="nav-item">
<a class="nav-link" href="photographers.html">Photographers</a>
<a class="nav-link" href="photographers.php">Photographers</a>
</li>
<li class="nav-item">
<a class="nav-link" href="contact.html">Contact</a>
Expand Down
182 changes: 0 additions & 182 deletions photographers.html

This file was deleted.

Loading

0 comments on commit 97ea326

Please sign in to comment.