├── like.png ├── 2FAoff.PNG ├── 2FAon.PNG ├── Thumbs.db ├── favicon1.png ├── messages.png ├── FinalSchema.PNG ├── GITHUBLogin.PNG ├── favicon_IY.png ├── favicon_IY_bg.png ├── login ├── contact.PNG ├── Logo_idYeah.png ├── img_avatar2.png ├── img_avatar4.png ├── connect.php ├── login.css ├── securityCheck.php ├── login.php ├── validate.php └── gitLogin.php ├── screenShots ├── 1.JPG ├── 2.JPG ├── 3.JPG ├── Thumbs.db ├── like.PNG ├── LogOut.PNG ├── dislike.PNG ├── ProfilePic.PNG ├── createChannel.png ├── postingOptions.PNG ├── createNewChannel.PNG ├── userProfileSearch.PNG ├── listOfChannelMembers.PNG └── InviteMembersToChannel.png ├── UserMetricsGraps.PNG ├── assets ├── images │ ├── Thumbs.db │ └── coniglio_rabbit_small.png ├── channelImages │ ├── .png │ ├── 235.png │ ├── 236.png │ ├── 237.png │ ├── 238.png │ ├── 246.png │ ├── 251.png │ └── Thumbs.db ├── upload │ └── health_id.pdf ├── screenShots │ ├── Newchannel.PNG │ ├── demoscriptTesting.PNG │ ├── existingChannels.PNG │ ├── noPrivateChannel.PNG │ ├── inviteUsesto Existing Channel.PNG │ └── codeForInsertingNotExisting User.PNG ├── helpPageScreenShots │ ├── Thumbs.db │ ├── like.PNG │ ├── post.PNG │ ├── react.PNG │ ├── reply.PNG │ ├── Signup.PNG │ ├── archive.PNG │ ├── dislike.PNG │ ├── logout.png │ ├── search.png │ ├── ProfilePic.png │ ├── createNewChanne.png │ ├── create_channel.PNG │ ├── postingOptions.PNG │ ├── userProfileSearch.PNG │ ├── listOfChannelMembers.png │ ├── InviteMembersToChannel.png │ └── InviteUserWhileCreatingChannel.png └── php │ └── class.pop3.php ├── signOut.php ├── uploadImage.html ├── search.php ├── messages ├── messages.css └── messages.php ├── signup ├── signUpPage.css └── signUpPage.php ├── inviteMembers.php ├── profilePage.css ├── uploadImage.php ├── upLoadDocument.php ├── userProfile.php ├── createChannel.php ├── logInAcitvity.php ├── uploadImageInToChannel.php ├── inviteMembersToChannel.php ├── profilePage.php ├── css └── tags │ ├── tokenfield-typeahead.css │ ├── bootstrap-tokenfield.css │ ├── jquery-migrate-3.0.0.min.js │ └── typeahead.bundle.min.js ├── README.md ├── newChannel.php ├── helpPage.html ├── index.css ├── milestone4dump.sql └── milestoneDumps └── milestone2dump.sql /like.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chandu-muthyala/Chat-Room-Application-PHP-idYeah/master/like.png -------------------------------------------------------------------------------- /2FAoff.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chandu-muthyala/Chat-Room-Application-PHP-idYeah/master/2FAoff.PNG -------------------------------------------------------------------------------- /2FAon.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chandu-muthyala/Chat-Room-Application-PHP-idYeah/master/2FAon.PNG -------------------------------------------------------------------------------- /Thumbs.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chandu-muthyala/Chat-Room-Application-PHP-idYeah/master/Thumbs.db -------------------------------------------------------------------------------- /favicon1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chandu-muthyala/Chat-Room-Application-PHP-idYeah/master/favicon1.png -------------------------------------------------------------------------------- /messages.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chandu-muthyala/Chat-Room-Application-PHP-idYeah/master/messages.png -------------------------------------------------------------------------------- /FinalSchema.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chandu-muthyala/Chat-Room-Application-PHP-idYeah/master/FinalSchema.PNG -------------------------------------------------------------------------------- /GITHUBLogin.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chandu-muthyala/Chat-Room-Application-PHP-idYeah/master/GITHUBLogin.PNG -------------------------------------------------------------------------------- /favicon_IY.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chandu-muthyala/Chat-Room-Application-PHP-idYeah/master/favicon_IY.png -------------------------------------------------------------------------------- /favicon_IY_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chandu-muthyala/Chat-Room-Application-PHP-idYeah/master/favicon_IY_bg.png -------------------------------------------------------------------------------- /login/contact.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chandu-muthyala/Chat-Room-Application-PHP-idYeah/master/login/contact.PNG -------------------------------------------------------------------------------- /screenShots/1.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chandu-muthyala/Chat-Room-Application-PHP-idYeah/master/screenShots/1.JPG -------------------------------------------------------------------------------- /screenShots/2.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chandu-muthyala/Chat-Room-Application-PHP-idYeah/master/screenShots/2.JPG -------------------------------------------------------------------------------- /screenShots/3.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chandu-muthyala/Chat-Room-Application-PHP-idYeah/master/screenShots/3.JPG -------------------------------------------------------------------------------- /UserMetricsGraps.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chandu-muthyala/Chat-Room-Application-PHP-idYeah/master/UserMetricsGraps.PNG -------------------------------------------------------------------------------- /login/Logo_idYeah.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chandu-muthyala/Chat-Room-Application-PHP-idYeah/master/login/Logo_idYeah.png -------------------------------------------------------------------------------- /login/img_avatar2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chandu-muthyala/Chat-Room-Application-PHP-idYeah/master/login/img_avatar2.png -------------------------------------------------------------------------------- /login/img_avatar4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chandu-muthyala/Chat-Room-Application-PHP-idYeah/master/login/img_avatar4.png -------------------------------------------------------------------------------- /screenShots/Thumbs.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chandu-muthyala/Chat-Room-Application-PHP-idYeah/master/screenShots/Thumbs.db -------------------------------------------------------------------------------- /screenShots/like.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chandu-muthyala/Chat-Room-Application-PHP-idYeah/master/screenShots/like.PNG -------------------------------------------------------------------------------- /assets/images/Thumbs.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chandu-muthyala/Chat-Room-Application-PHP-idYeah/master/assets/images/Thumbs.db -------------------------------------------------------------------------------- /screenShots/LogOut.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chandu-muthyala/Chat-Room-Application-PHP-idYeah/master/screenShots/LogOut.PNG -------------------------------------------------------------------------------- /screenShots/dislike.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chandu-muthyala/Chat-Room-Application-PHP-idYeah/master/screenShots/dislike.PNG -------------------------------------------------------------------------------- /signOut.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /assets/channelImages/.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chandu-muthyala/Chat-Room-Application-PHP-idYeah/master/assets/channelImages/.png -------------------------------------------------------------------------------- /screenShots/ProfilePic.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chandu-muthyala/Chat-Room-Application-PHP-idYeah/master/screenShots/ProfilePic.PNG -------------------------------------------------------------------------------- /assets/channelImages/235.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chandu-muthyala/Chat-Room-Application-PHP-idYeah/master/assets/channelImages/235.png -------------------------------------------------------------------------------- /assets/channelImages/236.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chandu-muthyala/Chat-Room-Application-PHP-idYeah/master/assets/channelImages/236.png -------------------------------------------------------------------------------- /assets/channelImages/237.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chandu-muthyala/Chat-Room-Application-PHP-idYeah/master/assets/channelImages/237.png -------------------------------------------------------------------------------- /assets/channelImages/238.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chandu-muthyala/Chat-Room-Application-PHP-idYeah/master/assets/channelImages/238.png -------------------------------------------------------------------------------- /assets/channelImages/246.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chandu-muthyala/Chat-Room-Application-PHP-idYeah/master/assets/channelImages/246.png -------------------------------------------------------------------------------- /assets/channelImages/251.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chandu-muthyala/Chat-Room-Application-PHP-idYeah/master/assets/channelImages/251.png -------------------------------------------------------------------------------- /assets/upload/health_id.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chandu-muthyala/Chat-Room-Application-PHP-idYeah/master/assets/upload/health_id.pdf -------------------------------------------------------------------------------- /assets/channelImages/Thumbs.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chandu-muthyala/Chat-Room-Application-PHP-idYeah/master/assets/channelImages/Thumbs.db -------------------------------------------------------------------------------- /screenShots/createChannel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chandu-muthyala/Chat-Room-Application-PHP-idYeah/master/screenShots/createChannel.png -------------------------------------------------------------------------------- /screenShots/postingOptions.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chandu-muthyala/Chat-Room-Application-PHP-idYeah/master/screenShots/postingOptions.PNG -------------------------------------------------------------------------------- /assets/screenShots/Newchannel.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chandu-muthyala/Chat-Room-Application-PHP-idYeah/master/assets/screenShots/Newchannel.PNG -------------------------------------------------------------------------------- /screenShots/createNewChannel.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chandu-muthyala/Chat-Room-Application-PHP-idYeah/master/screenShots/createNewChannel.PNG -------------------------------------------------------------------------------- /screenShots/userProfileSearch.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chandu-muthyala/Chat-Room-Application-PHP-idYeah/master/screenShots/userProfileSearch.PNG -------------------------------------------------------------------------------- /assets/helpPageScreenShots/Thumbs.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chandu-muthyala/Chat-Room-Application-PHP-idYeah/master/assets/helpPageScreenShots/Thumbs.db -------------------------------------------------------------------------------- /assets/helpPageScreenShots/like.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chandu-muthyala/Chat-Room-Application-PHP-idYeah/master/assets/helpPageScreenShots/like.PNG -------------------------------------------------------------------------------- /assets/helpPageScreenShots/post.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chandu-muthyala/Chat-Room-Application-PHP-idYeah/master/assets/helpPageScreenShots/post.PNG -------------------------------------------------------------------------------- /assets/helpPageScreenShots/react.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chandu-muthyala/Chat-Room-Application-PHP-idYeah/master/assets/helpPageScreenShots/react.PNG -------------------------------------------------------------------------------- /assets/helpPageScreenShots/reply.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chandu-muthyala/Chat-Room-Application-PHP-idYeah/master/assets/helpPageScreenShots/reply.PNG -------------------------------------------------------------------------------- /screenShots/listOfChannelMembers.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chandu-muthyala/Chat-Room-Application-PHP-idYeah/master/screenShots/listOfChannelMembers.PNG -------------------------------------------------------------------------------- /assets/helpPageScreenShots/Signup.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chandu-muthyala/Chat-Room-Application-PHP-idYeah/master/assets/helpPageScreenShots/Signup.PNG -------------------------------------------------------------------------------- /assets/helpPageScreenShots/archive.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chandu-muthyala/Chat-Room-Application-PHP-idYeah/master/assets/helpPageScreenShots/archive.PNG -------------------------------------------------------------------------------- /assets/helpPageScreenShots/dislike.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chandu-muthyala/Chat-Room-Application-PHP-idYeah/master/assets/helpPageScreenShots/dislike.PNG -------------------------------------------------------------------------------- /assets/helpPageScreenShots/logout.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chandu-muthyala/Chat-Room-Application-PHP-idYeah/master/assets/helpPageScreenShots/logout.png -------------------------------------------------------------------------------- /assets/helpPageScreenShots/search.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chandu-muthyala/Chat-Room-Application-PHP-idYeah/master/assets/helpPageScreenShots/search.png -------------------------------------------------------------------------------- /screenShots/InviteMembersToChannel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chandu-muthyala/Chat-Room-Application-PHP-idYeah/master/screenShots/InviteMembersToChannel.png -------------------------------------------------------------------------------- /assets/helpPageScreenShots/ProfilePic.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chandu-muthyala/Chat-Room-Application-PHP-idYeah/master/assets/helpPageScreenShots/ProfilePic.png -------------------------------------------------------------------------------- /assets/images/coniglio_rabbit_small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chandu-muthyala/Chat-Room-Application-PHP-idYeah/master/assets/images/coniglio_rabbit_small.png -------------------------------------------------------------------------------- /assets/screenShots/demoscriptTesting.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chandu-muthyala/Chat-Room-Application-PHP-idYeah/master/assets/screenShots/demoscriptTesting.PNG -------------------------------------------------------------------------------- /assets/screenShots/existingChannels.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chandu-muthyala/Chat-Room-Application-PHP-idYeah/master/assets/screenShots/existingChannels.PNG -------------------------------------------------------------------------------- /assets/screenShots/noPrivateChannel.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chandu-muthyala/Chat-Room-Application-PHP-idYeah/master/assets/screenShots/noPrivateChannel.PNG -------------------------------------------------------------------------------- /assets/helpPageScreenShots/createNewChanne.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chandu-muthyala/Chat-Room-Application-PHP-idYeah/master/assets/helpPageScreenShots/createNewChanne.png -------------------------------------------------------------------------------- /assets/helpPageScreenShots/create_channel.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chandu-muthyala/Chat-Room-Application-PHP-idYeah/master/assets/helpPageScreenShots/create_channel.PNG -------------------------------------------------------------------------------- /assets/helpPageScreenShots/postingOptions.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chandu-muthyala/Chat-Room-Application-PHP-idYeah/master/assets/helpPageScreenShots/postingOptions.PNG -------------------------------------------------------------------------------- /assets/helpPageScreenShots/userProfileSearch.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chandu-muthyala/Chat-Room-Application-PHP-idYeah/master/assets/helpPageScreenShots/userProfileSearch.PNG -------------------------------------------------------------------------------- /assets/helpPageScreenShots/listOfChannelMembers.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chandu-muthyala/Chat-Room-Application-PHP-idYeah/master/assets/helpPageScreenShots/listOfChannelMembers.png -------------------------------------------------------------------------------- /assets/helpPageScreenShots/InviteMembersToChannel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chandu-muthyala/Chat-Room-Application-PHP-idYeah/master/assets/helpPageScreenShots/InviteMembersToChannel.png -------------------------------------------------------------------------------- /assets/screenShots/inviteUsesto Existing Channel.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chandu-muthyala/Chat-Room-Application-PHP-idYeah/master/assets/screenShots/inviteUsesto Existing Channel.PNG -------------------------------------------------------------------------------- /assets/screenShots/codeForInsertingNotExisting User.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chandu-muthyala/Chat-Room-Application-PHP-idYeah/master/assets/screenShots/codeForInsertingNotExisting User.PNG -------------------------------------------------------------------------------- /login/connect.php: -------------------------------------------------------------------------------- 1 | 2 | 8 | -------------------------------------------------------------------------------- /assets/helpPageScreenShots/InviteUserWhileCreatingChannel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chandu-muthyala/Chat-Room-Application-PHP-idYeah/master/assets/helpPageScreenShots/InviteUserWhileCreatingChannel.png -------------------------------------------------------------------------------- /uploadImage.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /login/login.css: -------------------------------------------------------------------------------- 1 | .container1{ 2 | width: 30%; 3 | /*height: 30%;*/ 4 | border: 3px solid #73AD21; 5 | padding: 1%; 6 | margin:0 auto; 7 | margin-top: 5%; 8 | text-align: center; 9 | /*border-radius: 25px;*/ 10 | 11 | } 12 | .loginform{ 13 | padding: 10%; 14 | border: 3px solid #f1f1f1; 15 | border-radius: 25px; 16 | } 17 | .inputfield{ 18 | width: 100%; 19 | padding: .5em 1em; 20 | border-radius: 5px; 21 | } 22 | .label1{ 23 | font-size: 100%; 24 | color:black; 25 | } 26 | .btn1{ 27 | font-size:0.875em; 28 | margin:0.35em; 29 | border-radius: 25px; 30 | background-color: #4CAF50; 31 | color: white; 32 | padding: .5em .5em; 33 | border: none; 34 | cursor: pointer; 35 | width: 25%; 36 | } 37 | .btn1:hover { 38 | opacity: 0.8; 39 | } 40 | .imgcontainer { 41 | text-align: center; 42 | margin: 24px 0 1px 0; 43 | } 44 | h3{ 45 | margin-top: 5px; 46 | } 47 | img.avatar { 48 | width: 20%; 49 | border-radius: 50%; 50 | } -------------------------------------------------------------------------------- /search.php: -------------------------------------------------------------------------------- 1 | connect_error) { 7 | die("Connection failed: " . $conn->connect_error); 8 | } 9 | $key=$_GET['key']; 10 | $array = array(); 11 | $query="SELECT email FROM `users` where email LIKE '%{$key}%'"; 12 | $checkResult = mysqli_query($conn,$query); 13 | while($row=mysqli_fetch_assoc($checkResult)) 14 | { 15 | $array[] = $row['email']; 16 | } 17 | echo json_encode($array); 18 | 19 | ?> 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 37 | -------------------------------------------------------------------------------- /messages/messages.css: -------------------------------------------------------------------------------- 1 | .right { 2 | margin-left: 0px; 3 | padding: 5px 5px; 4 | background-color: white; 5 | border-bottom: 2px solid #ccc; 6 | } 7 | .thread{ 8 | margin-left: 4%; 9 | padding: 5px 5px; 10 | background-color: white; 11 | /*border-radius: 10px;*/ 12 | /*border: 1px solid #ccc;*/ 13 | } 14 | 15 | .timeStamp{ 16 | margin-left: 8px !important; 17 | opacity: 0.6 !important; 18 | font-size: 1.2vh; 19 | } 20 | .contact_Img{ 21 | width: 40px; 22 | height: 40px; 23 | margin-right: 15px; 24 | border-radius: 15%; 25 | border: 1px solid#ddd; 26 | 27 | } 28 | .replyMsgContactImg{ 29 | width: 40px; 30 | height: 40px; 31 | /*border-radius: 15%;*/ 32 | border: 1px solid#ddd; 33 | float:left; 34 | } 35 | .textMessage{ 36 | margin-left: 55px; 37 | font-family: "Comic Sans MS", cursive, sans-serif; 38 | word-wrap: break-word; 39 | } 40 | .logout{ 41 | float: right; 42 | margin-right: -13%; 43 | margin-top: 1.7em; 44 | } 45 | .delete{ 46 | font-size: 150% !important; 47 | cursor: pointer; 48 | padding-left: 50%; 49 | } 50 | .delete:hover{ 51 | font-size: 150% !important; 52 | cursor: pointer; 53 | color: red; 54 | padding-left: 50%; 55 | } -------------------------------------------------------------------------------- /signup/signUpPage.css: -------------------------------------------------------------------------------- 1 | .formDiv{ 2 | width: 50%; 3 | margin-left: auto; 4 | margin-right: auto; 5 | margin-top: 5%; 6 | /*box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);*/ 7 | box-shadow: 0px 0px 5px 1px lightgrey; 8 | border-radius: 5px; 9 | } 10 | h2{ 11 | text-align: center; 12 | padding: 2%; 13 | } 14 | /* Full-width input fields */ 15 | .inputfield{ 16 | width: 100%; 17 | padding: 12px 20px; 18 | margin: 8px 0; 19 | display: inline-block; 20 | border: 1px solid #ccc; 21 | box-sizing: border-box; 22 | border-radius: .5em; 23 | } 24 | .error {color: #FF0000;} 25 | /* Set a style for all buttons */ 26 | button { 27 | background-color: #4CAF50; 28 | color: white; 29 | padding: 14px 20px; 30 | margin: 8px 0; 31 | border: none; 32 | cursor: pointer; 33 | width: 100%; 34 | } 35 | 36 | /* Extra styles for the cancel button */ 37 | .cancelbtn { 38 | padding: 14px 20px; 39 | background-color: #f44336; 40 | } 41 | 42 | /* Float cancel and signup buttons and add an equal width */ 43 | .signupbtn { 44 | float: left; 45 | 46 | } 47 | 48 | /* Add padding to container elements */ 49 | .container { 50 | padding: 16px; 51 | } 52 | 53 | /* Clear floats */ 54 | .clearfix::after { 55 | content: ""; 56 | clear: both; 57 | display: table; 58 | } 59 | 60 | /* Change styles for cancel button and signup button on extra small screens */ 61 | @media screen and (max-width: 300px) { 62 | .signupbtn { 63 | width: 100%; 64 | } 65 | } -------------------------------------------------------------------------------- /inviteMembers.php: -------------------------------------------------------------------------------- 1 | connect_error) { 12 | die("Connection failed: " . $conn->connect_error); 13 | } 14 | $data = $_POST['data']; 15 | $channelId = mysqli_real_escape_string($conn,$data['channelId']); 16 | 17 | $userList = $data['usersList']; 18 | array_push($userList,$_SESSION['email']); 19 | $userList = array_unique($userList); 20 | 21 | foreach ($userList as $user) { 22 | $checkSql = "SELECT count(*)as count1 FROM `userChannels` where channel_id='$channelId' and user_email='$user'"; 23 | $checkResult = mysqli_query($conn,$checkSql); 24 | $checkCount = mysqli_fetch_assoc($checkResult); 25 | $count = $checkCount['count1']; 26 | echo "invite '$count'"; 27 | if($count<1) 28 | { 29 | $sql = "INSERT INTO `userChannels` VALUES('$user','$channelId',CURRENT_TIMESTAMP,DEFAULT)"; 30 | if (mysqli_query($conn, $sql)) { 31 | 32 | echo "**** $user userChannels created successfully ***"; 33 | }else{ 34 | // echo "**** failed creating channel***
"; 35 | echo "**** failed creating userChannels***"; 36 | echo $sql; 37 | } 38 | } 39 | else{ 40 | echo "'$user' already exist."; 41 | } 42 | } 43 | ?> -------------------------------------------------------------------------------- /login/securityCheck.php: -------------------------------------------------------------------------------- 1 | 2 | connect_error) { 9 | die("Connection failed: " . $conn->connect_error); 10 | } 11 | if(isset($_POST['passCode'])){ 12 | $passCode = mysqli_real_escape_string($conn,$_POST['passCode']); 13 | if($passCode==$_SESSION['Passcode']){ 14 | echo "inside if"; 15 | header("location: ../index.php"); 16 | }else{ 17 | $error='* Wrong passCode, retry'; 18 | } 19 | } 20 | 21 | 22 | 23 | ?> 24 | 25 | 26 | 27 |
30 |
31 | **** Channel created successfully ***
"; 38 | echo "**** Channel created successfully ***"; 39 | }else{ 40 | // echo "**** failed creating channel***
"; 41 | echo "**** failed creating channel***"; 42 | } 43 | $sql = "SELECT MAX(channel_id) as last_id FROM `channels`"; 44 | $result = mysqli_query($conn, $sql); 45 | $row = $result->fetch_assoc(); 46 | $last_id = $row['last_id']; 47 | echo $last_id; 48 | foreach ($userList as $user) { 49 | 50 | $sql = "INSERT INTO `userChannels` VALUES('$user','$last_id',CURRENT_TIMESTAMP,DEFAULT)"; 51 | if (mysqli_query($conn, $sql)) { 52 | 53 | echo "**** $user userChannels created successfully ***"; 54 | }else{ 55 | // echo "**** failed creating channel***
"; 56 | echo "**** failed creating userChannels***"; 57 | } 58 | 59 | } 60 | } 61 | 62 | mysqli_close($conn); 63 | 64 | ?> -------------------------------------------------------------------------------- /login/login.php: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | 9 | 10 |