├── Student ├── index.php ├── Imgs │ ├── data.txt │ ├── Biology │ │ └── data.txt │ ├── Chemistry │ │ └── data.txt │ └── Physics │ │ └── data.txt ├── English │ ├── saveTime.php │ ├── next.php │ ├── updateSub.php │ ├── updatePallete.php │ ├── mark.php │ ├── clear.php │ ├── save.php │ └── eng_jump.php ├── Gujarati │ ├── saveTime.php │ ├── next.php │ ├── updateSub.php │ ├── updatePallete.php │ ├── mark.php │ ├── clear.php │ ├── save.php │ └── guj_jump.php ├── Check │ ├── endExam.php │ └── startexam.php ├── exam.php ├── JS │ └── exambegin.js ├── thanks.php └── Parts │ ├── nonverified.php │ └── updateEmail.php ├── Images ├── data.txt ├── bg.jpg ├── bgpencil.png └── underconstruction.png ├── Ads ├── Min │ ├── data.txt │ ├── index.php │ ├── logout.php │ ├── a_login.php │ ├── Action │ │ ├── removeAdmin.php │ │ ├── addAdmin.php │ │ ├── sendreply.php │ │ └── addStudent.php │ ├── loginCheck.php │ ├── Change │ │ └── changepassword.php │ ├── contacts.php │ ├── Subs │ │ ├── addquestion.php │ │ ├── biology.php │ │ ├── chemistry.php │ │ └── physics.php │ ├── questions.php │ ├── sendemail.php │ ├── trial.php │ ├── Commen │ │ └── header.php │ ├── replymail.php │ ├── edit.php │ ├── AdminLogin.php │ ├── admins.php │ └── students.php └── AdminDb │ ├── data.txt │ └── dbconnect.php ├── Files ├── data.txt ├── email.PNG ├── loginpage.PNG ├── examInstrpage.png ├── examgoingENG.PNG ├── examgoingGUJ.PNG └── registration.PNG ├── logout.php ├── Db └── dbconnect.php ├── yo.php ├── Check ├── login.php ├── contact.php └── register.php ├── join.php ├── JS ├── donate.js ├── result.js ├── nonvarified.js ├── contact.js ├── login.js └── page.js ├── registerStudent.php ├── loginStudent.php ├── verify.php ├── README.md ├── results.php ├── donate.php ├── CSS └── kel.css ├── Parts ├── nonverified.php └── updateEmail.php ├── login.php ├── index.php ├── contact.php ├── yogg.php └── yogg1.php /Student/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Images/data.txt: -------------------------------------------------------------------------------- 1 | folder contains the images 2 | -------------------------------------------------------------------------------- /Student/Imgs/data.txt: -------------------------------------------------------------------------------- 1 | Here we put question images -------------------------------------------------------------------------------- /Ads/Min/data.txt: -------------------------------------------------------------------------------- 1 | Here, all the admin files are being stored 2 | -------------------------------------------------------------------------------- /Files/data.txt: -------------------------------------------------------------------------------- 1 | Here you can upload your answer keys images and all -------------------------------------------------------------------------------- /Ads/AdminDb/data.txt: -------------------------------------------------------------------------------- 1 | In this folder admin's connection will happen to the db. 2 | -------------------------------------------------------------------------------- /Images/bg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kelta-King/NEET-Exam/HEAD/Images/bg.jpg -------------------------------------------------------------------------------- /Files/email.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kelta-King/NEET-Exam/HEAD/Files/email.PNG -------------------------------------------------------------------------------- /Student/Imgs/Biology/data.txt: -------------------------------------------------------------------------------- 1 | Make 2 Gujarati folders and add question images accordingly -------------------------------------------------------------------------------- /Student/Imgs/Chemistry/data.txt: -------------------------------------------------------------------------------- 1 | Make 2 Gujarati folders and add question images accordingly -------------------------------------------------------------------------------- /Student/Imgs/Physics/data.txt: -------------------------------------------------------------------------------- 1 | Make 2 Gujarati folders and add question images accordingly -------------------------------------------------------------------------------- /Files/loginpage.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kelta-King/NEET-Exam/HEAD/Files/loginpage.PNG -------------------------------------------------------------------------------- /Images/bgpencil.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kelta-King/NEET-Exam/HEAD/Images/bgpencil.png -------------------------------------------------------------------------------- /Files/examInstrpage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kelta-King/NEET-Exam/HEAD/Files/examInstrpage.png -------------------------------------------------------------------------------- /Files/examgoingENG.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kelta-King/NEET-Exam/HEAD/Files/examgoingENG.PNG -------------------------------------------------------------------------------- /Files/examgoingGUJ.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kelta-King/NEET-Exam/HEAD/Files/examgoingGUJ.PNG -------------------------------------------------------------------------------- /Files/registration.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kelta-King/NEET-Exam/HEAD/Files/registration.PNG -------------------------------------------------------------------------------- /Ads/Min/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Images/underconstruction.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kelta-King/NEET-Exam/HEAD/Images/underconstruction.png -------------------------------------------------------------------------------- /logout.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Ads/Min/logout.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Ads/AdminDb/dbconnect.php: -------------------------------------------------------------------------------- 1 | connect_error) 11 | { 12 | die("something went wrong:$conn->connect_error"); 13 | } 14 | 15 | ?> -------------------------------------------------------------------------------- /Db/dbconnect.php: -------------------------------------------------------------------------------- 1 | connect_error) 11 | { 12 | die("something went wrong:$conn->connect_error"); 13 | } 14 | 15 | ?> -------------------------------------------------------------------------------- /Ads/Min/a_login.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Student/English/saveTime.php: -------------------------------------------------------------------------------- 1 | query($query)){ 17 | 18 | } 19 | else{ 20 | die("Something went wrong"); 21 | } 22 | 23 | $conn->close(); 24 | } 25 | else{ 26 | die("Nope"); 27 | } 28 | 29 | ?> -------------------------------------------------------------------------------- /Student/Gujarati/saveTime.php: -------------------------------------------------------------------------------- 1 | query($query)){ 17 | 18 | } 19 | else{ 20 | die("Something went wrong"); 21 | } 22 | 23 | $conn->close(); 24 | } 25 | else{ 26 | die("Nope"); 27 | } 28 | 29 | ?> -------------------------------------------------------------------------------- /Ads/Min/Action/removeAdmin.php: -------------------------------------------------------------------------------- 1 | query($query)){ 20 | 21 | } 22 | else{ 23 | echo "Something went wrong"; 24 | } 25 | } 26 | else{ 27 | header('Location:https://keltaking.co/Exams/Ads/min/logout'); 28 | } 29 | ?> -------------------------------------------------------------------------------- /Student/English/next.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /yo.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | $apiKey, "numbers" => $numbers, "sender" => $sender, "message" => $message); 15 | // Send the POST request with cURL 16 | $ch = curl_init("https://api.textlocal.in/send/"); 17 | curl_setopt($ch, CURLOPT_POST, true); 18 | curl_setopt($ch, CURLOPT_POSTFIELDS, $data); 19 | curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); 20 | $response = curl_exec($ch); 21 | curl_close($ch); 22 | // Process your response here 23 | echo $response; 24 | ?> 25 | -------------------------------------------------------------------------------- /Student/Gujarati/next.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Student/Check/endExam.php: -------------------------------------------------------------------------------- 1 | query($query)){ 16 | unset($_SESSION['exam_subject']); 17 | unset($_SESSION['exam_start']); 18 | unset($_SESSION['student_lang']); 19 | } 20 | else{ 21 | echo "Something went wrong"; 22 | } 23 | 24 | $conn->close(); 25 | } 26 | else{ 27 | die("Something went wrong"); 28 | } 29 | 30 | ?> -------------------------------------------------------------------------------- /Student/English/updateSub.php: -------------------------------------------------------------------------------- 1 | query($query)){ 19 | 20 | $rslt = $d->fetch_assoc(); 21 | echo $rslt['COUNT(q_id)']; 22 | 23 | } 24 | else{ 25 | echo "Something went wrong"; 26 | } 27 | 28 | $conn->close(); 29 | 30 | } 31 | else{ 32 | die("Nothing changed"); 33 | } 34 | 35 | ?> -------------------------------------------------------------------------------- /Student/Gujarati/updateSub.php: -------------------------------------------------------------------------------- 1 | query($query)){ 19 | 20 | $rslt = $d->fetch_assoc(); 21 | echo $rslt['COUNT(q_id)']; 22 | 23 | } 24 | else{ 25 | echo "Something went wrong"; 26 | } 27 | 28 | $conn->close(); 29 | 30 | } 31 | else{ 32 | die("Nothing changed"); 33 | } 34 | 35 | ?> -------------------------------------------------------------------------------- /Check/login.php: -------------------------------------------------------------------------------- 1 | query($query)){ 14 | 15 | if($data->num_rows > 0){ 16 | 17 | while($result = $data->fetch_assoc()){ 18 | $dbpass = $result['s_pass']; 19 | 20 | if(password_verify($pass, $dbpass)){ 21 | $_SESSION['login'] = "yes"; 22 | } 23 | else{ 24 | echo "incorrect password"; 25 | } 26 | } 27 | } 28 | else{ 29 | echo "incorrect Roll No or Password"; 30 | } 31 | 32 | } 33 | else{ 34 | echo "something went wrong"; 35 | } 36 | 37 | $conn->close(); 38 | 39 | } 40 | else{ 41 | die("Something went wrong"); 42 | } 43 | 44 | ?> -------------------------------------------------------------------------------- /join.php: -------------------------------------------------------------------------------- 1 | query($q)){ 16 | 17 | $rslt = $d->fetch_assoc(); 18 | 19 | if($rslt['verified'] == '1'){ 20 | header("Location:Student/startTest"); 21 | } 22 | else{ 23 | ?> 24 | 25 | 26 | 27 | 38 | close(); 41 | } 42 | else{ 43 | header("Location:logout"); 44 | } 45 | 46 | ?> -------------------------------------------------------------------------------- /Student/exam.php: -------------------------------------------------------------------------------- 1 | close(); 37 | } 38 | else{ 39 | header("Location:../logout"); 40 | } 41 | ?> -------------------------------------------------------------------------------- /JS/donate.js: -------------------------------------------------------------------------------- 1 | function onClick(element) { 2 | document.getElementById("img01").src = element.src; 3 | document.getElementById("modal01").style.display = "block"; 4 | var captionText = document.getElementById("caption"); 5 | captionText.innerHTML = element.alt; 6 | } 7 | 8 | // Change style of navbar on scroll 9 | window.onscroll = function() {myFunction()}; 10 | function myFunction() { 11 | var navbar = document.getElementById("myNavbar"); 12 | if (document.body.scrollTop > 100 || document.documentElement.scrollTop > 100) { 13 | navbar.className = "w3-bar" + " w3-card" + " w3-animate-top" + " w3-white"; 14 | } else { 15 | navbar.className = navbar.className.replace(" w3-card w3-animate-top w3-white", ""); 16 | } 17 | } 18 | 19 | // Used to toggle the menu on small screens when clicking on the menu button 20 | function toggleFunction() { 21 | var x = document.getElementById("navDemo"); 22 | if (x.className.indexOf("w3-show") == -1) { 23 | x.className += " w3-show"; 24 | } else { 25 | x.className = x.className.replace(" w3-show", ""); 26 | } 27 | } -------------------------------------------------------------------------------- /JS/result.js: -------------------------------------------------------------------------------- 1 | function onClick(element) { 2 | document.getElementById("img01").src = element.src; 3 | document.getElementById("modal01").style.display = "block"; 4 | var captionText = document.getElementById("caption"); 5 | captionText.innerHTML = element.alt; 6 | } 7 | 8 | // Change style of navbar on scroll 9 | window.onscroll = function() {myFunction()}; 10 | function myFunction() { 11 | var navbar = document.getElementById("myNavbar"); 12 | if (document.body.scrollTop > 100 || document.documentElement.scrollTop > 100) { 13 | navbar.className = "w3-bar" + " w3-card" + " w3-animate-top" + " w3-white"; 14 | } else { 15 | navbar.className = navbar.className.replace(" w3-card w3-animate-top w3-white", ""); 16 | } 17 | } 18 | 19 | // Used to toggle the menu on small screens when clicking on the menu button 20 | function toggleFunction() { 21 | var x = document.getElementById("navDemo"); 22 | if (x.className.indexOf("w3-show") == -1) { 23 | x.className += " w3-show"; 24 | } else { 25 | x.className = x.className.replace(" w3-show", ""); 26 | } 27 | } -------------------------------------------------------------------------------- /Ads/Min/Action/addAdmin.php: -------------------------------------------------------------------------------- 1 | 12 21 | ]; 22 | 23 | $admin_pass = password_hash($admin_pass, PASSWORD_BCRYPT, $opt); 24 | $query = "INSERT INTO `admins`(a_name, a_number, a_pass, a_type) VALUES ('$admin_name', $admin_id, '$admin_pass', '$admin_type')"; 25 | if($conn->query($query)){ 26 | 27 | } 28 | else{ 29 | echo "Already registered"; 30 | } 31 | } 32 | else{ 33 | header('Location:https://keltaking.co/Exams/Ads/min/logout'); 34 | } 35 | ?> -------------------------------------------------------------------------------- /Student/English/updatePallete.php: -------------------------------------------------------------------------------- 1 | query($q)) 17 | { 18 | while($rr = $dd->fetch_assoc()){ 19 | ?> 20 |
21 | 24 |
25 | close(); 33 | 34 | } 35 | else{ 36 | die("Nothing changed"); 37 | } 38 | 39 | ?> -------------------------------------------------------------------------------- /Student/Gujarati/updatePallete.php: -------------------------------------------------------------------------------- 1 | query($q)) 17 | { 18 | while($rr = $dd->fetch_assoc()){ 19 | ?> 20 |
21 | 24 |
25 | close(); 33 | 34 | } 35 | else{ 36 | die("Nothing changed"); 37 | } 38 | 39 | ?> -------------------------------------------------------------------------------- /registerStudent.php: -------------------------------------------------------------------------------- 1 | query($query)){ 20 | 21 | if($data->num_rows <= 0){ 22 | echo "Incorrect email"; 23 | } 24 | else if($data->num_rows == 1){ 25 | 26 | $result = $data->fetch_assoc(); 27 | 28 | $id = $result['s_id']; 29 | $name = $result['s_name']; 30 | $url = base64_encode($id."&".$name); 31 | 32 | $_SESSION['login_student'] = $url; 33 | header("Location:join?name=".$url); 34 | 35 | } 36 | else{ 37 | echo "Incorrect details"; 38 | } 39 | 40 | } 41 | else{ 42 | echo "Something went wrong"; 43 | 44 | } 45 | 46 | $conn->close(); 47 | } 48 | else{ 49 | header("Location:logout"); 50 | } 51 | 52 | ?> -------------------------------------------------------------------------------- /loginStudent.php: -------------------------------------------------------------------------------- 1 | query($query)){ 23 | 24 | if($data->num_rows <= 0){ 25 | echo "Incorrect Roll No"; 26 | } 27 | else if($data->num_rows == 1){ 28 | 29 | $result = $data->fetch_assoc(); 30 | 31 | $id = $result['s_id']; 32 | $name = $result['s_name']; 33 | $url = base64_encode($id."&".$name); 34 | 35 | $_SESSION['login_student'] = $url; 36 | header("Location:join?name=".$url); 37 | 38 | } 39 | else{ 40 | echo "Incorrect details"; 41 | } 42 | 43 | } 44 | else{ 45 | echo "Something went wrong"; 46 | 47 | } 48 | 49 | $conn->close(); 50 | } 51 | else{ 52 | header("Location:logout"); 53 | } 54 | 55 | ?> -------------------------------------------------------------------------------- /Student/JS/exambegin.js: -------------------------------------------------------------------------------- 1 | let startexam = (id) => { 2 | 3 | let lang = document.getElementById('lang').lang.value; 4 | let dist = document.getElementById('dist').value; 5 | let error = document.getElementById('error'); 6 | 7 | if(lang == "" || dist == ""){ 8 | error.innerHTML = "Please enter distrtict and preferred language"; 9 | //alert("Please enter distrtict and preferred language"); 10 | return false; 11 | } 12 | 13 | if(!confirm("If you click confirm then test will start. Are you sure you want to start test again?")){ 14 | return false; 15 | } 16 | 17 | 18 | let str = "id="+id+"&lang="+lang+"&dist="+dist; 19 | let xhttp = new XMLHttpRequest(); 20 | let loader = document.getElementById('loader'); 21 | xhttp.onreadystatechange = function() { 22 | loader.style.display = "block"; 23 | if(this.readyState == 4 && this.status == 200){ 24 | error.innerHTML = this.responseText; 25 | loader.style.display = "none"; 26 | 27 | if(this.responseText.length == 0){ 28 | 29 | var myWindow = window.open("exam", "myWindow", "width=1500,height=850"); 30 | 31 | } 32 | } 33 | } 34 | xhttp.open("POST", "Check/startexam", true); 35 | xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); 36 | xhttp.send(str); 37 | 38 | } -------------------------------------------------------------------------------- /verify.php: -------------------------------------------------------------------------------- 1 | query($query)){ 11 | 12 | if($data->num_rows <= 0){ 13 | echo "Not verified. Please signup to verify"; 14 | } 15 | else if($data->num_rows == 1){ 16 | 17 | $result = $data->fetch_assoc(); 18 | $u_name = $result['s_name']; 19 | $qry = "UPDATE students SET verified = '1' WHERE vkey = '$vkey'"; 20 | 21 | if($conn->query($qry)){ 22 | 23 | echo "Your email address has been verified. You can give test through this exam link"; 24 | } 25 | else{ 26 | echo "Not verified. Please try again later"; 27 | } 28 | 29 | } 30 | else{ 31 | echo "This email is already varified"; 32 | } 33 | 34 | } 35 | else{ 36 | echo "Not verified. Please contact Exam organizers"; 37 | } 38 | 39 | $conn->close(); 40 | 41 | } 42 | else{ 43 | header("Location:logout"); 44 | } 45 | 46 | ?> -------------------------------------------------------------------------------- /Ads/Min/loginCheck.php: -------------------------------------------------------------------------------- 1 | query($query1)){ 25 | 26 | if($data->num_rows <= 0){ 27 | echo "incorrect details"; 28 | } 29 | else{ 30 | while($result = $data->fetch_assoc()){ 31 | 32 | $dbpass = $result['a_pass']; 33 | if(password_verify($Pass, $dbpass)){ 34 | $_SESSION['admin_login_user'] = $result['a_id']."&".$result['a_type']; 35 | $_SESSION['admin_type'] = $result['a_type']; 36 | } 37 | else{ 38 | echo "incorrect details"; 39 | } 40 | } 41 | } 42 | } 43 | else{ 44 | echo "something went wrong"; 45 | } 46 | $conn->close(); 47 | } 48 | else{ 49 | echo "Something went wrong"; 50 | } 51 | 52 | } 53 | else{ 54 | header("Location:logout.php"); 55 | } 56 | ?> 57 | -------------------------------------------------------------------------------- /Ads/Min/Change/changepassword.php: -------------------------------------------------------------------------------- 1 | query($query)){ 22 | 23 | if($data->num_rows <= 0){ 24 | echo "userId is incorrect"; 25 | } 26 | else{ 27 | 28 | while($result = $data->fetch_assoc()){ 29 | 30 | $dbpass = $result['a_pass']; 31 | 32 | if(password_verify($old_pass,$dbpass)){ 33 | 34 | $opt = [ 35 | 'cost' => 12 36 | ]; 37 | $pass = password_hash($new_pass, PASSWORD_BCRYPT, $opt); 38 | $query1 = "UPDATE admins SET a_pass = '$pass' WHERE a_number = $userId"; 39 | if($conn->query($query1)){ 40 | 41 | } 42 | else{ 43 | echo "something went wrong1"; 44 | } 45 | 46 | } 47 | else{ 48 | echo "password didn't match"; 49 | } 50 | 51 | } 52 | 53 | } 54 | 55 | } 56 | else{ 57 | echo "something went wrong2"; 58 | } 59 | 60 | } 61 | else{ 62 | header('Location:https://keltaking.co/Exams/Ads/Min/logout'); 63 | } 64 | ?> -------------------------------------------------------------------------------- /Student/English/mark.php: -------------------------------------------------------------------------------- 1 | query($query)){ 20 | 21 | $q = "SELECT q_id, q_number,attempt, mark FROM que_stu_asn WHERE s_id = $id AND subject = '".$_SESSION['exam_subject']."'"; 22 | if($dd = $conn->query($q)) 23 | { 24 | while($rr = $dd->fetch_assoc()){ 25 | ?> 26 |
27 | 30 |
31 | close(); 44 | 45 | } 46 | else{ 47 | die("Nothing changed"); 48 | } 49 | 50 | ?> -------------------------------------------------------------------------------- /Student/Gujarati/mark.php: -------------------------------------------------------------------------------- 1 | query($query)){ 20 | 21 | $q = "SELECT q_id, q_number,attempt, mark FROM que_stu_asn WHERE s_id = $id AND subject = '".$_SESSION['exam_subject']."'"; 22 | if($dd = $conn->query($q)) 23 | { 24 | while($rr = $dd->fetch_assoc()){ 25 | ?> 26 |
27 | 30 |
31 | close(); 44 | 45 | } 46 | else{ 47 | die("Nothing changed"); 48 | } 49 | 50 | ?> -------------------------------------------------------------------------------- /Student/English/clear.php: -------------------------------------------------------------------------------- 1 | query($query)){ 20 | 21 | $q = "SELECT q_id, q_number,attempt, mark FROM que_stu_asn WHERE s_id = $id AND subject = '".$_SESSION['exam_subject']."'"; 22 | if($dd = $conn->query($q)) 23 | { 24 | while($rr = $dd->fetch_assoc()){ 25 | ?> 26 |
27 | 30 |
31 | close(); 45 | 46 | } 47 | else{ 48 | die("Nothing changed"); 49 | } 50 | 51 | ?> -------------------------------------------------------------------------------- /Student/Gujarati/clear.php: -------------------------------------------------------------------------------- 1 | query($query)){ 20 | 21 | $q = "SELECT q_id, q_number,attempt, mark FROM que_stu_asn WHERE s_id = $id AND subject = '".$_SESSION['exam_subject']."'"; 22 | if($dd = $conn->query($q)) 23 | { 24 | while($rr = $dd->fetch_assoc()){ 25 | ?> 26 |
27 | 30 |
31 | close(); 45 | 46 | } 47 | else{ 48 | die("Nothing changed"); 49 | } 50 | 51 | ?> -------------------------------------------------------------------------------- /Student/thanks.php: -------------------------------------------------------------------------------- 1 | 11 | 12 | 13 | 14 | 15 | Test finished | NEET MOCK TEST 16 | 17 | 18 | 19 | 20 | 21 | 22 | 24 | 25 | 26 | 27 | 32 |
33 |
NEET Mock test
34 | 35 | 36 |
37 | LogOut 38 |
39 |
40 |
41 |
42 | Test's results will be declare on 9th of September. Click the logout button above to logout. 43 |
44 | 45 | 46 | -------------------------------------------------------------------------------- /Student/English/save.php: -------------------------------------------------------------------------------- 1 | query($query)){ 21 | 22 | $q = "SELECT q_id, q_number,attempt, mark FROM que_stu_asn WHERE s_id = $id AND subject = '".$_SESSION['exam_subject']."'"; 23 | if($dd = $conn->query($q)) 24 | { 25 | while($rr = $dd->fetch_assoc()){ 26 | ?> 27 |
28 | 31 |
32 | close(); 46 | 47 | } 48 | else{ 49 | die("Nothing changed"); 50 | } 51 | 52 | ?> -------------------------------------------------------------------------------- /Student/Gujarati/save.php: -------------------------------------------------------------------------------- 1 | query($query)){ 21 | 22 | $q = "SELECT q_id, q_number,attempt, mark FROM que_stu_asn WHERE s_id = $id AND subject = '".$_SESSION['exam_subject']."'"; 23 | if($dd = $conn->query($q)) 24 | { 25 | while($rr = $dd->fetch_assoc()){ 26 | ?> 27 |
28 | 31 |
32 | close(); 45 | 46 | } 47 | else{ 48 | die("Nothing changed"); 49 | } 50 | 51 | ?> -------------------------------------------------------------------------------- /Check/contact.php: -------------------------------------------------------------------------------- 1 | query($query)){ 17 | 18 | $r = "
We have received your query.
"; 19 | 20 | $to = "kshitijpanchal131@gmail.com"; 21 | $subject = 'NEET demo test contact'; 22 | $from = 'assistant1@keltaking.co'; 23 | 24 | // To send HTML mail, the Content-type header must be set 25 | $headers = 'MIME-Version: 1.0' . "\r\n"; 26 | $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; 27 | 28 | // Create email headers 29 | $headers .= 'From: '.$from."\r\n".'Reply-To: '.$from."\r\n".'X-Mailer: PHP/' . phpversion(); 30 | 31 | // Compose a simple HTML email message 32 | $message = '

'.$name.' has problem is NEET site



The contact details are:

Name: '.$name.'
Email: '.$email.'
problem: '.$problem.'
Message: '.$msg.'

'; 33 | 34 | if(mail($to, $subject, $message, $headers)){ 35 | echo $r; 36 | } 37 | else{ 38 | echo "
Your message has been recorded
"; 39 | } 40 | 41 | } 42 | else{ 43 | echo "something went wrong"; 44 | } 45 | 46 | $conn->close(); 47 | 48 | } 49 | else{ 50 | die("Something went wrong"); 51 | } 52 | 53 | ?> -------------------------------------------------------------------------------- /Ads/Min/contacts.php: -------------------------------------------------------------------------------- 1 | 18 | 19 | 20 |
21 |
22 |
Home
23 |
logout
24 |
25 |
26 | 27 | 28 | 29 | 30 | query($query)){ 35 | 36 | while($rslt = $data->fetch_assoc()){ 37 | ?> 38 | 39 | 44 | 49 | 50 | 58 |
NameemailCatagoryproblemReply
40 | 43 | 45 | 48 |
59 |
60 |
61 | 64 | 65 | 66 | close(); 68 | } 69 | else{ 70 | header('Location:https://keltaking.co/Exams/Ads/Min/logout'); 71 | } 72 | ?> -------------------------------------------------------------------------------- /Ads/Min/Action/sendreply.php: -------------------------------------------------------------------------------- 1 | query($query)){ 23 | 24 | $rslt = $data->fetch_assoc(); 25 | $c_msg = $rslt['c_msg']; 26 | 27 | } 28 | else{ 29 | die("Something went wrong"); 30 | } 31 | 32 | $to = $email; 33 | $subject = 'Reply from NEET Mock test'; 34 | $from = 'NEET_Mock_test@keltaking.co'; 35 | 36 | // To send HTML mail, the Content-type header must be set 37 | $headers = 'MIME-Version: 1.0' . "\r\n"; 38 | $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; 39 | 40 | // Create email headers 41 | $headers .= 'From: '.$from."\r\n".'Reply-To: '.$from."\r\n".'X-Mailer: PHP/' . phpversion(); 42 | 43 | // Compose a simple HTML email message 44 | $message = '

We replied to your problem


You contacted us for this reason:
'.$c_msg.'

Here is the response of it:
'.$msg.'

This is a software generated email. Please do not reply.'; 45 | 46 | if(mail($to, $subject, $message, $headers)){ 47 | echo "
Reply sent
"; 48 | } 49 | else{ 50 | echo "Date entered but mail not sent"; 51 | } 52 | 53 | $query = "UPDATE contacts SET solve = '1' WHERE c_id = $c_id"; 54 | if($conn->query($query)){ 55 | 56 | } 57 | else{ 58 | echo "Already registered"; 59 | } 60 | } 61 | else{ 62 | header('Location:https://keltaking.co/Exams/Ads/min/logout'); 63 | } 64 | ?> -------------------------------------------------------------------------------- /Ads/Min/Subs/addquestion.php: -------------------------------------------------------------------------------- 1 | query($query)){ 36 | 37 | } 38 | else{ 39 | echo "Something went wrong"; 40 | } 41 | 42 | $conn->close(); 43 | 44 | } 45 | elseif(isset($_SESSION['admin_login_user'])){ 46 | echo "something went wrong"; 47 | } 48 | else{ 49 | header('Location:https://keltaking.co/Exams/Ads/Min/logout'); 50 | } 51 | ?> -------------------------------------------------------------------------------- /Ads/Min/questions.php: -------------------------------------------------------------------------------- 1 | 18 | 19 | 20 |
21 |
22 |
Home
23 |
logout
24 |
25 |

Add questions

26 |
27 | Physics
28 | query($qry)){ 31 | $rslt = $data->fetch_assoc(); 32 | echo $rslt['COUNT(q_id)']; 33 | } 34 | else{ 35 | echo "error"; 36 | } 37 | ?> 38 |
39 | Chemistry
40 | query($qry)){ 43 | $rslt = $data->fetch_assoc(); 44 | echo $rslt['COUNT(q_id)']; 45 | } 46 | else{ 47 | echo "error"; 48 | } 49 | ?> 50 |
51 | Biology
52 | query($qry)){ 55 | $rslt = $data->fetch_assoc(); 56 | echo $rslt['COUNT(q_id)']; 57 | } 58 | else{ 59 | echo "error"; 60 | } 61 | ?> 62 |
63 |
64 |
65 | 66 | 67 | 68 | -------------------------------------------------------------------------------- /JS/nonvarified.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 | } 14 | 15 | emailCheck(email, cont_msg) { 16 | 17 | if(email == ""){ 18 | throw "Name is empty"; 19 | } 20 | 21 | if(cont_msg == ""){ 22 | throw "data is empty"; 23 | } 24 | 25 | let s1 = email.split("@"); 26 | let s3 = email.split(" "); 27 | if(s3.length > 1) 28 | { 29 | alert("Please add a proper mail-Id"); 30 | cont_msg.innerHTML = "Please add a proper mail-Id"; 31 | return false; 32 | } 33 | if(s1.length == 2) 34 | { 35 | var s2 = s1[1].split("."); 36 | if(s2.length == 2 || s2.length == 3) 37 | { 38 | if(s1[0].length < 6 || s2[0].length < 4 || s2[1].length > 4 || s2[1].length < 2) 39 | { 40 | alert('Please add a proper mail-Id'); 41 | cont_msg.innerHTML = "Please add a proper mail-Id"; 42 | return false; 43 | } 44 | 45 | return true; 46 | 47 | } 48 | else 49 | { 50 | alert("Please add a proper mail-Id"); 51 | cont_msg.innerHTML = "Please add a proper mail-Id"; 52 | return false; 53 | } 54 | } 55 | else 56 | { 57 | alert("Please add a proper mail-Id"); 58 | cont_msg.innerHTML = "Please add a proper mail-Id"; 59 | return false; 60 | } 61 | 62 | } 63 | } 64 | 65 | let update = (id) => { 66 | 67 | let email = document.getElementById('email').value; 68 | let check_data = new Check(); 69 | let error = document.getElementById('error'); 70 | 71 | if(email == ""){ 72 | alert("Please enter your email"); 73 | error.innerHTML = "Please enter your email"; 74 | return false; 75 | } 76 | 77 | if(check_data.check(email)){ 78 | return false; 79 | } 80 | 81 | if(!check_data.emailCheck(email, error)){ 82 | return false; 83 | } 84 | 85 | let str = "Email="+email+"&Id="+id; 86 | let xhttp = new XMLHttpRequest(); 87 | let loader = document.getElementById('loader'); 88 | xhttp.onreadystatechange = function() { 89 | loader.style.display = "block"; 90 | if(this.readyState == 4 && this.status == 200){ 91 | error.innerHTML = this.responseText; 92 | loader.style.display = "none"; 93 | if(this.responseText == ""){ 94 | 95 | alert("Email updated and verification mail sent"); 96 | document.getElementById('email').value = ""; 97 | error.innerHTML = ""; 98 | 99 | } 100 | } 101 | } 102 | xhttp.open("POST", "Parts/updateEmail", true); 103 | xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); 104 | xhttp.send(str); 105 | 106 | } -------------------------------------------------------------------------------- /Ads/Min/sendemail.php: -------------------------------------------------------------------------------- 1 | query($qry)){ 18 | 19 | while($rslt = $data->fetch_assoc()){ 20 | 21 | $to = $rslt['s_email']; 22 | $subject = 'Test is live'; 23 | $from = 'NEET_Mock_test@keltaking.co'; 24 | $name = $rslt['s_name']; 25 | $vkey = $rslt['vkey']; 26 | 27 | $headers = 'MIME-Version: 1.0' . "\r\n"; 28 | $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; 29 | $headers .= 'From: '.$from."\r\n".'Reply-To: '.$from."\r\n".'X-Mailer: PHP/' . phpversion(); 30 | 31 | $d = $id%5; 32 | 33 | switch($d){ 34 | 35 | case 0: 36 | $str = "Attempt the test in between 7 to 12 PM on 06/09/2020 evening is preferable for you."; 37 | break; 38 | 39 | case 1: 40 | $str = "Attempt the test in between 7 to 12 PM on 07/09/2020 evening is preferable for you."; 41 | break; 42 | 43 | case 2: 44 | $str = "Attempt the test in between 7 to 11 PM on 08/09/2020 evening is preferable for you. But remember that test will not accept responses after 11:59 PM on 08/09/2020."; 45 | break; 46 | 47 | case 3: 48 | $str = "Attempt the test in between 7 to 11 AM on 07/09/2020 morning is preferable for you."; 49 | break; 50 | 51 | case 4: 52 | $str = "Attempt the test in between 7 to 11 AM on 08/09/2020 morning is preferable for you."; 53 | break; 54 | 55 | } 56 | 57 | $message = '

Test is live now.

Dear '.$name.',
'.$str.'

If you have not verified your email then visit this
Non varified students are not allowed to attend the test.
Test will stop accepting responses of exams after the 11:59 PM of 08/09/2020. Results will be declrare on 9th September. You can give the test on mobile, tablet or laptop but We suggest you to attend test on Laptop for better experience.

In case of any query Contact us.

This is a software generated email. Do not reply to this email.

'; 58 | 59 | if(mail($to, $subject, $message, $headers)){ 60 | echo "

mail sent to ".$name; 61 | } 62 | else{ 63 | echo "

not sent to ".$name; 64 | } 65 | } 66 | } 67 | $conn->close(); 68 | 69 | } 70 | ?> -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |

NEET-Exam

2 |

Hey, nice to see you :blush:. This repository is just for online demo NEET test. It is a device friendly test website.
3 | If you like it then please star it :star:
4 | Student can register :registered: for the test by filling up the registration form :page_facing_up: of the site and give the tests when the test is live. Students will receive the notifications of registration, email verification, test is live notification and results in their email. 5 | 6 | This site reached 1432 registered students for NEET test and on 8th of Sept 2020, site reached 1657 unique users count. My friends Anubhav, Ram and many more worked with me in this project. 7 |
8 | Let me give you the preview of demo test.

9 |

10 | What students can do in test. 11 |

18 |

19 | On going test's web page looks like this. 20 |
21 |
22 | 23 |
24 |
25 |

26 | 27 |

28 | A student can attend the test in 1 among 2 languages (English, Gujarati). 29 | This repo does not contain any question of the test. In this test question and options were images 30 |

31 |

32 | Below is the preview of the site's web pages. 33 |
34 |

1. Registration page


35 | Students has to fill all the details correctly and they will recieve an email from the site which includes their login details and email verification link.
36 |
37 | 38 |
39 | 40 |

2. Email preview


41 | Email will look like the below.
42 |
43 | 44 |
45 | 46 |

3. Login page


47 | Now students can login using their roll number and password received in email. Below is how the login page looks.
48 |
49 | 50 |
51 | 52 |

4. Start exam page


53 | If test is live and user has verified their email then only user will be able to see this page. Else site will ask them to verify and if test is not live then gives the details of when the test will be live.
54 |
55 | 56 |
57 | 58 |

5. Live exam page


59 | As you can see in above web page, user can attend test in either Gujarati language language or English. Below is how user gives test in Gujarati
60 |
61 | 62 |
63 |

64 |

65 | I hope you like it. Star it :star: 66 |

67 | -------------------------------------------------------------------------------- /results.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Results | NEET demo test 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 27 | 28 | 29 | 30 |
31 |
32 |
33 | 34 | 35 | 36 | Donate 37 | Register 38 | Contact 39 | Log in 40 |
41 | 42 | 49 |
50 |
51 | 52 |
53 | We will send your results in an email. You will receive the email if you have given the test. 54 |
55 | 56 | 57 | 58 | -------------------------------------------------------------------------------- /donate.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Donate | NEET demo test 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 28 | 29 | 30 | 31 |
32 |
33 |
34 | Log in 35 | 36 | 37 | 38 | Register 39 | Results 40 | Contact 41 | Log in 42 |
43 | 44 | 51 |
52 |
53 | 54 |
55 | 56 |
57 | 58 | 59 | 60 | -------------------------------------------------------------------------------- /Ads/Min/trial.php: -------------------------------------------------------------------------------- 1 | "); 11 | $q_op1 = addslashes(""); 12 | $q_op2 = addslashes(""); 13 | $q_op3 = addslashes(""); 14 | $q_op4 = addslashes(""); 15 | $q_answer = ""; 16 | 17 | $q_data_guj = addslashes("
"); 18 | $q_op1_guj = addslashes(""); 19 | $q_op2_guj = addslashes(""); 20 | $q_op3_guj = addslashes(""); 21 | $q_op4_guj = addslashes(""); 22 | $q_answer_guj = ""; 23 | 24 | $q_sub = "Bio"; 25 | 26 | switch($answers[$j]){ 27 | 28 | case 1: 29 | $q_answer = $q_op1; 30 | $q_answer_guj = $q_op1_guj; 31 | echo "

$j answer is op1"; 32 | break; 33 | 34 | case 2: 35 | $q_answer = $q_op2; 36 | $q_answer_guj = $q_op1_guj; 37 | echo "

$j answer is op2"; 38 | break; 39 | 40 | case 3: 41 | $q_answer = $q_op3; 42 | $q_answer_guj = $q_op1_guj; 43 | echo "

$j answer is op3"; 44 | break; 45 | 46 | case 4: 47 | $q_answer = $q_op4; 48 | $q_answer_guj = $q_op1_guj; 49 | echo "

$j answer is op4"; 50 | break; 51 | 52 | default: 53 | $q_answer = $q_op1; 54 | $q_answer_guj = $q_op1_guj; 55 | echo "

$j answer is op1"; 56 | break; 57 | 58 | } 59 | 60 | $j++; 61 | 62 | $qry = "INSERT INTO questions (`q_number`, `q_data`, `q_op1`, `q_op2`, `q_op3`, `q_op4`, q_answer, q_data_guj, q_op1_guj, q_op2_guj, q_op3_guj, q_op4_guj, q_answer_guj, q_sub) VALUES($i, '$q_data', '$q_op1', '$q_op2', '$q_op3','$q_op4', '$q_answer','$q_data_guj', '$q_op1_guj', '$q_op2_guj', '$q_op3_guj','$q_op4_guj', '$q_answer_guj', '$q_sub')"; 63 | 64 | if($conn->query($qry)){ 65 | echo "
$i inserted"; 66 | } 67 | else{ 68 | echo "
$i Not inserted"; 69 | } 70 | 71 | } 72 | 73 | $conn->close(); 74 | 75 | ?> -------------------------------------------------------------------------------- /Ads/Min/Commen/header.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | <?php echo TITLE ?> 5 | 6 | 7 | 8 | 9 | 10 | 11 | 36 | 45 | 46 | 47 | 58 | 59 | 60 |
61 | KEltaEdu 62 | 63 |
64 | 65 | -------------------------------------------------------------------------------- /Student/English/eng_jump.php: -------------------------------------------------------------------------------- 1 | query($qry)){ 19 | 20 | $r = $d->fetch_assoc(); 21 | if($r['attempt'] == 0){ 22 | $s_ans = "none"; 23 | } 24 | else{ 25 | $s_ans = $r['s_ans']; 26 | } 27 | 28 | } 29 | else{ 30 | $s_ans = "none"; 31 | } 32 | 33 | $query = "SELECT q_number, q_data, q_op1, q_op2, q_op3, q_op4 FROM questions WHERE q_number = $number AND q_sub = '".$_SESSION['exam_subject']."'"; 34 | 35 | 36 | if($data = $conn->query($query)){ 37 | 38 | $rslt = $data->fetch_assoc(); 39 | $op1 = $rslt['q_op1']; 40 | $op2 = $rslt['q_op2']; 41 | $op3 = $rslt['q_op3']; 42 | $op4 = $rslt['q_op4']; 43 | 44 | if($s_ans == "none"){ 45 | $op1 = " ".$op1; 46 | $op2 = " ".$op2; 47 | $op3 = " ".$op3; 48 | $op4 = " ".$op4; 49 | } 50 | else{ 51 | if($s_ans == $op1){ 52 | $op1 = " ".$op1; 53 | } 54 | else{ 55 | $op1 = " ".$op1; 56 | } 57 | 58 | if($s_ans == $op2){ 59 | $op2 = " ".$op2; 60 | } 61 | else{ 62 | $op2 = " ".$op2; 63 | } 64 | 65 | if($s_ans == $op3){ 66 | $op3 = " ".$op3; 67 | } 68 | else{ 69 | $op3 = " ".$op3; 70 | } 71 | 72 | if($s_ans == $op4){ 73 | $op4 = " ".$op4; 74 | } 75 | else{ 76 | $op4 = " ".$op4; 77 | } 78 | 79 | } 80 | echo $rslt['q_data']."#".$op1."#".$op2."#".$op3."#".$op4."#"."Question ".$rslt['q_number']."#"; 81 | 82 | } 83 | else{ 84 | die("Something went wrong"); 85 | } 86 | 87 | $conn->close(); 88 | 89 | } 90 | else{ 91 | die("Nothing changed"); 92 | } 93 | 94 | ?> -------------------------------------------------------------------------------- /Student/Gujarati/guj_jump.php: -------------------------------------------------------------------------------- 1 | query($qry)){ 19 | 20 | $r = $d->fetch_assoc(); 21 | if($r['attempt'] == 0){ 22 | $s_ans = "none"; 23 | } 24 | else{ 25 | $s_ans = $r['s_ans']; 26 | } 27 | 28 | } 29 | else{ 30 | $s_ans = "none"; 31 | } 32 | 33 | $query = "SELECT q_number, q_data_guj, q_op1_guj, q_op2_guj, q_op3_guj, q_op4_guj FROM questions WHERE q_number = $number AND q_sub = '".$_SESSION['exam_subject']."'"; 34 | 35 | 36 | if($data = $conn->query($query)){ 37 | 38 | $rslt = $data->fetch_assoc(); 39 | $op1 = $rslt['q_op1_guj']; 40 | $op2 = $rslt['q_op2_guj']; 41 | $op3 = $rslt['q_op3_guj']; 42 | $op4 = $rslt['q_op4_guj']; 43 | 44 | if($s_ans == "none"){ 45 | $op1 = " ".$op1; 46 | $op2 = " ".$op2; 47 | $op3 = " ".$op3; 48 | $op4 = " ".$op4; 49 | } 50 | else{ 51 | if($s_ans == $op1){ 52 | $op1 = " ".$op1; 53 | } 54 | else{ 55 | $op1 = " ".$op1; 56 | } 57 | 58 | if($s_ans == $op2){ 59 | $op2 = " ".$op2; 60 | } 61 | else{ 62 | $op2 = " ".$op2; 63 | } 64 | 65 | if($s_ans == $op3){ 66 | $op3 = " ".$op3; 67 | } 68 | else{ 69 | $op3 = " ".$op3; 70 | } 71 | 72 | if($s_ans == $op4){ 73 | $op4 = " ".$op4; 74 | } 75 | else{ 76 | $op4 = " ".$op4; 77 | } 78 | 79 | } 80 | echo $rslt['q_data_guj']."#".$op1."#".$op2."#".$op3."#".$op4."#"."Question ".$rslt['q_number']."#"; 81 | 82 | } 83 | else{ 84 | die("Something went wrong"); 85 | } 86 | 87 | $conn->close(); 88 | 89 | } 90 | else{ 91 | die("Nothing changed"); 92 | } 93 | 94 | ?> -------------------------------------------------------------------------------- /CSS/kel.css: -------------------------------------------------------------------------------- 1 | .kel-white{ 2 | color:black; 3 | background-color:white; 4 | } 5 | 6 | .bgimg{ 7 | background-image: url('https://keltaking.co/Exams/Images/bgpencil.png'); 8 | min-height: 100%; 9 | background-repeat:no-repeat; 10 | background-attachment: fixed; 11 | } 12 | 13 | .w3-theme-l5 {color:#000 !important; background-color:#f2f9fe !important} 14 | .w3-theme-l4 {color:#000 !important; background-color:#d2eafd !important} 15 | .w3-theme-l3 {color:#000 !important; background-color:#a6d4fa !important} 16 | .w3-theme-l2 {color:#000 !important; background-color:#79bff8 !important} 17 | .w3-theme-l1 {color:#fff !important; background-color:#4daaf6 !important} 18 | .w3-theme-d1 {color:#fff !important; background-color:#0c87eb !important} 19 | .w3-theme-d2 {color:#fff !important; background-color:#0b78d1 !important} 20 | .w3-theme-d3 {color:#fff !important; background-color:#0a69b7 !important} 21 | .w3-theme-d4 {color:#fff !important; background-color:#085a9d !important} 22 | .w3-theme-d5 {color:#fff !important; background-color:#074b83 !important} 23 | 24 | .w3-theme-light {color:#000 !important; background-color:#f2f9fe !important} 25 | .w3-theme-dark {color:#fff !important; background-color:#074b83 !important} 26 | .w3-theme-action {color:#fff !important; background-color:#074b83 !important} 27 | 28 | .w3-theme {color:#fff !important; background-color:#2196f3 !important} 29 | .w3-text-theme {color:#2196f3 !important} 30 | .w3-border-theme {border-color:#2196f3 !important} 31 | 32 | .w3-hover-theme:hover {color:#fff !important; background-color:#2196f3 !important} 33 | .w3-hover-theme-dark:hover {color:#fff !important; background-color:#0b78d1 !important} 34 | .w3-hover-text-theme:hover {color:#2196f3 !important} 35 | .w3-hover-border-theme:hover {border-color:#2196f3 !important} 36 | 37 | html { 38 | scroll-behavior: smooth; 39 | 40 | } 41 | body{ 42 | font-family: 'Literata', serif; 43 | } 44 | #left1 45 | { 46 | transition-duration:0.4s; 47 | transform:scale(1.1,1.1); 48 | } 49 | #right2 50 | { 51 | transition-duration:0.4s; 52 | transform:scale(1.1,1.1); 53 | } 54 | 55 | .kel-button{ 56 | border:2px solid white; 57 | color:white; 58 | transition-duration:0.2s; 59 | } 60 | .kel-button:hover{ 61 | border:2px solid white; 62 | transform:scale(1.08, 1.08); 63 | cursor:pointer; 64 | } 65 | .kel-heading{ 66 | margin-top:50px; 67 | font-weight:800; 68 | font-size:40px; 69 | } 70 | .kel-heading:hover{ 71 | cursor:pointer; 72 | } 73 | .kel-hover{ 74 | transition-duration:0.3s; 75 | transition-timing-function:ease-out; 76 | } 77 | .kel-hover:hover{ 78 | cursor:pointer; 79 | transform:scale(1.1,1.1); 80 | } 81 | .kel-hover-2{ 82 | transition-duration:0.3s; 83 | } 84 | .kel-hover-2:hover{ 85 | cursor:pointer; 86 | } 87 | #Add{ 88 | margin-top:50px; 89 | } 90 | #select{ 91 | margin-right:20px; 92 | } 93 | .kel-percent-circle{ 94 | width:200px; 95 | height:200px; 96 | margin:10px; 97 | margin-right:20px; 98 | margin-left:15px; 99 | border:5px solid; 100 | border-radius:50%; 101 | } 102 | .loader { 103 | border: 5px solid #f3f3f3; 104 | border-radius: 50%; 105 | border-top: 5px solid #3498db; 106 | width: 30px; 107 | height: 30px; 108 | -webkit-animation: spin 2s linear infinite; /* Safari */ 109 | animation: spin 2s linear infinite; 110 | } 111 | 112 | /* Safari */ 113 | @-webkit-keyframes spin { 114 | 0% { -webkit-transform: rotate(0deg); } 115 | 100% { -webkit-transform: rotate(360deg); } 116 | } 117 | 118 | @keyframes spin { 119 | 0% { transform: rotate(0deg); } 120 | 100% { transform: rotate(360deg); } 121 | } -------------------------------------------------------------------------------- /Ads/Min/replymail.php: -------------------------------------------------------------------------------- 1 | 18 |
19 |
Home
20 |
logout
21 |
22 | query($query)){ 26 | 27 | $rslt = $data->fetch_assoc(); 28 | $c_id = $rslt['c_id']; 29 | $s_name = $rslt['c_name']; 30 | $s_email = $rslt['c_email']; 31 | 32 | ?> 33 |
34 |
35 | Reply to 36 |
37 |
38 |
39 |
40 |
41 | Reply To: 42 | 43 |
44 |
45 | Reply Message: 46 | 47 |
48 |
49 | 50 |
51 |
52 |
53 | 98 | 99 | 100 | close(); 106 | } 107 | else{ 108 | header('Location:https://keltaking.co/Exams/Ads/Min/logout'); 109 | } 110 | ?> -------------------------------------------------------------------------------- /Parts/nonverified.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Not verified email | NEET MOCK TEST 5 | 6 | 7 | 8 | 9 | 10 | 11 | 13 | 23 | 24 | 25 | 30 | 31 |
32 |
NEET Mock test
33 | 34 | 35 |
36 | LogOut 37 |
38 |
39 | 40 |
41 | 42 |
43 |
44 | 45 |

