├── team#26 - 3 ├── Users │ ├── chats.php │ ├── Js │ │ ├── refresh.js │ │ ├── search.js │ │ ├── friendRequests.js │ │ ├── otherProfile.js │ │ ├── community.js │ │ └── varified.js │ ├── Uploads │ │ ├── 109.jpg │ │ ├── 116.jpg │ │ ├── 137.jpg │ │ ├── 383.jpg │ │ ├── 423.jpg │ │ ├── 481.jpeg │ │ ├── 484.jpeg │ │ ├── 558.jpeg │ │ ├── 718.jpg │ │ ├── 729.jpg │ │ ├── 788.jpg │ │ ├── 837.jpg │ │ ├── 842.png │ │ ├── 885.jpg │ │ ├── user.png │ │ ├── cancer.jpg │ │ ├── structure-1.jpg │ │ ├── welcomeGif.gif │ │ ├── Screenshot (1).png │ │ ├── BeautyPlus_20170205083215_save.jpg │ │ ├── WhatsApp Image 2020-12-04 at 1.17.09 PM.jpeg │ │ └── Logo Maker - Logo Creator, Generator & Designer9_15_2019_8_24_56_PM.png │ ├── Needs │ │ ├── upload.php │ │ ├── uploadImg.php │ │ └── editModal.php │ ├── Action │ │ ├── cancleRequest.php │ │ ├── acceptRequest.php │ │ ├── addPost.php │ │ ├── sendRequest.php │ │ ├── search.php │ │ ├── join.php │ │ ├── startIndiChat.php │ │ ├── likePost.php │ │ ├── sendMsg.php │ │ └── getMsg.php │ ├── updateProfile.php │ ├── makeCommunity.php │ ├── friendRequests.php │ ├── userProfile.php │ ├── chat_room.php │ ├── indiChat.php │ ├── profile.php │ ├── otherProfile.php │ └── community.php ├── dependencies ├── logout.php ├── Upload │ └── upload.php ├── Database │ ├── dbconnect_connect.php │ └── keltago4_chat.sql ├── login.php ├── Check │ ├── addDetails.php │ ├── addDetailsLogin.php │ ├── loginEmailCheck.php │ └── userCheck.php ├── logins.php ├── CSS │ ├── Community.css │ ├── kel.css │ └── w3.css ├── Community.css ├── Commen │ ├── headerDetails.php │ ├── header.php │ ├── generalHeader.php │ └── lobbyheader.php ├── Js │ ├── check.js │ ├── details.js │ └── index.js ├── details.php ├── detailsLogin.php ├── readme.md └── index.php ├── HackIIITV_rules_and_timeline.pdf ├── CODE_OF_CONDUCT.md ├── README.md └── LICENSE /team#26 - 3/Users/chats.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /team#26 - 3/dependencies: -------------------------------------------------------------------------------- 1 | 1) logout url -------------------------------------------------------------------------------- /team#26 - 3/Users/Js/refresh.js: -------------------------------------------------------------------------------- 1 | setInterval(refresh, 1000); -------------------------------------------------------------------------------- /HackIIITV_rules_and_timeline.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kelta-King/hackiiitv20-submissions/HEAD/HackIIITV_rules_and_timeline.pdf -------------------------------------------------------------------------------- /team#26 - 3/Users/Uploads/109.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kelta-King/hackiiitv20-submissions/HEAD/team#26 - 3/Users/Uploads/109.jpg -------------------------------------------------------------------------------- /team#26 - 3/Users/Uploads/116.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kelta-King/hackiiitv20-submissions/HEAD/team#26 - 3/Users/Uploads/116.jpg -------------------------------------------------------------------------------- /team#26 - 3/Users/Uploads/137.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kelta-King/hackiiitv20-submissions/HEAD/team#26 - 3/Users/Uploads/137.jpg -------------------------------------------------------------------------------- /team#26 - 3/Users/Uploads/383.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kelta-King/hackiiitv20-submissions/HEAD/team#26 - 3/Users/Uploads/383.jpg -------------------------------------------------------------------------------- /team#26 - 3/Users/Uploads/423.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kelta-King/hackiiitv20-submissions/HEAD/team#26 - 3/Users/Uploads/423.jpg -------------------------------------------------------------------------------- /team#26 - 3/Users/Uploads/481.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kelta-King/hackiiitv20-submissions/HEAD/team#26 - 3/Users/Uploads/481.jpeg -------------------------------------------------------------------------------- /team#26 - 3/Users/Uploads/484.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kelta-King/hackiiitv20-submissions/HEAD/team#26 - 3/Users/Uploads/484.jpeg -------------------------------------------------------------------------------- /team#26 - 3/Users/Uploads/558.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kelta-King/hackiiitv20-submissions/HEAD/team#26 - 3/Users/Uploads/558.jpeg -------------------------------------------------------------------------------- /team#26 - 3/Users/Uploads/718.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kelta-King/hackiiitv20-submissions/HEAD/team#26 - 3/Users/Uploads/718.jpg -------------------------------------------------------------------------------- /team#26 - 3/Users/Uploads/729.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kelta-King/hackiiitv20-submissions/HEAD/team#26 - 3/Users/Uploads/729.jpg -------------------------------------------------------------------------------- /team#26 - 3/Users/Uploads/788.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kelta-King/hackiiitv20-submissions/HEAD/team#26 - 3/Users/Uploads/788.jpg -------------------------------------------------------------------------------- /team#26 - 3/Users/Uploads/837.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kelta-King/hackiiitv20-submissions/HEAD/team#26 - 3/Users/Uploads/837.jpg -------------------------------------------------------------------------------- /team#26 - 3/Users/Uploads/842.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kelta-King/hackiiitv20-submissions/HEAD/team#26 - 3/Users/Uploads/842.png -------------------------------------------------------------------------------- /team#26 - 3/Users/Uploads/885.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kelta-King/hackiiitv20-submissions/HEAD/team#26 - 3/Users/Uploads/885.jpg -------------------------------------------------------------------------------- /team#26 - 3/Users/Uploads/user.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kelta-King/hackiiitv20-submissions/HEAD/team#26 - 3/Users/Uploads/user.png -------------------------------------------------------------------------------- /team#26 - 3/Users/Uploads/cancer.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kelta-King/hackiiitv20-submissions/HEAD/team#26 - 3/Users/Uploads/cancer.jpg -------------------------------------------------------------------------------- /team#26 - 3/logout.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /team#26 - 3/Users/Uploads/structure-1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kelta-King/hackiiitv20-submissions/HEAD/team#26 - 3/Users/Uploads/structure-1.jpg -------------------------------------------------------------------------------- /team#26 - 3/Users/Uploads/welcomeGif.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kelta-King/hackiiitv20-submissions/HEAD/team#26 - 3/Users/Uploads/welcomeGif.gif -------------------------------------------------------------------------------- /team#26 - 3/Users/Uploads/Screenshot (1).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kelta-King/hackiiitv20-submissions/HEAD/team#26 - 3/Users/Uploads/Screenshot (1).png -------------------------------------------------------------------------------- /team#26 - 3/Users/Uploads/BeautyPlus_20170205083215_save.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kelta-King/hackiiitv20-submissions/HEAD/team#26 - 3/Users/Uploads/BeautyPlus_20170205083215_save.jpg -------------------------------------------------------------------------------- /team#26 - 3/Users/Uploads/WhatsApp Image 2020-12-04 at 1.17.09 PM.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kelta-King/hackiiitv20-submissions/HEAD/team#26 - 3/Users/Uploads/WhatsApp Image 2020-12-04 at 1.17.09 PM.jpeg -------------------------------------------------------------------------------- /team#26 - 3/Users/Uploads/Logo Maker - Logo Creator, Generator & Designer9_15_2019_8_24_56_PM.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kelta-King/hackiiitv20-submissions/HEAD/team#26 - 3/Users/Uploads/Logo Maker - Logo Creator, Generator & Designer9_15_2019_8_24_56_PM.png -------------------------------------------------------------------------------- /team#26 - 3/Upload/upload.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /team#26 - 3/Database/dbconnect_connect.php: -------------------------------------------------------------------------------- 1 | connect_error) 11 | { 12 | die("something went wrong:$conn->connect_error"); 13 | } 14 | 15 | 16 | ?> -------------------------------------------------------------------------------- /team#26 - 3/Users/Needs/upload.php: -------------------------------------------------------------------------------- 1 | "; 13 | 14 | } 15 | ?> -------------------------------------------------------------------------------- /team#26 - 3/login.php: -------------------------------------------------------------------------------- 1 | alert('Login first')"; 22 | header("Location:logout.php"); 23 | } 24 | 25 | ?> -------------------------------------------------------------------------------- /team#26 - 3/Users/Needs/uploadImg.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /team#26 - 3/Users/Action/cancleRequest.php: -------------------------------------------------------------------------------- 1 | query($qry)){ 21 | 22 | } 23 | else{ 24 | echo "Something went wrong"; 25 | } 26 | 27 | $conn->close(); 28 | 29 | } 30 | else{ 31 | header("Location:../../logout.php"); 32 | } 33 | ?> -------------------------------------------------------------------------------- /team#26 - 3/Users/Action/acceptRequest.php: -------------------------------------------------------------------------------- 1 | query($qry)){ 21 | 22 | } 23 | else{ 24 | echo "Something went wrong"; 25 | } 26 | 27 | $conn->close(); 28 | 29 | } 30 | else{ 31 | header("Location:../../logout.php"); 32 | } 33 | ?> -------------------------------------------------------------------------------- /team#26 - 3/Users/Action/addPost.php: -------------------------------------------------------------------------------- 1 | query($qry)){ 21 | 22 | } 23 | else{ 24 | echo "Something went wrong"; 25 | } 26 | 27 | $conn->close(); 28 | 29 | } 30 | else{ 31 | header("Location:../logout.php"); 32 | } 33 | ?> -------------------------------------------------------------------------------- /team#26 - 3/Users/Js/search.js: -------------------------------------------------------------------------------- 1 | let srch = document.getElementById('search_val'); 2 | srch.addEventListener("input", () => { 3 | 4 | let val = document.getElementById('search_val').value; 5 | let search_answeres = document.getElementById('search_answers'); 6 | 7 | myFunction2(true); 8 | 9 | let str = "val="+val; 10 | let xhttp = new XMLHttpRequest(); 11 | xhttp.onreadystatechange = function() { 12 | 13 | if(this.readyState == 4 && this.status == 200){ 14 | 15 | if(this.responseText.length > 20){ 16 | search_answeres.innerHTML = this.responseText; 17 | } 18 | else{ 19 | search_answeres.innerHTML = "
No communities
"; 20 | } 21 | 22 | } 23 | } 24 | xhttp.open("POST", "Action/search.php", true); 25 | xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); 26 | xhttp.send(str); 27 | 28 | }); 29 | -------------------------------------------------------------------------------- /team#26 - 3/Check/addDetails.php: -------------------------------------------------------------------------------- 1 | query($query)){ 18 | 19 | if($conn->query($query)){ 20 | 21 | } 22 | else{ 23 | echo "Something went wrong"; 24 | } 25 | 26 | } 27 | else{ 28 | echo "Something went wrong."; 29 | } 30 | 31 | $conn->close(); 32 | } 33 | else{ 34 | echo "Signup first"; 35 | } 36 | 37 | ?> -------------------------------------------------------------------------------- /team#26 - 3/Check/addDetailsLogin.php: -------------------------------------------------------------------------------- 1 | query($query)){ 18 | 19 | if($conn->query($query)){ 20 | 21 | } 22 | else{ 23 | echo "Something went wrong"; 24 | } 25 | 26 | } 27 | else{ 28 | echo "Something went wrong."; 29 | } 30 | 31 | $conn->close(); 32 | } 33 | else{ 34 | echo "Signup first"; 35 | } 36 | 37 | ?> -------------------------------------------------------------------------------- /team#26 - 3/Users/Js/friendRequests.js: -------------------------------------------------------------------------------- 1 | let accept = (id) => { 2 | 3 | let str = "id="+id; 4 | let xhttp = new XMLHttpRequest(); 5 | 6 | xhttp.onreadystatechange = function() { 7 | 8 | if(this.readyState == 4 && this.status == 200){ 9 | if(this.responseText == ""){ 10 | location.reload(); 11 | } 12 | 13 | } 14 | } 15 | xhttp.open("POST", "Action/acceptRequest.php", true); 16 | xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); 17 | xhttp.send(str); 18 | 19 | } 20 | 21 | let cancle = (id) => { 22 | 23 | let str = "id="+id; 24 | let xhttp = new XMLHttpRequest(); 25 | 26 | xhttp.onreadystatechange = function() { 27 | 28 | if(this.readyState == 4 && this.status == 200){ 29 | if(this.responseText == ""){ 30 | location.reload(); 31 | } 32 | } 33 | } 34 | xhttp.open("POST", "Action/cancleRequest.php", true); 35 | xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); 36 | xhttp.send(str); 37 | 38 | } -------------------------------------------------------------------------------- /team#26 - 3/Users/Action/sendRequest.php: -------------------------------------------------------------------------------- 1 | query($qry)){ 20 | 21 | if($data->num_rows >= 1){ 22 | die(); 23 | } 24 | 25 | } 26 | 27 | $qry = "INSERT INTO friendrequest(sender_id, receiver_id, status_request) VALUES($id, $receiver_id, 'pending')"; 28 | 29 | if($conn->query($qry)){ 30 | 31 | 32 | 33 | } 34 | else{ 35 | echo "Something went wrong."; 36 | } 37 | 38 | $conn->close(); 39 | 40 | } 41 | else{ 42 | header("Location:../../logout.php"); 43 | } 44 | ?> -------------------------------------------------------------------------------- /team#26 - 3/Users/Js/otherProfile.js: -------------------------------------------------------------------------------- 1 | let sendRequest = (id) => { 2 | 3 | let str = "id="+id; 4 | let xhttp = new XMLHttpRequest(); 5 | 6 | xhttp.onreadystatechange = function() { 7 | 8 | if(this.readyState == 4 && this.status == 200){ 9 | if(this.responseText == ""){ 10 | location.reload(); 11 | } 12 | 13 | } 14 | } 15 | xhttp.open("POST", "Action/sendRequest.php", true); 16 | xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); 17 | xhttp.send(str); 18 | 19 | } 20 | 21 | let startChat = (id) => { 22 | 23 | let str = "id="+id; 24 | let xhttp = new XMLHttpRequest(); 25 | 26 | xhttp.onreadystatechange = function() { 27 | 28 | if(this.readyState == 4 && this.status == 200){ 29 | if(this.responseText.length >= 10){ 30 | window.open(this.responseText, "_self"); 31 | } 32 | else{ 33 | alert(this.responseText); 34 | } 35 | 36 | } 37 | } 38 | xhttp.open("POST", "Action/startIndiChat.php", true); 39 | xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); 40 | xhttp.send(str); 41 | 42 | } -------------------------------------------------------------------------------- /team#26 - 3/Users/Action/search.php: -------------------------------------------------------------------------------- 1 | query($qry)){ 20 | 21 | if($data->num_rows <= 0){ 22 | echo "No communities"; 23 | } 24 | else{ 25 | 26 | while($result = $data->fetch_assoc()){ 27 | 28 | ?> 29 |
30 | 31 | 32 |
33 | close(); 45 | 46 | } 47 | else{ 48 | header("Location:../logout.php"); 49 | } 50 | ?> -------------------------------------------------------------------------------- /team#26 - 3/logins.php: -------------------------------------------------------------------------------- 1 | query($query)){ 18 | 19 | if($data->num_rows == 1){ 20 | 21 | $result = $data->fetch_assoc(); 22 | $id = $result['u_id']; 23 | $name = $result['real_name']; 24 | $url = base64_encode($id."&".$name); 25 | 26 | $url1 = base64_encode($id."&".$email."&".$name); 27 | $_SESSION['login_user_connect'] = $url1; 28 | header("Location:Users/profile.php?name=".$url); 29 | 30 | 31 | } 32 | else{ 33 | echo "Incorrect details"; 34 | } 35 | 36 | } 37 | else{ 38 | echo "Something went wrong"; 39 | 40 | } 41 | 42 | $conn->close(); 43 | } 44 | else{ 45 | echo ""; 46 | header("Location:logout.php"); 47 | } 48 | 49 | ?> -------------------------------------------------------------------------------- /team#26 - 3/Users/Action/join.php: -------------------------------------------------------------------------------- 1 | query($qry)){ 20 | if($data->num_rows >= 1){ 21 | die("You are already in the community"); 22 | } 23 | } 24 | else{ 25 | die("Something went wrong"); 26 | } 27 | 28 | $qry = "INSERT INTO community_user VALUES($c_id, $id)"; 29 | 30 | if($conn->query($qry)){ 31 | 32 | $qy = "SELECT c_name FROM community WHERE c_id = $c_id"; 33 | 34 | if($data = $conn->query($qy)){ 35 | 36 | $result = $data->fetch_assoc(); 37 | $c_name = $result['c_name']; 38 | $url = base64_encode($c_name."&".$c_id); 39 | echo "community.php?name=".$url; 40 | 41 | } 42 | else{ 43 | echo "Something went wrong"; 44 | } 45 | 46 | } 47 | else{ 48 | echo "Something went wrong"; 49 | } 50 | 51 | $conn->close(); 52 | 53 | } 54 | else{ 55 | header("Location:../logout.php"); 56 | } 57 | ?> -------------------------------------------------------------------------------- /team#26 - 3/Users/Action/startIndiChat.php: -------------------------------------------------------------------------------- 1 | query($qry)){ 20 | if($data->num_rows >= 1){ 21 | die("You are already in the community"); 22 | } 23 | } 24 | else{ 25 | die("Something went wrong"); 26 | } 27 | 28 | $qry = "INSERT INTO community_user VALUES($c_id, $id)"; 29 | 30 | if($conn->query($qry)){ 31 | 32 | $qy = "SELECT c_name FROM community WHERE c_id = $c_id"; 33 | 34 | if($data = $conn->query($qy)){ 35 | 36 | $result = $data->fetch_assoc(); 37 | $c_name = $result['c_name']; 38 | $url = base64_encode($c_name."&".$c_id); 39 | echo "community.php?name=".$url; 40 | 41 | } 42 | else{ 43 | echo "Something went wrong"; 44 | } 45 | 46 | } 47 | else{ 48 | echo "Something went wrong"; 49 | } 50 | 51 | $conn->close(); 52 | 53 | } 54 | else{ 55 | header("Location:../logout.php"); 56 | } 57 | ?> -------------------------------------------------------------------------------- /team#26 - 3/Users/Action/likePost.php: -------------------------------------------------------------------------------- 1 | query($qry1)){ 20 | 21 | if($data->num_rows >= 1){ 22 | die(); 23 | } 24 | 25 | } 26 | 27 | $qry = "SELECT likes FROM post WHERE p_id = $p_id"; 28 | 29 | if($data = $conn->query($qry)){ 30 | 31 | $result = $data->fetch_assoc(); 32 | $likes = $result['likes']; 33 | $likes++; 34 | 35 | $qry = "UPDATE post SET likes = $likes WHERE p_id = $p_id"; 36 | 37 | if($conn->query($qry)){ 38 | 39 | $qry2 = "INSERT INTO post_user_like VALUES($p_id, $id)"; 40 | 41 | if($conn->query($qry2)){ 42 | echo $likes; 43 | } 44 | else{ 45 | echo "Something"; 46 | } 47 | } 48 | else{ 49 | echo "Like didn't go up"; 50 | } 51 | 52 | } 53 | else{ 54 | echo "Something went wrong"; 55 | } 56 | 57 | $conn->close(); 58 | 59 | } 60 | else{ 61 | header("Location:../logout.php"); 62 | } 63 | ?> -------------------------------------------------------------------------------- /team#26 - 3/CSS/Community.css: -------------------------------------------------------------------------------- 1 | .w3-theme-l5 {color:#000 !important; background-color:#f2f9fe !important} 2 | .w3-theme-l4 {color:#000 !important; background-color:#d2eafd !important} 3 | .w3-theme-l3 {color:#000 !important; background-color:#a6d4fa !important} 4 | .w3-theme-l2 {color:#000 !important; background-color:#79bff8 !important} 5 | .w3-theme-l1 {color:#fff !important; background-color:#4daaf6 !important} 6 | .w3-theme-d1 {color:#fff !important; background-color:#0c87eb !important} 7 | .w3-theme-d2 {color:#fff !important; background-color:#0b78d1 !important} 8 | .w3-theme-d3 {color:#fff !important; background-color:#0a69b7 !important} 9 | .w3-theme-d4 {color:#fff !important; background-color:#085a9d !important} 10 | .w3-theme-d5 {color:#fff !important; background-color:#074b83 !important} 11 | 12 | .w3-theme-light {color:#000 !important; background-color:#f2f9fe !important} 13 | .w3-theme-dark {color:#fff !important; background-color:#074b83 !important} 14 | .w3-theme-action {color:#fff !important; background-color:#074b83 !important} 15 | 16 | .w3-theme {color:#fff !important; background-color:#2196f3 !important} 17 | .w3-text-theme {color:#2196f3 !important} 18 | .w3-border-theme {border-color:#2196f3 !important} 19 | 20 | .w3-hover-theme:hover {color:#fff !important; background-color:#2196f3 !important} 21 | .w3-hover-text-theme:hover {color:#2196f3 !important} 22 | .w3-hover-border-theme:hover {border-color:#2196f3 !important} -------------------------------------------------------------------------------- /team#26 - 3/Community.css: -------------------------------------------------------------------------------- 1 | .w3-theme-l5 {color:#000 !important; background-color:#f2f9fe !important} 2 | .w3-theme-l4 {color:#000 !important; background-color:#d2eafd !important} 3 | .w3-theme-l3 {color:#000 !important; background-color:#a6d4fa !important} 4 | .w3-theme-l2 {color:#000 !important; background-color:#79bff8 !important} 5 | .w3-theme-l1 {color:#fff !important; background-color:#4daaf6 !important} 6 | .w3-theme-d1 {color:#fff !important; background-color:#0c87eb !important} 7 | .w3-theme-d2 {color:#fff !important; background-color:#0b78d1 !important} 8 | .w3-theme-d3 {color:#fff !important; background-color:#0a69b7 !important} 9 | .w3-theme-d4 {color:#fff !important; background-color:#085a9d !important} 10 | .w3-theme-d5 {color:#fff !important; background-color:#074b83 !important} 11 | 12 | .w3-theme-light {color:#000 !important; background-color:#f2f9fe !important} 13 | .w3-theme-dark {color:#fff !important; background-color:#074b83 !important} 14 | .w3-theme-action {color:#fff !important; background-color:#074b83 !important} 15 | 16 | .w3-theme {color:#fff !important; background-color:#2196f3 !important} 17 | .w3-text-theme {color:#2196f3 !important} 18 | .w3-border-theme {border-color:#2196f3 !important} 19 | 20 | .w3-hover-theme:hover {color:#fff !important; background-color:#2196f3 !important} 21 | .w3-hover-text-theme:hover {color:#2196f3 !important} 22 | .w3-hover-border-theme:hover {border-color:#2196f3 !important} -------------------------------------------------------------------------------- /team#26 - 3/Check/loginEmailCheck.php: -------------------------------------------------------------------------------- 1 | query($query)){ 15 | 16 | if($data->num_rows <= 0){ 17 | echo "Incorrect email"; 18 | } 19 | else if($data->num_rows == 1){ 20 | 21 | $result = $data->fetch_assoc(); 22 | $dbpass = $result['u_password']; 23 | 24 | if(password_verify($pass, $dbpass)){ 25 | 26 | $opt = [ 27 | 'cost' => 12, 28 | ]; 29 | 30 | $id = $result['u_id']; 31 | $name = $result['real_name']; 32 | 33 | $url1 = base64_encode($id."&".$email."&".$name); 34 | $_SESSION['login_user_connect'] = $url1; 35 | 36 | } 37 | else{ 38 | echo "Incorrect password"; 39 | } 40 | 41 | } 42 | else{ 43 | echo "Incorrect details"; 44 | } 45 | 46 | } 47 | else{ 48 | echo "Something went wrong"; 49 | } 50 | 51 | $conn->close(); 52 | 53 | } 54 | else{ 55 | echo ""; 56 | header("Location:logout.php"); 57 | } 58 | 59 | ?> -------------------------------------------------------------------------------- /team#26 - 3/Check/userCheck.php: -------------------------------------------------------------------------------- 1 | query($query)){ 17 | 18 | if($data->num_rows > 0){ 19 | 20 | echo "This email address is already registered"; 21 | 22 | } 23 | else if($data->num_rows == 0){ 24 | 25 | //unique email address 26 | //color theme by default 27 | $opt = [ 28 | 'cost' => 12, 29 | ]; 30 | 31 | $password = password_hash($password, PASSWORD_BCRYPT, $opt); 32 | 33 | $query1 = "INSERT INTO users (real_name, email, u_password, gender) VALUES('$name', '$email', '$password','$gender')"; 34 | 35 | if($conn->query($query1)){ 36 | 37 | $_SESSION['signup_r'] = "yes"; 38 | 39 | } 40 | else{ 41 | echo "Something went wrong"; 42 | } 43 | 44 | } 45 | else{ 46 | echo "This email address is already registered"; 47 | } 48 | 49 | } 50 | else{ 51 | echo "Something went wrong"; 52 | } 53 | 54 | $conn->close(); 55 | 56 | } 57 | else{ 58 | echo "Signup first"; 59 | } 60 | 61 | ?> -------------------------------------------------------------------------------- /team#26 - 3/Commen/headerDetails.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Give details 5 | 6 | 7 | 8 | 9 | 11 | 21 | 22 | 23 | 24 | 25 |
w3-padding"> 26 |
HealthCare
27 | 28 | 31 | 32 |
w3-hover-"> 33 | 36 |
37 | LogOut 38 |
39 |
40 | 41 |
42 | -------------------------------------------------------------------------------- /team#26 - 3/Database/keltago4_chat.sql: -------------------------------------------------------------------------------- 1 | -- phpMyAdmin SQL Dump 2 | -- version 4.9.2 3 | -- https://www.phpmyadmin.net/ 4 | -- 5 | -- Host: 127.0.0.1 6 | -- Generation Time: Oct 31, 2020 at 12:49 PM 7 | -- Server version: 10.4.10-MariaDB 8 | -- PHP Version: 7.3.12 9 | 10 | SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; 11 | SET AUTOCOMMIT = 0; 12 | START TRANSACTION; 13 | SET time_zone = "+00:00"; 14 | 15 | 16 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 17 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 18 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 19 | /*!40101 SET NAMES utf8mb4 */; 20 | 21 | -- 22 | -- Database: `keltago4_chat` 23 | -- 24 | 25 | -- -------------------------------------------------------- 26 | 27 | -- 28 | -- Table structure for table `users` 29 | -- 30 | 31 | CREATE TABLE `users` ( 32 | `u_id` int(11) NOT NULL, 33 | `real_name` varchar(255) DEFAULT NULL, 34 | `email` varchar(255) DEFAULT NULL, 35 | `u_password` varchar(255) DEFAULT NULL, 36 | `gender` enum('Male','Female','Other') DEFAULT NULL, 37 | `time` timestamp NOT NULL DEFAULT current_timestamp() 38 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 39 | 40 | -- 41 | -- Indexes for dumped tables 42 | -- 43 | 44 | -- 45 | -- Indexes for table `users` 46 | -- 47 | ALTER TABLE `users` 48 | ADD PRIMARY KEY (`u_id`), 49 | ADD UNIQUE KEY `email` (`email`); 50 | 51 | -- 52 | -- AUTO_INCREMENT for dumped tables 53 | -- 54 | 55 | -- 56 | -- AUTO_INCREMENT for table `users` 57 | -- 58 | ALTER TABLE `users` 59 | MODIFY `u_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12; 60 | COMMIT; 61 | 62 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 63 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 64 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 65 | -------------------------------------------------------------------------------- /team#26 - 3/Users/updateProfile.php: -------------------------------------------------------------------------------- 1 | 12 27 | ]; 28 | 29 | 30 | $query = "SELECT u_password FROM users WHERE u_id = $id"; 31 | if($data = $conn->query($query)){ 32 | 33 | if($data->num_rows<=0){ 34 | echo "Password didn't match"; 35 | } 36 | else{ 37 | $result = $data->fetch_assoc(); 38 | 39 | $dbpass = $result['u_password']; 40 | if(password_verify($Pass, $dbpass)){ 41 | 42 | $pass = password_hash($new_pass, PASSWORD_BCRYPT, $opt); 43 | 44 | $query1 = "UPDATE users SET u_password = '$pass' WHERE u_id = $id"; 45 | if($conn->query($query1)){ 46 | 47 | } 48 | else{ 49 | echo "Password didn't match"; 50 | } 51 | } 52 | else{ 53 | echo "Password didn't match"; 54 | } 55 | 56 | } 57 | 58 | } 59 | else{ 60 | echo "Something went wrong"; 61 | } 62 | 63 | } 64 | else if(isset($_SESSION['login_user_connect'])){ 65 | echo "Login first"; 66 | } 67 | else{ 68 | header('Location:../logout.php'); 69 | } 70 | 71 | ?> -------------------------------------------------------------------------------- /team#26 - 3/CSS/kel.css: -------------------------------------------------------------------------------- 1 | html { 2 | scroll-behavior: smooth; 3 | 4 | } 5 | body{ 6 | font-family: 'Literata', serif; 7 | } 8 | #left1 9 | { 10 | transition-duration:0.4s; 11 | transform:scale(1.1,1.1); 12 | } 13 | #right2 14 | { 15 | transition-duration:0.4s; 16 | transform:scale(1.1,1.1); 17 | } 18 | 19 | .kel-button{ 20 | border:2px solid white; 21 | color:white; 22 | transition-duration:0.2s; 23 | } 24 | .kel-button:hover{ 25 | border:2px solid white; 26 | transform:scale(1.08, 1.08); 27 | cursor:pointer; 28 | } 29 | .kel-heading{ 30 | margin-top:50px; 31 | font-weight:800; 32 | font-size:40px; 33 | } 34 | .kel-heading:hover{ 35 | cursor:pointer; 36 | } 37 | .kel-hover{ 38 | transition-duration:0.2s; 39 | transition-timing-function:ease-out; 40 | } 41 | .kel-hover:hover{ 42 | cursor:pointer; 43 | transform:scale(1.1,1.1); 44 | } 45 | .kel-hover-2{ 46 | transition-duration:0.3s; 47 | } 48 | .kel-hover-2:hover{ 49 | cursor:pointer; 50 | } 51 | .loader { 52 | border: 5px solid #f3f3f3; 53 | border-radius: 50%; 54 | border-top: 5px solid #3498db; 55 | width: 30px; 56 | height: 30px; 57 | -webkit-animation: spin 1s linear infinite; 58 | animation: spin 1s linear infinite; 59 | } 60 | 61 | @-webkit-keyframes spin { 62 | 0% { -webkit-transform: rotate(0deg); } 63 | 100% { -webkit-transform: rotate(360deg); } 64 | } 65 | 66 | @keyframes spin { 67 | 0% { transform: rotate(0deg); } 68 | 100% { transform: rotate(360deg); } 69 | } 70 | #left1 71 | { 72 | transition-duration:0.4s; 73 | transform:scale(1.1,1.1); 74 | } 75 | #right2 76 | { 77 | transition-duration:0.4s; 78 | transform:scale(1.1,1.1); 79 | } 80 | .kel-heading{ 81 | margin-top:50px; 82 | font-weight:800; 83 | font-size:40px; 84 | } 85 | .kel-heading:hover{ 86 | cursor:pointer; 87 | } 88 | .kel-click{ 89 | box-shadow: 0px 0px 8px 0 rgba(0, 0, 0, 0.5); 90 | transition-duration:0.2s; 91 | } 92 | .kel-click:hover{ 93 | box-shadow: 0px 0px 4px 0 rgba(0, 0, 0, 0.4); 94 | } -------------------------------------------------------------------------------- /team#26 - 3/Users/makeCommunity.php: -------------------------------------------------------------------------------- 1 | query($query)){ 38 | 39 | echo "Community created"; 40 | $last_id = $conn->insert_id; 41 | 42 | $c_id = $last_id; 43 | 44 | $qry1 = "INSERT INTO chat_room (admin_id) VALUES ($id)"; 45 | 46 | if($conn->query($qry1)){ 47 | 48 | $room_id = $conn->insert_id; 49 | $qry2 = "INSERT INTO room_commu VALUES($room_id, $c_id)"; 50 | 51 | if($conn->query($qry2)){ 52 | 53 | } 54 | else{ 55 | echo "Something went wrong "; 56 | } 57 | 58 | } 59 | else{ 60 | echo "Something went wrong"; 61 | } 62 | 63 | $url = base64_encode($c_name."&".$last_id); 64 | 65 | $qry = "INSERT INTO community_user VALUES ($last_id, $id)"; 66 | 67 | if($data = $conn->query($qry)){ 68 | header("Location:community.php?name=".$url); 69 | } 70 | else{ 71 | echo "Something went wrong"; 72 | } 73 | 74 | } 75 | else{ 76 | echo "Something went wrong."; 77 | 78 | } 79 | $conn->close(); 80 | 81 | } 82 | 83 | } 84 | else{ 85 | header("Location:../logout.php"); 86 | } 87 | ?> -------------------------------------------------------------------------------- /team#26 - 3/Users/Action/sendMsg.php: -------------------------------------------------------------------------------- 1 | query($encryQry)){ 38 | 39 | $rslt = $da->fetch_assoc(); 40 | $key_id = $rslt['key_id']; 41 | $ciphiring = $rslt['ciphiring']; 42 | $iv = $rslt['iv']; 43 | $enc_key = $rslt['enc_key']; 44 | 45 | } 46 | else{ 47 | die("Error happen"); 48 | } 49 | $options = 0; 50 | 51 | $msg = openssl_encrypt($msg, $ciphiring, $enc_key, $options, $iv); 52 | 53 | $time = date('d-m-y h:i:s'); 54 | 55 | $query = "INSERT INTO chats (chat_msg, sender_id, room_id) VALUES ('$msg', $u_id, $room_id )"; 56 | 57 | if($conn->query($query)){ 58 | 59 | $message = "
"; 60 | $message .= "
"; 61 | $message .= $msgd; 62 | $message .= "
$time
"; 63 | $message .= "
"; 64 | 65 | echo $message; 66 | 67 | } 68 | else{ 69 | echo "Something went wrong"; 70 | } 71 | 72 | } 73 | else if(isset($_SESSION['login_user_connect'])){ 74 | echo "Please, login first"; 75 | } 76 | else{ 77 | header("Location:../../logout"); 78 | } 79 | 80 | ?> -------------------------------------------------------------------------------- /team#26 - 3/Js/check.js: -------------------------------------------------------------------------------- 1 | class Check{ 2 | 3 | check(Name){ 4 | 5 | if(Name == ""){ 6 | throw "Name is empty"; 7 | } 8 | 9 | if(Name.includes("$") || Name.includes("&") || Name.includes("=") || Name.includes("*") || Name.includes("`")){ 10 | return true; 11 | } 12 | 13 | return false; 14 | 15 | } 16 | 17 | emailCheck(email, cont_msg) { 18 | 19 | if(email == ""){ 20 | throw "Name is empty"; 21 | } 22 | 23 | if(cont_msg == ""){ 24 | throw "data is empty"; 25 | } 26 | 27 | let s1 = email.split("@"); 28 | let s3 = email.split(" "); 29 | if(s3.length > 1) 30 | { 31 | alert("Please add a proper mail-Id"); 32 | cont_msg.innerHTML = "Please add a proper mail-Id"; 33 | return false; 34 | } 35 | if(s1.length == 2) 36 | { 37 | var s2 = s1[1].split("."); 38 | if(s2.length == 2 || s2.length == 3) 39 | { 40 | if(s1[0].length < 6 || s2[0].length < 4 || s2[1].length > 4 || s2[1].length < 2) 41 | { 42 | alert('Please add a proper mail-Id'); 43 | cont_msg.innerHTML = "Please add a proper mail-Id"; 44 | document.getElementById('email').focus(); 45 | return false; 46 | } 47 | 48 | return true; 49 | 50 | } 51 | else 52 | { 53 | alert("Please add a proper mail-Id"); 54 | cont_msg.innerHTML = "Please add a proper mail-Id"; 55 | document.getElementById('email').focus(); 56 | return false; 57 | } 58 | } 59 | else 60 | { 61 | alert("Please add a proper mail-Id"); 62 | cont_msg.innerHTML = "Please add a proper mail-Id"; 63 | document.getElementById('email').focus(); 64 | return false; 65 | } 66 | 67 | } 68 | 69 | dobCheck(dob){ 70 | 71 | if(dob == ""){ 72 | alert("Please add DOB"); 73 | return false; 74 | } 75 | else{ 76 | let vals = dob.split("-"); 77 | //format yyyy-mm-dd 78 | let year = parseInt(vals[0]); 79 | let month = parseInt(vals[1]); 80 | let day = parseInt(vals[2]); 81 | let cur_year = new Date().getFullYear(); 82 | 83 | if(cur_year - year <= 12){ 84 | 85 | alert("You are underage"); 86 | return false; 87 | 88 | } 89 | else{ 90 | return true; 91 | } 92 | } 93 | 94 | } 95 | } -------------------------------------------------------------------------------- /team#26 - 3/Commen/header.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | <?php echo TITLE ?> 5 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 |
w3-padding"> 15 |
Health Care
16 |
17 | 18 | Lobby 19 | 20 |
21 | 22 | 25 | 26 |
w3-hover-"> 27 | 30 | 31 |
32 | Edit 33 | LogOut 34 |
35 |
36 | 37 | 40 | 41 |
42 | 56 | -------------------------------------------------------------------------------- /team#26 - 3/Users/Js/community.js: -------------------------------------------------------------------------------- 1 | $(document).ready(function(){ 2 | $(document).on('change', '#file', function(){ 3 | 4 | let name = document.getElementById("file").files[0].name; 5 | let form_data = new FormData(); 6 | let ext = name.split('.').pop().toLowerCase(); 7 | 8 | let oFReader = new FileReader(); 9 | oFReader.readAsDataURL(document.getElementById("file").files[0]); 10 | let f = document.getElementById("file").files[0]; 11 | let fsize = f.size||f.fileSize; 12 | 13 | if(fsize > 2000000){ 14 | 15 | //more than 2 mb 16 | alert("Image File Size is very big"); 17 | 18 | } 19 | else{ 20 | form_data.append("file", document.getElementById('file').files[0]); 21 | $.ajax({ 22 | url:"Needs/upload.php", 23 | method:"POST", 24 | data: form_data, 25 | contentType: false, 26 | cache: false, 27 | processData: false, 28 | success:function(data){ 29 | document.getElementById('post_data').innerHTML += data; 30 | } 31 | }); 32 | } 33 | }); 34 | }); 35 | 36 | let addPost = (c_id) => { 37 | 38 | let data = document.getElementById("post_data").innerHTML; 39 | let str = "c_id="+c_id+"&data="+data; 40 | let error = document.getElementById('post-error'); 41 | 42 | let xhttp = new XMLHttpRequest(); 43 | let loader = document.getElementById('post-loader'); 44 | 45 | xhttp.onreadystatechange = function() { 46 | loader.style.display = "block"; 47 | if(this.readyState == 4 && this.status == 200){ 48 | 49 | error.innerHTML = this.responseText; 50 | loader.style.display = "none"; 51 | 52 | if(this.responseText == ""){ 53 | alert("Post Added"); 54 | location.reload(); 55 | } 56 | } 57 | } 58 | xhttp.open("POST", "Action/addPost.php", true); 59 | xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); 60 | xhttp.send(str); 61 | 62 | } 63 | 64 | let like = (p_id) => { 65 | 66 | let likes = document.getElementById(p_id).innerHTML; 67 | let btn = document.getElementById(p_id+"_btn"); 68 | 69 | let xhttp = new XMLHttpRequest(); 70 | let str = "p_id="+p_id; 71 | xhttp.onreadystatechange = function() { 72 | 73 | if(this.readyState == 4 && this.status == 200){ 74 | 75 | if(this.responseText == ""){ 76 | 77 | } 78 | else{ 79 | document.getElementById(p_id).innerHTML = this.responseText; 80 | btn.className += "w3-green"; 81 | 82 | } 83 | } 84 | } 85 | xhttp.open("POST", "Action/likePost.php", true); 86 | xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); 87 | xhttp.send(str); 88 | 89 | } -------------------------------------------------------------------------------- /team#26 - 3/Users/Needs/editModal.php: -------------------------------------------------------------------------------- 1 |
2 |
3 |
"> 4 | × 6 |

My Account

7 |
8 |
9 | query($query1)){ 14 | 15 | $result = $data1->fetch_assoc(); 16 | ?> 17 | 18 |
19 |
20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 |
Username:
Current Pass:
New Pass:
Again new Pass:
42 | 48 |
49 | 50 | 51 | 52 |
53 | 54 |
55 |
56 | -------------------------------------------------------------------------------- /team#26 - 3/Users/friendRequests.php: -------------------------------------------------------------------------------- 1 | 13 | 14 | 15 | 16 | <?php echo $name." | Profile" ?> 17 | 18 | 19 | 20 | 21 | 22 | 23 | 28 | 32 | 33 |
34 |
35 | Friend Requests 36 |
37 |
38 | query($query)){ 42 | 43 | if($data->num_rows <= 0){ 44 | ?> 45 |
No friend requests
46 | fetch_assoc()){ 50 | 51 | $name = "Unknown"; 52 | $u_id = $result['sender_id']; 53 | $q = "SELECT real_name FROM users WHERE u_id = $u_id"; 54 | if($d = $conn->query($q)){ 55 | $r = $d->fetch_assoc(); 56 | $name = $r['real_name']; 57 | } 58 | else{ 59 | $name = "Unknown"; 60 | } 61 | ?> 62 |
63 |
64 | 65 |
66 | 67 |
68 | 69 |
70 |
71 | 72 |
73 |
74 | 79 |
80 | 81 | 82 | close(); 84 | } 85 | else{ 86 | header("Location:../logout.php"); 87 | } 88 | 89 | ?> -------------------------------------------------------------------------------- /team#26 - 3/Commen/generalHeader.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | <?php echo TITLE ?> 5 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 |
w3-padding"> 15 |
Health Care
16 |
17 | 18 | Lobby 19 | 20 |
21 | 22 | 25 | 26 |
w3-hover-"> 27 | 30 | 31 |
32 | Edit 33 | LogOut 34 |
35 |
36 | 37 | 50 | 51 | 55 | 56 |
57 | 60 | 74 | -------------------------------------------------------------------------------- /team#26 - 3/Users/Action/getMsg.php: -------------------------------------------------------------------------------- 1 | query($encryQry)){ 30 | 31 | $rslt = $da->fetch_assoc(); 32 | $key_id = $rslt['key_id']; 33 | $ciphiring = $rslt['ciphiring']; 34 | $iv = $rslt['iv']; 35 | $enc_key = $rslt['enc_key']; 36 | 37 | } 38 | else{ 39 | die("Error happen"); 40 | } 41 | $options = 0; 42 | 43 | $query = "SELECT chat_msg, time, sender_id FROM chats WHERE room_id = $room_id ORDER BY time"; 44 | 45 | if($data = $conn->query($query)){ 46 | 47 | if($data->num_rows == 0){ 48 | //This user dosen't actually exist in this club 49 | die("
-
"); 50 | } 51 | 52 | while($result = $data->fetch_assoc()){ 53 | 54 | $msg = $result['chat_msg']; 55 | $msg = openssl_decrypt($msg, $ciphiring, $enc_key, $options, $iv); 56 | $time = $result['time']; 57 | $u_msg_id = $result['sender_id']; 58 | 59 | $qry = "SELECT real_name FROM users WHERE u_id = $u_msg_id"; 60 | $u_name = "Someone"; 61 | if($d = $conn->query($qry)){ 62 | 63 | $rslt = $d->fetch_assoc(); 64 | $u_name = $rslt['real_name']; 65 | 66 | } 67 | 68 | if($result['sender_id'] == $id){ 69 | 70 | $message = "
"; 71 | $message .= "
"; 72 | $message .= $msg; 73 | $message .= "
$time
"; 74 | $message .= "
"; 75 | 76 | echo $message; 77 | 78 | } 79 | else{ 80 | 81 | $message = "
"; 82 | $message .= "
"; 83 | $message .= $msg; 84 | $message .= "
$u_name $time
"; 85 | $message .= "
"; 86 | 87 | echo $message; 88 | 89 | } 90 | 91 | 92 | } 93 | } 94 | else{ 95 | die("not2"); 96 | } 97 | 98 | 99 | } 100 | else if(isset($_SESSION['login_user_connect'])){ 101 | echo "Please, login first"; 102 | } 103 | else{ 104 | header("Location:../../logout"); 105 | } 106 | 107 | ?> -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Contributor Covenant Code of Conduct 2 | 3 | ## Our Pledge 4 | 5 | In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation. 6 | 7 | ## Our Standards 8 | 9 | Examples of behavior that contributes to creating a positive environment include: 10 | 11 | * Using welcoming and inclusive language 12 | * Being respectful of differing viewpoints and experiences 13 | * Gracefully accepting constructive criticism 14 | * Focusing on what is best for the community 15 | * Showing empathy towards other community members 16 | 17 | Examples of unacceptable behavior by participants include: 18 | 19 | * The use of sexualized language or imagery and unwelcome sexual attention or advances 20 | * Trolling, insulting/derogatory comments, and personal or political attacks 21 | * Public or private harassment 22 | * Publishing others' private information, such as a physical or electronic address, without explicit permission 23 | * Other conduct which could reasonably be considered inappropriate in a professional setting 24 | 25 | ## Our Responsibilities 26 | 27 | Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior. 28 | 29 | Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful. 30 | 31 | ## Scope 32 | 33 | This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers. 34 | 35 | ## Enforcement 36 | 37 | Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at __[technical.committee@iiitvadodara.ac.in](mailto:technical.committee@iiitvadodara.ac.in)__. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately. 38 | 39 | Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership. 40 | 41 | ## Attribution 42 | 43 | This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version] 44 | 45 | [homepage]: http://contributor-covenant.org 46 | [version]: http://contributor-covenant.org/version/1/4/ 47 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # HackIIITV 20 Submission 2 | This repository contains the rules and code of conduct for __HackIIITV 2020__. 3 | 4 | ## Contents 5 | - __[Contents](#contents)__ 6 | - __[Requirements](#requirements-)__ 7 | - __[Few pointers](#few-pointers-)__ 8 | - __[How to submit?](#how-to-submit?-)__ 9 | - __[Rules](HackIIITV_rules_and_timeline.pdf)__ 10 | - __[Code of Conduct](CODE_OF_CONDUCT.md)__ 11 | - __[Our Community](#our-community)__ 12 | - __[Contact / Support](#contact--support)__ 13 | 14 | ### Requirements 15 | 16 | - __[GitHub account](https://github.com/login)__ 17 | - Install __[git](https://git-scm.com/)__ for your repsective OS. 18 | - Make sure you are part of IIITV organisation on GitHub, else join __[here](http://getmein.glitch.me/)__ 19 | 20 | ### Few pointers 21 | 22 | - You can make at max one commit per hour. 23 | - Don't close your PR. 24 | - No commits after Hackathon ends will be entertained. 25 | - It is recommended to make one commit/hour to keep your hack backed up. 26 | - Make sure your whole project is inside the folder of your team. 27 | - If you have time left, make sure you make a README.md 📄 😉(it will help others to understand your code) 28 | 29 | ### How to submit? 30 | 31 | One member from each team have to follow this instructions: 32 | Follow the instructions in order: 33 | 34 | 1. Fork this repository. 35 | 36 | 2. Clone your fork, using 37 | `git clone https://github.com//hackiiitv20-submissions.git` 38 | 39 | 3. Change Directory to `hackiiitv20-submissions`, using 40 | `cd hackiiitv20-submissions` 41 | 42 | 4. Set remote to original repository using 43 | `git remote add ups https://github.com/iiitv/hackiiitv20-submissions.git` 44 | 45 | 5. Create a branch named `team#x`, where __"x"__ is your team number, using 46 | `git checkout -b team#x` 47 | 48 | 6. Add a folder with name `team#x - {Chosen_Theme_number}` in root directory. Make sure your whole hack is in folder `team#x - {Chosen_Theme_number}`. 49 | 50 | 7. Now add this folder to your staging area, using 51 | `git add "team#x - {Chosen_Theme_number}"` 52 | 53 | 8. Now commit the changes using, 54 | `git commit -m "Add team#x"` 55 | 56 | 9. Push the changes using, 57 | `git push` 58 | 59 | 10. Open a pull request: As soon as the changes will be pushed, GUI of repository's main page will show a yellow banner saying you too open a Pull request, just click on it and you are done. 60 | 61 | For making changes to PR, just keep on repeating Step 6-9. 62 | 63 | ### Rules 64 | 65 | - Keep your content as original as possible. 66 | - It is allowed to use available softwares/packages as a module, but they can't be your project. 67 | 68 | ### Contact / Support 69 | 70 | - Write to us at: __[technical.committee@iiitvadodara.ac.in](mailto:technical.committee@iiitvadodara.ac.in)__ 71 | - Join the discord server: __[HackIIITV](https://discord.gg/Rw4X9rYZgR)__ 72 | 73 | ### Our Community 74 | 75 | - Open source projects created by students at IIITV : [IIITV Open Source Org](https://github.com/iiitv) 76 | - Discord channel where we discuss topics related to DSA and Competitive Programming: [IIITVCC Discord Server Invite](https://discord.gg/pUPbVHF) 77 | - Join the Open Source Org and our Slack Channel to ask your doubts and discussion: [Get Me In](https://getmein.glitch.me/), [Slack](https://join.slack.com/t/iiitvadodara/shared_invite/zt-gx92qvc2-X_NREKMxP6f7DlyZuxzM_g) 78 | 79 | ### Happy Hacking! 🖖 80 | 81 | *** 82 | 83 |

