| Current Path : /var/www/html/mmishra/erp/controllers/ |
| Current File : /var/www/html/mmishra/erp/controllers/erp_controller.php |
<?php
date_default_timezone_set('Asia/Kolkata');
require_once(dirname(__FILE__).DIRECTORY_SEPARATOR.'../includes/PHPMailerAutoload.php');
ini_set('session.gc_maxlifetime', 900); // these three lines cause
ini_set('session.gc_probability', 1); // auto logout after 15 minutes
ini_set('session.gc_divisor', 1); // of idle session of current user
session_start();
class erpController {
const WELCOME = 'Here status of ongoing data processing operations are displayed.'; // requires to reflect system error in errorbar
const RO = 'readonly'; // requires to define readonly form tags
const MANDATORY = '* Marked fields are mandatory information.'; // requires to present help information on menu items
public $model;
public $app; // get appn addressed by user ($url[0])
public $menu; // get menu clicked by user ($url[1])
public $action; // get action invoked by user ($url[2])
public $tuple; // get tuple targeted by user ($url[3])
public $params; // get rest of the parameters ($url[3+])
public $userID; // numeric id of login id
public $userIP; // ip address of remote system
public $appURL; // this is Request URI for log entry
public $referer; // requires for log entry, not mandatory
public $errorText = self::WELCOME; // requires to reflect system error in errorbar
public $filterText = ''; // used in toolbar to list filtered records
public $editLock = self::RO;
//*************************************************************
// ERP enumerated values
//*************************************************************
// enum variable declartion, used in various apps
public $reminders = [1 => 'Document overdue reminder',2 => 'Fees overdue reminder',3 => 'Mess-charge overdue reminder',4 => 'Name correction for degree',5 => 'Photo submission for degree',6 => 'Arrival plan submission for convocation',7 => 'Admission Withdrawn Notification']; // used to generate auto alerts (email/sms)
public $schedules = [0 => 'None', 1 => 'Daily',2 => 'Weekly',3 => 'Monthly',4 => 'Semesterly',5 => 'Yearly']; // used to generate auto alerts (email/sms)
public $yesnoChoices = ['' => '', 'Y' => 'Yes', 'N' => 'No']; // used in selection
public $interfaces = ['I' => 'Interface','O' => 'Report','C' => 'Configuration']; // used in erpa app
public $authModes = ['LDB' => 'LDAP','MDB' => 'Database']; // used to authenticate user either thru ldap or database
public $currencys = ['INR' => 'Indian Rupees','USD' => 'US Dollar']; // used in aaa app
public $months = ['JAN' => 'January','FEB' => 'February','MAR' => 'March','APR' => 'April','MAY' => 'May','JUN' => 'June','JUL' => 'July','AUG' => 'August','SEP' => 'September','OCT' => 'October','NOV' => 'November','DEC' => 'December']; // used in aaa app
public $monthNames = [1 => 'Jan',2 => 'Feb',3 => 'Mar',4 => 'Apr',5 => 'May',6 => 'Jun',7 => 'Jul',8 => 'Aug',9 => 'Sep',10 => 'Oct',11 => 'Nov',12 => 'Dec']; // used in aaa app
public $paymentModes = ['POS', 'NEFT', 'DD', 'UPI', 'PG', 'Alumni', 'Direct'];
public $maleTitles = ['Mr.', 'Sri', 'Late']; // used in aaa app
public $femaleTitles = ['Mrs.', 'Ms.', 'Late']; // used in aaa app
public $earnedTitles = ['Dr.', 'Prof.', 'Er.']; // used in aaa app
public $genders = ['M' => 'Male','F' => 'Female','T' => 'Neutral']; // used in aaa app
public $bloodGroups = ['','O+','O-','A+','A-','B+','B-','AB+','AB-']; // used in applicant form
public $maritalStatuss = ['U' => 'Unmarried','M' => 'Married']; // used in aaa app
public $categorys = ['EWS' => 'Economically Weaker Section','OBC' => 'Other Backward Class','SC' => 'Schedule Caste','ST' => 'Schedule Tribe','OBC-NCL' => 'Other Backward Class (Non Creamy)','GEN' => 'General','PWD' => 'Person with Disability'];//,'X' => 'Not available']; // used in aaa app
public $subCategorys = ['EWS' => 'Economically Weaker Section','OBC' => 'Other Backward Class','SC' => 'Schedule Caste','ST' => 'Schedule Tribe','OBC-NCL' => 'Other Backward Class - Non Creamy','GEN' => 'General'];//,'X' => 'Not available']; // used in aaa app
public $religions = ['H' => 'Hinduism','I' => 'Islam','C' => 'Christianity','S' => 'Sikhism','B' => 'Buddhism','J' => 'Jainism','Z' => 'Zoroastrianism','O' => 'No religion/Others/Religion not specified'];//,'X' => 'Not available']; // used in aaa app
public $areas = [1 => 'Urban',2 => 'Rural'];
public $states = [1 => 'Jammu and Kashmir',2 => 'Himachal Pradesh',3 => 'Punjab',4 => 'Chandigarh',5 => 'Uttrakhand',6 => 'Haryana',7 => 'Delhi',8 => 'Rajasthan',9 => 'Uttar Pradesh',10 => 'Bihar',11 => 'Sikkim',12 => 'Arunachal Pradesh',13 => 'Nagaland',14 => 'Manipur',15 => 'Mizoram',16 => 'Tripura',17 => 'Meghalaya',18 => 'Assam',19 => 'West Bengal',20 => 'Jharkhand',21 => 'Odisha',22 => 'Chhatisgarh',23 => 'Madhya Pradesh',24 => 'Gujarat',25 => 'Daman & Diu',26 => 'Dadra & Nagar Haveli',27 => 'Maharashtra',28 => 'Andhra Pradesh',29 => 'Karnataka',30 => 'Goa',31 => 'Lakshadweep',32 => 'Kerala',33 => 'Tamil Nadu',34 => 'Puducherry',35 => 'Andaman & Nicobar Islands',36 => 'Telangana'];
//*************************************************************
// IHC enumerated values
//*************************************************************
public $patientGroups = [1 => 'Employee',2 => 'Student',3 => 'Worker',4 => 'Others'];
public $testGroups = [1 =>'Haemetology',2 => 'Biochemical', 3 => 'Urine Examination'];
//*************************************************************
// AAA enumerated values
//*************************************************************
public $programs = ['IT' => 'BTech (IT)','EC' => 'BTech (ECE)','WC' => 'MTech (WC)','SE' => 'MTech (SE)','RO' => 'MTech (RO)','HCI' => 'MTech (HCI)','IS' => 'MTech (IS)','BI' => 'MTech (BI)','MB' => 'MBA (IT)','PhDIT' => 'PhD (IT)','PhDEC' => 'PhD (EC)'];
public $degreeLevels = ['UG' => 'Under Graduation','PG' => 'Post Graduation','PhD' => 'Research Degree', 'DD' => 'Dual Degree'];//, 'VT' => 'Vocational Course'
public $aiTypes = [1 => 'University', 2 => 'Board', 3 => 'Standalone Institute'];
public $universitys = [1 => 'Central University',2 => 'State Public University',3 => 'State Private University',4 => 'Deemed University-Government',5 => 'Deemed University-Government Aided',6 => 'Deemed University-Private',7 => 'Institute of National Importance',8 => 'Institute under State Legislature Act',9 => 'Central Open University',10 => 'State Open University',11 => 'State Private Open University',19 => 'Others'];
public $documents = ['PHO' => 'Photograph (30x50 mm, Passport)','SIG' => 'Signature (10x30 mm, B&W)','10M' => '10 Marksheet (Size 500KB)','10D' => '10 Degree (Size 500KB)','12M' => '12 Marksheet (Size 500KB)','12D' => '12 Degree (Size 500KB)','UGD' => 'UG Marksheet (Size 500KB)','UGM' => 'UG Degree (Size 500KB)','PGM' => 'PG Marksheet (Size 500KB)','PGD' => 'PG Degree (Size 500KB)','BTH' => 'Birth Certificate (Size 500KB)','AAD' => 'Aadhaar Card (Size 500KB)','HHI' => 'House Hold Income'];
public $accountTypes = [1 => 'Fees Account', 2 => 'Mess Account'];
public $paymentTerms = [0 => 'One Time', 1 => 'Annual', 2 => 'Semester', 3 => 'One Time (Refundable)', 9 => 'Pre Paid'];
public $apcStatuss = ['O' => 'Offered', 'I' => 'Interested', 'E' => 'Enrolled', 'W' => 'Withdrawn'];
public $withdrawReasons = ['Floating' => 'Floating option', 'Personal' => 'Personal willingness', 'Unknown' => 'Unknown, not shared'];
public $pwdStatuss = ['Y' => 'Yes','N' => 'No','X' => 'Not collected'];
public $professions = ['HOM' => 'Home Maker','AGR' => 'Agriculture', 'BUS' => 'Business','GOV' => 'Government Service','PVT' => 'Private Service','PRF' => 'Self Employed Professional','RET' => 'Retired', 'NA' => 'Not Applicable']; // used in aaa app
public $aaaReceipts2 = ['AAA', 'F & A', 'Hostel', 'Student'];
public $dasaCategorys = ['NRI' => 'Non Resident Indian', 'NRI-CIWG' => 'Non Resident Indian (CIWG)', 'FN' => 'Foreign National','SAARC' => 'SAARC National', 'FN-SAARC' => 'FN SAARC National', 'PIO' => 'Person of Indian Origin', 'OCI' => 'Overseas Citizen of India'];
//*************************************************************
// HMS enumerated values
//*************************************************************
public $hostelTypes = ['Boys' => 'Boys','Girls' => 'Girls','Married' => 'Married'];
public $floorNos = [0 => 'Ground', 1 => 'First', 2 => 'Second', 3 => 'Third', 4 => 'Forth', 5 => 'Fifth', 6 => 'Sixth', 7 => 'Seventh', 8 => 'Eighth', 9 => 'Nineth'];
public $roomTypes = [1 => 'Single Bedded',2 => 'Double Bedded',3 => 'Triple Bedded',4 => 'Appartment',5 => 'Suite'];
public $roomStatuss = ['Vacant', 'Occupied', 'Semi-occupied'];
public $hmsReceipts2 = ['Hostel', 'Student'];
//*************************************************************
// HRM enumerated values
//*************************************************************
public $headNatures = ['Consumable', 'Non-consumable', 'LTA'];
public $departments = ['DoIT' => 'Dept. of Information Technology', 'DoEC' => 'Dept. of Electronic & Communication', 'DoAS' => 'Dept. of Applied Sciences', 'DoMS' => 'Dept. of Management Studies'];
public $payTerms = ['EL' => 'Full Pay', 'HP' => 'Half Pay', 'LWP' => 'Without Pay'];
public $neStates = ['Arunachal Pradesh', 'Assam', 'Manipur', 'Meghalaya', 'Mizoram', 'Nagaland', 'Sikkim', 'Tripura'];
public $boardUniversitys = [1 => 'Secondary & Higher Secondary', 2 => 'College & University'];
public $secondarys = [
'ASBSS' => 'Arunachal State Board of Secondary Schools',
'BSEB' => 'Bihar School Examination Board',
'BEM' => 'Board of Education Manipur',
'BHSIEUP' => 'Board of High School and Intermediate Education Uttar Pradesh',
'BSEAP' => 'Board of Secondary Education Andhra Pradesh',
'BSEA' => 'Board of Secondary Education Assam',
'BSEMP' => 'Board of Secondary Education Madhya Pradesh',
'BSEO' => 'Board of Secondary Education Orissa',
'BSER' => 'Board of Secondary Education Rajasthan',
'CBSE' => 'Central Board of Secondary Education',
'CGBSE' => 'Chhattisgarh Board of Secondary Education',
'CISCE' => 'Council for the Indian School Certificate Examinations',
'GBSHSE' => 'Goa Board of Secondary and Higher Secondary Education',
'GSHSEB' => 'Gujarat Secondary and Higher Secondary Education Board',
'HBSE' => 'Haryana Board of School Education',
'HPBSE' => 'Himachal Pradesh Board of School Education',
'JKSBSE' => 'Jammu and Kashmir State Board of School Education',
'JAC' => 'Jharkhand Academic Council',
'KSEEB' => 'Karnataka Secondary Education Examination Board',
'KBPE' => 'Kerala Board of Public Examination',
'MPSOSB' => 'Madhya Pradesh State Open School Board',
'MSBSHSE' => 'Maharastra State Board of Secondary and Higher Secondary Education',
'MLBSE' => 'Meghalaya Board of School Education',
'MZBSE' => 'Mizoram Board of School Education',
'NBSE' => 'Nagaland Board of School Education',
'NIOS' => 'National Institute of Open Schooling',
'PSEB' => 'Punjab School Education Board',
'RMV' => 'Ravindra Mukta Vidyalaya',
'TNSBSE' => 'Tamil Nadu State Board of School Examinations',
'TEBSE' => 'Telangana Board of Secondary Education',
'TBSE' => 'Tripura Board of Secondary Education',
'UBSE' => 'Uttarakhand Board of School Education',
'UPBSE' => 'Uttar Pradesh Board of School Education',
'WBBME' => 'West Bengal Board of Madrasah Education',
'WBBSE' => 'West Bengal Board of Secondary Education',
'IGCSE' => 'IGCSE Programme from University of Cambridge',
'NIOS' => 'National Institute of Open Schooling',
'SAICE' => 'Sri Aurobindo International Centre of Education',
'NSLC' => 'Nepal School Leaving Certificate Examination Committee (SLC Board)',
'Others' => 'Others...'];
public $hsecondarys = [
'AMUB' => 'Aligarh Muslim University Board',
'ASBSS' => 'Arunachal State Board of Secondary Schools',
'AHSEC' => 'Assam Higher Secondary Education Council',
'BSEB' => 'Bihar Intermidiate Education Council',
'BHSIEUP' => 'Board of High School and Intermediate Education Uttar Pradesh',
'BIEAP' => 'Board of Intermediate Education Andhra Pradesh',
'BSEMP' => 'Board of Secondary Education Madhya Pradesh',
'BSER' => 'Board of Secondary Education Rajasthan',
'CBSE' => 'Central Board of Secondary Education',
'CGBSE' => 'Chhattisgarh Board of Secondary Education',
'CISCE' => 'Council for the Indian School Certificate Examinations',
'CHSEM' => 'Council of Higher Secondary Education Manipur',
'CHSEO' => 'Council of Higher Secondary Education Orissa',
'GBSHSE' => 'Goa Board of Secondary and Higher Secondary Education',
'GSHSEB' => 'Gujarat Secondary and Higher Secondary Education Board',
'HBSE' => 'Haryana Board of School Education',
'HPBSE' => 'Himachal Pradesh Board of School Education',
'JKSBSE' => 'Jammu and Kashmir State Board of School Education',
'JAC' => 'Jharkhand Academic Council',
'KBPUE' => 'Karnataka Board of Pre University Education',
'KBHSE' => 'Kerala Board of Higher Secondary Education',
'MSBSHSE' => 'Maharastra State Board of Secondary and Higher Secondary Education',
'MSBTE' => 'Maharastra State Board of Technical Education',
'MLBSE' => 'Meghalaya Board of School Education',
'MZBSE' => 'Mizoram Board of School Education',
'NBSE' => 'Nagaland Board of School Education',
'PSEB' => 'Punjab School Education Board',
'TNBHSE' => 'Tamil Nadu Board of Higher Secondary Education',
'TGIE' => 'Telangana Board of Intermediate Education',
'TBSE' => 'Tripura Board of Secondary Education',
'UBSE' => 'Uttarakhand Board of School Education',
'UPBSE' => 'Uttar Pradesh Board of School Education',
'VBS' => 'Visva Bharati Shantiniketan',
'WBCHSE' => 'West Bengal Council of Higher Secondary Education',
'IGCSE' => 'IGCSE Programme from University of Cambridge',
'NIOS' => 'National Institute of Open Schooling',
'BOTEUP' => 'Board of Technical Education, UP',
'SAICE' => 'Sri Aurobindo International Centre of Education',
'HSEB' => 'Higher Secondary Education Board Nepal',
'Others' => 'Others...'];
public $institutes = [ 'Acharya N.G. Ranga Agricultural University' => 'Acharya N.G. Ranga Agricultural University, Hyderabad',
'Acharya Nagarjuna University' => 'Acharya Nagarjuna University, Guntur',
'Adikavi Nannaya University' => 'Adikavi Nannaya University, Rajahmundry',
'Ahmedabad University' => 'Ahmedabad University, Ahmedabad',
'Alagappa University' => 'Alagappa University, Karaikudi',
'Aliah University' => 'Aliah University, Kolkata',
'Aligarh Muslim University' => 'Aligarh Muslim University, Aligarh',
'All India Institute of Medical Sciences Bhopal' => 'All India Institute of Medical Sciences Bhopal, Bhopal',
'All India Institute of Medical Sciences Bhubaneswar' => 'All India Institute of Medical Sciences Bhubaneswar, Bhubaneswar',
'All India Institute of Medical Sciences Delhi' => 'All India Institute of Medical Sciences Delhi, New Delhi',
'All India Institute of Medical Sciences Jodhpur' => 'All India Institute of Medical Sciences Jodhpur, Jodhpur',
'All India Institute of Medical Sciences Patna' => 'All India Institute of Medical Sciences Patna, Patna',
'All India Institute of Medical Sciences Raipur' => 'All India Institute of Medical Sciences Raipur, Raipur',
'All India Institute of Medical Sciences Rishikesh' => 'All India Institute of Medical Sciences Rishikesh, Rishikesh',
'Alliance University' => 'Alliance University, Bangalore',
'Amity University' => 'Amity University, Noida',
'IGNOU' => 'IGNOU, New Delhi',
'Amrita Vishwa Vidyapeetham' => 'Amrita Vishwa Vidyapeetham, Coimbatore',
'Anand Agricultural University' => 'Anand Agricultural University, Anand',
'Andhra University' => 'Andhra University, Visakhapatnam',
'Anna University' => 'Anna University, Chennai',
'Annamalai University' => 'Annamalai University, Chidambaram',
'AP Goyal Shimla University' => 'AP Goyal Shimla University, Shimla',
'Apeejay Stya University' => 'Apeejay Stya University, Gurgaon',
'Arni University' => 'Arni University, Kathgarh',
'Arunachal University of Studies' => 'Arunachal University of Studies, Namsai',
'Aryabhatta Knowledge University' => 'Aryabhatta Knowledge University, Patna',
'Ashoka University' => 'Ashoka University, Sonipat',
'Assam Agricultural University' => 'Assam Agricultural University, Jorhat',
'Assam Don Bosco University' => 'Assam Don Bosco University, Guwahati',
'Assam Down Town University' => 'Assam Down Town University, Guwahati',
'Assam Rajiv Gandhi University of Cooperative Management' => 'Assam Rajiv Gandhi University of Cooperative Management, Sivasagar',
'Assam Science and Technology University' => 'Assam Science and Technology University, Guwahati',
'Assam Womens University' => 'Assam Womens University, Jorhat',
'Atal Bihari Vajpayee Hindi Vishwavidyalaya' => 'Atal Bihari Vajpayee Hindi Vishwavidyalaya, Bhopal',
'AURO University' => 'AURO University, Surat',
'Avinashilingam University' => 'Avinashilingam University, Coimbatore',
'Awadhesh Pratap Singh University' => 'Awadhesh Pratap Singh University, Rewa',
'Ayush and Health Sciences University of Chhattisgarh' => 'Ayush and Health Sciences University of Chhattisgarh, Raipur',
'Azim Premji University' => 'Azim Premji University, Bangalore',
'B.R. Ambedkar Bihar University' => 'B.R. Ambedkar Bihar University, Muzaffarpur',
'B.S. Abdur Rahman University' => 'B.S. Abdur Rahman University, Chennai',
'Baba Farid University of Health Sciences' => 'Baba Farid University of Health Sciences, Faridkot',
'Baba Ghulam Shah Badhshah University' => 'Baba Ghulam Shah Badhshah University, Rajouri',
'Baba Mast Nath University' => 'Baba Mast Nath University, Rohtak',
'Babasaheb Bhimrao Ambedkar University' => 'Babasaheb Bhimrao Ambedkar University, Lucknow',
'Babu Banarasi Das University' => 'Babu Banarasi Das University, Lucknow',
'Baddi University of Emerging Sciences and Technologies' => 'Baddi University of Emerging Sciences and Technologies, Baddi',
'BAHRA University' => 'BAHRA University, Waknaghat',
'Banaras Hindu University' => 'Banaras Hindu University, Varanasi',
'Banasthali Vidyapith' => 'Banasthali Vidyapith, Banasthali',
'Banda University of Agriculture and Technology, Banda' => 'Banda University of Agriculture and Technology, Banda, Banda',
'Bangalore University' => 'Bangalore University, Bangalore',
'Bankura University' => 'Bankura University, Bankura',
'Barkatullah University' => 'Barkatullah University, Bhopal',
'Bastar Vishwavidyalaya' => 'Bastar Vishwavidyalaya, Bastar',
'Berhampur University' => 'Berhampur University, Berhampur',
'Bhagat Phool Singh Mahila Vishwavidyalaya' => 'Bhagat Phool Singh Mahila Vishwavidyalaya, Khanpur Kalan',
'Bhagwant University' => 'Bhagwant University, Ajmer',
'Bhakta Kavi Narsinh Mehta University' => 'Bhakta Kavi Narsinh Mehta University, Junagadh',
'Bharat Ratna Dr. B.R. Ambedkar University' => 'Bharat Ratna Dr. B.R. Ambedkar University, New Delhi',
'Bharath Institute of Higher Education and Research' => 'Bharath Institute of Higher Education and Research, Chennai',
'Bharathiar University' => 'Bharathiar University, Coimbatore',
'Bharathidasan University' => 'Bharathidasan University, Tiruchirappalli',
'Bharati Vidyapeeth University' => 'Bharati Vidyapeeth University, Pune',
'Bhatkhande Music Institute' => 'Bhatkhande Music Institute, Lucknow',
'Bhupendra Narayan Mandal University' => 'Bhupendra Narayan Mandal University, Madhepura',
'Bidhan Chandra Krishi Vishwavidyalaya' => 'Bidhan Chandra Krishi Vishwavidyalaya, Nadia',
'Bihar Agricultural University' => 'Bihar Agricultural University, Bhagalpur',
'Biju Patnaik University of Technology' => 'Biju Patnaik University of Technology, Rourkela',
'BILASPUR VISHWAVIDYALAYA' => 'BILASPUR VISHWAVIDYALAYA, Bilaspur',
'Birla Institute of Technology' => 'Birla Institute of Technology, Ranchi',
'Birla Institute of Technology and Science' => 'Birla Institute of Technology and Science, Pilani',
'Birsa Agricultural University' => 'Birsa Agricultural University, Ranchi',
'BLDE University' => 'BLDE University, Bijapur',
'BML Munjal University' => 'BML Munjal University, Gurgaon',
'Bodoland University' => 'Bodoland University, Kokrajhar',
'Bundelkhand University' => 'Bundelkhand University, Jhansi',
'C. U. Shah University' => 'C. U. Shah University, Wadhwan',
'Calorx Teachers University' => 'Calorx Teachers University, Ahmedabad',
'Calorx Teachers\' University' => 'Calorx Teachers\' University, Ahmedabad',
'Career Point University' => 'Career Point University, Hamirpur',
'Central Agricultural University' => 'Central Agricultural University, Imphal',
'Central Institute of Fisheries Education' => 'Central Institute of Fisheries Education, Mumbai',
'Central University of Bihar' => 'Central University of Bihar, Patna',
'Central University of Gujarat' => 'Central University of Gujarat, Gandhinagar',
'Central University of Haryana' => 'Central University of Haryana, Mahendragarh',
'Central University of Himachal Pradesh' => 'Central University of Himachal Pradesh, Kangra',
'Central University of Jammu' => 'Central University of Jammu, Jammu',
'Central University of Jharkhand' => 'Central University of Jharkhand, Ranchi',
'Central University of Karnataka' => 'Central University of Karnataka, Gulbarga',
'Central University of Kashmir' => 'Central University of Kashmir, Srinagar',
'Central University of Kerala' => 'Central University of Kerala, Kasaragod',
'Central University of Orissa' => 'Central University of Orissa, Koraput',
'Central University of Punjab' => 'Central University of Punjab, Bathinda',
'Central University of Rajasthan' => 'Central University of Rajasthan, Ajmer',
'Central University of Tamil Nadu' => 'Central University of Tamil Nadu, Thiruvarur',
'Central University of Tibetan Studies' => 'Central University of Tibetan Studies, Varanasi',
'Centurion University of Technology and Management' => 'Centurion University of Technology and Management, Bhubaneswar',
'CEPT University' => 'CEPT University, Ahmedabad',
'Ch. Bansi Lal University' => 'Ch. Bansi Lal University, Bhiwani',
'Chanakya National Law University' => 'Chanakya National Law University, Patna',
'Chandigarh University' => 'Chandigarh University, Mohali',
'Chandra Shekhar Azad University of Agriculture and Technology' => 'Chandra Shekhar Azad University of Agriculture and Technology, Kanpur',
'Charotar University of Science and Technology' => 'Charotar University of Science and Technology, Anand',
'Chaudhary Charan Singh Haryana Agricultural University' => 'Chaudhary Charan Singh Haryana Agricultural University, Hisar',
'Chaudhary Charan Singh University' => 'Chaudhary Charan Singh University, Meerut',
'Chaudhary Devi Lal University' => 'Chaudhary Devi Lal University, Sirsa',
'Chaudhary Ranbir Singh University' => 'Chaudhary Ranbir Singh University, Jind',
'Chennai Mathematical Institute' => 'Chennai Mathematical Institute, Chennai',
'Chhatrapati Shahu Ji Maharaj University' => 'Chhatrapati Shahu Ji Maharaj University, Kalyanpur',
'Chhattisgarh Kamdhenu Vishwavidyalaya' => 'Chhattisgarh Kamdhenu Vishwavidyalaya, Raipur',
'Chhattisgarh Swami Vivekananda Technical University' => 'Chhattisgarh Swami Vivekananda Technical University, Bhilai',
'Childrens University' => 'Childrens University, Gandhinagar',
'Chitkara University' => 'Chitkara University, Punjab',
'Christ University' => 'Christ University, Bangalore',
'CMR University' => 'CMR University, Bangalore',
'Cochin University of Science and Technology' => 'Cochin University of Science and Technology, Kochi',
'Cooch Behar Panchanan Barma University' => 'Cooch Behar Panchanan Barma University, Cooch Behar',
'Cotton College State University' => 'Cotton College State University, Guwahati',
'CSK Himachal Pradesh Krishi Vishvavidyalaya' => 'CSK Himachal Pradesh Krishi Vishvavidyalaya, Palampur',
'Dakshina Bharat Hindi Prachar Sabha' => 'Dakshina Bharat Hindi Prachar Sabha, Chennai',
'Damodaram Sanjivayya National Law University' => 'Damodaram Sanjivayya National Law University, Visakhapatnam',
'Datta Meghe Institute of Medical Sciences' => 'Datta Meghe Institute of Medical Sciences, Nagpur',
'Davangere University' => 'Davangere University, Davangere',
'Dayalbagh Educational Institute' => 'Dayalbagh Educational Institute, Agra',
'Deccan College Post-Graduate and Research Institute' => 'Deccan College Post-Graduate and Research Institute, Pune',
'Deen Dayal Upadhyay Gorakhpur University' => 'Deen Dayal Upadhyay Gorakhpur University, Gorakhpur',
'Deenbandhu Chhotu Ram University of Science and Technology' => 'Deenbandhu Chhotu Ram University of Science and Technology, Murthal',
'Delhi Technological University' => 'Delhi Technological University, New Delhi',
'Desh Bhagat University' => 'Desh Bhagat University, Mandi Gobindgarh',
'Dev Sanskriti Vishwavidyalaya' => 'Dev Sanskriti Vishwavidyalaya, Shantikunj',
'Devi Ahilya Vishwavidyalaya' => 'Devi Ahilya Vishwavidyalaya, Indore',
'Dharmsinh Desai University' => 'Dharmsinh Desai University, Nadiad',
'Dhirubhai Ambani Institute of Information and Communication Technology' => 'Dhirubhai Ambani Institute of Information and Communication Technology, Gandhinagar',
'Diamond Harbour Womens University' => 'Diamond Harbour Womens University, Sarisha',
'Dibrugarh University' => 'Dibrugarh University, Dibrugarh',
'DIT University' => 'DIT University, Dehradun',
'Doon University' => 'Doon University, Dehradun',
'Dr K.N. Modi University' => 'Dr K.N. Modi University, Newai',
'Dr. A.P.J. Abdul Kalam Technical University' => 'Dr. A.P.J. Abdul Kalam Technical University, Lucknow',
'Dr. B R Ambedkar National Institute of Technology Jalandhar' => 'Dr. B R Ambedkar National Institute of Technology Jalandhar, Jalandhar',
'Dr. B.R. Ambedkar University' => 'Dr. B.R. Ambedkar University, Etcherla',
'Dr. B.R. Ambedkar University' => 'Dr. B.R. Ambedkar University, Agra',
'Dr. Babasaheb Ambedkar Marathwada University' => 'Dr. Babasaheb Ambedkar Marathwada University, Aurangabad',
'Dr. Babasaheb Ambedkar Technological University' => 'Dr. Babasaheb Ambedkar Technological University, Lonere',
'Dr. Balasaheb Sawant Konkan Krishi Vidyapeeth' => 'Dr. Balasaheb Sawant Konkan Krishi Vidyapeeth, Dapoli',
'Dr. C.V. Raman University' => 'Dr. C.V. Raman University, Bilaspur',
'Dr. D.Y. Patil Vidyapeeth' => 'Dr. D.Y. Patil Vidyapeeth, Pune',
'Dr. Hari Singh Gour University' => 'Dr. Hari Singh Gour University, Sagar',
'Dr. M.G.R. Educational and Research Institute' => 'Dr. M.G.R. Educational and Research Institute, Chennai',
'Dr. N.T.R. University of Health Sciences' => 'Dr. N.T.R. University of Health Sciences, Vijayawada',
'Dr. Panjabrao Deshmukh Krishi Vidyapeeth' => 'Dr. Panjabrao Deshmukh Krishi Vidyapeeth, Akola',
'Dr. Ram Manohar Lohia Avadh University' => 'Dr. Ram Manohar Lohia Avadh University, Faizabad',
'Dr. Ram Manohar Lohiya National Law University' => 'Dr. Ram Manohar Lohiya National Law University, Lucknow',
'Dr. Sarvepalli Radhakrishnan Rajasthan Ayurved University' => 'Dr. Sarvepalli Radhakrishnan Rajasthan Ayurved University, Jodhpur',
'Dr. Shakuntala Misra Rehabilitation University' => 'Dr. Shakuntala Misra Rehabilitation University, Lucknow',
'Dr. Y.S. Parmar University of Horticulture and Forestry' => 'Dr. Y.S. Parmar University of Horticulture and Forestry, Nauni',
'Dr.Y.S.R. Horticultural University' => 'Dr.Y.S.R. Horticultural University, Tadepalligudem',
'Dravidian University' => 'Dravidian University, Kuppam',
'EIILM University' => 'EIILM University, Jorethang',
'Eternal University' => 'Eternal University, Baru Sahib',
'Fakir Mohan University' => 'Fakir Mohan University, Balasore',
'Galgotias University' => 'Galgotias University, Noida',
'Gandhi Institute of Technology and Management' => 'Gandhi Institute of Technology and Management, Visakhapatnam',
'Gandhigram Rural University' => 'Gandhigram Rural University, Gandhigram',
'Ganpat University' => 'Ganpat University, Mehsana',
'Gauhati University' => 'Gauhati University, Guwahati',
'Gautam Buddha University' => 'Gautam Buddha University, Greater Noida',
'Geetanjali University' => 'Geetanjali University, Udaipur',
'GLA University' => 'GLA University, Chaumuhan',
'Glocal University' => 'Glocal University, Saharanpur',
'GLS University' => 'GLS University, Ahmedabad',
'GNA University' => 'GNA University, Phagwara',
'Goa University' => 'Goa University, Taleigao',
'Gokhale Institute of Politics and Economics' => 'Gokhale Institute of Politics and Economics, Pune',
'Gondwana University' => 'Gondwana University, Gadchiroli',
'Govind Ballabh Pant University of Agriculture and Technology' => 'Govind Ballabh Pant University of Agriculture and Technology, Pantnagar',
'Graphic Era Hill University' => 'Graphic Era Hill University, Clement Town',
'Graphic Era University' => 'Graphic Era University, Dehradun',
'GSFC University' => 'GSFC University, Vadodara',
'Gujarat Ayurved University' => 'Gujarat Ayurved University, Jamnagar',
'Gujarat Forensic Sciences University' => 'Gujarat Forensic Sciences University, Gandhinagar',
'Gujarat National Law University' => 'Gujarat National Law University, Gandhinagar',
'Gujarat Technological University' => 'Gujarat Technological University, Ahmedabad',
'Gujarat University' => 'Gujarat University, Ahmedabad',
'Gujarat University of Transplantation Sciences' => 'Gujarat University of Transplantation Sciences, Ahmedabad',
'Gujarat Vidyapith' => 'Gujarat Vidyapith, Ahmedabad',
'Gulbarga University' => 'Gulbarga University, Gulbarga',
'Guru Angad Dev Veterinary and Animal Sciences University' => 'Guru Angad Dev Veterinary and Animal Sciences University, Ludhiana',
'Guru Ghasidas Vishwavidyalaya' => 'Guru Ghasidas Vishwavidyalaya, Bilaspur',
'Guru Gobind Singh Indraprastha University' => 'Guru Gobind Singh Indraprastha University, New Delhi',
'Guru Jambheshwar University of Science and Technology' => 'Guru Jambheshwar University of Science and Technology, Hisar',
'Guru Kashi University' => 'Guru Kashi University, Talwandi Sabo',
'Guru Nanak Dev University' => 'Guru Nanak Dev University, Amritsar',
'Guru Ravidas Ayurved University' => 'Guru Ravidas Ayurved University, Hoshiarpur',
'Gurukul Kangri Vishwavidyalaya' => 'Gurukul Kangri Vishwavidyalaya, Haridwar',
'Haridev Joshi University of Journalism and Mass Communication' => 'Haridev Joshi University of Journalism and Mass Communication, Jaipur',
'Hemchandracharya North Gujarat University' => 'Hemchandracharya North Gujarat University, Patan',
'Hemwati Nandan Bahuguna Garhwal University' => 'Hemwati Nandan Bahuguna Garhwal University, Srinagar',
'Hemwati Nandan Bahuguna Medical University' => 'Hemwati Nandan Bahuguna Medical University, Dehradun',
'Hidayatullah National Law University' => 'Hidayatullah National Law University, Raipur',
'Himachal Pradesh Technical University' => 'Himachal Pradesh Technical University, Hamirpur',
'Himachal Pradesh University' => 'Himachal Pradesh University, Shimla',
'Himgiri ZEE University' => 'Himgiri ZEE University, Dehradun',
'Hindustan Institute of Technology and Science' => 'Hindustan Institute of Technology and Science, Chennai',
'Homi Bhabha National Institute' => 'Homi Bhabha National Institute, Mumbai',
'ICFAI University, Dehradun' => 'ICFAI University, Dehradun, Dehradun',
'ICFAI University, Himachal Pradesh' => 'ICFAI University, Himachal Pradesh, Baddi',
'ICFAI University, Jharkhand' => 'ICFAI University, Jharkhand, Ranchi',
'ICFAI University, Meghalaya' => 'ICFAI University, Meghalaya, Tura',
'ICFAI University, Mizoram' => 'ICFAI University, Mizoram, Aizawl',
'ICFAI University, Nagaland' => 'ICFAI University, Nagaland, Dimapur',
'ICFAI University, Raipur' => 'ICFAI University, Raipur, Durg',
'ICFAI University, Sikkim' => 'ICFAI University, Sikkim, Gangtok',
'ICFAI University, Tripura' => 'ICFAI University, Tripura, Agartala',
'IET Lucknow' => 'IET Lucknow',
'IEC University' => 'IEC University, Kalujhanda',
'IFHE Hyderabad' => 'IFHE Hyderabad, Hyderabad',
'IFTM University' => 'IFTM University, Moradabad',
'IMS Unison University' => 'IMS Unison University, Dehradun',
'Indian Agricultural Research Institute' => 'Indian Agricultural Research Institute, New Delhi',
'Indian Institute of Engineering Science and Technology, Shibpur' => 'Indian Institute of Engineering Science and Technology, Shibpur, Howrah',
'Indian Institute of Foreign Trade' => 'Indian Institute of Foreign Trade, New Delhi',
'Indian Institute of Information Technology Allahabad' => 'Indian Institute of Information Technology Allahabad, Allahabad',
'Indian Institute of Information Technology and Management Gwalior' => 'Indian Institute of Information Technology and Management Gwalior, Gwalior',
'Indian Institute of Information Technology, Design and Manufacturing' => 'Indian Institute of Information Technology, Design and Manufacturing, Chennai',
'Indian Institute of Information Technology, Guwahati' => 'Indian Institute of Information Technology, Guwahati, Guwahati',
'Indian Institute of Information Technology, Kalyani' => 'Indian Institute of Information Technology, Kalyani, Kalyani',
'Indian Institute of Information Technology, Kottayam' => 'Indian Institute of Information Technology, Kottayam, Kottayam',
'Indian Institute of Information Technology, Lucknow' => 'Indian Institute of Information Technology, Lucknow, Allahabad',
'Indian Institute of Information Technology, Manipur' => 'Indian Institute of Information Technology, Manipur, Imphal',
'Indian Institute of Information Technology, Sri City' => 'Indian Institute of Information Technology, Sri City, Sri City',
'Indian Institute of Information Technology, Una' => 'Indian Institute of Information Technology, Una, Una',
'Indian Institute of Information Technology, Vadodara' => 'Indian Institute of Information Technology, Vadodara, Gandhinagar',
'Indian Institute of Science' => 'Indian Institute of Science, Bangalore',
'Indian Institute of Science Education and Research, Bhopal' => 'Indian Institute of Science Education and Research, Bhopal, Bhopal',
'Indian Institute of Science Education and Research, Kolkata' => 'Indian Institute of Science Education and Research, Kolkata, Mohanpur',
'Indian Institute of Science Education and Research, Mohali' => 'Indian Institute of Science Education and Research, Mohali, Mohali',
'Indian Institute of Science Education and Research, Pune' => 'Indian Institute of Science Education and Research, Pune, Pune',
'Indian Institute of Science Education and Research, Thiruvananthapuram' => 'Indian Institute of Science Education and Research, Thiruvananthapuram, Thiruvananthapuram',
'Indian Institute of Space Science and Technology' => 'Indian Institute of Space Science and Technology, Thiruvananthapuram',
'Indian Institute of Teacher Education' => 'Indian Institute of Teacher Education, Gandhinagar',
'Indian Institute of Technology Bhubaneswar' => 'Indian Institute of Technology Bhubaneswar, Bhubaneswar',
'Indian Institute of Technology Bombay' => 'Indian Institute of Technology Bombay, Mumbai',
'Indian Institute of Technology Delhi' => 'Indian Institute of Technology Delhi, New Delhi',
'Indian Institute of Technology Gandhinagar' => 'Indian Institute of Technology Gandhinagar, Chandkheda',
'Indian Institute of Technology Guwahati' => 'Indian Institute of Technology Guwahati, Guwahati',
'Indian Institute of Technology Hyderabad' => 'Indian Institute of Technology Hyderabad, Eddumailaram',
'Indian Institute of Technology Indore' => 'Indian Institute of Technology Indore, Indore',
'Indian Institute of Technology Jodhpur' => 'Indian Institute of Technology Jodhpur, Jodhpur',
'Indian Institute of Technology Kanpur' => 'Indian Institute of Technology Kanpur, Kanpur',
'Indian Institute of Technology Kharagpur' => 'Indian Institute of Technology Kharagpur, Kharagpur',
'Indian Institute of Technology Madras' => 'Indian Institute of Technology Madras, Chennai',
'Indian Institute of Technology Mandi' => 'Indian Institute of Technology Mandi, Mandi',
'Indian Institute of Technology Patna' => 'Indian Institute of Technology Patna, Patna',
'Indian Institute of Technology Roorkee' => 'Indian Institute of Technology Roorkee, Roorkee',
'Indian Institute of Technology Ropar' => 'Indian Institute of Technology Ropar, Rupnagar',
'Indian Institute of Technology, BHU' => 'Indian Institute of Technology, BHU, Varanasi',
'Indian Maritime University' => 'Indian Maritime University, Chennai',
'Indian School of Mines' => 'Indian School of Mines, Dhanbad',
'Indian Statistical Institute' => 'Indian Statistical Institute, Kolkata',
'Indian Veterinary Research Institute' => 'Indian Veterinary Research Institute, Bareilly',
'Indira Gandhi Delhi Technical University for Women' => 'Indira Gandhi Delhi Technical University for Women, New Delhi',
'Indira Gandhi Institute of Development Research' => 'Indira Gandhi Institute of Development Research, Mumbai',
'Indira Gandhi Institute of Medical Sciences, Sheikhpura' => 'Indira Gandhi Institute of Medical Sciences, Sheikhpura, Patna',
'Indira Gandhi Krishi Vishwavidyalaya' => 'Indira Gandhi Krishi Vishwavidyalaya, Raipur',
'Indira Gandhi National Tribal University' => 'Indira Gandhi National Tribal University, Amarkantak',
'Indira Gandhi Technological And Medical Sciences University' => 'Indira Gandhi Technological And Medical Sciences University, Ziro',
'Indira Gandhi University, Meerpur' => 'Indira Gandhi University, Meerpur, Rewari',
'Indira Kala Sangit Vishwavidyalaya' => 'Indira Kala Sangit Vishwavidyalaya, Khairagarh',
'Indraprastha Institute of Information Technology' => 'Indraprastha Institute of Information Technology, New Delhi',
'Indus International University' => 'Indus International University, Bathu',
'Indus University' => 'Indus University, Ahmedabad',
'Institute of Advanced Research' => 'Institute of Advanced Research, Gandhinagar',
'Institute of Advanced Studies in Education' => 'Institute of Advanced Studies in Education, Sardarshahr',
'Institute of Chemical Technology' => 'Institute of Chemical Technology, Mumbai',
'Institute of Infrastructure, Technology, Research and Management' => 'Institute of Infrastructure, Technology, Research and Management, Ahmedabad',
'Integral University' => 'Integral University, Lucknow',
'International Institute of Information Technology, Bhubaneswar','International Institute of Information Technology, Bhubaneswar',
'International Institute for Population Sciences' => 'International Institute for Population Sciences, Mumbai',
'International Institute of Information Technology Bangalore' => 'International Institute of Information Technology Bangalore, Bangalore',
'International Institute of Information Technology, Hyderabad' => 'International Institute of Information Technology, Hyderabad, Hyderabad',
'Invertis University' => 'Invertis University, Bareilly',
'Islamic University of Science and Technology' => 'Islamic University of Science and Technology, Pulwama',
'ITM University Gwalior' => 'ITM University Gwalior, Gwalior',
'ITM University Raipur' => 'ITM University Raipur, Raipur',
'Jadavpur University' => 'Jadavpur University, Kolkata',
'Jagadguru Ramanandacharya Rajasthan Sanskrit University' => 'Jagadguru Ramanandacharya Rajasthan Sanskrit University, Jaipur',
'Jagadguru Rambhadracharya Handicapped University' => 'Jagadguru Rambhadracharya Handicapped University, Chitrakoot',
'Jagadguru Sri Shivarathreeswara University' => 'Jagadguru Sri Shivarathreeswara University, Mysore',
'Jagan Nath University' => 'Jagan Nath University, Jhajjar',
'Jagan Nath University' => 'Jagan Nath University, Jaipur',
'Jagran Lakecity University' => 'Jagran Lakecity University, Bhopal',
'Jai Narain Vyas University' => 'Jai Narain Vyas University, Jodhpur',
'Jai Prakash Vishwavidyalaya' => 'Jai Prakash Vishwavidyalaya, Chapra',
'Jain University' => 'Jain University, Bangalore',
'Jain Vishva Bharati Institute' => 'Jain Vishva Bharati Institute, Ladnun',
'Jaipur National University' => 'Jaipur National University, Jaipur',
'Jamia Hamdard' => 'Jamia Hamdard, New Delhi',
'Jamia Millia Islamia' => 'Jamia Millia Islamia, New Delhi',
'Janardan Rai Nagar Rajasthan Vidhyapeeth University' => 'Janardan Rai Nagar Rajasthan Vidhyapeeth University, Udaipur',
'Jawaharlal Institute of Postgraduate Medical Education and Research' => 'Jawaharlal Institute of Postgraduate Medical Education and Research, Puducherry',
'Jawaharlal Nehru Architecture and Fine Arts University' => 'Jawaharlal Nehru Architecture and Fine Arts University, Hyderabad',
'Jawaharlal Nehru Centre for Advanced Scientific Research' => 'Jawaharlal Nehru Centre for Advanced Scientific Research, Bangalore',
'Jawaharlal Nehru Krishi Vishwavidyalaya' => 'Jawaharlal Nehru Krishi Vishwavidyalaya, Jabalpur',
'Jawaharlal Nehru Technological University' => 'Jawaharlal Nehru Technological University, Hyderabad',
'Jawaharlal Nehru Technological University, Anantapur' => 'Jawaharlal Nehru Technological University, Anantapur, Anantapur',
'Jawaharlal Nehru Technological University, Kakinada' => 'Jawaharlal Nehru Technological University, Kakinada, Kakinada',
'Jawaharlal Nehru University' => 'Jawaharlal Nehru University, New Delhi',
'Jayoti Vidyapeeth Womens University' => 'Jayoti Vidyapeeth Womens University, Jaipur',
'Jaypee Institute of Information Technology' => 'Jaypee Institute of Information Technology, Noida',
'Jaypee University of Engineering and Technology' => 'Jaypee University of Engineering and Technology, Raghogarh',
'Jaypee University of Information Technology' => 'Jaypee University of Information Technology, Waknaghat',
'Jaypee University, Anoopshahr' => 'Jaypee University, Anoopshahr, Anupshahr',
'JECRC University' => 'JECRC University, Jaipur',
'Jharkhand Rai University' => 'Jharkhand Rai University, Ranchi',
'Jiwaji University' => 'Jiwaji University, Gwalior',
'JK Lakshmipat University' => 'JK Lakshmipat University, Jaipur',
'Jodhpur National University' => 'Jodhpur National University, Jodhpur',
'JS University' => 'JS University, Shikohabad',
'Junagadh Agricultural University' => 'Junagadh Agricultural University, Junagadh',
'K L University' => 'K L University, Vaddeswaram',
'K.R. Mangalam University' => 'K.R. Mangalam University, Gurgaon',
'Kadi Sarva VishwaVidyalaya' => 'Kadi Sarva VishwaVidyalaya, Gandhinagar',
'Kakatiya University' => 'Kakatiya University, Warangal',
'Kalasalingam University' => 'Kalasalingam University, Krishnankoil',
'Kalinga University' => 'Kalinga University, Raipur',
'Kamdhenu University' => 'Kamdhenu University, Gandhinagar',
'Kameshwar Singh Darbhanga Sanskrit University' => 'Kameshwar Singh Darbhanga Sanskrit University, Darbhanga',
'Kannada University' => 'Kannada University, Vidyaranya',
'Kannur University' => 'Kannur University, Kannur',
'Karnatak University' => 'Karnatak University, Dharwad',
'Karnataka Janapada Vishwavidyalaya' => 'Karnataka Janapada Vishwavidyalaya, Shiggaon',
'Karnataka Sanskrit University' => 'Karnataka Sanskrit University, Bangalore',
'Karnataka State Dr. Gangubai Hangal Music And Performing Arts University' => 'Karnataka State Dr. Gangubai Hangal Music And Performing Arts University, Mysore',
'Karnataka State Law University' => 'Karnataka State Law University, Hubli',
'Karnataka State Womens University' => 'Karnataka State Womens University, Bijapur',
'Karnataka Veterinary, Animal and Fisheries Sciences University' => 'Karnataka Veterinary, Animal and Fisheries Sciences University, Bidar',
'Karpagam Academy of Higher Education' => 'Karpagam Academy of Higher Education, Coimbatore',
'Karunya University' => 'Karunya University, Coimbatore',
'Kavi Kulguru Kalidas Sanskrit Vishwavidyalaya' => 'Kavi Kulguru Kalidas Sanskrit Vishwavidyalaya, Ramtek',
'Kazi Nazrul University' => 'Kazi Nazrul University, Asansol',
'Kaziranga University' => 'Kaziranga University, Jorhat',
'Kerala Agricultural University' => 'Kerala Agricultural University, Thrissur',
'Kerala Kalamandalam' => 'Kerala Kalamandalam, Cheruthuruthi',
'Kerala University of Fisheries and Ocean Studies' => 'Kerala University of Fisheries and Ocean Studies, Kochi',
'Kerala University of Health Sciences' => 'Kerala University of Health Sciences, Thrissur',
'Kerala Veterinary and Animal Sciences University' => 'Kerala Veterinary and Animal Sciences University, Pookode',
'Khwaja Moinuddin Chishti Urdu, Arabi-Farsi University' => 'Khwaja Moinuddin Chishti Urdu, Arabi-Farsi University, Lucknow',
'KIIT University' => 'KIIT University, Bhubaneswar',
'King Georges Medical University' => 'King Georges Medical University, Lucknow',
'KLE University' => 'KLE University, Belgaum',
'Kolhan University' => 'Kolhan University, Chaibasa',
'Krantiguru Shyamji Krishna Verma Kachchh University' => 'Krantiguru Shyamji Krishna Verma Kachchh University, Bhuj',
'Krishna Institute of Medical Sciences' => 'Krishna Institute of Medical Sciences, Karad',
'Krishna University' => 'Krishna University, Machilipatnam',
'Kumar Bhaskar Varma Sanskrit And Ancient Studies University' => 'Kumar Bhaskar Varma Sanskrit And Ancient Studies University, Nalbari',
'Kumaun University' => 'Kumaun University, Nainital',
'Kurukshetra University' => 'Kurukshetra University, Kurukshetra',
'Kushabhau Thakre Patrakarita Avam Jansanchar University' => 'Kushabhau Thakre Patrakarita Avam Jansanchar University, Raipur',
'Kuvempu University' => 'Kuvempu University, Shimoga',
'Lakshmibai National Institute of Physical Education' => 'Lakshmibai National Institute of Physical Education, Gwalior',
'Lakulish Yoga University' => 'Lakulish Yoga University, Ahmedabad',
'Lala Lajpat Rai University of Veterinary and Animal Sciences' => 'Lala Lajpat Rai University of Veterinary and Animal Sciences, Hisar',
'Lalit Narayan Mithila University' => 'Lalit Narayan Mithila University, Darbhanga',
'Lingaya University' => 'Lingayas University, Faridabad',
'Lovely Professional University' => 'Lovely Professional University, Phagwara',
'M. S. Ramaiah University of Applied Sciences' => 'M. S. Ramaiah University of Applied Sciences, Bangalore',
'Madan Mohan Malaviya University of Technology' => 'Madan Mohan Malaviya University of Technology, Gorakhpur',
'Madhav University' => 'Madhav University, Pindwara',
'Madhya Pradesh Pashu-Chikitsa Vigyan Vishwavidyalaya' => 'Madhya Pradesh Pashu-Chikitsa Vigyan Vishwavidyalaya, Jabalpur',
'Madurai Kamaraj University' => 'Madurai Kamaraj University, Madurai',
'Magadh University' => 'Magadh University, Bodh Gaya',
'Mahapurusha Srimanta Sankaradeva Viswavidyalaya' => 'Mahapurusha Srimanta Sankaradeva Viswavidyalaya, Nagaon',
'Maharaja Agrasen University' => 'Maharaja Agrasen University, Baddi',
'Maharaja Chhatrasal Bundelkhand University' => 'Maharaja Chhatrasal Bundelkhand University, Chhatarpur',
'Maharaja Ganga Singh University' => 'Maharaja Ganga Singh University, Bikaner',
'Maharaja Krishnakumarsinhji Bhavnagar University' => 'Maharaja Krishnakumarsinhji Bhavnagar University, Bhavnagar',
'Maharaja Ranjit Singh Punjab Technical University' => 'Maharaja Ranjit Singh Punjab Technical University, Bathinda',
'Maharaja Surajmal Brij University' => 'Maharaja Surajmal Brij University, Bharatpur',
'Maharana Pratap University of Agriculture and Technology' => 'Maharana Pratap University of Agriculture and Technology, Udaipur',
'Maharashtra Animal and Fishery Sciences University' => 'Maharashtra Animal and Fishery Sciences University, Nagpur',
'Maharashtra University of Health Sciences' => 'Maharashtra University of Health Sciences, Nashik',
'Maharishi Dayanand University' => 'Maharishi Dayanand University, Rohtak',
'Maharishi Mahesh Yogi Vedic Vishwavidyalaya' => 'Maharishi Mahesh Yogi Vedic Vishwavidyalaya, Katni',
'Maharishi Markandeshwar University' => 'Maharishi Markandeshwar University, Ambala',
'Maharishi Markandeshwar University' => 'Maharishi Markandeshwar University, Ambala',
'Maharishi Markandeshwar University, Solan' => 'Maharishi Markandeshwar University, Solan, Solan',
'Maharishi University of Management and Technology' => 'Maharishi University of Management and Technology, Bilaspur',
'Maharshi Dayanand Saraswati University' => 'Maharshi Dayanand Saraswati University, Ajmer',
'Maharshi Panini Sanskrit Vishwavidyalaya' => 'Maharshi Panini Sanskrit Vishwavidyalaya, Ujjain',
'Mahatma Gandhi Antarrashtriya Hindi Vishwavidyalaya' => 'Mahatma Gandhi Antarrashtriya Hindi Vishwavidyalaya, Wardha',
'Mahatma Gandhi Central University, Motihari' => 'Mahatma Gandhi Central University, Motihari, Motihari',
'Mahatma Gandhi Chitrakoot Gramoday Vishwavidyalaya' => 'Mahatma Gandhi Chitrakoot Gramoday Vishwavidyalaya, Chitrakoot',
'Mahatma Gandhi Kashi Vidyapeeth' => 'Mahatma Gandhi Kashi Vidyapeeth, Varanasi',
'Mahatma Gandhi University' => 'Mahatma Gandhi University, Nalgonda',
'Mahatma Gandhi University' => 'Mahatma Gandhi University, Kottayam',
'Mahatma Gandhi University' => 'Mahatma Gandhi University, Khanapara',
'Mahatma Gandhi University of Medical Sciences and Technology' => 'Mahatma Gandhi University of Medical Sciences and Technology, Jaipur',
'Mahatma Jyoti Rao Phoole University' => 'Mahatma Jyoti Rao Phoole University, Jaipur',
'Mahatma Jyotiba Phule Rohilkhand University' => 'Mahatma Jyotiba Phule Rohilkhand University, Bareilly',
'Mahatma Phule Krishi Vidyapeeth' => 'Mahatma Phule Krishi Vidyapeeth, Rahuri',
'Makhanlal Chaturvedi Rashtriya Patrakarita Vishwavidyalaya' => 'Makhanlal Chaturvedi Rashtriya Patrakarita Vishwavidyalaya, Bhopal',
'Malaviya National Institute of Technology, Jaipur' => 'Malaviya National Institute of Technology, Jaipur, Jaipur',
'Manav Bharti University' => 'Manav Bharti University, Solan',
'Manav Rachna International University' => 'Manav Rachna International University, Faridabad',
'Manav Rachna University' => 'Manav Rachna University, Faridabad',
'Mangalayatan University' => 'Mangalayatan University, Aligarh',
'Mangalore University' => 'Mangalore University, Mangalore',
'Manipal University' => 'Manipal University, Manipal',
'Manipur University' => 'Manipur University, Imphal',
'Manonmaniam Sundaranar University' => 'Manonmaniam Sundaranar University, Tirunelveli',
'Martin Luther Christian University' => 'Martin Luther Christian University, Shillong',
'MATS University' => 'MATS University, Aarang',
'Maulana Abul Kalam Azad University of Technology' => 'Maulana Abul Kalam Azad University of Technology, Kolkata',
'Maulana Azad National Institute of Technology' => 'Maulana Azad National Institute of Technology, Bhopal',
'Maulana Azad National Urdu University' => 'Maulana Azad National Urdu University, Jodhpur',
'Maulana Azad National Urdu University' => 'Maulana Azad National Urdu University, Hyderabad',
'Maulana Mazharul Haque Arabic and Persian University' => 'Maulana Mazharul Haque Arabic and Persian University, Patna',
'Meenakshi Academy of Higher Education and Research' => 'Meenakshi Academy of Higher Education and Research, Chennai',
'Mewar University' => 'Mewar University, Chittorgarh',
'MGM Institute of Health Sciences' => 'MGM Institute of Health Sciences, Navi Mumbai',
'Mizoram University' => 'Mizoram University, Aizawl',
'Mody University' => 'Mody University, Lakshmangarh',
'Mohammad Ali Jauhar University' => 'Mohammad Ali Jauhar University, Rampur',
'Mohanlal Sukhadia University' => 'Mohanlal Sukhadia University, Udaipur',
'Monad University' => 'Monad University, Hapur',
'Mother Teresa Womens University' => 'Mother Teresa Womens University, Kodaikanal',
'Motherhood University' => 'Motherhood University, Bhagwanpur',
'Motilal Nehru National Institute of Technology' => 'Motilal Nehru National Institute of Technology, Allahabad',
'MVN University' => 'MVN University, Palwal',
'Nagaland University' => 'Nagaland University, Kohima',
'Nalanda University' => 'Nalanda University, Rajgir',
'NALSAR University of Law' => 'NALSAR University of Law, Hyderabad',
'Narendra Dev University of Agriculture and Technology' => 'Narendra Dev University of Agriculture and Technology, Faizabad',
'Narsee Monjee Institute of Management and Higher Studies' => 'Narsee Monjee Institute of Management and Higher Studies, Mumbai',
'National Dairy Research Institute' => 'National Dairy Research Institute, Karnal',
'National Institute of Design' => 'National Institute of Design, Ahmedabad',
'National Institute of Fashion Technology' => 'National Institute of Fashion Technology, New Delhi',
'National Institute of Food Technology Entrepreneurship and Management' => 'National Institute of Food Technology Entrepreneurship and Management, Sonipat',
'National Institute of Mental Health and Neuro Sciences' => 'National Institute of Mental Health and Neuro Sciences, Bangalore',
'National Institute of Pharmaceutical Education and Research, Ahmedabad' => 'National Institute of Pharmaceutical Education and Research, Ahmedabad, Ahmedabad',
'National Institute of Pharmaceutical Education and Research, Guwahati' => 'National Institute of Pharmaceutical Education and Research, Guwahati, Guwahati',
'National Institute of Pharmaceutical Education and Research, Hajipur' => 'National Institute of Pharmaceutical Education and Research, Hajipur, Hajipur',
'National Institute of Pharmaceutical Education and Research, Hyderabad' => 'National Institute of Pharmaceutical Education and Research, Hyderabad, Hyderabad',
'National Institute of Pharmaceutical Education and Research, Kolkata' => 'National Institute of Pharmaceutical Education and Research, Kolkata, Kolkata',
'National Institute of Pharmaceutical Education and Research, Mohali' => 'National Institute of Pharmaceutical Education and Research, Mohali, Mohali',
'National Institute of Pharmaceutical Education and Research, Rae Bareli' => 'National Institute of Pharmaceutical Education and Research, Rae Bareli, Rae Bareli',
'National Institute of Technology, Agartala' => 'National Institute of Technology, Agartala, Agartala',
'National Institute of Technology, Arunachal Pradesh' => 'National Institute of Technology, Arunachal Pradesh, Yupia',
'National Institute of Technology, Calicut' => 'National Institute of Technology, Calicut, Calicut',
'National Institute of Technology, Delhi' => 'National Institute of Technology, Delhi, New Delhi',
'National Institute of Technology, Durgapur' => 'National Institute of Technology, Durgapur, Durgapur',
'National Institute of Technology, Goa' => 'National Institute of Technology, Goa, Farmagudi',
'National Institute of Technology, Hamirpur' => 'National Institute of Technology, Hamirpur, Hamirpur',
'National Institute of Technology, Jamshedpur' => 'National Institute of Technology, Jamshedpur, Jamshedpur',
'National Institute of Technology, Karnataka' => 'National Institute of Technology, Karnataka, Mangalore',
'National Institute of Technology, Kurukshetra' => 'National Institute of Technology, Kurukshetra, Kurukshetra',
'National Institute of Technology, Manipur' => 'National Institute of Technology, Manipur, Imphal',
'National Institute of Technology, Meghalaya' => 'National Institute of Technology, Meghalaya, Shillong',
'National Institute of Technology, Mizoram' => 'National Institute of Technology, Mizoram, Aizawl',
'National Institute of Technology, Nagaland' => 'National Institute of Technology, Nagaland, Dimapur',
'National Institute of Technology, Patna' => 'National Institute of Technology, Patna, Patna',
'National Institute of Technology, Puducherry' => 'National Institute of Technology, Puducherry, Karaikal',
'National Institute of Technology, Raipur' => 'National Institute of Technology, Raipur, Raipur',
'National Institute of Technology, Rourkela' => 'National Institute of Technology, Rourkela, Rourkela',
'National Institute of Technology, Sikkim' => 'National Institute of Technology, Sikkim, Ravangla',
'National Institute of Technology, Silchar' => 'National Institute of Technology, Silchar, Silchar',
'National Institute of Technology, Srinagar' => 'National Institute of Technology, Srinagar, Srinagar',
'National Institute of Technology, Tiruchirappalli' => 'National Institute of Technology, Tiruchirappalli, Tiruchirappalli',
'National Institute of Technology, Uttarakhand' => 'National Institute of Technology, Uttarakhand, Srinagar',
'National Institute of Technology, Warangal' => 'National Institute of Technology, Warangal, Warangal',
'National Law Institute University' => 'National Law Institute University, Bhopal',
'National Law School of India University' => 'National Law School of India University, Bangalore',
'National Law University' => 'National Law University, New Delhi',
'National Law University and Judicial Academy, Assam' => 'National Law University and Judicial Academy, Assam, Guwahati',
'National Law University, Jodhpur' => 'National Law University, Jodhpur, Jodhpur',
'National Law University, Orissa' => 'National Law University, Orissa, Cuttack',
'National University of Educational Planning and Administration' => 'National University of Educational Planning and Administration, New Delhi',
'National University of Study and Research in Law' => 'National University of Study and Research in Law, Ranchi',
'Nava Nalanda Mahavihara' => 'Nava Nalanda Mahavihara, Bargaon',
'Navrachana University' => 'Navrachana University, Vadodara',
'Navsari Agricultural University' => 'Navsari Agricultural University, Navsari',
'Nehru Gram Bharati Vishwavidyalaya' => 'Nehru Gram Bharati Vishwavidyalaya, Allahabad',
'NIILM University' => 'NIILM University, Kaithal',
'Nilamber-Pitamber University' => 'Nilamber-Pitamber University, Medininagar',
'NIMS University' => 'NIMS University, Jaipur',
'Nirma University of Science and Technology' => 'Nirma University of Science and Technology, Ahmedabad',
'Nitte University' => 'Nitte University, Mangalore',
'NITTE Unversity' => 'NITTE Unversity, Mangalore',
'Nizam Institute of Medical Sciences' => 'Nizams Institute of Medical Sciences, Hyderabad',
'Noida International University' => 'Noida International University, Greater Noida',
'North Eastern Hill University' => 'North Eastern Hill University, Shillong',
'North Eastern Regional Institute of Science and Technology' => 'North Eastern Regional Institute of Science and Technology, Itanagar',
'North Maharashtra University' => 'North Maharashtra University, Jalgaon',
'North Orissa University' => 'North Orissa University, Baripada',
'O.P. Jindal Global University' => 'O.P. Jindal Global University, Sonipat',
'Oriental University' => 'Oriental University, Indore',
'Orissa University of Agriculture and Technology' => 'Orissa University of Agriculture and Technology, Bhubaneswar',
'Osmania University' => 'Osmania University, Hyderabad',
'Pacific Medical University' => 'Pacific Medical University, Udaipur',
'Pacific University' => 'Pacific University, Udaipur',
'Padmashree Dr. D.Y. Patil Vidyapith' => 'Padmashree Dr. D.Y. Patil Vidyapith, Navi Mumbai',
'Palamuru University' => 'Palamuru University, Mahabubnagar',
'Pandit Deendayal Petroleum University' => 'Pandit Deendayal Petroleum University, Gandhinagar',
'Pandit Deendayal Upadhyaya Shekhawati University' => 'Pandit Deendayal Upadhyaya Shekhawati University, Sikar',
'Pandit Ravishankar Shukla University' => 'Pandit Ravishankar Shukla University, Raipur',
'Panjab University' => 'Panjab University, Chandigarh',
'Parul University' => 'Parul University, Waghodia',
'Patna University' => 'Patna University, Patna',
'PDPM Indian Institute of Information Technology, Design and Manufacturing' => 'PDPM Indian Institute of Information Technology, Design and Manufacturing, Jabalpur',
'PEC University of Technology' => 'PEC University of Technology, Chandigarh',
'People University' => 'Peoples University, Bhopal',
'Periyar Maniammai University' => 'Periyar Maniammai University, Vallam',
'Periyar University' => 'Periyar University, Salem',
'PES University' => 'PES University, Bangalore',
'Pondicherry University' => 'Pondicherry University, Puducherry',
'Ponnaiyan Ramajayam Institute of Science and Technology' => 'Ponnaiyan Ramajayam Institute of Science and Technology, Thanjavur',
'Poornima University' => 'Poornima University, Jaipur',
'Post Graduate Institute of Medical Education and Research' => 'Post Graduate Institute of Medical Education and Research, Chandigarh',
'Potti Sreeramulu Telugu University' => 'Potti Sreeramulu Telugu University, Hyderabad',
'Pratap University' => 'Pratap University, Jaipur',
'Pravara Institute of Medical Sciences' => 'Pravara Institute of Medical Sciences, Loni',
'Presidency University' => 'Presidency University, Kolkata',
'Professor Jayashankar Telangana State Agricultural University' => 'Professor Jayashankar Telangana State Agricultural University, Hyderabad',
'Pt. Bhagwat Dayal Sharma University of Health Sciences' => 'Pt. Bhagwat Dayal Sharma University of Health Sciences, Rohtak',
'Punjab Agricultural University' => 'Punjab Agricultural University, Ludhiana',
'Punjab Technical University' => 'Punjab Technical University, Kapurthala',
'Punjabi University' => 'Punjabi University, Patiala',
'Rabindra Bharati University' => 'Rabindra Bharati University, Kolkata',
'Raffles University' => 'Raffles University, Neemrana',
'Rai University' => 'Rai University, Dholka',
'Raj Rishi Bharthari Matsya University' => 'Raj Rishi Bharthari Matsya University, Alwar',
'Raja Mansingh Tomar Music and Arts University' => 'Raja Mansingh Tomar Music and Arts University, Gwalior',
'Rajasthan Technical University Kota' => 'Rajasthan Technical University Kota, Kota',
'Rajasthan University of Health Sciences' => 'Rajasthan University of Health Sciences, Jaipur',
'Rajasthan University of Veterinary and Animal Sciences' => 'Rajasthan University of Veterinary and Animal Sciences, Bikaner',
'Rajendra Agricultural University' => 'Rajendra Agricultural University, Samastipur',
'Rajiv Gandhi Institute of Petroleum Technology' => 'Rajiv Gandhi Institute of Petroleum Technology, Raebareli',
'Rajiv Gandhi National Instiute of Youth Development' => 'Rajiv Gandhi National Instiute of Youth Development, Sriperumbudur',
'Rajiv Gandhi National University of Law' => 'Rajiv Gandhi National University of Law, Patiala',
'Rajiv Gandhi Proudyogiki Vishwavidyalaya' => 'Rajiv Gandhi Proudyogiki Vishwavidyalaya, Bhopal',
'Rajiv Gandhi University' => 'Rajiv Gandhi University, Itanagar',
'Rajiv Gandhi University of Health Sciences' => 'Rajiv Gandhi University of Health Sciences, Bangalore',
'Rajiv Gandhi University of Knowledge Technologies' => 'Rajiv Gandhi University of Knowledge Technologies, Hyderabad',
'Rajmata Vijayaraje Scindia Krishi Vishwavidyalaya' => 'Rajmata Vijayaraje Scindia Krishi Vishwavidyalaya, Gwalior',
'Raksha Shakti University' => 'Raksha Shakti University, Ahmedabad',
'Rama University' => 'Rama University, Kanpur',
'Ramakrishna Mission Vivekananda University' => 'Ramakrishna Mission Vivekananda University, Belur',
'Ranchi University' => 'Ranchi University, Ranchi',
'Rani Channamma University, Belagavi' => 'Rani Channamma University, Belagavi, Belagavi',
'Rani Durgavati Vishwavidyalaya' => 'Rani Durgavati Vishwavidyalaya, Jabalpur',
'Rashtrasant Tukadoji Maharaj Nagpur University' => 'Rashtrasant Tukadoji Maharaj Nagpur University, Nagpur',
'Rashtriya Sanskrit Sansthan' => 'Rashtriya Sanskrit Sansthan, New Delhi',
'Rashtriya Sanskrit Vidyapeetha' => 'Rashtriya Sanskrit Vidyapeetha, Tirupati',
'Ravenshaw University' => 'Ravenshaw University, Cuttack',
'Rayalaseema University' => 'Rayalaseema University, Kurnool',
'Rayat-Bahra University' => 'Rayat-Bahra University, Kharar',
'REVA University' => 'REVA University, Bangalore',
'RK University' => 'RK University, Rajkot',
'RKDF University' => 'RKDF University, Bhopal',
'Sai Nath University' => 'Sai Nath University, Ranchi',
'Sri Aurobindo International Centre of Education','Sri Aurobindo International Centre of Education',
'Sam Higginbottom Institute of Agriculture, Technology and Sciences' => 'Sam Higginbottom Institute of Agriculture, Technology and Sciences, Allahabad',
'Sambalpur University' => 'Sambalpur University, Burla',
'Sampurnanand Sanskrit Vishvavidyalaya' => 'Sampurnanand Sanskrit Vishvavidyalaya, Varanasi',
'Sangam University' => 'Sangam University, Bhilwara',
'Sanjay Gandhi Post Graduate Institute of Medical Sciences' => 'Sanjay Gandhi Post Graduate Institute of Medical Sciences, Lucknow',
'Sant Gadge Baba Amravati University' => 'Sant Gadge Baba Amravati University, Amravati',
'Sant Longowal Institute of Engineering and Technology' => 'Sant Longowal Institute of Engineering and Technology, Sangrur',
'Santosh University' => 'Santosh University, Ghaziabad',
'Sardar Patel University' => 'Sardar Patel University, Vallabh Vidyanagar',
'Sardar Patel University of Police, Security and Criminal Justice' => 'Sardar Patel University of Police, Security and Criminal Justice, Jodhpur',
'Sardar Vallabhbhai National Institute of Technology, Surat' => 'Sardar Vallabhbhai National Institute of Technology, Surat, Surat',
'Sardar Vallabhbhai Patel University of Agriculture and Technology' => 'Sardar Vallabhbhai Patel University of Agriculture and Technology, Meerut',
'Sardarkrushinagar Dantiwada Agricultural University' => 'Sardarkrushinagar Dantiwada Agricultural University, Palanpur',
'Sarguja University' => 'Sarguja University, Ambikapur',
'Sarvepalli Radhakrishnan University' => 'Sarvepalli Radhakrishnan University, Bhopal',
'SASTRA University' => 'SASTRA University, Thanjavur',
'Satavahana University' => 'Satavahana University, Karimnagar',
'Sathyabama University' => 'Sathyabama University, Chennai',
'Saurashtra University' => 'Saurashtra University, Rajkot',
'Saveetha University' => 'Saveetha University, Chennai',
'Savitribai Phule Pune University' => 'Savitribai Phule Pune University, Pune',
'School of Planning and Architecture, Bhopal' => 'School of Planning and Architecture, Bhopal, Bhopal',
'School of Planning and Architecture, Delhi' => 'School of Planning and Architecture, Delhi, New Delhi',
'School of Planning and Architecture, Vijayawada' => 'School of Planning and Architecture, Vijayawada, Vijayawada',
'Seacom Skills University' => 'Seacom Skills University, Santiniketan',
'Sharda University' => 'Sharda University, Greater Noida',
'Sher-e-Kashmir University of Agricultural Sciences and Technology of Jammu' => 'Sher-e-Kashmir University of Agricultural Sciences and Technology of Jammu, Jammu',
'Sher-e-Kashmir University of Agricultural Sciences and Technology of Kashmir' => 'Sher-e-Kashmir University of Agricultural Sciences and Technology of Kashmir, Srinagar',
'Sher-i-Kashmir Institute of Medical Sciences' => 'Sher-i-Kashmir Institute of Medical Sciences, Srinagar',
'Shiv Nadar University' => 'Shiv Nadar University, Dadri',
'Shivaji University' => 'Shivaji University, Kolhapur',
'Shobhit University' => 'Shobhit University, Meerut',
'Shoolini University of Biotechnology and Management Sciences' => 'Shoolini University of Biotechnology and Management Sciences, Solan',
'Shree Guru Gobind Singh Tricentenary University' => 'Shree Guru Gobind Singh Tricentenary University, Gurgaon',
'Shree Somnath Sanskrit University' => 'Shree Somnath Sanskrit University, Veraval',
'Shri Govind Guru University' => 'Shri Govind Guru University, Godhra',
'Shri Guru Ram Rai Education Mission+' => 'Shri Guru Ram Rai Education Mission+, Dehradun',
'Shri Jagannath Sanskrit Vishvavidyalaya' => 'Shri Jagannath Sanskrit Vishvavidyalaya, Puri',
'Shri Jagdishprasad Jhabrmal Tibrewala University' => 'Shri Jagdishprasad Jhabrmal Tibrewala University, Jhunjhunu',
'Shri Lal Bahadur Shastri Rashtriya Sanskrit Vidyapeetha' => 'Shri Lal Bahadur Shastri Rashtriya Sanskrit Vidyapeetha, New Delhi',
'Shri Mata Vaishno Devi University' => 'Shri Mata Vaishno Devi University, Katra',
'Shri Ramswaroop Memorial University' => 'Shri Ramswaroop Memorial University, Barabanki',
'Shri Venkateshwara University' => 'Shri Venkateshwara University, Gajraula',
'Shridhar University' => 'Shridhar University, Pilani',
'Sidho Kanho Birsha University' => 'Sidho Kanho Birsha University, Purulia',
'Sido Kanhu Murmu University' => 'Sido Kanhu Murmu University, Dumka',
'Sikkim Manipal University' => 'Sikkim Manipal University, Gangtok',
'Sikkim University' => 'Sikkim University, Tadong',
'Siksha O Anusandhan University' => 'Siksha O Anusandhan University, Bhubaneswar',
'Singhania University' => 'Singhania University, Jhunjhunu',
'Sir Padampat Singhania University' => 'Sir Padampat Singhania University, Udaipur',
'South Asian University' => 'South Asian University, New Delhi',
'Sree Chitra Thirunal Institute of Medical Sciences and Technology' => 'Sree Chitra Thirunal Institute of Medical Sciences and Technology, Thiruvananthapuram',
'Sree Sankaracharya University of Sanskrit' => 'Sree Sankaracharya University of Sanskrit, Kalady',
'Sri Balaji Vidyapeeth' => 'Sri Balaji Vidyapeeth, Puducherry',
'Sri Chandrasekharendra Saraswathi Viswa Mahavidyalaya' => 'Sri Chandrasekharendra Saraswathi Viswa Mahavidyalaya, Kanchipuram',
'Sri Dev Suman Uttarakhand University' => 'Sri Dev Suman Uttarakhand University, Tehri',
'Sri Devaraj Urs Academy of Higher Education and Research' => 'Sri Devaraj Urs Academy of Higher Education and Research, Kolar',
'Sri Guru Granth Sahib World University' => 'Sri Guru Granth Sahib World University, Fatehgarh Sahib',
'Sri Krishnadevaraya University' => 'Sri Krishnadevaraya University, Anantapur',
'Sri Padmavati Mahila Visvavidyalayam' => 'Sri Padmavati Mahila Visvavidyalayam, Tirupati',
'Sri Ramachandra University' => 'Sri Ramachandra University, Chennai',
'Sri Sai University' => 'Sri Sai University, Palampur',
'Sri Sathya Sai Institute of Higher Learning' => 'Sri Sathya Sai Institute of Higher Learning, Prasanthi Nilayam',
'Sri Satya Sai University of Technology and Medical Sciences' => 'Sri Satya Sai University of Technology and Medical Sciences, Sehore',
'Sri Siddhartha Academy of Higher Education' => 'Sri Siddhartha Academy of Higher Education, Tumkur',
'Sri Sri University' => 'Sri Sri University, Cuttack',
'Sri Venkateswara Institute of Medical Sciences' => 'Sri Venkateswara Institute of Medical Sciences, Tirupati',
'Sri Venkateswara University' => 'Sri Venkateswara University, Tirupati',
'Sri Venkateswara Vedic University' => 'Sri Venkateswara Vedic University, Tirupati',
'Sri Venkateswara Veterinary University' => 'Sri Venkateswara Veterinary University, Tirupati',
'Srimanta Sankaradeva University of Health Sciences' => 'Srimanta Sankaradeva University of Health Sciences, Guwahati',
'SRM University' => 'SRM University, Chennai',
'SRM University, Sikkim' => 'SRM University, Sikkim, Gangtok',
'St. Peters University' => 'St. Peters University, Chennai',
'State University of Performing and Visual Arts' => 'State University of Performing and Visual Arts, Rohtak',
'Suamandeep Vidyapeeth' => 'Suamandeep Vidyapeeth, Vadodara',
'Sunrise University' => 'Sunrise University, Alwar',
'Suresh Gyan Vihar University' => 'Suresh Gyan Vihar University, Jaipur',
'Swami Keshwanand Rajasthan Agricultural University' => 'Swami Keshwanand Rajasthan Agricultural University, Bikaner',
'Swami Rama Himalayan University' => 'Swami Rama Himalayan University, Dehradun',
'Swami Ramanand Teerth Marathwada University' => 'Swami Ramanand Teerth Marathwada University, Nanded',
'Swami Vivekanand Subharti University' => 'Swami Vivekanand Subharti University, Meerut',
'Swami Vivekanand University' => 'Swami Vivekanand University, Sagar',
'Swami Vivekananda Yoga Anusandhana Samsthana' => 'Swami Vivekananda Yoga Anusandhana Samsthana, Bangalore',
'Swarnim Gujarat Sports University' => 'Swarnim Gujarat Sports University, Gandhinagar',
'Symbiosis International University' => 'Symbiosis International University, Pune',
'Tamil Nadu Agricultural University' => 'Tamil Nadu Agricultural University, Coimbatore',
'Tamil Nadu Dr Ambedkar Law University' => 'Tamil Nadu Dr Ambedkar Law University, Chennai',
'Tamil Nadu Dr. M.G.R.Medical University' => 'Tamil Nadu Dr. M.G.R.Medical University, Chennai',
'Tamil Nadu Fisheries University' => 'Tamil Nadu Fisheries University, Nagapattinam',
'Tamil Nadu National Law School' => 'Tamil Nadu National Law School, Tiruchirappalli',
'Tamil Nadu Physical Education and Sports University' => 'Tamil Nadu Physical Education and Sports University, Chennai',
'Tamil Nadu Teacher Education University' => 'Tamil Nadu Teacher Education University, Chennai',
'Tamil Nadu Veterinary and Animal Sciences University' => 'Tamil Nadu Veterinary and Animal Sciences University, Chennai',
'Tamil University' => 'Tamil University, Thanjavur',
'Tantia University' => 'Tantia University, Sri Ganganagar',
'Tata Institute of Fundamental Research' => 'Tata Institute of Fundamental Research, Mumbai',
'Tata Institute of Social Sciences' => 'Tata Institute of Social Sciences, Mumbai',
'Teerthanker Mahaveer University' => 'Teerthanker Mahaveer University, Moradabad',
'Telangana University' => 'Telangana University, Nizamabad',
'TERI University' => 'TERI University, New Delhi',
'Tezpur University' => 'Tezpur University, Tezpur',
'Thapar Institute of Engineering and Technology' => 'Thapar Institute of Engineering and Technology, Patiala',
'The English and Foreign Languages University' => 'The English and Foreign Languages University, Hyderabad',
'The IIS University' => 'The IIS University, Jaipur',
'The Indian Law Institute' => 'The Indian Law Institute, New Delhi',
'The LNM Institute of Information Technology' => 'The LNM Institute of Information Technology, Jaipur',
'The Maharaja Sayajirao University of Baroda' => 'The Maharaja Sayajirao University of Baroda, Vadodara',
'The National University of Advanced Legal Studies' => 'The National University of Advanced Legal Studies, Kochi',
'The Northcap University' => 'The Northcap University, Gurgaon',
'The West Bengal National University of Juridical Sciences' => 'The West Bengal National University of Juridical Sciences, Kolkata',
'Thiruvalluvar University' => 'Thiruvalluvar University, Vellore',
'Thunchath Ezhuthachan Malayalam University' => 'Thunchath Ezhuthachan Malayalam University, Tirur',
'Tilak Maharashtra Vidyapeeth' => 'Tilak Maharashtra Vidyapeeth, Pune',
'Tilka Manjhi Bhagalpur University' => 'Tilka Manjhi Bhagalpur University, Bhagalpur',
'Trans-disciplinary University' => 'Trans-disciplinary University, Bangalore',
'Tripura University' => 'Tripura University, Agartala',
'Tumkur University' => 'Tumkur University, Tumkur',
'U.P. Pandit Deen Dayal Upadhyaya Pashu Chikitsa Vigyan Vishwavidyalaya Evam Go-Anusandhan Sansthan' => 'U.P. Pandit Deen Dayal Upadhyaya Pashu Chikitsa Vigyan Vishwavidyalaya Evam Go-Anusandhan Sansthan, Mathura',
'Uka Tarsadia University' => 'Uka Tarsadia University, Surat',
'University of Agricultural and Horticultural Sciences' => 'University of Agricultural and Horticultural Sciences, Shimoga',
'University of Agricultural Sciences, Bangalore' => 'University of Agricultural Sciences, Bangalore, Bangalore',
'University of Agricultural Sciences, Dharwad' => 'University of Agricultural Sciences, Dharwad, Dharwad',
'University of Agricultural Sciences, Raichur' => 'University of Agricultural Sciences, Raichur, Raichur',
'University of Allahabad' => 'University of Allahabad, Allahabad',
'University of Burdwan' => 'University of Burdwan, Bardhaman',
'University of Calcutta' => 'University of Calcutta, Kolkata',
'University of Calicut' => 'University of Calicut, Tenhipalam',
'University of Delhi' => 'University of Delhi, New Delhi',
'University of Gour Banga' => 'University of Gour Banga, Malda',
'University of Horticultural Sciences, Bagalkot' => 'University of Horticultural Sciences, Bagalkot, Bagalkot',
'University of Hyderabad' => 'University of Hyderabad, Hyderabad',
'University of Jammu' => 'University of Jammu, Jammu',
'University of Kalyani' => 'University of Kalyani, Kalyani',
'University of Kashmir' => 'University of Kashmir, Srinagar',
'University of Kerala' => 'University of Kerala, Thiruvananthapuram',
'University of Kota' => 'University of Kota, Kota',
'University of Lucknow' => 'University of Lucknow, Lucknow',
'University of Madras' => 'University of Madras, Chennai',
'University of Mumbai' => 'University of Mumbai, Mumbai',
'University of Mysore' => 'University of Mysore, Mysore',
'University of North Bengal' => 'University of North Bengal, Siliguri',
'University of Patanjali' => 'University of Patanjali, Haridwar',
'University of Petroleum and Energy Studies' => 'University of Petroleum and Energy Studies, Dehradun',
'University of Rajasthan' => 'University of Rajasthan, Jaipur',
'University of Science and Technology, Meghalaya' => 'University of Science and Technology, Meghalaya, Baridua',
'University of Solapur' => 'University of Solapur, Solapur',
'University of Technology and Management' => 'University of Technology and Management, Shillong',
'Utkal University' => 'Utkal University, Bhubaneswar',
'Utkal University of Culture' => 'Utkal University of Culture, Bhubaneswar',
'Uttar Banga Krishi Viswavidyalaya' => 'Uttar Banga Krishi Viswavidyalaya, Pundibari',
'Uttarakhand Ayurved University' => 'Uttarakhand Ayurved University, Dehradun',
'Uttarakhand Technical University' => 'Uttarakhand Technical University, Dehradun',
'Uttarakhand University of Horticulture and Forestry' => 'Uttarakhand University of Horticulture and Forestry, Bharsar',
'Uttaranchal Sanskrit University' => 'Uttaranchal Sanskrit University, Haridwar',
'Uttaranchal University' => 'Uttaranchal University, Dehradun',
'Vasantrao Naik Marathwada Agricultural University' => 'Vasantrao Naik Marathwada Agricultural University, Parbhani',
'Veer Bahadur Singh Purvanchal University' => 'Veer Bahadur Singh Purvanchal University, Jaunpur',
'Veer Kunwar Singh University' => 'Veer Kunwar Singh University, Arrah',
'Veer Narmad South Gujarat University' => 'Veer Narmad South Gujarat University, Surat',
'Veer Surendra Sai University of Technology' => 'Veer Surendra Sai University of Technology, Sambalpur',
'Vel Tech Dr.RR and Dr.SR Technical University' => 'Vel Tech Dr.RR and Dr.SR Technical University, Chennai',
'Vels University' => 'Vels University, Chennai',
'Vidyasagar University' => 'Vidyasagar University, Midnapore',
'Vignan University' => 'Vignans University, Guntur',
'Vijayanagara Sri Krishnadevaraya University' => 'Vijayanagara Sri Krishnadevaraya University, Bellary',
'Vikram University' => 'Vikram University, Ujjain',
'Vikrama Simhapuri University' => 'Vikrama Simhapuri University, Nellore',
'Vinayaka Missions Sikkim University' => 'Vinayaka Missions Sikkim University, Gangtok',
'Vinayaka Missions University' => 'Vinayaka Missions University, Salem',
'Vinoba Bhave University' => 'Vinoba Bhave University, Hazaribag',
'Visva-Bharati University' => 'Visva-Bharati University, Santiniketan',
'Visvesvaraya National Institute of Technology' => 'Visvesvaraya National Institute of Technology, Nagpur',
'Visvesvaraya Technological University' => 'Visvesvaraya Technological University, Belgaum',
'VIT University' => 'VIT University, Vellore',
'Vivekananda Global University' => 'Vivekananda Global University, Jaipur',
'West Bengal State University' => 'West Bengal State University, Barasat',
'West Bengal University of Animal and Fishery Sciences' => 'West Bengal University of Animal and Fishery Sciences, Kolkata',
'West Bengal University of Health Sciences' => 'West Bengal University of Health Sciences, Kolkata',
'West Bengal University of Teachers\' Training, Education Planning and Administration' => 'West Bengal University of Teachers\' Training, Education Planning and Administration, Kolkata',
'William Carey University' => 'William Carey University, Shillong',
'Xavier University Bhubaneswar' => 'Xavier University Bhubaneswar, Bhubaneswar',
'Yenepoya University' => 'Yenepoya University, Mangalore',
'YMCA University of Science and Technology' => 'YMCA University of Science and Technology, Faridabad',
'Yogi Vemana University' => 'Yogi Vemana University, Kadapa',
'Others' => 'Others...'];
public function __construct($model) {
$this->model = $model; // initialize variables
$this->model->tupleID = $this->tuple;
$this->userIP = $this->getIP(); // requires in log entry
$this->appURL = $_SERVER["REQUEST_URI"]; // this is Request URI for log entry
$this->referer = $_SERVER["HTTP_REFERER"]; // requires for log entry, not mandatory
// maintain erp activity log for inner contents
if ($_SESSION['loginID'] && strpos($this->appURL, 'inner')) {
$this->model->erpLog($this->userIP, $this->appURL, $this->referer);
} else if ($this->model->getMenuProtection($this->menu)) {
print("<h1>Session expired. Please sign-in again.</h1>");
exit;
}
$this->manageSession();
}
public function __destruct() {
// log sql operation on corresponding table
// call $erpModel->erpSql($sql);
}
public function manageSession() {
if ($_REQUEST['instituteID']) {
$_SESSION['instituteID']= $_REQUEST['instituteID'];
header('Location: /');
} else if (!isset($_SESSION['instituteID'])) {
$_SESSION['instituteID']= 1;
}
if (isset($_REQUEST['moduleID'])) {
$_SESSION['moduleID'] = $_REQUEST['moduleID'];
header('Location: /');
} else if (!$_SESSION['moduleID']) {
$_SESSION['moduleID'] = 1;
}
if (!$_SESSION['batchYear']) {
$_SESSION['batchYear'] = date('Y');
}
$this->errorText = self::WELCOME;// This bar displays status of ongoing database activities performed by you during this session.";
if (isset($_POST['loginID'])) {
$loginID = filter_var(trim($_POST['loginID']), FILTER_SANITIZE_STRING);
$pwd = trim($_POST['pwd']);
if ($loginID && $pwd) {
// check for administrative blocking of user account
if ($this->model->checkAbuser($this->userIP, $loginID) == TRUE) {
$this->errorText= "Your system is blocked <i class='fas fa-ban'></i> under abuser category. Please contact concern authority.";
} else {
$authMode = $this->model->getAuthMode($loginID);
switch ($authMode) {
case 'LDB':
if ($this->model->erpLDAPAuth($loginID, $pwd)) {
$_SESSION['sessionID'] = base64_encode($_SESSION['loginID'] .'-'. $this->userIP .'-'. date('Y-m-d- h:i:s'));
$_SESSION['loginID'] = $loginID;
$this->model->openSession($this->userIP);
header('Location: /');
}
$this->errorText = "Incorrect user credentials <i class='far fa-frown'></i>. Please try again with correct one.";
break;
case 'MDB':
if ($this->model->erpDBAuth($loginID, $pwd)) {
$_SESSION['sessionID'] = base64_encode($_SESSION['loginID'] .'-'. $this->userIP .'-'. date('Y-m-d- h:i:s'));
$_SESSION['loginID'] = $loginID;
$this->model->openSession($this->userIP);
header('Location: /');
}
$this->errorText = "Incorrect user credentials <i class='far fa-frown'></i>. Please try again.";
break;
default:
$this->errorText = "User account <b>'$loginID'</b> is administratively disabled. Please contact concern authority.";
}
}
}
} else if (isset($_REQUEST['logout'])) {
$this->errorText = $this->model->closeSession();
unset($_SESSION['sessionID']);
unset($_SESSION['loginID']);
$_SESSION['sessionID'] = '';
$_SESSION['loginID'] = '';
session_destroy();
header('Location: /');
}
return $instituteID;
}
// change password in ldap
public function managePasswd($action, $loginID) {
if ($action == 'reset') {
$pwd1 = $_POST['passwd1'];
$pwd2 = $_POST['passwd2'];
if ($pwd1 && ($pwd1 == $pwd2)) {
//$ds = ldap_connect('ldaps://172.31.1.41:636');
$ds = ldap_connect('ldap://172.31.1.41:389');
ldap_set_option($ds, LDAP_OPT_PROTOCOL_VERSION, 3);
$q = ldap_search($ds, "dc=iiita,dc=ac,dc=in", "(&(uid=$loginID)(objectclass=posixAccount))");
$info = ldap_get_entries($ds, $q);
$dn = $info[0]['dn'];
if ($info['count'] > 0) {
ldap_bind($ds, "cn=Manager,dc=iiita,dc=ac,dc=in","\$dollfinn");
//$pwd1 = 'iiita' . rand(111,999);
//$pwd = '{CRYPT}' . crypt($pwd1);
$pwd = "{SHA}" . base64_encode(pack("H*", sha1($pwd1)));
$info1["userPassword"] = $pwd;
$this->errorText= (ldap_modify($ds, $dn, $info1) ? "Congrats... Password changed successfully." : "Error: Could not modify LDAP record.");
} else {
$this->errorText= "Error: Record does not exist in LDAP database.";
}
ldap_close($ds);
} else {
$this->errorText = "Error: Password does not match, please try again.";
}
}
}
function checkProtection($menu) {
return ($this->model->getMenuProtection($menu) ? TRUE : FALSE);
}
function getIP() {
$header_checks = array(
'HTTP_X_COMING_FROM',
'HTTP_CLIENT_IP',
'HTTP_PRAGMA',
'HTTP_XONNECTION',
'HTTP_CACHE_INFO',
'HTTP_XPROXY',
'HTTP_PROXY',
'HTTP_PROXY_CONNECTION',
'HTTP_VIA',
'HTTP_COMING_FROM',
'HTTP_X_FORWARDED_FOR',
'HTTP_X_FORWARDED',
'HTTP_X_CLUSTER_CLIENT_IP',
'HTTP_FORWARDED_FOR',
'HTTP_FORWARDED',
'HTTP_X-FORWARDED_HOST',
'ZHTTP_CACHE_CONTROL',
'REMOTE_ADDR'
);
foreach ($header_checks as $key) {
if (array_key_exists($key, $_SERVER) === true) {
foreach (explode(',', $_SERVER[$key]) as $ip) {
$ip = trim($ip);
//filter the ip with filter functions
if (filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4) !== false) {
return $ip;
}
}
}
}
}
public function erpLdap($ou, $loginID, $action) {
//$ds = ldap_connect("ldaps://172.31.1.41:636");
$ds = ldap_connect("ldap://172.31.1.41:389");
ldap_set_option($ds, LDAP_OPT_PROTOCOL_VERSION, 3);
$a = ldap_search($ds, "dc=iiita,dc=ac,dc=in", "uid=$loginID");
$b = ldap_get_entries($ds, $a);
$dn = $b[0]["dn"];
if ($dn) {
$str = "DN: " .$b[0]["dn"];
} else {
$str = "Entry for $uID does not exist in LDAP.
uid=IIT2017001,ou=2017,ou=IT,ou=Btech,ou=Student,dc=iiita,dc=a...
dn: uid=IIT2017001,ou=2017,ou=IT,ou=Btech,ou=Student,dc=iiita,dc=ac,dc=in
accountstatus: Active
businesscategory: everyone
businesscategory: student
businesscategory: btech-it-2017
cn: NAGA-MEHERCHAND-PULAVARTY-IIT2017001
description: B.Tech (Information Technology)
employeenumber: IIT2017001
gecos: NAGA MEHERCHAND PULAVARTY
gidnumber: 2017
givenname: Naga
homedirectory: /opt/arithme/mailstore/mail.iiita.ac.in/homedirs/IIT2017001
labeleduri: http://profile.iiita.ac.in/IIT2017001
loginshell: /bin/bash
mail: IIT2017001@iiita.ac.in
mailalternateaddress: pvramprasad@yahoo.com
mailhost: mail.iiita.ac.in
mailmessagestore: /opt/arithme/mailstore/mail.iiita.ac.in/maildirs/student/2
017/IIT2017001
mailquotasize: 524288000
mobile: 9989701644
objectclass: top
objectclass: person
objectclass: posixAccount
objectclass: shadowAccount
objectclass: inetOrgPerson
objectclass: organizationalPerson
objectclass: qmailUser
sn: Pulavarty
uid: IIT2017001
uidnumber: 201755
userpassword: {CRYPT}$1$2I8zlKI6$pO5X3A7XkulPtOcfefnId.";
}
//$token = (ldap_bind($ds, $dn, $pwd) ? TRUE : FALSE);
ldap_close($ds);
return $str;
}
// mail service configuration
public function erpMailer($emailsTo, $subject, $message, $emailsCC='', $emailsBCC='', $attachments='') {
// SMTP needs accurate times, and the PHP time zone MUST be set
// This should be done in your php.ini, but this is how to do it if you don't have access to that
date_default_timezone_set('Asia/Kolkata');
// Create a new PHPMailer instance
$mail = new PHPMailer();
// Tell PHPMailer to use SMTP
$mail->isSMTP();
// Tell PHPMailer to use HTML format
$mail->isHTML(true);
// Set the hostname of the mail server
$mail->Host = 'smtp.gmail.com';
// Set the SMTP port number - 587 for authenticated TLS, a.k.a. RFC4409 SMTP submission
$mail->Port = 465; //imap/pop 993
// Set the encryption system to use - ssl (deprecated) or tls
$mail->SMTPSecure = 'ssl';
// Whether to use SMTP authentication
$mail->SMTPAuth = true;
// Username to use for SMTP authentication - use full email address for gmail
$mail->Username = "erp@iiita.ac.in";
// Password to use for SMTP authentication
$mail->Password = "erpa2018";
// Set who the message is to be sent from
$mail->setFrom('erp.support@iiita.ac.in', 'ERP@IIITA');
// Set an alternative reply-to address
$mail->addReplyTo('erp.support@iiita.ac.in', 'ERP@IIITA');
if (!$emailsTo) $emailsTo ='erp@iiita.ac.in,mmishra@iiita.ac.in';
// Set To emails
foreach (explode(',', $emailsTo) as $emailTo) {
$mail->addAddress($emailTo, $emailTo);
}
//set CC to emails
foreach (explode(',', $emailsCC) as $emailCC) {
$mail->addCC($emailCC, $emailCC);
}
//set BCC to emails
foreach (explode(',', $emailsBCC) as $emailBCC) {
$mail->addBCC($emailBCC, $emailBCC);
}
//set BCC to emails
foreach (explode(',', $attachments) as $attachment) {
$mail->addAttachment(__DIR__. '/../uploads/attachments/', $attachment);
}
// Set the subject line
$mail->Subject = $subject;
$mail->Body = "<pre>$message</pre>
<br><br><br>
ERP@IIITA
<hr>
Do login at https://erp.iiita.ac.in using LDAP credentials for updated information.
<hr>
(ERP Automailing Service)";
$mail->WordWrap = 75;
// send the message, check for errors
return ($mail->send() ? 'OK' : $mail->ErrorInfo);
}
// sms service configuration
public function erpSMS($cellNo, $msg) {
/*Send SMS using PHP*/
$authKey = "128590ABuBtPSnuJ5805a5ff"; //Your authentication key
$mobileNumber = $cellNo; //Multiple mobiles numbers separated by comma
$senderId = "IIITAL"; //Sender ID,While using route4 sender id should be 6 characters long.
$message = urlencode($msg); //Your message to send, Add URL encoding here.
$route = '4'; //"default"; //Define route
//Prepare you post parameters
$postData = array(
'authkey' => $authKey,
'mobiles' => $mobileNumber,
'message' => $message,
'sender' => $senderId,
'route' => $route
);
//API URL
$url = "https://control.msg91.com/api/sendhttp.php";
// init the resource
$ch = curl_init();
curl_setopt_array($ch, array(
CURLOPT_URL => $url,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => $postData
//,CURLOPT_FOLLOWLOCATION => true
));
//Ignore SSL certificate verification
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
//get response
$output = curl_exec($ch);
//Print error if any
if(curl_errno($ch)) $output = 'Error:' . curl_error($ch);
curl_close($ch);
return $output;
}
// online pg service integratiob
public function erpIPG() {
$HASHING_METHOD = 'sha512'; // md5,sha1
$ACTION_URL = "https://secure.ebs.in/pg/ma/payment/request/";
// This post.php used to calculate hash value using md5 and redirect to payment page.
if(isset($_POST['secretkey']))
$_SESSION['SECRET_KEY'] = $_POST['secretkey'];
else
$_SESSION['SECRET_KEY'] = '020bc4ca9304d76f471b03213f73d035'; //set your secretkey here
$hashData = $_SESSION['SECRET_KEY'];
unset($_POST['secretkey']);
unset($_POST['submitted']);
ksort($_POST);
foreach ($_POST as $key => $value){
if (strlen($value) > 0) {
$hashData .= '|'.$value;
}
}
if (strlen($hashData) > 0) {
$secureHash = strtoupper(hash($HASHING_METHOD, $hashData));
}
$str = "<html>
<body onLoad='document.payment.submit();'>
<h3>Please wait, redirecting to process payment..</h3>
<form action='$ACTION_URL' name='payment' method='POST'>";
foreach($_POST as $key => $value) {
$str .= "<input type='hidden' value='$value' name='$key'/>";
}
$str .= "<input type='hidden' value='$secureHash' name='secure_hash'/>";
return $str;
}
// erp backup generation
public function erpBackup($action, $db) {
//exec('mysqldump --user=... --password=... --host=... DB_NAME > /path/to/output/file.sql');
$DBUSER = "erp";
$DBPASSWD = "erpa2018";
$DATABASE = "erp_core";
$filename = "erp-db-backup-" . date("d-m-Y") . ".sql.gz";
$mime = "application/x-gzip";
$cmd = "mysqldump -u $DBUSER --password=$DBPASSWD $DATABASE | gzip --best";
header("Content-Type: " .$mime);
header("Content-Disposition: attachment; filename='$filename'");
passthru($cmd);
return "Download database backup file.";
}
public function erpUpload() {
// Check if image file is a actual image or fake image
//$returnURL = "";
if ($_POST['submit'] == 'UPLOAD') {
//$returnURL = $_POST["returnURL"];
$docID = $_POST["docID"];
$docCode = $_POST["docCode"];
$sourceFile = basename($_FILES["fileToUpload"]["name"]);
$uploadFile = $ID. '-' .$certCode. '-' .$sourceFile;
$targetFile = __DIR__. "/../uploads/" .$uploadFile;
$extName = strtolower(pathinfo(basename($_FILES["fileToUpload"]["name"]), PATHINFO_EXTENSION));
$check = getimagesize($_FILES["fileToUpload"]["tmp_name"]);
if ($check !== false) {
//$str = "File is an image - " . $check["mime"] . ".";
// Check if file already exists
if (file_exists($targetFile)) {
$str = "Sorry, $sourceFile file already exists.";
// Check file size
} else if ($_FILES["fileToUpload"]["size"] > 900000) {
$str = "Sorry, $sourceFile file is too large.";
// Allow certain file formats
} else if ($extName == "jpg" && $extName == "png" && $extName == "jpeg" && $extName == "gif") {
$str = "Sorry, only JPG, JPEG, PNG & GIF files are allowed.";
// if everything is ok, try to upload file
} else if (move_uploaded_file($_FILES["fileToUpload"]["tmp_name"], $targetFile)) {
$str = basename( $_FILES["fileToUpload"]["name"]). " has been uploaded.";
} else {
$str = "Sorry, there was an error uploading " .$sourceFile;
}
} else {
$str = $sourceFile. " is not an image.";
}
} else {
$str = "nothing to show.";
}
//$str .= "<br><br>
//Go back <a href='' onclick=\"inner('" .$returnURL. "&certCode=" .$certCode. "&fileName=" .$upFile. "'); return false;\" title='More upload'><span class='button'><i class='fas fa-undo-alt'></i></span> </a> for more upload. ";
//header("Location: " .$returnURL);
//$str .= " [" .$returnURL. "&fileName=" .$upFile. "]";
return $str;
}
// online pdf generation
public function erpPDF($str) {
$pdf = new PDF('P', 'mm', 'A4');
$pdf->SetDisplayMode(real, 'default');
$pdf->AddPage();
$pdf->SetTitle('ERP PDF Generator');
$pdf->SetAuthor('IIIT-A');
$pdf->SetFillColor(0,0,0);
$pdf->Ln(10); //line Break
$pdf->SetFont('Helvetica', 'U', 10);
$pdf->Write(5, 'mmishra');
//$pdf->Line(20, 45, 210-20, 45); // 20mm from each edge
$pdf->Output('receipt.pdf', 'D');
}
// archive files
function erpZip($zipFile, $file) {
exec("touch $zipFile");
$ziph = new ZipArchive();
if (file_exists($zipFile)) {
if ($ziph->open($zipFile, ZIPARCHIVE::CHECKCONS) !== TRUE) {
$this->errorText = "Unable to open $zipFile";
}
} else {
if ($ziph->open($zipFile, ZIPARCHIVE::CM_PKWARE_IMPLODE) !== TRUE) {
$this->errorText = "Could not create $zipFile";
}
}
if (!$ziph->addFile($file)) {
$this->errorText = "Error archiving $file in $zipFile";
} else {
$this->errorText = "File zipped successfully.";
}
$ziph->close();
return $this->errorText;
}
function erpReimage($file, $w, $h, $crop=FALSE) {
list($width, $height) = getimagesize($file);
$r = $width/$height;
$r = ($r < 0 ? 1 : number_format($r, 5));
if ($crop) {
if ($width > $height) {
$width = ceil($width-($width*abs($r-$w/$h)));
} else {
$height = ceil($height-($height*abs($r-$w/$h)));
}
$newwidth = $w;
$newheight = $h;
} else {
if ($w/$h > $r) {
$newwidth = $h*$r;
$newheight = $h;
} else {
$newwidth = $w;
$newheight = $w/$r;
}
}
//echo $file .'-r='. $r .'-w='. $width .'-h='. $height .'-nw='. $newwidth .'-nh='. $newheight .'</br>';
try {
$src = imagecreatefromjpeg($file);
$dst = imagecreatetruecolor($newwidth, $newheight);
imagecopyresampled($dst, $src, 0, 0, 0, 0, $newwidth, $newheight, $width, $height);
//$dst = imagecreatetruecolor($w, $h);
//imagecopyresampled($dst, $src, 0, 0, 15, 15, $w, $h, $width-15, $height);
} catch (Exception $e) {
$dst = 'Error';//$e->getMessage();
}
return $dst;
}
}
?>