46 | × 47 |
48 |
49 | Email not received? 50 |
51 |
52 | Here is your solution. 53 |
    54 |
  • Sometimes email take a while to get dilivered. Wait for 10 to 15 mins after registration.
  • 55 |
  • If you are unable to find mail after that time, then check in your spam mails. If you find it there then report it not spam. Because we are not spamming.
  • 56 |
57 |
58 |
59 | 60 | If still you are unable to find the mail then you can again ask for another verification mail. Fill the below form to get a new 61 | verification mail. 62 |
63 | 64 | 65 |
66 | Email: 67 |
68 |
69 | 70 |
71 |
72 | 73 |
74 |
75 |
76 | 77 |
78 |
79 |
80 | Check your mailbox to find our verification mail... 81 |
82 |
83 |
84 | We have sent an email to your registered email address. That email contains the login details for the examination, exam link and email verification key. 85 |
86 | 87 | In case you haven't recieved the email, click the below function 88 |
89 | 90 |
91 |
92 |
93 |
94 | 95 |
96 |
97 | 98 | 99 | 100 | 101 | -------------------------------------------------------------------------------- /Student/Parts/nonverified.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Not verified email | NEET MOCK TEST 5 | 6 | 7 | 8 | 9 | 10 | 11 | 13 | 23 | 24 | 25 | 30 | 31 |
32 |
NEET Mock test
33 | 34 | 35 |
36 | LogOut 37 |
38 |
39 | 40 |
41 | 42 |
43 |
44 | 45 |