Made With ❤️ By Team HackIIITV

84 | -------------------------------------------------------------------------------- /team#26 - 3/Users/userProfile.php: -------------------------------------------------------------------------------- 1 | 13 | 14 | 15 | 16 | <?php echo $name." | Profile" ?> 17 | 18 | 19 | 20 | 21 | 22 | 23 | 28 | 32 | 0) { 37 | while ($row = mysqli_fetch_assoc($result)) { 38 | ?> 39 |
40 |
41 |
42 |
43 | hero 45 |
46 |

47 | 48 | 49 |
50 |
51 |
52 | 53 | 54 |
55 |

56 |
57 |
58 | 59 |
60 | 61 |
62 |
63 |
64 |
65 |
66 | 67 | 68 | 69 | 70 | close(); 74 | } 75 | else{ 76 | header("Location:../logout.php"); 77 | } 78 | 79 | ?> 80 | -------------------------------------------------------------------------------- /team#26 - 3/Commen/lobbyheader.php: -------------------------------------------------------------------------------- 1 | 31 | 32 | 33 | 34 |
w3-padding"> 35 |
Health Care
36 | 37 | 40 | 41 |
42 | 43 |
44 |
45 | 48 |
49 | --- 50 |
51 |
52 | Create a Community 53 |
54 |
55 |
56 | 57 |
58 |
w3-hover-"> 59 | 62 | 63 |
64 | Edit 65 | Communities 66 | LogOut 67 |
68 |
69 | 82 | 83 | 87 |
88 | -------------------------------------------------------------------------------- /team#26 - 3/Users/chat_room.php: -------------------------------------------------------------------------------- 1 | query($query)){ 23 | 24 | $result = $data->fetch_assoc(); 25 | $admin_id = $result['c_admin_id']; 26 | 27 | } 28 | else{ 29 | die("Something went wrong"); 30 | } 31 | 32 | define("TITLE", $c_name." ChatRoom | Chat with the members of community"); 33 | include("../Commen/header.php"); 34 | 35 | ?> 36 | 37 |
38 | 39 |
40 |
">Members
41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | query($query1)){ 53 | 54 | $result1 = $data1->fetch_assoc(); 55 | ?> 56 | 57 | 58 | 59 | 60 | 67 | 68 | query($query1)){ 72 | 73 | while($result1 = $data1->fetch_assoc()){ 74 | ?> 75 | 76 | 77 | 78 | 79 | 86 | 87 |
Names
">Admin
88 |
89 | 90 |
91 |
w3-bar"> 92 |
93 | 94 |
95 | 96 |
97 | 98 |
99 |
100 | 101 |
102 |
103 | 104 |
105 |
106 | 107 | 108 |
109 | 110 |
111 |
112 |
113 | 116 | 117 | 118 | 119 | 120 | close(); 123 | } 124 | else{ 125 | header("Location:../logout.php"); 126 | } 127 | 128 | ?> 129 | -------------------------------------------------------------------------------- /team#26 - 3/Users/indiChat.php: -------------------------------------------------------------------------------- 1 | query($query)){ 23 | 24 | $result = $data->fetch_assoc(); 25 | $admin_id = $result['c_admin_id']; 26 | 27 | } 28 | else{ 29 | die("Something went wrong"); 30 | } 31 | 32 | define("TITLE", $c_name." ChatRoom | Chat with the members of community"); 33 | include("../Commen/header.php"); 34 | 35 | ?> 36 | 37 |
38 | 39 |
40 |
">Members
41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | query($query1)){ 53 | 54 | $result1 = $data1->fetch_assoc(); 55 | ?> 56 | 57 | 58 | 59 | 60 | 67 | 68 | query($query1)){ 72 | 73 | while($result1 = $data1->fetch_assoc()){ 74 | ?> 75 | 76 | 77 | 78 | 79 | 86 | 87 |
Names
">Admin
88 |
89 | 90 |
91 |
w3-bar"> 92 |
93 | 94 |
95 | 96 |
97 | 98 |
99 |
100 | 101 |
102 |
103 | 104 |
105 |
106 | 107 | 108 |
109 | 110 |
111 |
112 |
113 | 116 | 117 | 118 | 119 | 120 | close(); 123 | } 124 | else{ 125 | header("Location:../logout.php"); 126 | } 127 | 128 | ?> 129 | -------------------------------------------------------------------------------- /team#26 - 3/Js/details.js: -------------------------------------------------------------------------------- 1 | let img = "Uploads/user.png"; 2 | 3 | $(document).ready(function(){ 4 | $(document).on('change', '#file', function(){ 5 | 6 | let name = document.getElementById("file").files[0].name; 7 | let form_data = new FormData(); 8 | let ext = name.split('.').pop().toLowerCase(); 9 | 10 | let oFReader = new FileReader(); 11 | oFReader.readAsDataURL(document.getElementById("file").files[0]); 12 | let f = document.getElementById("file").files[0]; 13 | let fsize = f.size||f.fileSize; 14 | 15 | if(fsize > 2000000){ 16 | 17 | //more than 2 mb 18 | alert("Image File Size is very big"); 19 | 20 | } 21 | else{ 22 | form_data.append("file", document.getElementById('file').files[0]); 23 | $.ajax({ 24 | url:"Upload/upload.php", 25 | method:"POST", 26 | data: form_data, 27 | contentType: false, 28 | cache: false, 29 | processData: false, 30 | success:function(data){ 31 | document.getElementById('status').innerHTML = "Image uploaded"; 32 | img = data; 33 | } 34 | }); 35 | } 36 | }); 37 | }); 38 | 39 | 40 | let join = (email) => { 41 | 42 | let role = document.getElementById('role').value; 43 | let dob = document.getElementById('dob').value; 44 | let form = document.getElementById('data'); 45 | let about = document.getElementById('aboutMe').value; 46 | 47 | let check_data = new Check(); 48 | 49 | if(check_data.dobCheck(dob)){ 50 | 51 | let str = "email="+email+"&role="+role+"&dob="+dob+"&about="+about+"&img="+img; 52 | let xhttp = new XMLHttpRequest(); 53 | let loader = document.getElementById('loader-details'); 54 | let error = document.getElementById('details-error'); 55 | 56 | xhttp.onreadystatechange = function() { 57 | loader.style.display = "block"; 58 | if(this.readyState == 4 && this.status == 200){ 59 | error.innerHTML = this.responseText; 60 | loader.style.display = "none"; 61 | if(this.responseText == ""){ 62 | 63 | form.action = "logins.php"; 64 | form.method = "post"; 65 | form.submit(); 66 | } 67 | else{ 68 | error.innerHTML = this.responseText; 69 | } 70 | } 71 | } 72 | xhttp.open("POST", "Check/addDetails.php", true); 73 | xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); 74 | xhttp.send(str); 75 | 76 | } 77 | 78 | } 79 | 80 | let joinLogin = (email) => { 81 | 82 | let role = document.getElementById('role').value; 83 | let dob = document.getElementById('dob').value; 84 | let form = document.getElementById('data'); 85 | let about = document.getElementById('aboutMe').value; 86 | 87 | let check_data = new Check(); 88 | 89 | if(check_data.dobCheck(dob)){ 90 | 91 | let str = "email="+email+"&role="+role+"&dob="+dob+"&about="+about+"&img="+img; 92 | let xhttp = new XMLHttpRequest(); 93 | let loader = document.getElementById('loader-details'); 94 | let error = document.getElementById('details-error'); 95 | 96 | xhttp.onreadystatechange = function() { 97 | loader.style.display = "block"; 98 | if(this.readyState == 4 && this.status == 200){ 99 | error.innerHTML = this.responseText; 100 | loader.style.display = "none"; 101 | if(this.responseText == ""){ 102 | 103 | form.action = "login.php"; 104 | form.method = "post"; 105 | form.submit(); 106 | } 107 | else{ 108 | error.innerHTML = this.responseText; 109 | } 110 | } 111 | } 112 | xhttp.open("POST", "Check/addDetailsLogin.php", true); 113 | xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); 114 | xhttp.send(str); 115 | 116 | } 117 | 118 | } -------------------------------------------------------------------------------- /team#26 - 3/details.php: -------------------------------------------------------------------------------- 1 | query($query)){ 16 | 17 | if($data->num_rows <= 0){ 18 | echo "Incorrect email"; 19 | } 20 | else if($data->num_rows == 1){ 21 | 22 | $result = $data->fetch_assoc(); 23 | $dbpass = $result['u_password']; 24 | 25 | if(password_verify($password, $dbpass)){ 26 | 27 | $id = $result['u_id']; 28 | $name = $result['real_name']; 29 | $url = base64_encode($id."&".$name); 30 | 31 | $url1 = base64_encode($id."&".$email."&".$name); 32 | $_SESSION['login_user_connect'] = $url1; 33 | //header("Location:Users/profile.php?name=".$url); 34 | 35 | include("Commen/headerDetails.php"); 36 | ?> 37 | 38 |
39 |
40 | Your details 41 |
42 |
43 |
44 | 45 |
46 |
47 |
48 | Name: 49 | 50 |
51 |
52 | Email: 53 | 54 |
55 |
56 | Are you Doctor or patient? 57 | 63 |
64 |
65 |
66 | 69 | 70 |
71 |
72 |
73 |
74 |
75 | DOB 76 | 77 |
78 |
79 | About Me 80 | 81 |
82 |
83 | 84 |
85 |
86 |
87 | 88 | 89 | 91 | 92 | 93 | close(); 112 | } 113 | else{ 114 | echo ""; 115 | header("Location:logout.php"); 116 | } 117 | 118 | ?> -------------------------------------------------------------------------------- /team#26 - 3/detailsLogin.php: -------------------------------------------------------------------------------- 1 | query($query)){ 15 | 16 | if($data->num_rows == 1){ 17 | 18 | $result = $data->fetch_assoc(); 19 | $role = $result['role']; 20 | $dob = $result['dob']; 21 | 22 | if($role != "" && $dob != ""){ 23 | 24 | header("Location:login.php"); 25 | 26 | } 27 | 28 | } 29 | 30 | } 31 | 32 | 33 | $query = "SELECT `u_id`, `u_password`, `real_name` FROM `users` WHERE email = '$email'"; 34 | 35 | if($data = $conn->query($query)){ 36 | 37 | if($data->num_rows <= 0){ 38 | echo "Incorrect email"; 39 | } 40 | else if($data->num_rows == 1){ 41 | 42 | $result = $data->fetch_assoc(); 43 | $dbpass = $result['u_password']; 44 | 45 | if(password_verify($password, $dbpass)){ 46 | 47 | $id = $result['u_id']; 48 | $name = $result['real_name']; 49 | 50 | include("Commen/headerDetails.php"); 51 | ?> 52 | 53 |
54 |
55 | Fill bellow details to go ahead 56 |
57 |
58 |
59 | 60 |
61 |
62 |
63 | Name: 64 | 65 |
66 |
67 | Email: 68 | 69 |
70 |
71 | Are you Doctor or patient? 72 | 78 |
79 |
80 | 83 | 84 |
85 |
86 |
87 |
88 | DOB 89 | 90 |
91 |
92 | About Me 93 | 94 |
95 |
96 | 97 |
98 |
99 |
100 | 101 | 102 | 104 | 105 | 106 | close(); 125 | } 126 | else{ 127 | echo ""; 128 | header("Location:logout.php"); 129 | } 130 | 131 | ?> -------------------------------------------------------------------------------- /team#26 - 3/Users/profile.php: -------------------------------------------------------------------------------- 1 | 14 | 15 | 16 | 17 | Profile | Connect us to discuss your problems 18 | 19 | 20 | 21 | 22 | 23 | 26 | 27 | 28 | 31 |
32 |
33 |
34 | × 36 |

