Tryag File Manager
Home
||
Turbo Force
||
B-F Config_Cpanel
Current Path :
/
home
/
ynormeco
/
.trash
/
ynormedemos
/
smadmin
/
pages
/
Or
Select Your Path :
Upload File :
New :
File
Dir
//home/ynormeco/.trash/ynormedemos/smadmin/pages/update_profile.php
<?php ob_start(); include("../inc/config.php"); $conn = connect_database(); session_start(); $admin = isset($_SESSION['iitcenterlogin']) ? $_SESSION['iitcenterlogin'] : NULL; if(!isset($_SESSION['iitcenterlogin'])) { header("location: pages/logout.php"); exit; } $center_no = $_POST['center_no']; $email = $_POST['email']; $center_add = $_POST['center_add']; $pan_no = strtoupper($_POST['pan_no']); $bank_name = $_POST['bank_name']; $acc_no = $_POST['acc_no']; $branch_name = $_POST['branch_name']; $micr_code = $_POST['micr_code']; $ifsc_code = strtoupper($_POST['ifsc_code']); if($ifsc_code != "") { if(strlen($ifsc_code) == 11) { if(!is_numeric($ifsc_code[0])) { if(!is_numeric($ifsc_code[1])) { if(!is_numeric($ifsc_code[2])) { if(!is_numeric($ifsc_code[3])) { if(is_numeric($ifsc_code[4])) { $qq="UPDATE `tbl_center_list` SET `ifsc_code` = '$ifsc_code' WHERE ceter_code ='".$admin."'"; $update=mysqli_query($conn,$qq) or die(mysqli_error()); } } else { header('Location: ../center-profile.php?insert=ifscfail&code='.$code); return; } } else { header('Location: ../center-profile.php?insert=ifscfail&code='.$code); return; } } else { header('Location: ../center-profile.php?insert=ifscfail&code='.$code); return; } } else { header('Location: ../center-profile.php?insert=ifscfail&code='.$code); return; } } else { header('Location: ../center-profile.php?insert=ifscfail&code='.$code); return; } } if($pan_no != "") { if(!is_numeric($pan_no[0])) { if(!is_numeric($pan_no[1])) { if(!is_numeric($pan_no[2])) { if(!is_numeric($pan_no[3])) { if(!is_numeric($pan_no[4])) { if(is_numeric($pan_no[5])) { if(is_numeric($pan_no[6])) { if(is_numeric($pan_no[7])) { if(is_numeric($pan_no[8])) { if(!is_numeric($pan_no[9])) { $qq="UPDATE tbl_center_list SET pancard = 'Yes' WHERE ceter_code='".$admin."'"; $update=mysqli_query($conn,$qq) or die(mysqli_error()); } else { header('Location: ../center-profile.php?insert=pfail&code='.$code); return; } } else { header('Location: ../center-profile.php?insert=pfail&code='.$code); return; } } else { header('Location: ../center-profile.php?insert=pfail&code='.$code); return; } } else { header('Location: ../center-profile.php?insert=pfail&code='.$code); return; } } else { header('Location: ../center-profile.php?insert=pfail&code='.$code); return; } } else { header('Location: ../center-profile.php?insert=pfail&code='.$code); return; } } else { header('Location: ../center-profile.php?insert=pfail&code='.$code); return; } } else { header('Location: ../center-profile.php?insert=pfail&code='.$code); return; } } else { header('Location: ../center-profile.php?insert=pfail&code='.$code); return; } } else { header('Location: ../center-profile.php?insert=pfail&code='.$code); return; } } else { $qq="UPDATE `tbl_center_list` SET pancard = 'No' WHERE `ceter_code`='".$admin."'"; $update=mysqli_query($conn,$qq) or die(mysqli_error()); } $query = mysqli_query($conn,"UPDATE `tbl_center_list` SET `center_no` = '$center_no', `email` = '$email', `center_add` = '$center_add', `pan_no` = '$pan_no', `bank_no` = '$bank_name', `account_no` = '$acc_no', `branch_name` = '$branch_name', `micr_code` = '$micr_code', `ifsc_code` = '$ifsc_code' WHERE `ceter_code` = '$admin' "); if(!$query) { echo mysqli_error(); } else { header('Location: ../center-profile.php?insert=success&code='.$code); } ob_end_flush(); ?>