46 | × 47 |
48 |
49 | Email not received? 50 |
51 |
52 | Here is your solution. 53 |
    54 |
  • Sometimes email take a while to get dilivered. Wait for 10 to 15 mins after registration.
  • 55 |
  • If you are unable to find mail after that time, then check in your spam mails. If you find it there then report it not spam. Because we are not spamming.
  • 56 |
57 |
58 |
59 | 60 | If still you are unable to find the mail then you can again ask for another verification mail. Fill the below form to get a new 61 | verification mail. 62 |
63 | 64 | 65 |
66 | Email: 67 |
68 |
69 | 70 |
71 |
72 | 73 |
74 |
75 |
76 | 77 |
78 |
79 |
80 | Check your mailbox to find our verification mail... 81 |
82 |
83 |
84 | We have sent an email to your registered email address. That email contains the login details for the examination, exam link and email verification key. 85 |
86 | 87 | In case you haven't recieved the email, click the below function 88 |
89 | 90 |
91 |
92 |
93 |
94 | 95 |
96 |
97 | 98 | 99 | 100 | 101 | -------------------------------------------------------------------------------- /Ads/Min/edit.php: -------------------------------------------------------------------------------- 1 | 16 |
17 |
18 |
Home
19 |
logout
20 |
21 | 22 |
23 |
24 |
25 |
26 |