Create community

37 |
38 | Make community and maintain it. 39 |
40 |
41 |
42 | 43 |
44 |
45 |
46 | 47 |
48 |
49 | 50 |
51 |
52 | 53 |
54 |
55 | Add tags seperated with comma 56 | 57 |
58 |
59 | 60 |
61 |
62 |
63 |
64 |
65 | 66 | 70 |
71 |
72 | 73 | 84 |
85 |
86 |
87 |

88 | My Communities 89 |

90 | query($qry)){ 94 | 95 | if($data->num_rows == 0){ 96 | 97 | } 98 | else{ 99 | while($result = $data->fetch_assoc()){ 100 | ?> 101 | 119 | 124 |
125 |
126 |
127 |
128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | close(); 138 | } 139 | else{ 140 | header("Location:../logout.php"); 141 | } 142 | 143 | ?> -------------------------------------------------------------------------------- /team#26 - 3/Users/otherProfile.php: -------------------------------------------------------------------------------- 1 | 23 | 24 | 25 | 26 | <?php echo $name." | Profile" ?> 27 | 28 | 29 | 30 | 31 | 32 | 33 | 38 | 42 | 0) { 47 | while ($row = mysqli_fetch_assoc($result)) { 48 | ?> 49 |
50 |
51 |
52 |
53 | hero 55 |
56 |

57 | 58 | 59 |
60 |
61 |
62 | 63 | 64 |
65 | 66 |
67 |
68 | 69 |
70 | 71 | query($qry)){ 78 | 79 | if($data->num_rows >= 1){ 80 | $x = true; 81 | } 82 | 83 | } 84 | 85 | ?> 86 |
87 | 88 | 91 | 94 | 98 | 101 | 105 | 106 | 108 |
109 | 112 |

113 |
114 |
115 |
116 |
117 |
118 | 119 | 120 | 121 | 122 | 123 | close(); 127 | } 128 | else{ 129 | header("Location:../logout.php"); 130 | } 131 | 132 | ?> 133 | -------------------------------------------------------------------------------- /team#26 - 3/Js/index.js: -------------------------------------------------------------------------------- 1 | function OpenLogIn() 2 | { 3 | document.getElementById("layer2").style.display = "none"; 4 | document.getElementById("layer1").style.display = "block"; 5 | 6 | } 7 | 8 | function OpenSignIn() 9 | { 10 | document.getElementById("layer2").style.display = "block"; 11 | document.getElementById("layer1").style.display = "none"; 12 | } 13 | 14 | 15 | let loginCheck = () => { 16 | 17 | let formL = document.getElementById('login'); 18 | document.getElementById('eu').name = "Eu"; 19 | document.getElementById('password').name = "Password"; 20 | 21 | let eu = formL.Eu.value; 22 | let pass = formL.Password.value; 23 | let error = document.getElementById('loginerror'); 24 | 25 | let check_data = new Check(); 26 | if(check_data.check(eu) || check_data.check(pass)){ 27 | 28 | alert("Please add correct details"); 29 | error.innerHTML = "Please add correct details"; 30 | return; 31 | 32 | } 33 | 34 | //email login 35 | if(check_data.emailCheck(eu, error)){ 36 | 37 | let str = "Pass="+pass+"&Email="+eu; 38 | let xhttp = new XMLHttpRequest(); 39 | let loader = document.getElementById('loginloader'); 40 | xhttp.onreadystatechange = function() { 41 | loader.style.display = "block"; 42 | if(this.readyState == 4 && this.status == 200){ 43 | error.innerHTML = this.responseText; 44 | loader.style.display = "none"; 45 | if(this.responseText == ""){ 46 | 47 | formL.method = "post"; 48 | formL.action = "detailsLogin.php"; 49 | formL.submit(); 50 | } 51 | } 52 | } 53 | xhttp.open("POST", "Check/loginEmailCheck.php", true); 54 | xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); 55 | xhttp.send(str); 56 | 57 | } 58 | else{ 59 | return false; 60 | } 61 | 62 | } 63 | 64 | let SignUpCheck = () => { 65 | 66 | let formS = document.getElementById('signup'); 67 | document.getElementById('name').name = "Name"; 68 | document.getElementById('email').name = "Email"; 69 | document.getElementById('password1').name = "Pass1"; 70 | document.getElementById('password2').name = "Pass2"; 71 | document.getElementById('gender').name = "Gender"; 72 | let check_data = new Check(); 73 | let error = document.getElementById('SignUpError'); 74 | let name = formS.Name.value; 75 | let email = formS.Email.value; 76 | let pass = formS.Pass1.value; 77 | let passCon = formS.Pass2.value; 78 | let gender = formS.Gender.value; 79 | 80 | if(name == "" || email == "" || pass == "" || passCon == "" || gender == ""){ 81 | alert("Please enter every details"); 82 | error.innerHTML = "Please enter every details"; 83 | return false; 84 | } 85 | 86 | if(name.length <= 4) { 87 | alert("Please enter your full name"); 88 | error.innerHTML = "Please enter your full name"; 89 | return false; 90 | } 91 | 92 | try{ 93 | if(!check_data.emailCheck(email, error)){ 94 | 95 | return false; 96 | 97 | } 98 | 99 | if(check_data.check(email)){ 100 | alert("Please enter valid email"); 101 | error.innerHTML = "Please enter valid email"; 102 | return false; 103 | } 104 | 105 | if(check_data.check(name)){ 106 | alert("Please enter valid name"); 107 | error.innerHTML = "Please enter valid email"; 108 | return false; 109 | } 110 | 111 | if(check_data.check(pass)){ 112 | alert("Please enter valid password"); 113 | error.innerHTML = "Please enter valid email"; 114 | return false; 115 | } 116 | 117 | if(check_data.check(passCon)){ 118 | alert("Please enter valid password"); 119 | error.innerHTML = "Please enter valid email"; 120 | return false; 121 | } 122 | } 123 | catch(err){ 124 | alert("There is a problem: "+err); 125 | return; 126 | } 127 | 128 | if(pass.length <= 5){ 129 | alert("password must be more than 5 letters"); 130 | error.innerHTML = "password must be more than 5 letters"; 131 | return false; 132 | } 133 | 134 | if(pass !== passCon){ 135 | alert("Both passwords do not match"); 136 | error.innerHTML = "Both passwords do not match"; 137 | return false; 138 | } 139 | 140 | let str = "Name="+name+"&Email="+email+"&Pass="+pass+"&Gender="+gender; 141 | let xhttp = new XMLHttpRequest(); 142 | let loader = document.getElementById('loaderSignUp'); 143 | xhttp.onreadystatechange = function() { 144 | loader.style.display = "block"; 145 | if(this.readyState == 4 && this.status == 200){ 146 | error.innerHTML = this.responseText; 147 | loader.style.display = "none"; 148 | if(this.responseText == ""){ 149 | 150 | formS.action = "details.php"; 151 | formS.method = "post"; 152 | formS.submit(); 153 | 154 | } 155 | } 156 | } 157 | xhttp.open("POST", "Check/userCheck.php", true); 158 | xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); 159 | xhttp.send(str); 160 | 161 | } 162 | 163 | -------------------------------------------------------------------------------- /team#26 - 3/readme.md: -------------------------------------------------------------------------------- 1 | # Care Connect 2 | An *online platform* for mental support communities to the patients of any kind of disease. :wave:
3 | This project is for advancing the medical industry by information technology by providing community support to any patient. For a long term disease patient, it is necessary for them to be stable in medicines as well as in mental health. So, in this platform, they can find a community of patients, their relatives, or their friends who are experiencing the same illness from the same disease. Nowadays, depression is also a major problem. It can also solve that problem by providing community support to those patients. 4 |
5 | Now let's come to the technical part. 6 |

