Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions authenticate.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php

include("./connection.php");
$con = connection :: getConnection();
$username = mysqli_real_escape_string($con, $_POST['username']);
$pass = sha1(mysqli_real_escape_string($con,$_POST['passwd']));
$res = $con->query("select * from User where username='$username' and passwd='$pass'");
$count = $res->num_rows;
if($count == 1){
session_start();
$row = $res->fetch_assoc();
$_SESSION['id'] = $row['id'];
$_SESSION['name'] = $row['Name'];
}

header("Location:./");
?>
12 changes: 12 additions & 0 deletions connection.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php
class connection{
static $host = "localhost";
static $user = "root";
static $pass = "toor";
static $db = "spotfix";
public static function getConnection(){
$con = mysqli_connect(self::$host, self::$user, self::$pass, self::$db);
return $con;
}
}
?>
35 changes: 35 additions & 0 deletions css/bootstrap-modal-bs3patch.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
/*!
* Bootstrap Modal
*
* Copyright Jordan Schroter
* Licensed under the Apache License v2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Boostrap 3 patch for for bootstrap-modal. Include BEFORE bootstrap-modal.css!
*/

body.modal-open,
.modal-open .navbar-fixed-top,
.modal-open .navbar-fixed-bottom {
margin-right: 0;
}

.modal {
left: 50%;
bottom: auto;
right: auto;
padding: 0;
width: 500px;
margin-left: -250px;
background-color: #ffffff;
border: 1px solid #999999;
border: 1px solid rgba(0, 0, 0, 0.2);
border-radius: 6px;
-webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
background-clip: padding-box;
}

.modal.container {
max-width: none;
}
262 changes: 262 additions & 0 deletions css/bootstrap-modal.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,262 @@
/*!
* Bootstrap Modal
*
* Copyright Jordan Schroter
* Licensed under the Apache License v2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
*/

.modal-open {
overflow: hidden;
}


/* add a scroll bar to stop page from jerking around */
.modal-open.page-overflow .page-container,
.modal-open.page-overflow .page-container .navbar-fixed-top,
.modal-open.page-overflow .page-container .navbar-fixed-bottom,
.modal-open.page-overflow .modal-scrollable {
overflow-y: scroll;
}

@media (max-width: 979px) {
.modal-open.page-overflow .page-container .navbar-fixed-top,
.modal-open.page-overflow .page-container .navbar-fixed-bottom {
overflow-y: visible;
}
}


.modal-scrollable {
position: fixed;
top: 0;
bottom: 0;
left: 70px;
right: 0;
overflow: auto;
}

.modal {
outline: none;
position: absolute;
margin-top: 0;
top: 50%;
overflow: visible; /* allow content to popup out (i.e tooltips) */
}

.modal.fade {
top: -100%;
-webkit-transition: opacity 0.3s linear, top 0.3s ease-out, bottom 0.3s ease-out, margin-top 0.3s ease-out;
-moz-transition: opacity 0.3s linear, top 0.3s ease-out, bottom 0.3s ease-out, margin-top 0.3s ease-out;
-o-transition: opacity 0.3s linear, top 0.3s ease-out, bottom 0.3s ease-out, margin-top 0.3s ease-out;
transition: opacity 0.3s linear, top 0.3s ease-out, bottom 0.3s ease-out, margin-top 0.3s ease-out;
}

.modal.fade.in {
top: 50%;
margin:inherit;
}

.modal-body {
max-height: none;
overflow: visible;
}

.modal.modal-absolute {
position: absolute;
z-index: 950;
}

.modal .loading-mask {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
background: #fff;
border-radius: 6px;
}

.modal-backdrop.modal-absolute{
position: absolute;
z-index: 940;
}

.modal-backdrop,
.modal-backdrop.fade.in{
opacity: 0.7;
filter: alpha(opacity=70);
background: #fff;
}

.modal.container {
width: 940px;
margin-left: -470px;
}

/* Modal Overflow */

.modal-overflow.modal {
top: 1%;
}

.modal-overflow.modal.fade {
top: -100%;
}