Change password

27 |
28 |
29 |
30 |
31 |
32 | 33 |
34 |
35 | 36 |
37 |
38 | 39 |
40 |
41 | 42 |
43 |
44 |
45 |
46 | 47 |
48 | 115 |
116 | 117 | 118 | -------------------------------------------------------------------------------- /Student/Check/startexam.php: -------------------------------------------------------------------------------- 1 | query($query)){ 26 | 27 | $rslt = $data->fetch_assoc(); 28 | 29 | if($rslt['verified'] == 1){ 30 | 31 | $qry1 = "SELECT start_test, end_test FROM students WHERE s_id = $id"; 32 | 33 | if($d = $conn->query($qry1)){ 34 | 35 | $rslt1 = $d->fetch_assoc(); 36 | if($rslt1['start_test'] == 1 && $rslt1['end_test'] == 1){ 37 | die("You have already attempted the test."); 38 | } 39 | else{ 40 | $qry = "UPDATE students SET district = '$dist', language = '$lang', start_test = '1' WHERE s_id = $id"; 41 | if($conn->query($qry)){ 42 | 43 | $qry2 = "SELECT q_id, q_number, q_answer, q_sub FROM questions"; 44 | 45 | if($lang == "Gujarati"){ 46 | $qry2 = "SELECT q_id, q_number, q_answer_guj, q_sub FROM questions"; 47 | } 48 | 49 | if($dt2 = $conn->query($qry2)){ 50 | 51 | while($rlt2 = $dt2->fetch_assoc()){ 52 | 53 | $q_id = $rlt2['q_id']; 54 | $qn = $rlt2['q_number']; 55 | $q_sub = $rlt2['q_sub']; 56 | $ans = ""; 57 | 58 | if($lang == "Gujarati"){ 59 | $ans = $rlt2['q_answer_guj']; 60 | } 61 | else{ 62 | $ans = $rlt2['q_answer']; 63 | } 64 | 65 | $ans = addslashes($ans); 66 | 67 | $qry3 = "INSERT INTO que_stu_asn (s_id, q_id, q_number, cor_ans, subject) VALUES($id, $q_id, $qn, '$ans', '$q_sub')"; 68 | 69 | if($conn->query($qry3)){ 70 | 71 | } 72 | else{ 73 | die("You cannot attend test twice"); 74 | } 75 | 76 | 77 | } 78 | 79 | } 80 | else{ 81 | die("Something went wrong"); 82 | } 83 | 84 | $_SESSION['exam_start'] = $str; 85 | $_SESSION['exam_subject'] = "Phy"; 86 | 87 | } 88 | else{ 89 | die("not updated"); 90 | } 91 | } 92 | 93 | } 94 | else{ 95 | 96 | die("Something went wrong"); 97 | 98 | } 99 | 100 | } 101 | else{ 102 | die("verify your eamil first"); 103 | } 104 | 105 | } 106 | else{ 107 | die("Something went wrong"); 108 | } 109 | 110 | $conn->close(); 111 | } 112 | else{ 113 | header("Location:../../logout"); 114 | } 115 | 116 | ?> -------------------------------------------------------------------------------- /Ads/Min/AdminLogin.php: -------------------------------------------------------------------------------- 1 | 14 | 15 | 16 | 17 | 18 | LogIn | KeltaEdu 19 | 20 | 21 | 22 | 23 | 24 | 45 | 46 | 47 | 48 |
49 |
50 |
51 |
52 | 53 |
Admin LogIn form
54 |
55 |
56 |
57 |
58 |
59 | User 60 | 61 |
62 |
63 |
64 |
65 | 66 |
67 | forgot password? 68 |
69 | 70 |
71 | 72 |
73 |
74 |
75 |
76 |
77 | 135 | 136 | -------------------------------------------------------------------------------- /login.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | LogIn | NEET demo test 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 23 | 24 | 25 | 26 |
27 |
28 |
29 | 30 | 31 | 32 | Donate 33 | Results 34 | Contact 35 | Register 36 |
37 | 38 | 45 |
46 |
47 | 48 |
49 |
50 |

