├── .gitattributes ├── upload └── profile.jpg ├── admin ├── logout.php ├── deleteuser.php ├── update_room.php ├── send_message.php ├── deleteroom.php ├── add_user.php ├── addmember.php ├── session.php ├── leaveroom.php ├── addnewmember.php ├── header.php ├── fetch_member.php ├── add_chatroom.php ├── update_user.php ├── confirm_password.php ├── test.php ├── fetch_chat.php ├── update_photo.php ├── navbar.php ├── update_account.php ├── mychat.php ├── chatlist.php ├── userlist.php ├── room.php ├── index.php ├── user.php ├── chatroom.php ├── crudroom_modal.php ├── room_modal.php ├── cruduser_modal.php └── modal.php ├── user ├── logout.php ├── send_message.php ├── deleteroom.php ├── addmember.php ├── session.php ├── leaveroom.php ├── addnewmember.php ├── header.php ├── add_chatroom.php ├── confirm_password.php ├── test.php ├── fetch_chat.php ├── navbar.php ├── update_photo.php ├── update_account.php ├── mychat.php ├── chatlist.php ├── room.php ├── password_modal.php ├── index.php ├── chatroom.php ├── room_modal.php ├── out_modal.php └── modal.php ├── conn.php ├── README.md ├── register.php ├── LICENSE ├── login.php ├── index.php ├── signup.php ├── js ├── dataTables.bootstrap.min.js └── dataTables.responsive.js ├── css ├── dataTables.responsive.css └── dataTables.bootstrap.css └── db └── id3106473_localhost.sql /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto -------------------------------------------------------------------------------- /upload/profile.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayandasoriya/ChatRoom/HEAD/upload/profile.jpg -------------------------------------------------------------------------------- /admin/logout.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /user/logout.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /admin/deleteuser.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /conn.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /admin/update_room.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /user/send_message.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /admin/send_message.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /admin/deleteroom.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /user/deleteroom.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /admin/add_user.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /admin/addmember.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /user/addmember.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /admin/session.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /user/session.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /admin/leaveroom.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /user/leaveroom.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /admin/addnewmember.php: -------------------------------------------------------------------------------- 1 | 8 | 12 | 18 | 22 | -------------------------------------------------------------------------------- /admin/header.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | ChatBot 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /user/addnewmember.php: -------------------------------------------------------------------------------- 1 | 8 | 12 | 18 | 22 | -------------------------------------------------------------------------------- /user/header.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | ChatBot 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /admin/fetch_member.php: -------------------------------------------------------------------------------- 1 | 9 |
10 | 11 | 12 | 13 | 14 |

15 | -------------------------------------------------------------------------------- /admin/add_chatroom.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /user/add_chatroom.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # chatRoom 2 | 3 | This is an online chat room system where users can log in and have chats. This provides 2 types of chatting. 4 | 5 | 1. Public: Anyone can join the group and have conversation 6 | 2. Private: You require a password to join the group. 7 | 8 | The admin access control has the rights to manage the groups and the users. 9 | 10 | Preview of this website is available over: 11 | ``` 12 | https://chatbot-rayan.000webhostapp.com/ 13 | ``` 14 | 15 | Credentials for the system 16 | ``` 17 | Username: test 18 | Password: test 19 | Password for chat with name "chatroom password": leeann 20 | ``` 21 | -------------------------------------------------------------------------------- /admin/update_user.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /user/confirm_password.php: -------------------------------------------------------------------------------- 1 | 17 | 21 | -------------------------------------------------------------------------------- /admin/confirm_password.php: -------------------------------------------------------------------------------- 1 | 17 | 21 | -------------------------------------------------------------------------------- /admin/test.php: -------------------------------------------------------------------------------- 1 | 17 |
  • 18 | -------------------------------------------------------------------------------- /user/test.php: -------------------------------------------------------------------------------- 1 | 17 |
  • 18 | -------------------------------------------------------------------------------- /admin/fetch_chat.php: -------------------------------------------------------------------------------- 1 | 9 |
    10 | " style="height:30px; width:30px; position:relative; top:15px; left:10px;"> 11 |
    12 | : 13 |
    14 | -------------------------------------------------------------------------------- /user/fetch_chat.php: -------------------------------------------------------------------------------- 1 | 9 |
    10 | " style="height:30px; width:30px; position:relative; top:15px; left:10px;"> 11 |
    12 | :
    13 |
    14 |
    15 | -------------------------------------------------------------------------------- /register.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /user/navbar.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 Rayan Dasoriya 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /user/update_photo.php: -------------------------------------------------------------------------------- 1 | 9 | 13 | 24 | 28 | 32 | 36 | -------------------------------------------------------------------------------- /admin/update_photo.php: -------------------------------------------------------------------------------- 1 | 9 | 13 | 24 | 28 | 32 | 36 | -------------------------------------------------------------------------------- /admin/navbar.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /admin/update_account.php: -------------------------------------------------------------------------------- 1 | 15 | 19 | 24 | 28 | 41 | 45 | -------------------------------------------------------------------------------- /user/update_account.php: -------------------------------------------------------------------------------- 1 | 15 | 19 | 24 | 28 | 41 | 45 | -------------------------------------------------------------------------------- /login.php: -------------------------------------------------------------------------------- 1 | 37 | 41 | 46 | 50 | -------------------------------------------------------------------------------- /index.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | ChatBot 5 | 6 | 7 | 8 | 18 | 19 | 20 |
    21 |
    22 |

    Please Login

    23 |
    24 |
    25 | Username: 26 |
    27 | Password: 28 |
    29 | No account? Sign up 30 |
    31 |
    32 |
    33 |
    34 | 41 |
    42 |
    43 |
    44 |
    45 | 46 | -------------------------------------------------------------------------------- /signup.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | ChatBot 5 | 6 | 7 | 8 | 18 | 19 | 20 |
    21 |
    22 |

    Sign Up

    23 |
    24 |
    25 | Name: 26 |
    27 | Username: 28 |
    29 | Password: 30 |
    31 | Back to Login 32 |
    33 |
    34 |
    35 |
    36 | 43 |
    44 |
    45 |
    46 |
    47 | 48 | -------------------------------------------------------------------------------- /js/dataTables.bootstrap.min.js: -------------------------------------------------------------------------------- 1 | /*! 2 | DataTables Bootstrap 3 integration 3 | ©2011-2014 SpryMedia Ltd - datatables.net/license 4 | */ 5 | (function(){var f=function(c,b){c.extend(!0,b.defaults,{dom:"<'row'<'col-sm-6'l><'col-sm-6'f>><'row'<'col-sm-12'tr>><'row'<'col-sm-6'i><'col-sm-6'p>>",renderer:"bootstrap"});c.extend(b.ext.classes,{sWrapper:"dataTables_wrapper form-inline dt-bootstrap",sFilterInput:"form-control input-sm",sLengthSelect:"form-control input-sm"});b.ext.renderer.pageButton.bootstrap=function(g,f,p,k,h,l){var q=new b.Api(g),r=g.oClasses,i=g.oLanguage.oPaginate,d,e,o=function(b,f){var j,m,n,a,k=function(a){a.preventDefault(); 6 | c(a.currentTarget).hasClass("disabled")||q.page(a.data.action).draw(!1)};j=0;for(m=f.length;j",{"class":r.sPageButton+" "+ 7 | e,"aria-controls":g.sTableId,tabindex:g.iTabIndex,id:0===p&&"string"===typeof a?g.sTableId+"_"+a:null}).append(c("",{href:"#"}).html(d)).appendTo(b),g.oApi._fnBindAction(n,{action:a},k))}};o(c(f).empty().html('