7 | It is made using PHP, MySQL, Ajax, HTML, CSS, and JavaScript. :zap: 8 | 9 | It is deployed using Microsoft Azure's VM instance and Lamp server. 10 |
It's Key functionalities are: 11 | - Registered user can join a community. 12 | - Create a community. 13 | - Post in community. 14 | - Add friend request to fellow community members. 15 | - Accept or delete friend requests. 16 | - Chat with community members. 17 | And some other basics...
18 | Here is the video link of care connect's demonstration.
19 | CareConnect demonstration video
20 | Here is the link of site: deployed in cloud.
21 | CareConnect 22 |
23 | Or scan this QR code to go to the link...
24 |

25 | 26 |

27 |
28 | 29 | 30 |

Future Scope

31 | - We are trying to secure Posts in community by implementing it through Blockchain technology.
32 | - Recommender system to recommend new users to add them as friends based on features like illness, location (decreasing priority) by using Data mining concepts.
33 | - We can provide suggetions about communities by using Data mining techniques.
34 | - For validation of the patients, the registered user will be required to upload a certificate or medical prescription from registered hospital certifying his illness
35 | - Notify / call friends in times of emergency
36 | - In the profile, his history can be recorded using the hospital data
37 | - Can virtually talk with each other by Video conferencing.
38 |
39 | 40 | Chat scripts work on end to end encyption with private key encryption. 41 | 42 |