51 | FREE NEET PRACTICE TEST 52 |

53 |
54 | 55 |
56 |
57 |
58 | 59 |
Login for test
60 |
61 | You will find your login details in your registered email's inbox. 62 |
63 |
64 | 65 |
66 |
67 |
68 |
69 |
70 |
71 | 72 |
73 |
74 |
75 |
76 | 77 | 78 | 79 | 80 |
81 |
82 | Not joined? 83 |
84 | 85 |
86 | 87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 | 95 | 96 | -------------------------------------------------------------------------------- /Parts/updateEmail.php: -------------------------------------------------------------------------------- 1 | query($query)){ 29 | 30 | if($data->num_rows > 0){ 31 | 32 | $rslt = $data->fetch_assoc(); 33 | if($rslt['s_id'] != $id){ 34 | die("Already used email"); 35 | } 36 | 37 | } 38 | } 39 | 40 | $vkey = -1; 41 | $rollNo = 20201000; 42 | $query = "SELECT s_number, vkey FROM students WHERE s_id = $id"; 43 | 44 | if($data = $conn->query($query)){ 45 | 46 | $result = $data->fetch_assoc(); 47 | $vkey = $result['vkey']; 48 | $rollNo = $result['s_number']; 49 | 50 | } 51 | else{ 52 | die("something went wrong"); 53 | } 54 | 55 | $opt = [ 56 | 'cost' => 12 57 | ]; 58 | 59 | function randomPassword($length,$count, $characters) { 60 | 61 | $symbols = array(); 62 | $passwords = array(); 63 | $used_symbols = ''; 64 | $pass = ''; 65 | 66 | $symbols["lower_case"] = 'abcdefghijklmnopqrstuvwxyz'; 67 | $symbols["upper_case"] = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'; 68 | $symbols["numbers"] = '1234567890'; 69 | $symbols["special_symbols"] = ''; 70 | 71 | $characters = explode(",",$characters); 72 | foreach ($characters as $key=>$value) { 73 | $used_symbols .= $symbols[$value]; 74 | } 75 | $symbols_length = strlen($used_symbols) - 1; 76 | 77 | for ($p = 0; $p < $count; $p++) { 78 | $pass = ''; 79 | for ($i = 0; $i < $length; $i++) { 80 | $n = rand(0, $symbols_length); 81 | $pass .= $used_symbols[$n]; 82 | } 83 | $passwords[] = $pass; 84 | } 85 | 86 | return $passwords; 87 | } 88 | 89 | $passwords = randomPassword(10,1,"lower_case,upper_case,numbers,special_symbols"); 90 | 91 | $password = $passwords[0]; 92 | 93 | $pass = password_hash($password, PASSWORD_BCRYPT, $opt); 94 | 95 | $query = "UPDATE students SET s_email = '$email', s_pass = '$pass' WHERE s_id = $id"; 96 | 97 | if($conn->query($query)){ 98 | 99 | $to = $email; 100 | $subject = 'Test details'; 101 | $from = 'NEET_Mock_test@keltaking.co'; 102 | 103 | // To send HTML mail, the Content-type header must be set 104 | $headers = 'MIME-Version: 1.0' . "\r\n"; 105 | $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; 106 | 107 | // Create email headers 108 | $headers .= 'From: '.$from."\r\n".'Reply-To: '.$from."\r\n".'X-Mailer: PHP/' . phpversion(); 109 | 110 | // Compose a simple HTML email message 111 | $message = '

We have updated your email for the NEET mock test.


To give test verify your email by clicking here.
Note: Only varified students are allowed to attend the test

Below is your login details:-

RollNo: '.$rollNo.'
password: '.$password.'

Visit Exam page accoring to your preference timing (between 6-8 September). Login to the site and answer the test. Results will be declrared on 9th September.



You can give test on mobile, tablet or laptop but We suggest you to attend test on bigger screens (Laptop or PC) for better experience.

In case of any query Contact us.

This is a software generated email. Do not reply to this email.

'; 112 | 113 | if(!mail($email,$subject,$message,$headers)){ 114 | echo "Mail updated but not sent. Please try after some time"; 115 | } 116 | 117 | } 118 | else{ 119 | echo "Something went wrong2"; 120 | } 121 | 122 | $conn->close(); 123 | 124 | } 125 | else if(isset($_SESSION['login_student'])){ 126 | die("Login first"); 127 | } 128 | else{ 129 | header("Location:../logout"); 130 | } 131 | 132 | ?> -------------------------------------------------------------------------------- /Student/Parts/updateEmail.php: -------------------------------------------------------------------------------- 1 | query($query)){ 29 | 30 | if($data->num_rows > 0){ 31 | 32 | $rslt = $data->fetch_assoc(); 33 | if($rslt['s_id'] != $id){ 34 | die("Already used email"); 35 | } 36 | 37 | } 38 | } 39 | 40 | $vkey = -1; 41 | $rollNo = 20201000; 42 | $query = "SELECT s_number, vkey FROM students WHERE s_id = $id"; 43 | 44 | if($data = $conn->query($query)){ 45 | 46 | $result = $data->fetch_assoc(); 47 | $vkey = $result['vkey']; 48 | $rollNo = $result['s_number']; 49 | 50 | } 51 | else{ 52 | die("something went wrong"); 53 | } 54 | 55 | $opt = [ 56 | 'cost' => 12 57 | ]; 58 | 59 | function randomPassword($length,$count, $characters) { 60 | 61 | $symbols = array(); 62 | $passwords = array(); 63 | $used_symbols = ''; 64 | $pass = ''; 65 | 66 | $symbols["lower_case"] = 'abcdefghijklmnopqrstuvwxyz'; 67 | $symbols["upper_case"] = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'; 68 | $symbols["numbers"] = '1234567890'; 69 | $symbols["special_symbols"] = ''; 70 | 71 | $characters = explode(",",$characters); 72 | foreach ($characters as $key=>$value) { 73 | $used_symbols .= $symbols[$value]; 74 | } 75 | $symbols_length = strlen($used_symbols) - 1; 76 | 77 | for ($p = 0; $p < $count; $p++) { 78 | $pass = ''; 79 | for ($i = 0; $i < $length; $i++) { 80 | $n = rand(0, $symbols_length); 81 | $pass .= $used_symbols[$n]; 82 | } 83 | $passwords[] = $pass; 84 | } 85 | 86 | return $passwords; 87 | } 88 | 89 | $passwords = randomPassword(10,1,"lower_case,upper_case,numbers,special_symbols"); 90 | 91 | $password = $passwords[0]; 92 | 93 | $pass = password_hash($password, PASSWORD_BCRYPT, $opt); 94 | 95 | $query = "UPDATE students SET s_email = '$email', s_pass = '$pass' WHERE s_id = $id"; 96 | 97 | if($conn->query($query)){ 98 | 99 | $to = $email; 100 | $subject = 'Test details'; 101 | $from = 'NEET_Mock_test@keltaking.co'; 102 | 103 | // To send HTML mail, the Content-type header must be set 104 | $headers = 'MIME-Version: 1.0' . "\r\n"; 105 | $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; 106 | 107 | // Create email headers 108 | $headers .= 'From: '.$from."\r\n".'Reply-To: '.$from."\r\n".'X-Mailer: PHP/' . phpversion(); 109 | 110 | // Compose a simple HTML email message 111 | $message = '

We have updated your email for the NEET mock test.


To give test verify your email by clicking here.
Note: Only varified students are allowed to attend the test

Below is your login details:-

RollNo: '.$rollNo.'
password: '.$password.'

Visit Exam page accoring to your preference timing (between 6-8 September). Login to the site and answer the test. Results will be declrared on 9th September.



You can give test on mobile, tablet or laptop but We suggest you to attend test on bigger screens (Laptop or PC) for better experience.

In case of any query Contact us.

This is a software generated email. Do not reply to this email.

'; 112 | 113 | if(!mail($email,$subject,$message,$headers)){ 114 | echo "Mail updated but not sent. Please try after some time"; 115 | } 116 | 117 | } 118 | else{ 119 | echo "Something went wrong2"; 120 | } 121 | 122 | $conn->close(); 123 | 124 | } 125 | else if(isset($_SESSION['login_student'])){ 126 | die("Login first"); 127 | } 128 | else{ 129 | header("Location:../logout"); 130 | } 131 | 132 | ?> -------------------------------------------------------------------------------- /JS/contact.js: -------------------------------------------------------------------------------- 1 | // Modal Image Gallery 2 | function onClick(element) { 3 | document.getElementById("img01").src = element.src; 4 | document.getElementById("modal01").style.display = "block"; 5 | var captionText = document.getElementById("caption"); 6 | captionText.innerHTML = element.alt; 7 | } 8 | 9 | // Change style of navbar on scroll 10 | window.onscroll = function() {myFunction()}; 11 | function myFunction() { 12 | var navbar = document.getElementById("myNavbar"); 13 | if (document.body.scrollTop > 100 || document.documentElement.scrollTop > 100) { 14 | navbar.className = "w3-bar" + " w3-card" + " w3-animate-top" + " w3-white"; 15 | } else { 16 | navbar.className = navbar.className.replace(" w3-card w3-animate-top w3-white", ""); 17 | } 18 | } 19 | 20 | // Used to toggle the menu on small screens when clicking on the menu button 21 | function toggleFunction() { 22 | var x = document.getElementById("navDemo"); 23 | if (x.className.indexOf("w3-show") == -1) { 24 | x.className += " w3-show"; 25 | } else { 26 | x.className = x.className.replace(" w3-show", ""); 27 | } 28 | } 29 | 30 | 31 | class Check{ 32 | 33 | check(Name){ 34 | 35 | if(Name == ""){ 36 | throw "Name is empty"; 37 | } 38 | 39 | if(Name.includes("$") || Name.includes("&") || Name.includes("=") || Name.includes("*") || Name.includes("`")){ 40 | return true; 41 | } 42 | 43 | } 44 | 45 | emailCheck(email, cont_msg) { 46 | 47 | if(email == ""){ 48 | throw "Name is empty"; 49 | } 50 | 51 | if(cont_msg == ""){ 52 | throw "data is empty"; 53 | } 54 | 55 | let s1 = email.split("@"); 56 | let s3 = email.split(" "); 57 | if(s3.length > 1) 58 | { 59 | alert("Please add a proper mail-Id"); 60 | cont_msg.innerHTML = "Please add a proper mail-Id"; 61 | return false; 62 | } 63 | if(s1.length == 2) 64 | { 65 | var s2 = s1[1].split("."); 66 | if(s2.length == 2 || s2.length == 3) 67 | { 68 | if(s1[0].length < 6 || s2[0].length < 4 || s2[1].length > 4 || s2[1].length < 2) 69 | { 70 | alert('Please add a proper mail-Id'); 71 | cont_msg.innerHTML = "Please add a proper mail-Id"; 72 | return false; 73 | } 74 | 75 | return true; 76 | 77 | } 78 | else 79 | { 80 | alert("Please add a proper mail-Id"); 81 | cont_msg.innerHTML = "Please add a proper mail-Id"; 82 | return false; 83 | } 84 | } 85 | else 86 | { 87 | alert("Please add a proper mail-Id"); 88 | cont_msg.innerHTML = "Please add a proper mail-Id"; 89 | return false; 90 | } 91 | 92 | } 93 | } 94 | 95 | 96 | let contact = () => { 97 | 98 | let formS = document.getElementById('register'); 99 | 100 | let check_data = new Check(); 101 | let error = document.getElementById('error'); 102 | let name = formS.name.value; 103 | let email = formS.email.value; 104 | let problem = formS.problem.value; 105 | let msg = formS.msg.value; 106 | 107 | if(name == "" || email == "" || problem == "" || msg == ""){ 108 | error.innerHTML = "Please enter every details"; 109 | return false; 110 | } 111 | 112 | try{ 113 | 114 | if(!check_data.emailCheck(email, error)){ 115 | return false; 116 | } 117 | 118 | if(check_data.check(name)){ 119 | alert("Please enter valid roll no"); 120 | error.innerHTML = "Please enter valid roll no"; 121 | return false; 122 | } 123 | 124 | if(check_data.check(email)){ 125 | alert("Please enter valid password"); 126 | error.innerHTML = "Please enter valid password"; 127 | return false; 128 | } 129 | 130 | if(check_data.check(problem)){ 131 | alert("Please enter valid password"); 132 | error.innerHTML = "Please enter valid password"; 133 | return false; 134 | } 135 | 136 | if(check_data.check(msg)){ 137 | alert("Please enter valid password"); 138 | error.innerHTML = "Please enter valid password"; 139 | return false; 140 | } 141 | 142 | } 143 | catch(err){ 144 | alert("There is a problem: "+err); 145 | err.innerHTML = "There is a problem: "+err; 146 | return false; 147 | } 148 | 149 | 150 | let str = "name="+name+"&email="+email+"&problem="+problem+"&msg="+msg; 151 | let xhttp = new XMLHttpRequest(); 152 | let loader = document.getElementById('loader'); 153 | xhttp.onreadystatechange = function() { 154 | loader.style.display = "block"; 155 | if(this.readyState == 4 && this.status == 200){ 156 | error.innerHTML = this.responseText; 157 | loader.style.display = "none"; 158 | formS.name.value = ""; 159 | formS.email.value = ""; 160 | formS.msg.value = ""; 161 | } 162 | } 163 | xhttp.open("POST", "Check/contact", true); 164 | xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); 165 | xhttp.send(str); 166 | 167 | } 168 | 169 | 170 | 171 | -------------------------------------------------------------------------------- /Ads/Min/Action/addStudent.php: -------------------------------------------------------------------------------- 1 | query($query)){ 24 | if($data->num_rows > 0){ 25 | die("Already used email"); 26 | } 27 | } 28 | 29 | $query = "SELECT s_id FROM students WHERE s_number = $rollNo"; 30 | 31 | if($data = $conn->query($query)){ 32 | if($data->num_rows > 0){ 33 | die("Already used number"); 34 | } 35 | } 36 | 37 | 38 | $opt = [ 39 | 'cost' => 12 40 | ]; 41 | $last_id = 0; 42 | 43 | function randomPassword($length,$count, $characters) { 44 | 45 | $symbols = array(); 46 | $passwords = array(); 47 | $used_symbols = ''; 48 | $pass = ''; 49 | 50 | $symbols["lower_case"] = 'abcdefghijklmnopqrstuvwxyz'; 51 | $symbols["upper_case"] = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'; 52 | $symbols["numbers"] = '1234567890'; 53 | $symbols["special_symbols"] = ''; 54 | 55 | $characters = explode(",",$characters); 56 | foreach ($characters as $key=>$value) { 57 | $used_symbols .= $symbols[$value]; 58 | } 59 | $symbols_length = strlen($used_symbols) - 1; 60 | 61 | for ($p = 0; $p < $count; $p++) { 62 | $pass = ''; 63 | for ($i = 0; $i < $length; $i++) { 64 | $n = rand(0, $symbols_length); 65 | $pass .= $used_symbols[$n]; 66 | } 67 | $passwords[] = $pass; 68 | } 69 | 70 | return $passwords; 71 | } 72 | 73 | $passwords = randomPassword(10,1,"lower_case,upper_case,numbers,special_symbols"); 74 | 75 | $password = $passwords[0]; 76 | 77 | $to = $email; 78 | $subject = 'Test details'; 79 | $from = 'NEET_Mock_test@keltaking.co'; 80 | 81 | // To send HTML mail, the Content-type header must be set 82 | $headers = 'MIME-Version: 1.0' . "\r\n"; 83 | $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; 84 | 85 | // Create email headers 86 | $headers .= 'From: '.$from."\r\n".'Reply-To: '.$from."\r\n".'X-Mailer: PHP/' . phpversion(); 87 | 88 | // Compose a simple HTML email message 89 | $message = '