.modal-overflow.modal.fade.in {
top: 1%;
margin-left:70px!important;
width:280px;
height:450px;
}

.modal-overflow .modal-body {
overflow: auto;
-webkit-overflow-scrolling: touch;
}

/* Responsive */

@media (min-width: 1200px) {
.modal.container {
width: 1170px;
margin-left: -585px;
}
}

@media (max-width: 979px) {
.modal,
.modal.container,
.modal.modal-overflow {
top: 1%;
right: 1%;
left: 1%;
bottom: auto;
width: auto !important;
height: auto !important;
margin: 0 !important;
padding: 0 !important;
}

.modal.fade.in,
.modal.container.fade.in,
.modal.modal-overflow.fade.in {
top: 1%;
bottom: auto;
margin-left:70px;
}

.modal-body,
.modal-overflow .modal-body {
position: static;
margin: 0;
height: auto !important;
max-height: none !important;
overflow: visible !important;
}

.modal-footer,
.modal-overflow .modal-footer {
position: static;
}
}

.loading-spinner {
position: absolute;
top: 50%;
left: 50%;
margin: -12px 0 0 -12px;
}

/*
Animate.css - http://daneden.me/animate
Licensed under the ☺ license (http://licence.visualidiot.com/)

Copyright (c) 2012 Dan Eden*/

.animated {
-webkit-animation-duration: 1s;
-moz-animation-duration: 1s;
-o-animation-duration: 1s;
animation-duration: 1s;
-webkit-animation-fill-mode: both;
-moz-animation-fill-mode: both;
-o-animation-fill-mode: both;
animation-fill-mode: both;
}

@-webkit-keyframes shake {
0%, 100% {-webkit-transform: translateX(0);}
10%, 30%, 50%, 70%, 90% {-webkit-transform: translateX(-10px);}
20%, 40%, 60%, 80% {-webkit-transform: translateX(10px);}
}

@-moz-keyframes shake {
0%, 100% {-moz-transform: translateX(0);}
10%, 30%, 50%, 70%, 90% {-moz-transform: translateX(-10px);}
20%, 40%, 60%, 80% {-moz-transform: translateX(10px);}
}

@-o-keyframes shake {
0%, 100% {-o-transform: translateX(0);}
10%, 30%, 50%, 70%, 90% {-o-transform: translateX(-10px);}
20%, 40%, 60%, 80% {-o-transform: translateX(10px);}
}

@keyframes shake {
0%, 100% {transform: translateX(0);}
10%, 30%, 50%, 70%, 90% {transform: translateX(-10px);}
20%, 40%, 60%, 80% {transform: translateX(10px);}
}

.shake {
-webkit-animation-name: shake;
-moz-animation-name: shake;
-o-animation-name: shake;
animation-name: shake;
}


.buttonModal {
display: block;
width: 125px;
height: 25px;
background: #DBD0DB;
padding: 10px;
text-align: center;
border-radius: 5px;
color: rgb(147,45,151);
font-size:medium;
padding-bottom:30px;
}

.buttonImageModal {
display: block;
height: 25px;
background: #DBD0DB;
padding: 10px;
text-align: center;
border-radius: 5px;
color: rgb(147,45,151);
font-size:medium;
padding-bottom:30px;
}

.buttonColorModal {
display: inline;
width: 115px;
height: 25px;
background: #DBD0DB;
padding: 5px;
text-align: center;
border-radius: 10px;
color: rgb(147,45,151);
font-size:larger;
padding-bottom:12px;
}

.modalImageSlider{
width:800px;
}
39 changes: 39 additions & 0 deletions css/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#top-bar{
background-color:black;
color:white;
}

#myModal{
left:20%;
top:34%;
}

#joinModal{
left:20%;
top:34%;
}
#reportModal{
left:20%;
top:34%;
}
@media (max-width: 979px){
#myModal{
top:10%;
left:0%;
}
#joinModal{
top:10%;
left:0%;
}
#reportModal{
top:10%;
left:0%;
}
.modal-scrollable{
left:0px;
}
.modal {

}
}

Loading