40 |
41 |
42 |
60 |
61 | ├── imgs └── dc.jpg ├── readme.pdf ├── image ├── lx.png ├── admin.png ├── bot_avatar.png ├── user_avatar.png └── bot_avatarxx.png ├── database.inc.php ├── dbconfig └── config.php ├── delete.php ├── navbar.css ├── get_bot_message.php ├── style.css ├── admin.php ├── log.css ├── invalid.php ├── README.md ├── adminlogin.php ├── css ├── style.css └── stylex.css ├── authentication.sql ├── invalidans.php ├── index.php ├── update.php ├── database.sql ├── insert.php ├── qna.php ├── register.php ├── homepage.php └── youtube.sql /imgs/dc.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spider-yamet/Chatbot/main/imgs/dc.jpg -------------------------------------------------------------------------------- /readme.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spider-yamet/Chatbot/main/readme.pdf -------------------------------------------------------------------------------- /image/lx.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spider-yamet/Chatbot/main/image/lx.png -------------------------------------------------------------------------------- /database.inc.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /image/admin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spider-yamet/Chatbot/main/image/admin.png -------------------------------------------------------------------------------- /image/bot_avatar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spider-yamet/Chatbot/main/image/bot_avatar.png -------------------------------------------------------------------------------- /image/user_avatar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spider-yamet/Chatbot/main/image/user_avatar.png -------------------------------------------------------------------------------- /image/bot_avatarxx.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spider-yamet/Chatbot/main/image/bot_avatarxx.png -------------------------------------------------------------------------------- /dbconfig/config.php: -------------------------------------------------------------------------------- 1 | 2 | //before implementing this create a folder named dbconfig and paste this file in it. 3 | 4 | 5 | -------------------------------------------------------------------------------- /delete.php: -------------------------------------------------------------------------------- 1 | connect_error){ 4 | die("connection failed:".$conn-> connect_error); 5 | } 6 | $id=$_GET['rn']; 7 | $query="DELETE FROM CHATBOT_HINTS WHERE ID ='$id' "; 8 | 9 | $data=mysqli_query($conn,$query); 10 | 11 | if($data) 12 | { 13 | echo ""; 14 | ?> 15 | 16 | 17 | Failed to delete fromm db!!"; 22 | } 23 | ?> -------------------------------------------------------------------------------- /navbar.css: -------------------------------------------------------------------------------- 1 | body,html{ 2 | margin: 0; 3 | padding: 0; 4 | } 5 | header{ 6 | width: 100%; 7 | height: 70px; 8 | background-color: #282828; 9 | } 10 | h1{ 11 | position: absolute; 12 | padding: 3px; 13 | float: left; 14 | margin-left: 2%; 15 | margin-top: 10px; 16 | font-family: 'Alfa Slab One',cursive; 17 | color: #39ca74; 18 | } 19 | span{ 20 | color: #ffffff; 21 | } 22 | ul{ 23 | width: auto; 24 | float: right; 25 | margin-top: 8px; 26 | } 27 | li{ 28 | display: inline-block; 29 | padding: 15px 30px; 30 | 31 | } 32 | 33 | 34 | a{ 35 | text-align: center; 36 | color: #39ca74; 37 | text-decoration: none; 38 | font-family: 'Open Sans',sans-serif; 39 | font-size: 0.8vw; 40 | } 41 | 42 | a:hover{ 43 | color: #fff; 44 | transition: 0.5s; 45 | } 46 | img{ 47 | width: 100%; 48 | margin-top: -16px; 49 | } 50 | input{ 51 | color: #000; 52 | marker-end: 25% 53 | 54 | } 55 | input:hover{ 56 | color:#fff; 57 | transition: 0.5s; 58 | } -------------------------------------------------------------------------------- /get_bot_message.php: -------------------------------------------------------------------------------- 1 | 0){ 10 | 11 | $row=mysqli_fetch_assoc($res); 12 | $html=$row['reply']; 13 | 14 | }else{ 15 | $html="Sorry not be able to understand you"; 16 | } 17 | 18 | $added_on=date('Y-m-d h:i:s'); 19 | mysqli_query($con,"insert into message(message,added_on,type) values('$txt','$added_on','user')"); 20 | $added_on=date('Y-m-d h:i:s'); 21 | mysqli_query($con,"insert into message(message,added_on,type) values('$html','$added_on','bot')"); 22 | echo $html; 23 | echo " "; 24 | ?> 25 | 26 | 27 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /style.css: -------------------------------------------------------------------------------- 1 | .unread { 2 | cursor: pointer; 3 | background-color: #f4f4f4; 4 | } 5 | .messages-box { 6 | max-height: 28rem; 7 | overflow: auto; 8 | color: rgba(0,0,0,2); 9 | } 10 | .online-circle { 11 | border-radius: 5rem; 12 | width: 5rem; 13 | height: 5rem; 14 | } 15 | .messages-title { 16 | float: right; 17 | margin: 0px 5px; 18 | } 19 | .message-img { 20 | float: right; 21 | margin: 0px 5px; 22 | } 23 | .message-header { 24 | text-align: right; 25 | width: 100%; 26 | margin-bottom: 0.5rem; 27 | } 28 | .text-editor { 29 | min-height: 18rem; 30 | } 31 | .messages-list li.messages-you .messages-title { 32 | float: left; 33 | } 34 | .messages-list li.messages-you .message-img { 35 | float: left; 36 | } 37 | .messages-list li.messages-you p { 38 | float: left; 39 | text-align: left; 40 | } 41 | .messages-list li.messages-you .message-header { 42 | text-align: left; 43 | } 44 | .messages-list li p { 45 | max-width: 60%; 46 | padding: 5px; 47 | border: #e6e7e9 1px solid; 48 | } 49 | .messages-list li.messages-me p { 50 | float: right; 51 | } 52 | .ql-editor p { 53 | font-size: 1rem; 54 | } 55 | .logout{ 56 | size: 60px; 57 | } -------------------------------------------------------------------------------- /admin.php: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 |
8 | 9 | 10 |
40 |
41 |
42 |
60 |
61 |