Template images

43 | 44 |

Below are the login and registration pages.

45 |

46 | 47 | 48 |
49 | 50 | 51 |

52 |
53 |
54 |
55 |
56 |

Lobby page

57 |

58 | 59 | 60 | 61 |

62 |
63 |
64 |
65 |
66 |

Search Community to join..

67 | 68 | 69 |

70 | 71 | 72 | 73 |

74 |
75 |
76 |
77 |
78 |

Community area

79 |

80 | 81 | 82 | 83 |

84 |
85 |
86 |
87 |
88 |

Chat area

89 |

90 | 91 | 92 |
93 | 94 | 95 | 96 |

97 |
98 |
99 |
100 |
101 |

User profiles

102 |

103 | 104 |

105 |
106 |
107 |
108 |
109 |

viewing other person profile

110 |

111 |
112 |
113 |
114 |
115 |

Friend request area.

116 |

117 | 118 | 119 | 120 | 121 |

122 | 123 |

124 | Hope you like the project. 😄 125 |

126 | -------------------------------------------------------------------------------- /team#26 - 3/index.php: -------------------------------------------------------------------------------- 1 | 18 | 19 | 20 | 21 | 22 | Care Connect | Connect and to discuss your problems 23 | 24 | 25 | 26 | 27 | 30 | 31 | 32 | 33 | 34 | 35 |
36 | Care Connect 37 |
38 |
39 | 40 | 41 |
42 |
43 |
44 | 45 |
46 |
47 |
48 | 49 |
50 | Person 51 |
52 | 53 |
54 |
55 | 56 |
57 |
58 | 59 |
60 |
61 | 62 |
63 |
64 | 65 | 66 | 67 |
68 |
69 |

New one?

70 |

Nice to see you...

71 |

Care Connect is a simple and easy community environment for mental support. We are glad to see you here. Click the below button to register for free.

72 |
73 | 76 |
77 |
78 |
79 | 80 |
81 | 82 | 83 | 84 | 85 | 142 |
143 | 144 | 145 | 146 | -------------------------------------------------------------------------------- /team#26 - 3/Users/Js/varified.js: -------------------------------------------------------------------------------- 1 | 2 | let updateProfile = () => { 3 | 4 | let u_name = document.getElementById('u_name').value; 5 | let pass = document.getElementById('pass').value; 6 | let newPass = document.getElementById('newPas').value; 7 | let newAga = document.getElementById('newAga').value; 8 | let check_data = new Check(); 9 | let error = document.getElementById('up-error'); 10 | 11 | if(u_name == "" || pass == "" || newPass == "" || newAga == ""){ 12 | alert("Please enter all data"); 13 | error.innerHTML = "Please enter all data"; 14 | return false; 15 | } 16 | 17 | if(check_data.check(u_name) || check_data.check(pass) || check_data.check(newPass) || check_data.check(newAga)){ 18 | return false; 19 | } 20 | 21 | if(newPass != newAga){ 22 | alert("Confirm password didn't match"); 23 | error.innerHTML = "Confirm password didn't match"; 24 | return false; 25 | } 26 | 27 | let str = "u_name="+u_name+"&cur_pass="+pass+"&newPass="+newPass+"&newAga="+newAga; 28 | let xhttp = new XMLHttpRequest(); 29 | let loader = document.getElementById('up-loader'); 30 | xhttp.onreadystatechange = function() { 31 | loader.style.display = "block"; 32 | if(this.readyState == 4 && this.status == 200){ 33 | error.innerHTML = this.responseText; 34 | loader.style.display = "none"; 35 | if(this.responseText == ""){ 36 | alert("Password successfully updated"); 37 | location.reload(); 38 | } 39 | } 40 | } 41 | xhttp.open("POST", "updateProfile.php", true); 42 | xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); 43 | xhttp.send(str); 44 | 45 | 46 | 47 | } 48 | 49 | let makeCommunity = () => { 50 | 51 | let checkd = new Check(); 52 | 53 | let name = document.getElementById("name").value; 54 | let disc = document.getElementById("disc").value; 55 | let image = document.getElementById("fileToUpload").value; 56 | let tags = document.getElementById("tags").value; 57 | 58 | let error = document.getElementById("makeError"); 59 | let loader = document.getElementById("makeLoader"); 60 | 61 | 62 | if(name == ""){ 63 | alert("Fill details"); 64 | error.innerHTML = "Fill details"; 65 | return false; 66 | } 67 | 68 | if(disc == ""){ 69 | alert("Fill details"); 70 | error.innerHTML = "Fill details"; 71 | return false; 72 | } 73 | 74 | if(image == ""){ 75 | alert("Select image"); 76 | error.innerHTML = "Select image"; 77 | return false; 78 | } 79 | 80 | if(tags == ""){ 81 | 82 | alert("Fill details"); 83 | error.innerHTML = "Fill details"; 84 | return false; 85 | 86 | } 87 | 88 | if(checkd.check(name)){ 89 | 90 | error.innerHTML = "Fill proper details"; 91 | return false; 92 | } 93 | 94 | if(checkd.check(disc)){ 95 | 96 | error.innerHTML = "Fill proper details"; 97 | return false; 98 | } 99 | 100 | if(checkd.check(tags)){ 101 | 102 | error.innerHTML = "Fill proper details"; 103 | return false; 104 | 105 | } 106 | else{ 107 | 108 | document.getElementById("mkCommunity").action = "makeCommunity.php"; 109 | document.getElementById("mkCommunity").method = "post"; 110 | document.getElementById("mkCommunity").submit(); 111 | 112 | } 113 | 114 | } 115 | 116 | let join = (c_id) => { 117 | 118 | if(!confirm("Want to join this community?")){ 119 | 120 | } 121 | else{ 122 | 123 | let str = "c_id="+c_id; 124 | let xhttp = new XMLHttpRequest(); 125 | xhttp.onreadystatechange = function() { 126 | 127 | if(this.readyState == 4 && this.status == 200){ 128 | 129 | if(this.responseText.includes("community.php")){ 130 | 131 | alert("Congratulations! You are in!"); 132 | 133 | window.open(this.responseText, "_self"); 134 | 135 | } 136 | else{ 137 | alert(this.responseText); 138 | } 139 | 140 | } 141 | } 142 | xhttp.open("POST", "Action/join.php", true); 143 | xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); 144 | xhttp.send(str); 145 | 146 | } 147 | 148 | } 149 | 150 | let scrollUpdate = () => { 151 | 152 | var element = document.getElementById("chats"); 153 | element.scrollTop = element.scrollHeight; 154 | 155 | } 156 | 157 | let send = (room_id, id) => { 158 | 159 | let msg = document.getElementById("sender").value; 160 | if(msg == "" || msg == " "){ 161 | 162 | return; 163 | 164 | } 165 | 166 | let str = "msg="+msg+"&u_id="+id +"&room_id="+room_id; 167 | let xhttp = new XMLHttpRequest(); 168 | xhttp.onreadystatechange = function() { 169 | 170 | if(this.readyState == 4 && this.status == 200){ 171 | 172 | if(this.responseText.length == "not"){ 173 | 174 | alert("We are having some trouble in sending this message"); 175 | return; 176 | } 177 | 178 | document.getElementById("sender").value=""; 179 | document.getElementById("chats").innerHTML += this.responseText; 180 | scrollUpdate(); 181 | } 182 | } 183 | xhttp.open("POST", "Action/sendMsg.php", true); 184 | xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); 185 | xhttp.send(str); 186 | scrollUpdate(); 187 | 188 | } 189 | 190 | let refresh = () =>{ 191 | 192 | let str = "room_id="+room_id; 193 | let xhttp = new XMLHttpRequest(); 194 | let data = document.getElementById("chats").innerHTML; 195 | xhttp.onreadystatechange = function() { 196 | 197 | if(this.readyState == 4 && this.status == 200){ 198 | 199 | if(this.responseText.length == "not2"){ 200 | 201 | alert("We are having some trouble in sending this message"); 202 | return; 203 | } 204 | 205 | document.getElementById("chats").innerHTML = this.responseText; 206 | if(data != document.getElementById("chats").innerHTML){ 207 | scrollUpdate(); 208 | } 209 | } 210 | } 211 | xhttp.open("POST", "Action/getMsg.php", true); 212 | xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); 213 | xhttp.send(str); 214 | 215 | } -------------------------------------------------------------------------------- /team#26 - 3/Users/community.php: -------------------------------------------------------------------------------- 1 | 20 | 24 | 25 | 26 | 27 | 28 | 31 |
32 | Community: 33 |
34 |
35 | 36 |
37 | 38 | 39 |
40 | 41 |
42 |
43 |
44 |
45 |
Write post?
46 |
47 |
48 | 49 |
50 |

Start writing post...