We have registered you for the NEET mock test

Below is your login details:-

RollNo: '.$rollNo.'
password: '.$password.'

Visit Exam page accoring to your preference timing (between 6-8 September). Login to the site and answer the test. Results will be declrared on 9th September.



You can give test on mobile, tablet or laptop but We suggest you to attend test on Laptop for better experience.

In case of any query Contact us.

This is a software generated email. Do not reply to this email.

'; 90 | 91 | 92 | $pass = password_hash($password, PASSWORD_BCRYPT, $opt); 93 | $msg = "Thanks for registering ".$name."\nWe have recieved your data and here is the login details and link for your exams.\nRollNo: ".$rollNo."\npassword: ".$password."\nvisit https://keltaking.co/Exams/login accoring to your preference time between 6-8 Sept. Login to the site and give answer the test. Results will be declrared on 9th Sept. \n\n You can give test on mobile, tablet or laptop but we suggest you to attend test on Laptop for better experience."; 94 | 95 | $query1 = "INSERT INTO students(s_name, s_number, s_pass, s_email, s_phone, gender, vkey, verified, msg, score, bio, phy, inc_count) VALUES('$name', $rollNo ,'$pass','$email','$mobile', '$gender', '123456789', '1', '$msg', 0, 0, 0, 0)"; 96 | 97 | 98 | if($data1 = $conn->query($query1)){ 99 | 100 | 101 | 102 | if(mail($to, $subject, $message, $headers)){ 103 | echo $msg; 104 | } else{ 105 | echo "Date entered but mail not sent"; 106 | } 107 | 108 | } 109 | else{ 110 | echo "Already registered"; 111 | } 112 | $conn->close(); 113 | 114 | } 115 | elseif(isset($_SESSION['admin_login_user'])){ 116 | echo "something went wrong"; 117 | } 118 | else{ 119 | header('Location:https://keltaking.co/Exams/Ads/Min/logout'); 120 | } 121 | ?> -------------------------------------------------------------------------------- /JS/login.js: -------------------------------------------------------------------------------- 1 | // Modal Image Gallery 2 | function onClick(element) { 3 | document.getElementById("img01").src = element.src; 4 | document.getElementById("modal01").style.display = "block"; 5 | var captionText = document.getElementById("caption"); 6 | captionText.innerHTML = element.alt; 7 | } 8 | 9 | // Change style of navbar on scroll 10 | window.onscroll = function() {myFunction()}; 11 | function myFunction() { 12 | var navbar = document.getElementById("myNavbar"); 13 | if (document.body.scrollTop > 100 || document.documentElement.scrollTop > 100) { 14 | navbar.className = "w3-bar" + " w3-card" + " w3-animate-top" + " w3-white"; 15 | } else { 16 | navbar.className = navbar.className.replace(" w3-card w3-animate-top w3-white", ""); 17 | } 18 | } 19 | 20 | // Used to toggle the menu on small screens when clicking on the menu button 21 | function toggleFunction() { 22 | var x = document.getElementById("navDemo"); 23 | if (x.className.indexOf("w3-show") == -1) { 24 | x.className += " w3-show"; 25 | } else { 26 | x.className = x.className.replace(" w3-show", ""); 27 | } 28 | } 29 | 30 | 31 | class Check{ 32 | 33 | check(Name){ 34 | 35 | if(Name == ""){ 36 | throw "Name is empty"; 37 | } 38 | 39 | if(Name.includes("$") || Name.includes("&") || Name.includes("=") || Name.includes("*") || Name.includes("`")){ 40 | return true; 41 | } 42 | 43 | } 44 | 45 | emailCheck(email, cont_msg) { 46 | 47 | if(email == ""){ 48 | throw "Name is empty"; 49 | } 50 | 51 | if(cont_msg == ""){ 52 | throw "data is empty"; 53 | } 54 | 55 | let s1 = email.split("@"); 56 | let s3 = email.split(" "); 57 | if(s3.length > 1) 58 | { 59 | alert("Please add a proper mail-Id"); 60 | cont_msg.innerHTML = "Please add a proper mail-Id"; 61 | return false; 62 | } 63 | if(s1.length == 2) 64 | { 65 | var s2 = s1[1].split("."); 66 | if(s2.length == 2 || s2.length == 3) 67 | { 68 | if(s1[0].length < 6 || s2[0].length < 4 || s2[1].length > 4 || s2[1].length < 2) 69 | { 70 | alert('Please add a proper mail-Id'); 71 | cont_msg.innerHTML = "Please add a proper mail-Id"; 72 | return false; 73 | } 74 | 75 | return true; 76 | 77 | } 78 | else 79 | { 80 | alert("Please add a proper mail-Id"); 81 | cont_msg.innerHTML = "Please add a proper mail-Id"; 82 | return false; 83 | } 84 | } 85 | else 86 | { 87 | alert("Please add a proper mail-Id"); 88 | cont_msg.innerHTML = "Please add a proper mail-Id"; 89 | return false; 90 | } 91 | 92 | } 93 | } 94 | 95 | 96 | let login = () => { 97 | 98 | 99 | let formS = document.getElementById('register'); 100 | 101 | let check_data = new Check(); 102 | let error = document.getElementById('error'); 103 | let rollno = formS.rollno.value; 104 | let pass = formS.pass.value; 105 | 106 | error.innerHTML = "No one can login now. If you have given the test then we will send you your resuls on your mail."; 107 | return false; 108 | 109 | if(rollno == "" || pass == ""){ 110 | error.innerHTML = "Please enter every details"; 111 | return false; 112 | } 113 | 114 | try{ 115 | 116 | if(check_data.check(rollno)){ 117 | alert("Please enter valid roll no"); 118 | error.innerHTML = "Please enter valid roll no"; 119 | return false; 120 | } 121 | 122 | if(check_data.check(pass)){ 123 | alert("Please enter valid password"); 124 | error.innerHTML = "Please enter valid password"; 125 | return false; 126 | } 127 | 128 | } 129 | catch(err){ 130 | alert("There is a problem: "+err); 131 | err.innerHTML = "There is a problem: "+err; 132 | return; 133 | } 134 | 135 | let str = "rollno="+rollno+"&pass="+pass; 136 | let xhttp = new XMLHttpRequest(); 137 | let loader = document.getElementById('loader'); 138 | xhttp.onreadystatechange = function() { 139 | loader.style.display = "block"; 140 | if(this.readyState == 4 && this.status == 200){ 141 | error.innerHTML = this.responseText; 142 | loader.style.display = "none"; 143 | if(this.responseText == ""){ 144 | 145 | formS.action = "loginStudent"; 146 | formS.method = "post"; 147 | formS.submit(); 148 | 149 | } 150 | } 151 | } 152 | xhttp.open("POST", "Check/login", true); 153 | xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); 154 | xhttp.send(str); 155 | 156 | } 157 | 158 | 159 | let see = () => { 160 | 161 | 162 | let eye = document.getElementById("eye"); 163 | let box = document.getElementById("pass"); 164 | 165 | if(eye.className == "fa fa-eye"){ 166 | 167 | eye.className = "fa fa-eye-slash"; 168 | eye.title = "hide"; 169 | box.type = "text"; 170 | 171 | } 172 | else{ 173 | 174 | eye.className = "fa fa-eye"; 175 | eye.title = "watch"; 176 | box.type = "password"; 177 | 178 | } 179 | 180 | 181 | } 182 | 183 | 184 | 185 | 186 | 187 | -------------------------------------------------------------------------------- /Check/register.php: -------------------------------------------------------------------------------- 1 | query($query)){ 21 | if($data->num_rows > 0){ 22 | die("Already used email"); 23 | } 24 | } 25 | 26 | $qry = "SELECT COUNT(s_id) FROM students"; 27 | 28 | if($data = $conn->query($qry)){ 29 | 30 | $rslt = $data->fetch_assoc(); 31 | $rollNo = $rollNo + $rslt['COUNT(s_id)'] + 1; 32 | 33 | } 34 | else{ 35 | die("Something went wrong, try again later"); 36 | } 37 | 38 | $query = "SELECT s_id FROM students WHERE s_number = $rollNo"; 39 | 40 | if($data = $conn->query($query)){ 41 | if($data->num_rows > 0){ 42 | die("Something went wrong, try again later"); 43 | } 44 | } 45 | 46 | 47 | $opt = [ 48 | 'cost' => 12 49 | ]; 50 | 51 | function randomPassword($length,$count, $characters) { 52 | 53 | $symbols = array(); 54 | $passwords = array(); 55 | $used_symbols = ''; 56 | $pass = ''; 57 | 58 | $symbols["lower_case"] = 'abcdefghijklmnopqrstuvwxyz'; 59 | $symbols["upper_case"] = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'; 60 | $symbols["numbers"] = '1234567890'; 61 | $symbols["special_symbols"] = ''; 62 | 63 | $characters = explode(",",$characters); 64 | foreach ($characters as $key=>$value) { 65 | $used_symbols .= $symbols[$value]; 66 | } 67 | $symbols_length = strlen($used_symbols) - 1; 68 | 69 | for ($p = 0; $p < $count; $p++) { 70 | $pass = ''; 71 | for ($i = 0; $i < $length; $i++) { 72 | $n = rand(0, $symbols_length); 73 | $pass .= $used_symbols[$n]; 74 | } 75 | $passwords[] = $pass; 76 | } 77 | 78 | return $passwords; 79 | } 80 | 81 | $passwords = randomPassword(10,1,"lower_case,upper_case,numbers,special_symbols"); 82 | 83 | $password = $passwords[0]; 84 | 85 | $to = $email; 86 | $subject = 'Test details'; 87 | $from = 'NEET_Mock_test@keltaking.co'; 88 | 89 | // To send HTML mail, the Content-type header must be set 90 | $headers = 'MIME-Version: 1.0' . "\r\n"; 91 | $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; 92 | 93 | // Create email headers 94 | $headers .= 'From: '.$from."\r\n".'Reply-To: '.$from."\r\n".'X-Mailer: PHP/' . phpversion(); 95 | 96 | // Compose a simple HTML email message 97 | $message = '

