$arr_month['01']='Jan';
$arr_month['02']='Feb';
$arr_month['03']='Mar';
$arr_month['04']='Apr';
$arr_month['05']='May';
$arr_month['06']='June';
$arr_month['07']='July';
$arr_month['08']='Aug';
$arr_month['09']='Sep';
$arr_month['10']='Oct';
$arr_month['11']='Nov';
$arr_month['12']='Dec';
$arr_etype['1']='MCA';
$arr_etype['2']='ADCA';
$arr_etype['3']='PGDCA';
$arr_etype['4']='BCA';
$arr_etype['5']='CIC';
$arr_etype['6']='BTEC';
$arr_etype['7']='BSc';
$arr_etype['8']='MSc';
$arr_etype['9']='B.A';
$arr_etype['10']='M.A';
$ARR_SCHOOL['1']='Public School';
$ARR_SCHOOL['2']='Preschool';
$ARR_SCHOOL['3']='Private School';
$ARR_SCHOOL['4']='Homeschool Education';
$ARR_SCHOOL['5']='Global Educational Methods';
$ARR_BOARD['1']='Delhi Board';
$ARR_BOARD['2']='CBSE';
$ARR_BOARD['3']='ICSE';
//$ARR_BOARD['1']='CBSE';
//$ARR_BOARD['1']='CBSE';
//$ARR_BOARD['1']='CBSE';
$ARR_ARTIST['1']='Actor';
//$ARR_ARTIST['2']='Actoress';
$ARR_ARTIST['3']='Film Director';
$ARR_ARTIST['4']='Music Director';
$ARR_ARTIST['5']='Singer';
$ARR_ARTIST['6']='Dancer';
$ARR_ARTIST['7']='Writer';
$ARR_ALBUM['1']='Mediation Album';
$ARR_ALBUM['2']='Students Album';
$ARR_ALBUM['3']='Pop Music';
$ARR_FONT['font-family:Verdana, Geneva, sans-serif']='Verdana, Geneva, sans-serif';
$ARR_FONT['font-family:Georgia, "Times New Roman", Times, serif']='Georgia, "Times New Roman", Times, serif';
$ARR_FONT['font-family:"Courier New", Courier, monospace']='"Courier New", Courier, monospace';
$ARR_FONT['font-family:Arial, Helvetica, sans-serif']='Arial, Helvetica, sans-serif';
$ARR_FONT['font-family:Tahoma, Geneva, sans-serif']='Tahoma, Geneva, sans-serif';
$ARR_STYLE['font-style:italic']='Italic';
$ARR_STYLE['font-style:normal']='Normal';
$ARR_STYLE['font-style:oblique']='Oblique';
$ARR_STYLE['font-style:inherit']='Inherit';
$ARR_WEEKLY['121']='aries.gif';
$ARR_WEEKLY['122']='taurus.gif';
$ARR_WEEKLY['123']='gemini.gif';
$ARR_WEEKLY['124']='cancer.gif';
$ARR_WEEKLY['125']='leo.gif';
$ARR_WEEKLY['126']='virgo.gif';
$ARR_WEEKLY['127']='libra.gif';
$ARR_WEEKLY['128']='scorpio.gif';
$ARR_WEEKLY['129']='sagittarius.gif';
$ARR_WEEKLY['130']='';
$ARR_WEEKLY['131']='';
$ARR_WEEKLY['132']='pisces.gif';
$ARR_SERVICE[]='Trademark Registration';
$ARR_SERVICE[]='Patent Registration';
$ARR_SERVICE[]='Company Registration';
$ARR_SERVICE[]='NBFC Registration';
$ARR_SERVICE[]='FCRA Registration';
$ARR_SERVICE[]='Logo Registration';
$ARR_SERVICE[]='NGO Registration';
$ARR_SERVICE[]='Domain Registration';
$ARR_SERVICE[]='PCT Filing ';
$ARR_SERVICE[]='Copyright Registration';
$ARR_WEEKLY_THUMB['121']='thumb_aries.gif';
$ARR_WEEKLY_THUMB['122']='thumb_taurus.gif';
$ARR_WEEKLY_THUMB['123']='thumb_gemini.gif';
$ARR_WEEKLY_THUMB['124']='thumb_cancer.gif';
$ARR_WEEKLY_THUMB['125']='thumb_leo.gif';
$ARR_WEEKLY_THUMB['126']='thumb_virgo.gif';
$ARR_WEEKLY_THUMB['127']='thumb_libra.gif';
$ARR_WEEKLY_THUMB['128']='thumb_scorpio.gif';
$ARR_WEEKLY_THUMB['129']='thumb_sagittarius.gif';
$ARR_WEEKLY_THUMB['130']='thumb_capricorn.gif';
$ARR_WEEKLY_THUMB['131']='thumb_aquarius.gif';
$ARR_WEEKLY_THUMB['132']='thumb_pisces.gif';
?>
function make_thumb_gd($imgPath, $destPath, $newWidth, $newHeight, $ratio_type = 'width', $quality = 70, $verbose = false)
{
// options for ratio type = width|height|width_height|distort|crop
// get image info (0 width and 1 height, 2 is (1 = GIF, 2 = JPG, 3 = PNG)
$size = getimagesize($imgPath);
// break and return false if failed to read image infos
if (!$size) {
if ($verbose) {
echo "Unable to read image info.";
}
return false;
}
$curWidth = $size[0];
$curHeight = $size[1];
$fileType = $size[2];
// width/height ratio
$ratio = $curWidth / $curHeight;
$thumbRatio = $newWidth / $newHeight;
$srcX = 0;
$srcY = 0;
$srcWidth = $curWidth;
$srcHeight = $curHeight;
if($ratio_type=='width_height') {
$tmpWidth = $newHeight * $ratio;
if($tmpWidth > $newWidth) {
$ratio_type='width';
} else {
$ratio_type='height';
}
}
if($ratio_type=='width') {
// If the dimensions for thumbnails are greater than original image do not enlarge
if($newWidth > $curWidth) {
$newWidth = $curWidth;
}
$newHeight = $newWidth / $ratio;
} else if($ratio_type=='height') {
// If the dimensions for thumbnails are greater than original image do not enlarge
if($newHeight > $curHeight) {
$newHeight = $curHeight;
}
$newWidth = $newHeight * $ratio;
} else if($ratio_type=='crop') {
if($ratio < $thumbRatio) {
$srcHeight = round($curHeight*$ratio/$thumbRatio);
$srcY = round(($curHeight-$srcHeight)/2);
} else {
$srcWidth = round($curWidth*$thumbRatio/$ratio);
$srcX = round(($curWidth-$srcWidth)/2);
}
} else if($ratio_type=='distort') {
}
// create image
switch ($fileType) {
case 1:
if (function_exists("imagecreatefromgif")) {
$originalImage = imagecreatefromgif($imgPath);
} else {
if ($verbose) {
echo "GIF images are not support in this php installation.";
return false;
}
}
$fileExt = 'gif';
break;
case 2:
$originalImage = imagecreatefromjpeg($imgPath);
$fileExt = 'jpg';
break;
case 3:
$originalImage = imagecreatefrompng($imgPath);
$fileExt = 'png';
break;
default:
if ($verbose) {
echo "Not a valid image type.";
}
return false;
}
// create new image
$resizedImage = imagecreatetruecolor($newWidth, $newHeight);
//echo "$srcX, $srcY, $newWidth, $newHeight, $curWidth, $curHeight";
//echo "
$srcX, $srcY, $newWidth, $newHeight, $srcWidth, $srcHeight
";
imagecopyresampled($resizedImage, $originalImage, 0, 0, $srcX, $srcY, $newWidth, $newHeight, $srcWidth, $srcHeight);
imageinterlace($resizedImage, 1);
switch ($fileExt) {
case 'gif':
imagegif($resizedImage, $destPath, $quality);
break;
case 'jpg':
imagejpeg($resizedImage, $destPath, $quality);
break;
case 'png':
imagepng($resizedImage, $destPath, $quality);
break;
}
// return true if successfull
return true;
}
function createThumbs($pathToImages,$fname,$thumbHeight='',$thumbWidth='',$ratio_type = 'width')
{
$pathToThumbs="thumb_cache/thumb_".$thumbHeight."_".$thumbWidth."_".$fname;
//echo "aaaaaaaaaaa".$pathToImages.$fname; exit;
$info = pathinfo($pathToImages . $fname);
$file_extenssion=strtolower($info['extension']);
//echo $pathToImages; exit;
$pathToImages=$pathToImages;
if(file_exists($pathToImages.$fname))
{
$pathToImages_file= $pathToImages.$fname;
$pathToThumbs2=SITE_DOC_ROOT.$pathToThumbs;
//echo $pathToThumbs2; exit;
if(!file_exists($pathToThumbs2))
{
make_thumb_gd($pathToImages_file, $pathToThumbs2, $thumbWidth, $thumbHeight, $ratio_type, $quality = 70, $verbose = false) ;
$return_path=SITE_URL.'/programs/'.$pathToThumbs;
} else {
$return_path=SITE_URL.'/programs/'.$pathToThumbs;
}
}
return $return_path;
}
function qry_str($arr, $skip = '')
{
$s = "?";
$i = 0;
foreach($arr as $key => $value) {
if ($key != $skip) {
if (is_array($value)) {
foreach($value as $value2) {
if ($i == 0) {
$s .= $key . '[]=' . $value2;
$i = 1;
} else {
$s .= '&' . $key . '[]=' . $value2;
}
}
} else {
if ($i == 0) {
$s .= "$key=$value";
$i = 1;
} else {
$s .= "&$key=$value";
}
}
}
}
return $s;
}
function db_sclar($sql_db)
{
$rs_db=mysql_query($sql_db);
$data_db=mysql_fetch_array($rs_db);
return $data_db[0];
}
function db_query($sql)
{
$rs=mysql_query($sql) or die(mysql_error());
return $rs;
}
function fun_send_sms_user_new($user,$sno,$rno,$msg)
{
$mno="91".$rno;
$sql=" SELECT ad_msg FROM tbl_ads WHERE ad_status='1' ORDER BY id DESC LIMIT 1";
$res=mysql_query($sql);
$rec=mysql_fetch_array($res);
$ad_msg=$rec['ad_msg'];
//."%0A" for next line but not supporting now
$final_msg='From : '.$sno."\n".$msg ."\n"." {".$ad_msg."}";
if($sno!=""){
func_savesms($rno,$sno,$final_msg);
}
$params="user=".$user."&senderID=tmindia&receipientno=".$rno."&msgtxt=".$final_msg."&state=4&dcs=0";
$ch = curl_init() or die(curl_error());
curl_setopt($ch, CURLOPT_POST,1);
curl_setopt($ch, CURLOPT_POSTFIELDS,$params);
curl_setopt($ch, CURLOPT_URL,"http://api.mvaayoo.com/mvaayooapi/MessageCompose?");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$buffer=curl_exec($ch) or die(curl_error());
//print_r($params);
if (empty($buffer)) { $error=1; } else {$error=0; }
curl_close($ch);
return $error;
}
function fun_send_sms_admin_new($rno,$sno,$msg)
{
$user=MVAYOO_API;
$mno="91".$rno;
$sql=" SELECT ad_msg FROM ".TABLE_ADS." WHERE ad_status='1' ORDER BY id DESC LIMIT 1";
$res=mysql_query($sql);
$rec=mysql_fetch_array($res);
$ad_msg=$rec['ad_msg'];
$final_msg='From : SMSTAU'."\n".$msg ."\n"." {".$ad_msg."}";
if($sno!=""){
func_savesms($rno,$sno,$final_msg);
}
$params = array(
/* user param is your username:password */
'user' =>MVAYOO_API,
'receipientno' => $mno,
'senderID' => 'tmindia',
'dcs' =>0,
'state' => 4,
'msgtxt' =>$final_msg);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'http://api.mVaayoo.com/mvaayooapi/MessageCompose?' . http_build_query($params));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$buffer = curl_exec($ch);
if (empty($buffer)) { $error=1; } else {$error=0; }
curl_close($ch);
return $error;
}
?>
function file_uploads($folder_name,$form_field_name,$tbl_field_name,$old_filename='')
{
$file_name=$_FILES[$form_field_name]['name'];
if($file_name!='')
{
if($old_filename!='')
{
unlink(SITE_IMAGES_FS.$folder_name."/".$old_filename);
}
$ext = pathinfo($file_name, PATHINFO_EXTENSION);
if($ext=="pdf" || $ext=="jpg" || $ext=="jpeg" || $ext=="JPG" || $ext=="JPEG")
{
$new_file_name=$folder_name."_".mt_rand()."_".$file_name;
$new_file_name1=str_replace(" ","_",$new_file_name);
$dest_path=SITE_IMAGES_FS.$folder_name."/".$new_file_name1;
$tmp_path=$_FILES[$form_field_name]['tmp_name'];
move_uploaded_file($tmp_path,$dest_path);
$sql_edit_part=" , $tbl_field_name='$new_file_name1'";
}
else
{
echo "Error in file Uploading.Please try Again with Proper file Formate"; exit;
}
}
else
{
$sql_edit_part='';
}
return $sql_edit_part;
}
function file_upload_tmp($folder_name,$form_field_name,$old_filename='')
{
$file_name=$_FILES[$form_field_name]['name'];
if($file_name!='')
{
$file_typ=$_FILES[$form_field_name]['type'];
$arr_ftyp=explode("/",$file_typ);
$img_typ=$arr_ftyp['1'];
if($img_typ=='jpeg' || $img_typ=='jpg')
{
$new_file_name=mt_rand()."_".$file_name;
$new_file_name1=str_replace(" ","_",$new_file_name);
$dest_path=SITE_IMAGES_FS.$folder_name."/".$new_file_name1;
//echo $dest_path; exit;
$tmp_path=$_FILES[$form_field_name]['tmp_name'];
move_uploaded_file($tmp_path,$dest_path);
//echo $dest_path; exit;
}
else
{
$new_file_name1=1;
}
}
return $new_file_name1;
}
/* get Domain Name*///////
function getDomain($url)
{
if(filter_var($url, FILTER_VALIDATE_URL, FILTER_FLAG_HOST_REQUIRED) === FALSE)
{
return false;
}
/*** get the url parts ***/
$parts = parse_url($url);
/*** return the host domain ***/
return $parts['scheme'].'://'.$parts['host'];
}
/*****************************///////
function db_scalar($sql)
{
$result = mysql_query($sql);
$row = mysql_fetch_row($result);
return $row[0];
}
function protect_page($id)
{
if($id=='')
{
header("location:index.php");
exit;
}
}
function sub_cat($sql,$where,$selected_value)
{
$sql2=$sql.$where;
$rs2=mysql_query($sql2);
$string2='';
while($sdata2=mysql_fetch_array($rs2))
{
$string2.="";
}
return $string2;
}
function create_droop_down($name='',$sql,$where,$selected_value,$styles)
{
$where2=$where;
$sql_cat=$sql. $where2;
//echo $sql_cat;
$string="";
return $string;
}
function create_country_droop_down($name='',$selected_value,$styles)
{
$sql_cat="select * from tbl_countries where 1";
$string="";
$rs=mysql_query($sql_cat);
while($sdata=mysql_fetch_row($rs)) {
$string.="";
}
return $string;
}
function makeLink($string){
/*** make sure there is an http:// on all URLs ***/
$string = preg_replace("/([^\w\/])(www\.[a-z0-9\-]+\.[a-z0-9\-]+)/i", "$1http://$2",$string);
/*** make all URLs links ***/
$string = preg_replace("/([\w]+:\/\/[\w-?&;#~=\.\/\@]+[\w\/])/i","$1",$string);
/*** make all emails hot links ***/
$string = preg_replace("/([\w-?&;#~=\.\/]+\@(\[?)[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,3}|[0-9]{1,3})(\]?))/i","$1",$string);
return $string;
}
function get_img($url)
{
$input = @file_get_contents($url) or die("Could not access file: $url");
$regexp = "]*src=(\"??)([^\" >]*?)\\1[^>]*>(.*)";
if(preg_match_all("/$regexp/siU", $input, $matches)) {
return $matches;
}
}
function GetDomain2($url)
{
$nowww = ereg_replace('www\.','',$url);
$domain = parse_url($nowww);
if(!empty($domain["host"]))
{
return $domain["host"];
} else
{
return $domain["path"];
}
}
function fetch_and_parse_page($url)
{
$html = @file_get_contents($url);
/* get page's title */
preg_match("/
The academic facilities at Mangalayatan University are class apart, providing a comprehensive environment to the students to boost confidence and motivation to perform their best.
The university follows Semester System, such as,There is a Winter-Vacation of approximately 3 weeks in the months of December- January and, a Summer-Vacation of approximately 8 weeks, in the months of June and July.
Additionally, a special semester called, the Summer Semester is conducted for students who were short on attendance rolls, and were unable to appear in the Normal Semester-end examinations.
The university caters a continuous evaluation system, with focus on assignments, quizzes and regular tests, for which the student earns credits based on the subjects chosen.
25 credits are required for completing a semester, upon which GPA (Grade Point Average), is counted for each student.
On completion of more than one semester, CGPA (Cumulative Grade Point Average) is computed, and keeps getting revised, as more and more completed semesters are added.
The final CGPA score is given at the completion of the degree.
COMPUTERSTo aid in distinguished levels of study, students at Mangalayatan University enjoy, Wi-Fi enable facilities on campus premises, with singular access to computer labs.
Sumangalam Hostel, home to nearly 700 university students, is fully Wi-Fi enabled, with a 1 Gbps internet connection.
The Central Computer Centre is equipped with 150 computers, and is open till late hours of the night.
Also, there is a dedicated Information Services Department to look after the university's computational needs, with two engineers being permanently stationed on campus.
The Information Services Department, manages the community portal of Mangalayatan University, access to which is provided to all students and staff members, through an elaborate, efficient ERP – Enterprise Resource Planning system covering all university operations.
LABORATORIESMangalayatan University boasts of particularized well-maintained labs in the country for all streams of education.
A total of 74 laboratories are premised on campus, and are department- specific as well, such as, MEMS, Electrical Machines, Microwave, Cell Biology, VLSI, Microprocessors etc, and many others under-development.