51 | 52 | 53 | 56 | 57 |
58 |
59 |
60 |
61 | 62 | 63 | query($qry)){ 68 | 69 | while($result = $data->fetch_assoc()){ 70 | $img = $result['u_dp']; 71 | ?> 74 |

75 | 76 | Avatar 77 | 78 | 79 |

80 |
81 |
82 |

83 | 84 |

85 | query($qry1)){ 90 | 91 | if($data2->num_rows >= 1){ 92 | $x = true; 93 | } 94 | 95 | } 96 | ?> 97 | 99 |
100 | 107 | 108 |
109 | 110 | 111 |
112 | query($qury)){ 116 | 117 | $result = $data->fetch_assoc(); 118 | $room_id = $result['room_id']; 119 | 120 | $url = base64_encode($room_id."&".$c_name."&".$c_id); 121 | 122 | $link = "chat_room.php?name=".$url; 123 | ?> 124 | 125 |
127 | chatroom 128 |
129 | 130 | 133 | 134 | 135 |
136 |
137 |

Doctors

138 | query($qry)){ 142 | 143 | if($data->num_rows == 0){ 144 | echo "

No doctors in this community

"; 145 | } 146 | else{ 147 | 148 | while($result = $data->fetch_assoc()){ 149 | $u_id = $result['u_id']; 150 | $real_name = $result['real_name']; 151 | $url = base64_encode($u_id."&".$real_name); 152 | ?> 153 |

154 | 161 |

162 |
163 |
164 |
165 | 166 |
167 |
168 |

Members

169 | 'doctor'"; 171 | 172 | if($data = $conn->query($qry)){ 173 | 174 | if($data->num_rows == 0){ 175 | echo "

No users in this community

"; 176 | } 177 | else{ 178 | 179 | while($result = $data->fetch_assoc()){ 180 | $u_id = $result['u_id']; 181 | $real_name = $result['real_name']; 182 | $url = base64_encode($u_id."&".$real_name); 183 | ?> 184 |

185 | 192 |

193 |
194 |
195 |
196 | 197 | 198 |
199 | 200 | 201 |
202 | 203 | 204 |
205 |
206 | 207 | 209 | 210 | close(); 213 | } 214 | else{ 215 | header("Location:../logout.php"); 216 | } 217 | 218 | ?> 219 | -------------------------------------------------------------------------------- /team#26 - 3/CSS/w3.css: -------------------------------------------------------------------------------- 1 | /* W3.CSS 4.14 November 2020 by Jan Egil and Borge Refsnes */ 2 | 3 | html { 4 | box-sizing: border-box 5 | } 6 | *, 7 | *:before, 8 | *:after { 9 | box-sizing: inherit 10 | } 11 | /* Extract from normalize.css by Nicolas Gallagher and Jonathan Neal git.io/normalize */ 12 | 13 | html { 14 | -ms-text-size-adjust: 100%; 15 | -webkit-text-size-adjust: 100% 16 | } 17 | body { 18 | margin: 0 19 | } 20 | article, 21 | aside, 22 | details, 23 | figcaption, 24 | figure, 25 | footer, 26 | header, 27 | main, 28 | menu, 29 | nav, 30 | section { 31 | display: block 32 | } 33 | summary { 34 | display: list-item 35 | } 36 | audio, 37 | canvas, 38 | progress, 39 | video { 40 | display: inline-block 41 | } 42 | progress { 43 | vertical-align: baseline 44 | } 45 | audio:not([controls]) { 46 | display: none; 47 | height: 0 48 | } 49 | [hidden], 50 | template { 51 | display: none 52 | } 53 | a { 54 | background-color: transparent 55 | } 56 | a:active, 57 | a:hover { 58 | outline-width: 0 59 | } 60 | abbr[title] { 61 | border-bottom: none; 62 | text-decoration: underline; 63 | text-decoration: underline dotted 64 | } 65 | b, 66 | strong { 67 | font-weight: bolder 68 | } 69 | dfn { 70 | font-style: italic 71 | } 72 | mark { 73 | background: #ff0; 74 | color: #000 75 | } 76 | small { 77 | font-size: 80% 78 | } 79 | sub, 80 | sup { 81 | font-size: 75%; 82 | line-height: 0; 83 | position: relative; 84 | vertical-align: baseline 85 | } 86 | sub { 87 | bottom: -0.25em 88 | } 89 | sup { 90 | top: -0.5em 91 | } 92 | figure { 93 | margin: 1em 40px 94 | } 95 | img { 96 | border-style: none 97 | } 98 | code, 99 | kbd, 100 | pre, 101 | samp { 102 | font-family: monospace, monospace; 103 | font-size: 1em 104 | } 105 | hr { 106 | box-sizing: content-box; 107 | height: 0; 108 | overflow: visible 109 | } 110 | button, 111 | input, 112 | select, 113 | textarea, 114 | optgroup { 115 | font: inherit; 116 | margin: 0 117 | } 118 | optgroup { 119 | font-weight: bold 120 | } 121 | button, 122 | input { 123 | overflow: visible 124 | } 125 | button, 126 | select { 127 | text-transform: none 128 | } 129 | button, 130 | [type=button], 131 | [type=reset], 132 | [type=submit] { 133 | -webkit-appearance: button 134 | } 135 | button::-moz-focus-inner, 136 | [type=button]::-moz-focus-inner, 137 | [type=reset]::-moz-focus-inner, 138 | [type=submit]::-moz-focus-inner { 139 | border-style: none; 140 | padding: 0 141 | } 142 | button:-moz-focusring, 143 | [type=button]:-moz-focusring, 144 | [type=reset]:-moz-focusring, 145 | [type=submit]:-moz-focusring { 146 | outline: 1px dotted ButtonText 147 | } 148 | fieldset { 149 | border: 1px solid #c0c0c0; 150 | margin: 0 2px; 151 | padding: .35em .625em .75em 152 | } 153 | legend { 154 | color: inherit; 155 | display: table; 156 | max-width: 100%; 157 | padding: 0; 158 | white-space: normal 159 | } 160 | textarea { 161 | overflow: auto 162 | } 163 | [type=checkbox], 164 | [type=radio] { 165 | padding: 0 166 | } 167 | [type=number]::-webkit-inner-spin-button, 168 | [type=number]::-webkit-outer-spin-button { 169 | height: auto 170 | } 171 | [type=search] { 172 | -webkit-appearance: textfield; 173 | outline-offset: -2px 174 | } 175 | [type=search]::-webkit-search-decoration { 176 | -webkit-appearance: none 177 | } 178 | ::-webkit-file-upload-button { 179 | -webkit-appearance: button; 180 | font: inherit 181 | } 182 | /* End extract */ 183 | 184 | html, 185 | body { 186 | font-family: Verdana, sans-serif; 187 | font-size: 15px; 188 | line-height: 1.5 189 | } 190 | html { 191 | overflow-x: hidden 192 | } 193 | h1 { 194 | font-size: 36px 195 | } 196 | h2 { 197 | font-size: 30px 198 | } 199 | h3 { 200 | font-size: 24px 201 | } 202 | h4 { 203 | font-size: 20px 204 | } 205 | h5 { 206 | font-size: 18px 207 | } 208 | h6 { 209 | font-size: 16px 210 | } 211 | .w3-serif { 212 | font-family: serif 213 | } 214 | h1, 215 | h2, 216 | h3, 217 | h4, 218 | h5, 219 | h6 { 220 | font-family: "Segoe UI", Arial, sans-serif; 221 | font-weight: 400; 222 | margin: 10px 0 223 | } 224 | .w3-wide { 225 | letter-spacing: 4px 226 | } 227 | hr { 228 | border: 0; 229 | border-top: 1px solid #eee; 230 | margin: 20px 0 231 | } 232 | .w3-image { 233 | max-width: 100%; 234 | height: auto 235 | } 236 | img { 237 | vertical-align: middle 238 | } 239 | a { 240 | color: inherit 241 | } 242 | .w3-table, 243 | .w3-table-all { 244 | border-collapse: collapse; 245 | border-spacing: 0; 246 | width: 100%; 247 | display: table 248 | } 249 | .w3-table-all { 250 | border: 1px solid #ccc 251 | } 252 | .w3-bordered tr, 253 | .w3-table-all tr { 254 | border-bottom: 1px solid #ddd 255 | } 256 | .w3-striped tbody tr:nth-child(even) { 257 | background-color: #f1f1f1 258 | } 259 | .w3-table-all tr:nth-child(odd) { 260 | background-color: #fff 261 | } 262 | .w3-table-all tr:nth-child(even) { 263 | background-color: #f1f1f1 264 | } 265 | .w3-hoverable tbody tr:hover, 266 | .w3-ul.w3-hoverable li:hover { 267 | background-color: #ccc 268 | } 269 | .w3-centered tr th, 270 | .w3-centered tr td { 271 | text-align: center 272 | } 273 | .w3-table td, 274 | .w3-table th, 275 | .w3-table-all td, 276 | .w3-table-all th { 277 | padding: 8px 8px; 278 | display: table-cell; 279 | text-align: left; 280 | vertical-align: top 281 | } 282 | .w3-table th:first-child, 283 | .w3-table td:first-child, 284 | .w3-table-all th:first-child, 285 | .w3-table-all td:first-child { 286 | padding-left: 16px 287 | } 288 | .w3-btn, 289 | .w3-button { 290 | border: none; 291 | display: inline-block; 292 | padding: 8px 16px; 293 | vertical-align: middle; 294 | overflow: hidden; 295 | text-decoration: none; 296 | color: inherit; 297 | background-color: inherit; 298 | text-align: center; 299 | cursor: pointer; 300 | white-space: nowrap 301 | } 302 | .w3-btn:hover { 303 | box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19) 304 | } 305 | .w3-btn, 306 | .w3-button { 307 | -webkit-touch-callout: none; 308 | -webkit-user-select: none; 309 | -khtml-user-select: none; 310 | -moz-user-select: none; 311 | -ms-user-select: none; 312 | user-select: none 313 | } 314 | .w3-disabled, 315 | .w3-btn:disabled, 316 | .w3-button:disabled { 317 | cursor: not-allowed; 318 | opacity: 0.3 319 | } 320 | .w3-disabled *, 321 | :disabled * { 322 | pointer-events: none 323 | } 324 | .w3-btn.w3-disabled:hover, 325 | .w3-btn:disabled:hover { 326 | box-shadow: none 327 | } 328 | .w3-badge, 329 | .w3-tag { 330 | background-color: #000; 331 | color: #fff; 332 | display: inline-block; 333 | padding-left: 8px; 334 | padding-right: 8px; 335 | text-align: center 336 | } 337 | .w3-badge { 338 | border-radius: 50% 339 | } 340 | .w3-ul { 341 | list-style-type: none; 342 | padding: 0; 343 | margin: 0 344 | } 345 | .w3-ul li { 346 | padding: 8px 16px; 347 | border-bottom: 1px solid #ddd 348 | } 349 | .w3-ul li:last-child { 350 | border-bottom: none 351 | } 352 | .w3-tooltip, 353 | .w3-display-container { 354 | position: relative 355 | } 356 | .w3-tooltip .w3-text { 357 | display: none 358 | } 359 | .w3-tooltip:hover .w3-text { 360 | display: inline-block 361 | } 362 | .w3-ripple:active { 363 | opacity: 0.5 364 | } 365 | .w3-ripple { 366 | transition: opacity 0s 367 | } 368 | .w3-input { 369 | padding: 8px; 370 | display: block; 371 | border: none; 372 | border-bottom: 1px solid #ccc; 373 | width: 100% 374 | } 375 | .w3-select { 376 | padding: 9px 0; 377 | width: 100%; 378 | border: none; 379 | border-bottom: 1px solid #ccc 380 | } 381 | .w3-dropdown-click, 382 | .w3-dropdown-hover { 383 | position: relative; 384 | display: inline-block; 385 | cursor: pointer 386 | } 387 | .w3-dropdown-hover:hover .w3-dropdown-content { 388 | display: block 389 | } 390 | .w3-dropdown-hover:first-child, 391 | .w3-dropdown-click:hover { 392 | background-color: #ccc; 393 | color: #000 394 | } 395 | .w3-dropdown-hover:hover > .w3-button:first-child, 396 | .w3-dropdown-click:hover > .w3-button:first-child { 397 | background-color: #ccc; 398 | color: #000 399 | } 400 | .w3-dropdown-content { 401 | cursor: auto; 402 | color: #000; 403 | background-color: #fff; 404 | display: none; 405 | position: absolute; 406 | min-width: 160px; 407 | margin: 0; 408 | padding: 0; 409 | z-index: 1 410 | } 411 | .w3-check, 412 | .w3-radio { 413 | width: 24px; 414 | height: 24px; 415 | position: relative; 416 | top: 6px 417 | } 418 | .w3-sidebar { 419 | height: 100%; 420 | width: 200px; 421 | background-color: #fff; 422 | position: fixed!important; 423 | z-index: 1; 424 | overflow: auto 425 | } 426 | .w3-bar-block .w3-dropdown-hover, 427 | .w3-bar-block .w3-dropdown-click { 428 | width: 100% 429 | } 430 | .w3-bar-block .w3-dropdown-hover .w3-dropdown-content, 431 | .w3-bar-block .w3-dropdown-click .w3-dropdown-content { 432 | min-width: 100% 433 | } 434 | .w3-bar-block .w3-dropdown-hover .w3-button, 435 | .w3-bar-block .w3-dropdown-click .w3-button { 436 | width: 100%; 437 | text-align: left; 438 | padding: 8px 16px 439 | } 440 | .w3-main, 441 | #main { 442 | transition: margin-left .4s 443 | } 444 | .w3-modal { 445 | z-index: 3; 446 | display: none; 447 | padding-top: 100px; 448 | position: fixed; 449 | left: 0; 450 | top: 0; 451 | width: 100%; 452 | height: 100%; 453 | overflow: auto; 454 | background-color: rgb(0, 0, 0); 455 | background-color: rgba(0, 0, 0, 0.4) 456 | } 457 | .w3-modal-content { 458 | margin: auto; 459 | background-color: #fff; 460 | position: relative; 461 | padding: 0; 462 | outline: 0; 463 | width: 600px 464 | } 465 | .w3-bar { 466 | width: 100%; 467 | overflow: hidden 468 | } 469 | .w3-center .w3-bar { 470 | display: inline-block; 471 | width: auto 472 | } 473 | .w3-bar .w3-bar-item { 474 | padding: 8px 16px; 475 | float: left; 476 | width: auto; 477 | border: none; 478 | display: block; 479 | outline: 0 480 | } 481 | .w3-bar .w3-dropdown-hover, 482 | .w3-bar .w3-dropdown-click { 483 | position: static; 484 | float: left 485 | } 486 | .w3-bar .w3-button { 487 | white-space: normal 488 | } 489 | .w3-bar-block .w3-bar-item { 490 | width: 100%; 491 | display: block; 492 | padding: 8px 16px; 493 | text-align: left; 494 | border: none; 495 | white-space: normal; 496 | float: none; 497 | outline: 0 498 | } 499 | .w3-bar-block.w3-center .w3-bar-item { 500 | text-align: center 501 | } 502 | .w3-block { 503 | display: block; 504 | width: 100% 505 | } 506 | .w3-responsive { 507 | display: block; 508 | overflow-x: auto 509 | } 510 | .w3-container:after, 511 | .w3-container:before, 512 | .w3-panel:after, 513 | .w3-panel:before, 514 | .w3-row:after, 515 | .w3-row:before, 516 | .w3-row-padding:after, 517 | .w3-row-padding:before, 518 | .w3-cell-row:before, 519 | .w3-cell-row:after, 520 | .w3-clear:after, 521 | .w3-clear:before, 522 | .w3-bar:before, 523 | .w3-bar:after { 524 | content: ""; 525 | display: table; 526 | clear: both 527 | } 528 | .w3-col, 529 | .w3-half, 530 | .w3-third, 531 | .w3-twothird, 532 | .w3-threequarter, 533 | .w3-quarter { 534 | float: left; 535 | width: 100% 536 | } 537 | .w3-col.s1 { 538 | width: 8.33333% 539 | } 540 | .w3-col.s2 { 541 | width: 16.66666% 542 | } 543 | .w3-col.s3 { 544 | width: 24.99999% 545 | } 546 | .w3-col.s4 { 547 | width: 33.33333% 548 | } 549 | .w3-col.s5 { 550 | width: 41.66666% 551 | } 552 | .w3-col.s6 { 553 | width: 49.99999% 554 | } 555 | .w3-col.s7 { 556 | width: 58.33333% 557 | } 558 | .w3-col.s8 { 559 | width: 66.66666% 560 | } 561 | .w3-col.s9 { 562 | width: 74.99999% 563 | } 564 | .w3-col.s10 { 565 | width: 83.33333% 566 | } 567 | .w3-col.s11 { 568 | width: 91.66666% 569 | } 570 | .w3-col.s12 { 571 | width: 99.99999% 572 | } 573 | @media (min-width: 601px) { 574 | .w3-col.m1 { 575 | width: 8.33333% 576 | } 577 | .w3-col.m2 { 578 | width: 16.66666% 579 | } 580 | .w3-col.m3, 581 | .w3-quarter { 582 | width: 24.99999% 583 | } 584 | .w3-col.m4, 585 | .w3-third { 586 | width: 33.33333% 587 | } 588 | .w3-col.m5 { 589 | width: 41.66666% 590 | } 591 | .w3-col.m6, 592 | .w3-half { 593 | width: 49.99999% 594 | } 595 | .w3-col.m7 { 596 | width: 58.33333% 597 | } 598 | .w3-col.m8, 599 | .w3-twothird { 600 | width: 66.66666% 601 | } 602 | .w3-col.m9, 603 | .w3-threequarter { 604 | width: 74.99999% 605 | } 606 | .w3-col.m10 { 607 | width: 83.33333% 608 | } 609 | .w3-col.m11 { 610 | width: 91.66666% 611 | } 612 | .w3-col.m12 { 613 | width: 99.99999% 614 | } 615 | } 616 | @media (min-width: 993px) { 617 | .w3-col.l1 { 618 | width: 8.33333% 619 | } 620 | .w3-col.l2 { 621 | width: 16.66666% 622 | } 623 | .w3-col.l3 { 624 | width: 24.99999% 625 | } 626 | .w3-col.l4 { 627 | width: 33.33333% 628 | } 629 | .w3-col.l5 { 630 | width: 41.66666% 631 | } 632 | .w3-col.l6 { 633 | width: 49.99999% 634 | } 635 | .w3-col.l7 { 636 | width: 58.33333% 637 | } 638 | .w3-col.l8 { 639 | width: 66.66666% 640 | } 641 | .w3-col.l9 { 642 | width: 74.99999% 643 | } 644 | .w3-col.l10 { 645 | width: 83.33333% 646 | } 647 | .w3-col.l11 { 648 | width: 91.66666% 649 | } 650 | .w3-col.l12 { 651 | width: 99.99999% 652 | } 653 | } 654 | .w3-rest { 655 | overflow: hidden 656 | } 657 | .w3-stretch { 658 | margin-left: -16px; 659 | margin-right: -16px 660 | } 661 | .w3-content, 662 | .w3-auto { 663 | margin-left: auto; 664 | margin-right: auto 665 | } 666 | .w3-content { 667 | max-width: 980px 668 | } 669 | .w3-auto { 670 | max-width: 1140px 671 | } 672 | .w3-cell-row { 673 | display: table; 674 | width: 100% 675 | } 676 | .w3-cell { 677 | display: table-cell 678 | } 679 | .w3-cell-top { 680 | vertical-align: top 681 | } 682 | .w3-cell-middle { 683 | vertical-align: middle 684 | } 685 | .w3-cell-bottom { 686 | vertical-align: bottom 687 | } 688 | .w3-hide { 689 | display: none!important 690 | } 691 | .w3-show-block, 692 | .w3-show { 693 | display: block!important 694 | } 695 | .w3-show-inline-block { 696 | display: inline-block!important 697 | } 698 | @media (max-width: 1205px) { 699 | .w3-auto { 700 | max-width: 95% 701 | } 702 | } 703 | @media (max-width: 600px) { 704 | .w3-modal-content { 705 | margin: 0 10px; 706 | width: auto!important 707 | } 708 | .w3-modal { 709 | padding-top: 30px 710 | } 711 | .w3-dropdown-hover.w3-mobile .w3-dropdown-content, 712 | .w3-dropdown-click.w3-mobile .w3-dropdown-content { 713 | position: relative 714 | } 715 | .w3-hide-small { 716 | display: none!important 717 | } 718 | .w3-mobile { 719 | display: block; 720 | width: 100%!important 721 | } 722 | .w3-bar-item.w3-mobile, 723 | .w3-dropdown-hover.w3-mobile, 724 | .w3-dropdown-click.w3-mobile { 725 | text-align: center 726 | } 727 | .w3-dropdown-hover.w3-mobile, 728 | .w3-dropdown-hover.w3-mobile .w3-btn, 729 | .w3-dropdown-hover.w3-mobile .w3-button, 730 | .w3-dropdown-click.w3-mobile, 731 | .w3-dropdown-click.w3-mobile .w3-btn, 732 | .w3-dropdown-click.w3-mobile .w3-button { 733 | width: 100% 734 | } 735 | } 736 | @media (max-width: 768px) { 737 | .w3-modal-content { 738 | width: 500px 739 | } 740 | .w3-modal { 741 | padding-top: 50px 742 | } 743 | } 744 | @media (min-width: 993px) { 745 | .w3-modal-content { 746 | width: 900px 747 | } 748 | .w3-hide-large { 749 | display: none!important 750 | } 751 | .w3-sidebar.w3-collapse { 752 | display: block!important 753 | } 754 | } 755 | @media (max-width: 992px) and (min-width: 601px) { 756 | .w3-hide-medium { 757 | display: none!important 758 | } 759 | } 760 | @media (max-width: 992px) { 761 | .w3-sidebar.w3-collapse { 762 | display: none 763 | } 764 | .w3-main { 765 | margin-left: 0!important; 766 | margin-right: 0!important 767 | } 768 | .w3-auto { 769 | max-width: 100% 770 | } 771 | } 772 | .w3-top, 773 | .w3-bottom { 774 | position: fixed; 775 | width: 100%; 776 | z-index: 1 777 | } 778 | .w3-top { 779 | top: 0 780 | } 781 | .w3-bottom { 782 | bottom: 0 783 | } 784 | .w3-overlay { 785 | position: fixed; 786 | display: none; 787 | width: 100%; 788 | height: 100%; 789 | top: 0; 790 | left: 0; 791 | right: 0; 792 | bottom: 0; 793 | background-color: rgba(0, 0, 0, 0.5); 794 | z-index: 2 795 | } 796 | .w3-display-topleft { 797 | position: absolute; 798 | left: 0; 799 | top: 0 800 | } 801 | .w3-display-topright { 802 | position: absolute; 803 | right: 0; 804 | top: 0 805 | } 806 | .w3-display-bottomleft { 807 | position: absolute; 808 | left: 0; 809 | bottom: 0 810 | } 811 | .w3-display-bottomright { 812 | position: absolute; 813 | right: 0; 814 | bottom: 0 815 | } 816 | .w3-display-middle { 817 | position: absolute; 818 | top: 50%; 819 | left: 50%; 820 | transform: translate(-50%, -50%); 821 | -ms-transform: translate(-50%, -50%) 822 | } 823 | .w3-display-left { 824 | position: absolute; 825 | top: 50%; 826 | left: 0%; 827 | transform: translate(0%, -50%); 828 | -ms-transform: translate(-0%, -50%) 829 | } 830 | .w3-display-right { 831 | position: absolute; 832 | top: 50%; 833 | right: 0%; 834 | transform: translate(0%, -50%); 835 | -ms-transform: translate(0%, -50%) 836 | } 837 | .w3-display-topmiddle { 838 | position: absolute; 839 | left: 50%; 840 | top: 0; 841 | transform: translate(-50%, 0%); 842 | -ms-transform: translate(-50%, 0%) 843 | } 844 | .w3-display-bottommiddle { 845 | position: absolute; 846 | left: 50%; 847 | bottom: 0; 848 | transform: translate(-50%, 0%); 849 | -ms-transform: translate(-50%, 0%) 850 | } 851 | .w3-display-container:hover .w3-display-hover { 852 | display: block 853 | } 854 | .w3-display-container:hover span.w3-display-hover { 855 | display: inline-block 856 | } 857 | .w3-display-hover { 858 | display: none 859 | } 860 | .w3-display-position { 861 | position: absolute 862 | } 863 | .w3-circle { 864 | border-radius: 50% 865 | } 866 | .w3-round-small { 867 | border-radius: 2px 868 | } 869 | .w3-round, 870 | .w3-round-medium { 871 | border-radius: 4px 872 | } 873 | .w3-round-large { 874 | border-radius: 8px 875 | } 876 | .w3-round-xlarge { 877 | border-radius: 16px 878 | } 879 | .w3-round-xxlarge { 880 | border-radius: 32px 881 | } 882 | .w3-row-padding, 883 | .w3-row-padding>.w3-half, 884 | .w3-row-padding>.w3-third, 885 | .w3-row-padding>.w3-twothird, 886 | .w3-row-padding>.w3-threequarter, 887 | .w3-row-padding>.w3-quarter, 888 | .w3-row-padding>.w3-col { 889 | padding: 0 8px 890 | } 891 | .w3-container, 892 | .w3-panel { 893 | padding: 0.01em 16px 894 | } 895 | .w3-panel { 896 | margin-top: 16px; 897 | margin-bottom: 16px 898 | } 899 | .w3-code, 900 | .w3-codespan { 901 | font-family: Consolas, "courier new"; 902 | font-size: 16px 903 | } 904 | .w3-code { 905 | width: auto; 906 | background-color: #fff; 907 | padding: 8px 12px; 908 | border-left: 4px solid #4CAF50; 909 | word-wrap: break-word 910 | } 911 | .w3-codespan { 912 | color: crimson; 913 | background-color: #f1f1f1; 914 | padding-left: 4px; 915 | padding-right: 4px; 916 | font-size: 110% 917 | } 918 | .w3-card, 919 | .w3-card-2 { 920 | box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12) 921 | } 922 | .w3-card-4, 923 | .w3-hover-shadow:hover { 924 | box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.2), 0 4px 20px 0 rgba(0, 0, 0, 0.19) 925 | } 926 | .w3-spin { 927 | animation: w3-spin 2s infinite linear 928 | } 929 | @keyframes w3-spin { 930 | 0% { 931 | transform: rotate(0deg) 932 | } 933 | 100% { 934 | transform: rotate(359deg) 935 | } 936 | } 937 | .w3-animate-fading { 938 | animation: fading 10s infinite 939 | } 940 | @keyframes fading { 941 | 0% { 942 | opacity: 0 943 | } 944 | 50% { 945 | opacity: 1 946 | } 947 | 100% { 948 | opacity: 0 949 | } 950 | } 951 | .w3-animate-opacity { 952 | animation: opac 0.8s 953 | } 954 | @keyframes opac { 955 | from { 956 | opacity: 0 957 | } 958 | to { 959 | opacity: 1 960 | } 961 | } 962 | .w3-animate-top { 963 | position: relative; 964 | animation: animatetop 0.4s 965 | } 966 | @keyframes animatetop { 967 | from { 968 | top: -300px; 969 | opacity: 0 970 | } 971 | to { 972 | top: 0; 973 | opacity: 1 974 | } 975 | } 976 | .w3-animate-left { 977 | position: relative; 978 | animation: animateleft 0.4s 979 | } 980 | @keyframes animateleft { 981 | from { 982 | left: -300px; 983 | opacity: 0 984 | } 985 | to { 986 | left: 0; 987 | opacity: 1 988 | } 989 | } 990 | .w3-animate-right { 991 | position: relative; 992 | animation: animateright 0.4s 993 | } 994 | @keyframes animateright { 995 | from { 996 | right: -300px; 997 | opacity: 0 998 | } 999 | to { 1000 | right: 0; 1001 | opacity: 1 1002 | } 1003 | } 1004 | .w3-animate-bottom { 1005 | position: relative; 1006 | animation: animatebottom 0.4s 1007 | } 1008 | @keyframes animatebottom { 1009 | from { 1010 | bottom: -300px; 1011 | opacity: 0 1012 | } 1013 | to { 1014 | bottom: 0; 1015 | opacity: 1 1016 | } 1017 | } 1018 | .w3-animate-zoom { 1019 | animation: animatezoom 0.6s 1020 | } 1021 | @keyframes animatezoom { 1022 | from { 1023 | transform: scale(0) 1024 | } 1025 | to { 1026 | transform: scale(1) 1027 | } 1028 | } 1029 | .w3-animate-input { 1030 | transition: width 0.4s ease-in-out 1031 | } 1032 | .w3-animate-input:focus { 1033 | width: 100%!important 1034 | } 1035 | .w3-opacity, 1036 | .w3-hover-opacity:hover { 1037 | opacity: 0.60 1038 | } 1039 | .w3-opacity-off, 1040 | .w3-hover-opacity-off:hover { 1041 | opacity: 1 1042 | } 1043 | .w3-opacity-max { 1044 | opacity: 0.25 1045 | } 1046 | .w3-opacity-min { 1047 | opacity: 0.75 1048 | } 1049 | .w3-greyscale-max, 1050 | .w3-grayscale-max, 1051 | .w3-hover-greyscale:hover, 1052 | .w3-hover-grayscale:hover { 1053 | filter: grayscale(100%) 1054 | } 1055 | .w3-greyscale, 1056 | .w3-grayscale { 1057 | filter: grayscale(75%) 1058 | } 1059 | .w3-greyscale-min, 1060 | .w3-grayscale-min { 1061 | filter: grayscale(50%) 1062 | } 1063 | .w3-sepia { 1064 | filter: sepia(75%) 1065 | } 1066 | .w3-sepia-max, 1067 | .w3-hover-sepia:hover { 1068 | filter: sepia(100%) 1069 | } 1070 | .w3-sepia-min { 1071 | filter: sepia(50%) 1072 | } 1073 | .w3-tiny { 1074 | font-size: 10px!important 1075 | } 1076 | .w3-small { 1077 | font-size: 12px!important 1078 | } 1079 | .w3-medium { 1080 | font-size: 15px!important 1081 | } 1082 | .w3-large { 1083 | font-size: 18px!important 1084 | } 1085 | .w3-xlarge { 1086 | font-size: 24px!important 1087 | } 1088 | .w3-xxlarge { 1089 | font-size: 36px!important 1090 | } 1091 | .w3-xxxlarge { 1092 | font-size: 48px!important 1093 | } 1094 | .w3-jumbo { 1095 | font-size: 64px!important 1096 | } 1097 | .w3-left-align { 1098 | text-align: left!important 1099 | } 1100 | .w3-right-align { 1101 | text-align: right!important 1102 | } 1103 | .w3-justify { 1104 | text-align: justify!important 1105 | } 1106 | .w3-center { 1107 | text-align: center!important 1108 | } 1109 | .w3-border-0 { 1110 | border: 0!important 1111 | } 1112 | .w3-border { 1113 | border: 1px solid #ccc!important 1114 | } 1115 | .w3-border-top { 1116 | border-top: 1px solid #ccc!important 1117 | } 1118 | .w3-border-bottom { 1119 | border-bottom: 1px solid #ccc!important 1120 | } 1121 | .w3-border-left { 1122 | border-left: 1px solid #ccc!important 1123 | } 1124 | .w3-border-right { 1125 | border-right: 1px solid #ccc!important 1126 | } 1127 | .w3-topbar { 1128 | border-top: 6px solid #ccc!important 1129 | } 1130 | .w3-bottombar { 1131 | border-bottom: 6px solid #ccc!important 1132 | } 1133 | .w3-leftbar { 1134 | border-left: 6px solid #ccc!important 1135 | } 1136 | .w3-rightbar { 1137 | border-right: 6px solid #ccc!important 1138 | } 1139 | .w3-section, 1140 | .w3-code { 1141 | margin-top: 16px!important; 1142 | margin-bottom: 16px!important 1143 | } 1144 | .w3-margin { 1145 | margin: 16px!important 1146 | } 1147 | .w3-margin-top { 1148 | margin-top: 16px!important 1149 | } 1150 | .w3-margin-bottom { 1151 | margin-bottom: 16px!important 1152 | } 1153 | .w3-margin-left { 1154 | margin-left: 16px!important 1155 | } 1156 | .w3-margin-right { 1157 | margin-right: 16px!important 1158 | } 1159 | .w3-padding-small { 1160 | padding: 4px 8px!important 1161 | } 1162 | .w3-padding { 1163 | padding: 8px 16px!important 1164 | } 1165 | .w3-padding-large { 1166 | padding: 12px 24px!important 1167 | } 1168 | .w3-padding-16 { 1169 | padding-top: 16px!important; 1170 | padding-bottom: 16px!important 1171 | } 1172 | .w3-padding-24 { 1173 | padding-top: 24px!important; 1174 | padding-bottom: 24px!important 1175 | } 1176 | .w3-padding-32 { 1177 | padding-top: 32px!important; 1178 | padding-bottom: 32px!important 1179 | } 1180 | .w3-padding-48 { 1181 | padding-top: 48px!important; 1182 | padding-bottom: 48px!important 1183 | } 1184 | .w3-padding-64 { 1185 | padding-top: 64px!important; 1186 | padding-bottom: 64px!important 1187 | } 1188 | .w3-padding-top-64 { 1189 | padding-top: 64px!important 1190 | } 1191 | .w3-padding-top-48 { 1192 | padding-top: 48px!important 1193 | } 1194 | .w3-padding-top-32 { 1195 | padding-top: 32px!important 1196 | } 1197 | .w3-padding-top-24 { 1198 | padding-top: 24px!important 1199 | } 1200 | .w3-left { 1201 | float: left!important 1202 | } 1203 | .w3-right { 1204 | float: right!important 1205 | } 1206 | .w3-button:hover { 1207 | color: #000!important; 1208 | background-color: #ccc!important 1209 | } 1210 | .w3-transparent, 1211 | .w3-hover-none:hover { 1212 | background-color: transparent!important 1213 | } 1214 | .w3-hover-none:hover { 1215 | box-shadow: none!important 1216 | } 1217 | /* Colors */ 1218 | 1219 | .w3-amber, 1220 | .w3-hover-amber:hover { 1221 | color: #000!important; 1222 | background-color: #ffc107!important 1223 | } 1224 | .w3-aqua, 1225 | .w3-hover-aqua:hover { 1226 | color: #000!important; 1227 | background-color: #00ffff!important 1228 | } 1229 | .w3-blue, 1230 | .w3-hover-blue:hover { 1231 | color: #fff!important; 1232 | background-color: #2196F3!important 1233 | } 1234 | .w3-light-blue, 1235 | .w3-hover-light-blue:hover { 1236 | color: #000!important; 1237 | background-color: #87CEEB!important 1238 | } 1239 | .w3-brown, 1240 | .w3-hover-brown:hover { 1241 | color: #fff!important; 1242 | background-color: #795548!important 1243 | } 1244 | .w3-cyan, 1245 | .w3-hover-cyan:hover { 1246 | color: #000!important; 1247 | background-color: #00bcd4!important 1248 | } 1249 | .w3-blue-grey, 1250 | .w3-hover-blue-grey:hover, 1251 | .w3-blue-gray, 1252 | .w3-hover-blue-gray:hover { 1253 | color: #fff!important; 1254 | background-color: #607d8b!important 1255 | } 1256 | .w3-green, 1257 | .w3-hover-green:hover { 1258 | color: #fff!important; 1259 | background-color: #4CAF50!important 1260 | } 1261 | .w3-light-green, 1262 | .w3-hover-light-green:hover { 1263 | color: #000!important; 1264 | background-color: #8bc34a!important 1265 | } 1266 | .w3-indigo, 1267 | .w3-hover-indigo:hover { 1268 | color: #fff!important; 1269 | background-color: #3f51b5!important 1270 | } 1271 | .w3-khaki, 1272 | .w3-hover-khaki:hover { 1273 | color: #000!important; 1274 | background-color: #f0e68c!important 1275 | } 1276 | .w3-lime, 1277 | .w3-hover-lime:hover { 1278 | color: #000!important; 1279 | background-color: #cddc39!important 1280 | } 1281 | .w3-orange, 1282 | .w3-hover-orange:hover { 1283 | color: #000!important; 1284 | background-color: #ff9800!important 1285 | } 1286 | .w3-deep-orange, 1287 | .w3-hover-deep-orange:hover { 1288 | color: #fff!important; 1289 | background-color: #ff5722!important 1290 | } 1291 | .w3-pink, 1292 | .w3-hover-pink:hover { 1293 | color: #fff!important; 1294 | background-color: #e91e63!important 1295 | } 1296 | .w3-purple, 1297 | .w3-hover-purple:hover { 1298 | color: #fff!important; 1299 | background-color: #9c27b0!important 1300 | } 1301 | .w3-deep-purple, 1302 | .w3-hover-deep-purple:hover { 1303 | color: #fff!important; 1304 | background-color: #673ab7!important 1305 | } 1306 | .w3-red, 1307 | .w3-hover-red:hover { 1308 | color: #fff!important; 1309 | background-color: #f44336!important 1310 | } 1311 | .w3-sand, 1312 | .w3-hover-sand:hover { 1313 | color: #000!important; 1314 | background-color: #fdf5e6!important 1315 | } 1316 | .w3-teal, 1317 | .w3-hover-teal:hover { 1318 | color: #fff!important; 1319 | background-color: #009688!important 1320 | } 1321 | .w3-yellow, 1322 | .w3-hover-yellow:hover { 1323 | color: #000!important; 1324 | background-color: #ffeb3b!important 1325 | } 1326 | .w3-white, 1327 | .w3-hover-white:hover { 1328 | color: #000!important; 1329 | background-color: #fff!important 1330 | } 1331 | .w3-black, 1332 | .w3-hover-black:hover { 1333 | color: #fff!important; 1334 | background-color: #000!important 1335 | } 1336 | .w3-grey, 1337 | .w3-hover-grey:hover, 1338 | .w3-gray, 1339 | .w3-hover-gray:hover { 1340 | color: #000!important; 1341 | background-color: #9e9e9e!important 1342 | } 1343 | .w3-light-grey, 1344 | .w3-hover-light-grey:hover, 1345 | .w3-light-gray, 1346 | .w3-hover-light-gray:hover { 1347 | color: #000!important; 1348 | background-color: #f1f1f1!important 1349 | } 1350 | .w3-dark-grey, 1351 | .w3-hover-dark-grey:hover, 1352 | .w3-dark-gray, 1353 | .w3-hover-dark-gray:hover { 1354 | color: #fff!important; 1355 | background-color: #616161!important 1356 | } 1357 | .w3-pale-red, 1358 | .w3-hover-pale-red:hover { 1359 | color: #000!important; 1360 | background-color: #ffdddd!important 1361 | } 1362 | .w3-pale-green, 1363 | .w3-hover-pale-green:hover { 1364 | color: #000!important; 1365 | background-color: #ddffdd!important 1366 | } 1367 | .w3-pale-yellow, 1368 | .w3-hover-pale-yellow:hover { 1369 | color: #000!important; 1370 | background-color: #ffffcc!important 1371 | } 1372 | .w3-pale-blue, 1373 | .w3-hover-pale-blue:hover { 1374 | color: #000!important; 1375 | background-color: #ddffff!important 1376 | } 1377 | .w3-text-amber, 1378 | .w3-hover-text-amber:hover { 1379 | color: #ffc107!important 1380 | } 1381 | .w3-text-aqua, 1382 | .w3-hover-text-aqua:hover { 1383 | color: #00ffff!important 1384 | } 1385 | .w3-text-blue, 1386 | .w3-hover-text-blue:hover { 1387 | color: #2196F3!important 1388 | } 1389 | .w3-text-light-blue, 1390 | .w3-hover-text-light-blue:hover { 1391 | color: #87CEEB!important 1392 | } 1393 | .w3-text-brown, 1394 | .w3-hover-text-brown:hover { 1395 | color: #795548!important 1396 | } 1397 | .w3-text-cyan, 1398 | .w3-hover-text-cyan:hover { 1399 | color: #00bcd4!important 1400 | } 1401 | .w3-text-blue-grey, 1402 | .w3-hover-text-blue-grey:hover, 1403 | .w3-text-blue-gray, 1404 | .w3-hover-text-blue-gray:hover { 1405 | color: #607d8b!important 1406 | } 1407 | .w3-text-green, 1408 | .w3-hover-text-green:hover { 1409 | color: #4CAF50!important 1410 | } 1411 | .w3-text-light-green, 1412 | .w3-hover-text-light-green:hover { 1413 | color: #8bc34a!important 1414 | } 1415 | .w3-text-indigo, 1416 | .w3-hover-text-indigo:hover { 1417 | color: #3f51b5!important 1418 | } 1419 | .w3-text-khaki, 1420 | .w3-hover-text-khaki:hover { 1421 | color: #b4aa50!important 1422 | } 1423 | .w3-text-lime, 1424 | .w3-hover-text-lime:hover { 1425 | color: #cddc39!important 1426 | } 1427 | .w3-text-orange, 1428 | .w3-hover-text-orange:hover { 1429 | color: #ff9800!important 1430 | } 1431 | .w3-text-deep-orange, 1432 | .w3-hover-text-deep-orange:hover { 1433 | color: #ff5722!important 1434 | } 1435 | .w3-text-pink, 1436 | .w3-hover-text-pink:hover { 1437 | color: #e91e63!important 1438 | } 1439 | .w3-text-purple, 1440 | .w3-hover-text-purple:hover { 1441 | color: #9c27b0!important 1442 | } 1443 | .w3-text-deep-purple, 1444 | .w3-hover-text-deep-purple:hover { 1445 | color: #673ab7!important 1446 | } 1447 | .w3-text-red, 1448 | .w3-hover-text-red:hover { 1449 | color: #f44336!important 1450 | } 1451 | .w3-text-sand, 1452 | .w3-hover-text-sand:hover { 1453 | color: #fdf5e6!important 1454 | } 1455 | .w3-text-teal, 1456 | .w3-hover-text-teal:hover { 1457 | color: #009688!important 1458 | } 1459 | .w3-text-yellow, 1460 | .w3-hover-text-yellow:hover { 1461 | color: #d2be0e!important 1462 | } 1463 | .w3-text-white, 1464 | .w3-hover-text-white:hover { 1465 | color: #fff!important 1466 | } 1467 | .w3-text-black, 1468 | .w3-hover-text-black:hover { 1469 | color: #000!important 1470 | } 1471 | .w3-text-grey, 1472 | .w3-hover-text-grey:hover, 1473 | .w3-text-gray, 1474 | .w3-hover-text-gray:hover { 1475 | color: #757575!important 1476 | } 1477 | .w3-text-light-grey, 1478 | .w3-hover-text-light-grey:hover, 1479 | .w3-text-light-gray, 1480 | .w3-hover-text-light-gray:hover { 1481 | color: #f1f1f1!important 1482 | } 1483 | .w3-text-dark-grey, 1484 | .w3-hover-text-dark-grey:hover, 1485 | .w3-text-dark-gray, 1486 | .w3-hover-text-dark-gray:hover { 1487 | color: #3a3a3a!important 1488 | } 1489 | .w3-border-amber, 1490 | .w3-hover-border-amber:hover { 1491 | border-color: #ffc107!important 1492 | } 1493 | .w3-border-aqua, 1494 | .w3-hover-border-aqua:hover { 1495 | border-color: #00ffff!important 1496 | } 1497 | .w3-border-blue, 1498 | .w3-hover-border-blue:hover { 1499 | border-color: #2196F3!important 1500 | } 1501 | .w3-border-light-blue, 1502 | .w3-hover-border-light-blue:hover { 1503 | border-color: #87CEEB!important 1504 | } 1505 | .w3-border-brown, 1506 | .w3-hover-border-brown:hover { 1507 | border-color: #795548!important 1508 | } 1509 | .w3-border-cyan, 1510 | .w3-hover-border-cyan:hover { 1511 | border-color: #00bcd4!important 1512 | } 1513 | .w3-border-blue-grey, 1514 | .w3-hover-border-blue-grey:hover, 1515 | .w3-border-blue-gray, 1516 | .w3-hover-border-blue-gray:hover { 1517 | border-color: #607d8b!important 1518 | } 1519 | .w3-border-green, 1520 | .w3-hover-border-green:hover { 1521 | border-color: #4CAF50!important 1522 | } 1523 | .w3-border-light-green, 1524 | .w3-hover-border-light-green:hover { 1525 | border-color: #8bc34a!important 1526 | } 1527 | .w3-border-indigo, 1528 | .w3-hover-border-indigo:hover { 1529 | border-color: #3f51b5!important 1530 | } 1531 | .w3-border-khaki, 1532 | .w3-hover-border-khaki:hover { 1533 | border-color: #f0e68c!important 1534 | } 1535 | .w3-border-lime, 1536 | .w3-hover-border-lime:hover { 1537 | border-color: #cddc39!important 1538 | } 1539 | .w3-border-orange, 1540 | .w3-hover-border-orange:hover { 1541 | border-color: #ff9800!important 1542 | } 1543 | .w3-border-deep-orange, 1544 | .w3-hover-border-deep-orange:hover { 1545 | border-color: #ff5722!important 1546 | } 1547 | .w3-border-pink, 1548 | .w3-hover-border-pink:hover { 1549 | border-color: #e91e63!important 1550 | } 1551 | .w3-border-purple, 1552 | .w3-hover-border-purple:hover { 1553 | border-color: #9c27b0!important 1554 | } 1555 | .w3-border-deep-purple, 1556 | .w3-hover-border-deep-purple:hover { 1557 | border-color: #673ab7!important 1558 | } 1559 | .w3-border-red, 1560 | .w3-hover-border-red:hover { 1561 | border-color: #f44336!important 1562 | } 1563 | .w3-border-sand, 1564 | .w3-hover-border-sand:hover { 1565 | border-color: #fdf5e6!important 1566 | } 1567 | .w3-border-teal, 1568 | .w3-hover-border-teal:hover { 1569 | border-color: #009688!important 1570 | } 1571 | .w3-border-yellow, 1572 | .w3-hover-border-yellow:hover { 1573 | border-color: #ffeb3b!important 1574 | } 1575 | .w3-border-white, 1576 | .w3-hover-border-white:hover { 1577 | border-color: #fff!important 1578 | } 1579 | .w3-border-black, 1580 | .w3-hover-border-black:hover { 1581 | border-color: #000!important 1582 | } 1583 | .w3-border-grey, 1584 | .w3-hover-border-grey:hover, 1585 | .w3-border-gray, 1586 | .w3-hover-border-gray:hover { 1587 | border-color: #9e9e9e!important 1588 | } 1589 | .w3-border-light-grey, 1590 | .w3-hover-border-light-grey:hover, 1591 | .w3-border-light-gray, 1592 | .w3-hover-border-light-gray:hover { 1593 | border-color: #f1f1f1!important 1594 | } 1595 | .w3-border-dark-grey, 1596 | .w3-hover-border-dark-grey:hover, 1597 | .w3-border-dark-gray, 1598 | .w3-hover-border-dark-gray:hover { 1599 | border-color: #616161!important 1600 | } 1601 | .w3-border-pale-red, 1602 | .w3-hover-border-pale-red:hover { 1603 | border-color: #ffe7e7!important 1604 | } 1605 | .w3-border-pale-green, 1606 | .w3-hover-border-pale-green:hover { 1607 | border-color: #e7ffe7!important 1608 | } 1609 | .w3-border-pale-yellow, 1610 | .w3-hover-border-pale-yellow:hover { 1611 | border-color: #ffffcc!important 1612 | } 1613 | .w3-border-pale-blue, 1614 | .w3-hover-border-pale-blue:hover { 1615 | border-color: #e7ffff!important 1616 | } -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | --------------------------------------------------------------------------------