We have registered you for the NEET mock test


To give test verify your email by clicking here.
Note: Only varified students are allowed to attend the test

Below is your login details:-

RollNo: '.$rollNo.'
password: '.$password.'

Visit Exam page accoring to your preference timing (between 6-8 September). Login to the site and answer the test. Results will be declrared on 9th September.



You can give test on mobile, tablet or laptop but We suggest you to attend test on bigger screens (Laptop or PC) for better experience.

In case of any query Contact us.

This is a software generated email. Do not reply to this email.

'; 98 | 99 | 100 | $pass = password_hash($password, PASSWORD_BCRYPT, $opt); 101 | $msg = "Thanks for registering ".$name."\nWe have recieved your data and here is the login details and link for your exams.\nRollNo: ".$rollNo."\npassword: ".$password."\nvisit https://keltaking.co/Exams/login accoring to your preference time between 6-8 Sept. Login to the site and give answer the test. Results will be declrared on 9th Sept. \n\n You can give test on mobile, tablet or laptop but we suggest you to attend test on bigger screens (Laptop or PC) for better experience."; 102 | 103 | $query1 = "INSERT INTO students(s_name, s_number, s_pass, s_email, s_phone, gender, vkey, verified, msg, score, bio, phy, inc_count) VALUES('$name', $rollNo ,'$pass','$email','$cont', '$gender', '$vkey', '0', '$msg', 0, 0, 0, 0)"; 104 | 105 | if($data1 = $conn->query($query1)){ 106 | 107 | if(mail($to, $subject, $message, $headers)){ 108 | 109 | $_SESSION['register'] = 'start'; 110 | 111 | } 112 | else{ 113 | echo "Data entered but mail not sent"; 114 | } 115 | 116 | } 117 | else{ 118 | echo "Already registered"; 119 | } 120 | $conn->close(); 121 | 122 | } 123 | else{ 124 | die("Something went wrong"); 125 | } 126 | 127 | ?> -------------------------------------------------------------------------------- /index.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Register | NEET Demo test 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 23 | 24 | 25 | 26 |
27 |
28 |
29 | Log in 30 | 31 | 32 | 33 | Donate 34 | Results 35 | Contact 36 | Log in 37 |
38 | 39 | 46 |
47 |
48 | 49 |
50 |
51 |

52 | FREE NEET PRACTICE TEST 53 |

54 |
55 | 56 |
57 |
58 |
59 | 60 |
Register
61 |
62 | Fill the following registration form and recieve login details in email. Answer the test in between 6-8 sept and receive results on 9th Sept. 63 |
64 |
65 |
66 |
67 |
68 |
69 | 70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 | 85 |
86 | 87 | Already joined? 88 |
89 | 90 |
91 | 92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 | 100 | 101 | -------------------------------------------------------------------------------- /contact.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Contact | NEET demo test 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 23 | 24 | 25 | 26 |
27 |
28 |
29 | Log in 30 | 31 | 32 | 33 | Donate 34 | Results 35 | Contact 36 | Register 37 |
38 | 39 | 46 |
47 |
48 | 49 |
50 |
51 |

52 | FREE NEET PRACTICE TEST CONTACT 53 |

54 |
55 | 56 |
57 |
58 |
59 | 60 |
Contact up
61 |
62 | If you have any query related to test, you can ask us. We will response as soon as possible. Enter the valid email. We will communicate with you from that mail. 63 |
64 | 65 |
66 |
67 |
68 |
69 |
70 | 71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
86 |
87 |
88 | 89 | 90 |
91 | 92 |
93 | 94 |
95 | 96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 | 104 | 105 | -------------------------------------------------------------------------------- /JS/page.js: -------------------------------------------------------------------------------- 1 | // Modal Image Gallery 2 | function onClick(element) { 3 | document.getElementById("img01").src = element.src; 4 | document.getElementById("modal01").style.display = "block"; 5 | var captionText = document.getElementById("caption"); 6 | captionText.innerHTML = element.alt; 7 | } 8 | 9 | // Change style of navbar on scroll 10 | window.onscroll = function() {myFunction()}; 11 | function myFunction() { 12 | var navbar = document.getElementById("myNavbar"); 13 | if (document.body.scrollTop > 100 || document.documentElement.scrollTop > 100) { 14 | navbar.className = "w3-bar" + " w3-card" + " w3-animate-top" + " w3-white"; 15 | } else { 16 | navbar.className = navbar.className.replace(" w3-card w3-animate-top w3-white", ""); 17 | } 18 | } 19 | 20 | // Used to toggle the menu on small screens when clicking on the menu button 21 | function toggleFunction() { 22 | var x = document.getElementById("navDemo"); 23 | if (x.className.indexOf("w3-show") == -1) { 24 | x.className += " w3-show"; 25 | } else { 26 | x.className = x.className.replace(" w3-show", ""); 27 | } 28 | } 29 | 30 | 31 | class Check{ 32 | 33 | check(Name){ 34 | 35 | if(Name == ""){ 36 | throw "Name is empty"; 37 | } 38 | 39 | if(Name.includes("$") || Name.includes("&") || Name.includes("=") || Name.includes("*") || Name.includes("`")){ 40 | return true; 41 | } 42 | 43 | } 44 | 45 | checkMobile(txtPhone){ 46 | 47 | var phoneno = /^\+?([6-9]{1})\)?[-. ]?([0-9]{5})[-. ]?([0-9]{4})$/; 48 | var mobileno = /^((\\+91-?)|0)?[6-9]{1}?[0-9]{9}$/; 49 | if ((txtPhone.match(phoneno)) || (txtPhone.match(mobileno))) { 50 | return true; 51 | } 52 | else { 53 | return false; 54 | } 55 | 56 | } 57 | 58 | emailCheck(email, cont_msg) { 59 | 60 | if(email == ""){ 61 | throw "Name is empty"; 62 | } 63 | 64 | if(cont_msg == ""){ 65 | throw "data is empty"; 66 | } 67 | 68 | let s1 = email.split("@"); 69 | let s3 = email.split(" "); 70 | if(s3.length > 1) 71 | { 72 | alert("Please add a proper mail-Id"); 73 | cont_msg.innerHTML = "Please add a proper mail-Id"; 74 | return false; 75 | } 76 | if(s1.length == 2) 77 | { 78 | var s2 = s1[1].split("."); 79 | if(s2.length == 2 || s2.length == 3) 80 | { 81 | if(s1[0].length < 6 || s2[0].length < 4 || s2[1].length > 4 || s2[1].length < 2) 82 | { 83 | alert('Please add a proper mail-Id'); 84 | cont_msg.innerHTML = "Please add a proper mail-Id"; 85 | return false; 86 | } 87 | 88 | return true; 89 | 90 | } 91 | else 92 | { 93 | alert("Please add a proper mail-Id"); 94 | cont_msg.innerHTML = "Please add a proper mail-Id"; 95 | return false; 96 | } 97 | } 98 | else 99 | { 100 | alert("Please add a proper mail-Id"); 101 | cont_msg.innerHTML = "Please add a proper mail-Id"; 102 | return false; 103 | } 104 | 105 | } 106 | } 107 | 108 | 109 | let register = () => { 110 | 111 | let formS = document.getElementById('register'); 112 | let error = document.getElementById('error'); 113 | 114 | error.innerHTML = "REGISTRATION IS CLOSED NOW. EXAMS WILL START FROM TOMMOROW"; 115 | return false; 116 | 117 | let check_data = new Check(); 118 | let name = formS.name.value; 119 | let email = formS.email.value; 120 | let cont = formS.contno.value; 121 | let gender = formS.gender.value; 122 | 123 | if(name == "" || email == "" || cont == "" || gender == ""){ 124 | alert("Please enter every details"); 125 | error.innerHTML = "Please enter every details"; 126 | return false; 127 | } 128 | 129 | if(name.length <= 4) { 130 | alert("Please enter your full name"); 131 | error.innerHTML = "Please enter your full name"; 132 | return false; 133 | } 134 | 135 | if(!check_data.checkMobile(cont)){ 136 | 137 | alert("Please enter valid mobile number") 138 | error.innerHTML = "Please enter valid mobile number"; 139 | return false; 140 | 141 | } 142 | 143 | try{ 144 | if(!check_data.emailCheck(email, error)){ 145 | 146 | return false; 147 | 148 | } 149 | 150 | if(check_data.check(email)){ 151 | alert("Please enter valid email"); 152 | error.innerHTML = "Please enter valid email"; 153 | return false; 154 | } 155 | 156 | if(check_data.check(name)){ 157 | alert("Please enter valid name"); 158 | error.innerHTML = "Please enter valid name"; 159 | return false; 160 | } 161 | 162 | if(check_data.check(cont)){ 163 | alert("Please enter valid password"); 164 | error.innerHTML = "Please enter valid password"; 165 | return false; 166 | } 167 | 168 | } 169 | catch(err){ 170 | alert("There is a problem: "+err); 171 | err.innerHTML = "There is a problem: "+err; 172 | return; 173 | } 174 | 175 | let str = "name="+name+"&email="+email+"&contno="+cont+"&gender="+gender; 176 | let xhttp = new XMLHttpRequest(); 177 | let loader = document.getElementById('loader'); 178 | xhttp.onreadystatechange = function() { 179 | loader.style.display = "block"; 180 | if(this.readyState == 4 && this.status == 200){ 181 | error.innerHTML = this.responseText; 182 | loader.style.display = "none"; 183 | if(this.responseText == ""){ 184 | 185 | formS.action = "registerStudent"; 186 | formS.method = "post"; 187 | formS.submit(); 188 | 189 | } 190 | } 191 | } 192 | xhttp.open("POST", "Check/register", true); 193 | xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); 194 | xhttp.send(str); 195 | 196 | } 197 | -------------------------------------------------------------------------------- /yogg.php: -------------------------------------------------------------------------------- 1 | query($query)){ 14 | 15 | while($rslt = $data->fetch_assoc()){ 16 | 17 | $op1 = $rslt['q_op1']; 18 | $op1_guj = $rslt['q_op1_guj']; 19 | $op2 = $rslt['q_op2']; 20 | $op2_guj = $rslt['q_op2_guj']; 21 | $op3 = $rslt['q_op3']; 22 | $op3_guj = $rslt['q_op3_guj']; 23 | $op4 = $rslt['q_op4']; 24 | $op4_guj = $rslt['q_op4_guj']; 25 | 26 | switch($ansOp[$j]){ 27 | 28 | case 1: 29 | $ansEng[$j] = $op1; 30 | $ansGuj[$j] = $op1_guj; 31 | break; 32 | 33 | case 2: 34 | $ansEng[$j] = $op2; 35 | $ansGuj[$j] = $op2_guj; 36 | break; 37 | 38 | case 3: 39 | $ansEng[$j] = $op3; 40 | $ansGuj[$j] = $op3_guj; 41 | break; 42 | 43 | case 4: 44 | $ansEng[$j] = $op4; 45 | $ansGuj[$j] = $op4_guj; 46 | break; 47 | 48 | default: 49 | $ansEng[$j] = $op1; 50 | $ansGuj[$j] = $op1_guj; 51 | break; 52 | } 53 | 54 | $j++; 55 | 56 | } 57 | 58 | 59 | } 60 | else{ 61 | echo "Somethonh went wrong"; 62 | } 63 | 64 | 65 | 66 | 67 | 68 | function calc_mark($id, $ansEng, $ansGuj){ 69 | 70 | $servername = "localhost"; 71 | $dbpassword = "Mita1969"; // enter the database user's password 72 | $username = "keltakin_nt_student"; 73 | $database = "keltakin_NeetExam"; 74 | 75 | $con = new mysqli($servername, $username, $dbpassword, $database); 76 | 77 | if($con->connect_error) 78 | { 79 | die("something went wrong:$conn->connect_error"); 80 | } 81 | 82 | $total = 0; 83 | $pos = 4; 84 | $neg = -1; 85 | 86 | $bio_count = 0; 87 | $phy_count = 0; 88 | $inc_count = 0; 89 | 90 | //$qry = ; 91 | //echo $qry; 92 | if($d = $con -> query("SELECT * FROM que_stu_asn WHERE s_id = $id")){ 93 | 94 | $i = 1; 95 | 96 | while($rslt = $d->fetch_assoc()){ 97 | 98 | if($rslt['s_ans'] != null){ 99 | 100 | $sans = $rslt['s_ans']; 101 | 102 | $sub = $rslt['subject']; 103 | 104 | //echo $sans; 105 | //echo $ansEng[$i]."

"; 106 | 107 | if($sans == $ansEng[$i] || $sans == $ansGuj[$i]){ 108 | 109 | $total += $pos; 110 | 111 | if($sub == "Phy"){ 112 | 113 | $phy_count++; 114 | 115 | } 116 | else if($sub == "Bio"){ 117 | 118 | $bio_count++; 119 | 120 | } 121 | 122 | } 123 | else{ 124 | /*echo "question
"; 125 | echo $sans.""; 126 | echo $cans; 127 | echo "


";*/ 128 | 129 | $total +=$neg; 130 | $inc_count += 1; 131 | 132 | } 133 | 134 | } 135 | 136 | $i++; 137 | 138 | 139 | } 140 | $total += 5; 141 | 142 | /* 143 | $qry = "SELECT s_name, s_email FROM students WHERE s_id = $id"; 144 | 145 | if($dt = $conn->query($qry)){ 146 | 147 | $rs = $dt->fetch_assoc(); 148 | $name = $rs['s_name']; 149 | $email = $rs['s_email']; 150 | 151 | $to = $email; 152 | $from = 'NEET_Mock_test@keltaking.co'; 153 | $fromName = 'NEET_Mock_test'; 154 | 155 | $subject = 'NEET mock results'; 156 | $headers = 'MIME-Version: 1.0' . "\r\n"; 157 | $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; 158 | 159 | // Create email headers 160 | $headers .= 'From: '.$from."\r\n".'Reply-To: '.$from."\r\n".'X-Mailer: PHP/' . phpversion(); 161 | 162 | // Compose a simple HTML email message 163 | $message = '

Your results of NEET demo test is here.


Dear '.$name.',
Your results for NEET demo test is '.$total.'/720
Your rank is among the all test attempters. Total 676 students attempted test and highest marks are 634. Best of luck to you for your NEET exam. Be safe and stay happy.

Regard Kushang Shah
This is a software generated email. Do not reply to this email.

'; 164 | 165 | if(mail($to, $subject,$message, $headers)){ 166 | echo "Mail sent"; 167 | } 168 | else{ 169 | echo "Not sent"; 170 | } 171 | 172 | } 173 | else{ 174 | 175 | echo "Something went wrong"; 176 | 177 | } 178 | 179 | */ 180 | 181 | echo "Results of $id :
Total marks:".$total."
IncCount:".$inc_count."
BioCount:".$bio_count."
PhyCount:".$phy_count."

"; 182 | 183 | } 184 | else{ 185 | echo "Something went wrong"; 186 | } 187 | 188 | $con->close(); 189 | 190 | } 191 | 192 | $query = "SELECT DISTINCT s_id FROM que_stu_asn"; 193 | 194 | if($data = $conn->query($query)){ 195 | 196 | while($result = $data->fetch_assoc()){ 197 | 198 | $id = $result['s_id']; 199 | 200 | calc_mark($id, $ansEng, $ansGuj); 201 | 202 | } 203 | 204 | } 205 | 206 | 207 | 208 | $conn->close(); 209 | 210 | ?> -------------------------------------------------------------------------------- /yogg1.php: -------------------------------------------------------------------------------- 1 | query($query)){ 14 | 15 | while($rslt = $data->fetch_assoc()){ 16 | 17 | $op1 = $rslt['q_op1']; 18 | $op1_guj = $rslt['q_op1_guj']; 19 | $op2 = $rslt['q_op2']; 20 | $op2_guj = $rslt['q_op2_guj']; 21 | $op3 = $rslt['q_op3']; 22 | $op3_guj = $rslt['q_op3_guj']; 23 | $op4 = $rslt['q_op4']; 24 | $op4_guj = $rslt['q_op4_guj']; 25 | 26 | switch($ansOp[$j]){ 27 | 28 | case 1: 29 | $ansEng[$j] = $op1; 30 | $ansGuj[$j] = $op1_guj; 31 | break; 32 | 33 | case 2: 34 | $ansEng[$j] = $op2; 35 | $ansGuj[$j] = $op2_guj; 36 | break; 37 | 38 | case 3: 39 | $ansEng[$j] = $op3; 40 | $ansGuj[$j] = $op3_guj; 41 | break; 42 | 43 | case 4: 44 | $ansEng[$j] = $op4; 45 | $ansGuj[$j] = $op4_guj; 46 | break; 47 | 48 | default: 49 | $ansEng[$j] = $op1; 50 | $ansGuj[$j] = $op1_guj; 51 | break; 52 | } 53 | 54 | $j++; 55 | 56 | } 57 | 58 | 59 | } 60 | else{ 61 | echo "Somethonh went wrong"; 62 | } 63 | 64 | 65 | 66 | 67 | 68 | function calc_mark($id, $ansEng, $ansGuj){ 69 | 70 | $servername = "localhost"; 71 | $dbpassword = "Mita1969"; // enter the database user's password 72 | $username = "keltakin_nt_student"; 73 | $database = "keltakin_NeetExam"; 74 | 75 | $con = new mysqli($servername, $username, $dbpassword, $database); 76 | 77 | if($con->connect_error) 78 | { 79 | die("something went wrong:$conn->connect_error"); 80 | } 81 | 82 | $total = 0; 83 | $pos = 4; 84 | $neg = -1; 85 | 86 | $bio_count = 0; 87 | $phy_count = 0; 88 | $inc_count = 0; 89 | 90 | //$qry = ; 91 | //echo $qry; 92 | if($d = $con -> query("SELECT * FROM que_stu_asn WHERE s_id = $id")){ 93 | 94 | $i = 1; 95 | 96 | while($rslt = $d->fetch_assoc()){ 97 | 98 | if($rslt['s_ans'] != null){ 99 | 100 | $sans = $rslt['s_ans']; 101 | 102 | $sub = $rslt['subject']; 103 | 104 | //echo $sans; 105 | //echo $ansEng[$i]."

"; 106 | 107 | if($sans == $ansEng[$i] || $sans == $ansGuj[$i]){ 108 | 109 | $total += $pos; 110 | 111 | if($sub == "Phy"){ 112 | 113 | $phy_count++; 114 | 115 | } 116 | else if($sub == "Bio"){ 117 | 118 | $bio_count++; 119 | 120 | } 121 | 122 | } 123 | else{ 124 | /*echo "question
"; 125 | echo $sans.""; 126 | echo $cans; 127 | echo "


";*/ 128 | 129 | $total +=$neg; 130 | $inc_count += 1; 131 | 132 | } 133 | 134 | } 135 | 136 | $i++; 137 | 138 | 139 | } 140 | $total += 5; 141 | 142 | 143 | $qry = "SELECT s_name, s_email FROM students WHERE s_id = $id"; 144 | 145 | if($dt = $con->query($qry)){ 146 | 147 | $rs = $dt->fetch_assoc(); 148 | $name = $rs['s_name']; 149 | $email = $rs['s_email']; 150 | 151 | $to = $email; 152 | $from = 'NEET_Mock_test@keltaking.co'; 153 | $fromName = 'NEET_Mock_test'; 154 | 155 | $subject = 'NEET mock results'; 156 | $headers = 'MIME-Version: 1.0' . "\r\n"; 157 | $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; 158 | 159 | // Create email headers 160 | $headers .= 'From: '.$from."\r\n".'Reply-To: '.$from."\r\n".'X-Mailer: PHP/' . phpversion(); 161 | 162 | // Compose a simple HTML email message 163 | $message = '

Your results of NEET demo test is here.


Dear '.$name.',
Your results for NEET demo test is '.$total.'/720
Your rank is 121th among the all test attempters. Total 676 students attempted test and highest marks are 634. Best of luck to you for your NEET exam. Be safe and stay happy.

Regard Kushang Shah
This is a software generated email. Do not reply to this email.

'; 164 | 165 | if(mail($to, $subject,$message, $headers)){ 166 | echo "Mail sent"; 167 | } 168 | else{ 169 | echo "Not sent"; 170 | } 171 | 172 | } 173 | else{ 174 | 175 | echo "Something went wrong"; 176 | 177 | } 178 | 179 | 180 | 181 | echo "Results of $id :
Total marks:".$total."
IncCount:".$inc_count."
BioCount:".$bio_count."
PhyCount:".$phy_count."

"; 182 | 183 | } 184 | else{ 185 | echo "Something went wrong"; 186 | } 187 | 188 | $con->close(); 189 | 190 | } 191 | 192 | /*$query = "SELECT DISTINCT s_id FROM que_stu_asn"; 193 | 194 | if($data = $conn->query($query)){ 195 | 196 | while($result = $data->fetch_assoc()){ 197 | 198 | $id = $result['s_id']; 199 | 200 | calc_mark($id); 201 | 202 | } 203 | 204 | }*/ 205 | 206 | calc_mark(128, $ansEng, $ansGuj); 207 | 208 | 209 | $conn->close(); 210 | 211 | ?> -------------------------------------------------------------------------------- /Ads/Min/Subs/biology.php: -------------------------------------------------------------------------------- 1 | 18 | 19 |
20 |
21 |
Home
22 |
logout
23 |
24 |
25 | 39 |
40 | 41 |
42 |
43 | 44 |
45 |
46 |
47 |
48 |
49 | English data 50 |
51 |
52 | 53 |
54 |
55 | 56 |
57 |
58 | 59 |
60 |
61 | 62 |
63 |
64 | 65 |
66 |
67 | 68 |
69 |
70 | 71 |
72 |
73 | 74 |
75 |
76 |
77 | 78 |
79 | 80 |
81 |
82 | Gujarati data 83 |
84 |
85 | 86 |
87 |
88 | 89 |
90 |
91 | 92 |
93 |
94 | 95 |
96 |
97 | 98 |
99 |
100 | 101 |
102 |
103 | 104 |
105 |
106 |
107 |
108 | 111 |
112 |
113 | 114 | 115 |
116 | 171 | 172 | 173 | -------------------------------------------------------------------------------- /Ads/Min/Subs/chemistry.php: -------------------------------------------------------------------------------- 1 | 18 | 19 |
20 |
21 |
Home
22 |
logout
23 |
24 |
25 | 39 |
40 | 41 |
42 |
43 | 44 |
45 |
46 |
47 |
48 |
49 | English data 50 |
51 |
52 | 53 |
54 |
55 | 56 |
57 |
58 | 59 |
60 |
61 | 62 |
63 |
64 | 65 |
66 |
67 | 68 |
69 |
70 | 71 |
72 |
73 | 74 |
75 |
76 |
77 | 78 |
79 | 80 |
81 |
82 | Gujarati data 83 |
84 |
85 | 86 |
87 |
88 | 89 |
90 |
91 | 92 |
93 |
94 | 95 |
96 |
97 | 98 |
99 |
100 | 101 |
102 |
103 | 104 |
105 |
106 |
107 |
108 | 111 |
112 |
113 | 114 | 115 |
116 | 171 | 172 | 173 | -------------------------------------------------------------------------------- /Ads/Min/admins.php: -------------------------------------------------------------------------------- 1 | 16 |
17 |
18 |
Home
19 |
logout
20 |
21 | 22 | 27 | 28 |
29 |
30 |
31 |
32 |

Add Admin

33 |
34 |
35 |
36 |
37 |
38 | 39 |
40 |
41 | 42 |
43 |
44 | 45 | show password? 46 |
47 |
48 | 53 |
54 |
55 | 56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |

All Admin

64 |
65 |
66 |
67 |
68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | query($query)){ 79 | 80 | if($data->num_rows <= 0){ 81 | echo "
No General admins
"; 82 | } 83 | else{ 84 | while($result = $data->fetch_assoc()) 85 | { 86 | ?> 87 | 88 | 97 |
Admin_numberAdmin_nameAdmin_typeOperation
".$result['a_name'] ?>
98 |
99 |
100 |
101 |
102 | 210 | 211 | 212 | 213 | You are not authorised here
"; 217 | } 218 | 219 | ?> 220 | 221 | 222 | 223 | -------------------------------------------------------------------------------- /Ads/Min/students.php: -------------------------------------------------------------------------------- 1 | 18 | 19 | 20 |
21 |
22 |
Home
23 |
logout
24 |
25 | 26 | 27 |
28 |
29 |
30 |
31 |
32 |

Add Student

33 |
34 |
35 |
36 |
37 |
38 | 39 |
40 |
41 | 42 |
43 |
44 | 45 |
46 |
47 | 48 |
49 |
50 | 55 |
56 |
57 | 58 |
59 |
60 |
61 |
62 | 64 | 67 | 70 |
71 |
72 |
73 |
74 | 77 |
78 |

Search Student

79 | 80 |

81 |
82 | 83 | 84 |
85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | query($qry)){ 100 | 101 | while($rslt = $data->fetch_assoc()){ 102 | 103 | ?> 104 | 105 | 106 | 107 | 117 | 118 | 119 | 129 | 130 |
NameNumberScoreOperation
108 | 116 |
131 |
132 |
133 | 291 | 292 | 293 | -------------------------------------------------------------------------------- /Ads/Min/Subs/physics.php: -------------------------------------------------------------------------------- 1 | 18 | 19 | 20 |
21 |
22 |
Home
23 |
logout
24 |
25 |
26 | 40 |
41 | 42 |
43 |
44 | 45 |
46 |
47 |
48 |
49 |
50 | English data 51 |
52 |
53 | 54 |
55 |
56 | 57 |
58 |
59 | 60 |
61 |
62 | 63 |
64 |
65 | 66 |
67 |
68 | 69 |
70 |
71 | 72 |
73 |
74 | 75 |
76 |
77 |
78 | 79 |
80 | 81 |
82 |
83 | Gujarati data 84 |
85 |
86 | 87 |
88 |
89 | 90 |
91 |
92 | 93 |
94 |
95 | 96 |
97 |
98 | 99 |
100 |
101 | 102 |
103 |
104 | 105 |
106 |
107 |
108 | 109 |
110 | 113 |
114 |
115 | 116 |
117 | 118 | 119 | 120 | 237 | 238 | 239 | --------------------------------------------------------------------------------