include_once "currentdir.php";
session_start();
$sajax_remote_uri="$ajaxfunc_file_path?f=$_SESSION[func]";
$sajax_request_type="POST";
sajax_export($_SESSION["func"]);
include "menu.php";
include "leftmenu.php";
include "article_top.php";
$objsmarty->assign("articletpl",$middle_fname);
include "gallery_top.php";
$objsmarty->assign("gallerytpl",$middle_fname);
include "news_top.php";
$objsmarty->assign("newstpl",$middle_fname);
include "notice.php";
$objsmarty->assign("noticetpl",$middle_fname);
if($_REQUEST[$action]=="pg")
{
include "pages.php";
}
elseif($_REQUEST[$action]=="calender")
{
include "calendar.php";
}
elseif($_REQUEST[$action]=="contact")
{
include "contact.php";
}
elseif($_REQUEST[$action]=="qry")
{
$middle_fname="query.$tpl_ext";
}
elseif($_REQUEST[$action]=="sqry")
{
include "send_query.php";
}
elseif($_REQUEST[$action]=="ssuccessfully")
{
$middle_fname="send_successfully.$tpl_ext";
}
elseif($_REQUEST[$action]=="nwtop")
{
$label="Top News";
include "news_top.php";
}
elseif($_REQUEST[$action]=="reg_report")
{
$label="Top News";
include "report_schedule.php";
}
else if($_REQUEST[$action]=="nwview")
{
$label="News";
include "news_view.php";
}
else if($_REQUEST[$action]=="homeworkview")
{
$label="News";
include "news_view.php";
}
else if($_REQUEST[$action]=="nwview")
{
$label="News";
include "news_view.php";
}
else if($_REQUEST[$action]=="syllabusview")
{
$label="Syllabus";
include "syllabus_view.php";
}
else if($_REQUEST[$action]=="video")
{
$label="Video ";
include "video.php";
}
else if($_REQUEST[$action]=="nwcat")
{
$label="News Category";
include "news_categorywise.php";
}
else if($_REQUEST[$action]=="homeworkcat")
{
$label="Homework Category";
include "homework_categorywise.php";
}
else if($_REQUEST[$action]=="syllabuscat")
{
$label="Syllabus Category";
include "syllabus_categorywise.php";
}
else if($_REQUEST[$action]=="artop")
{
$label="Top Article";
include "article_top.php";
}
else if($_REQUEST[$action]=="circlr")
{
$label="Circular";
include "circular.php";
}
else if($_REQUEST[$action]=="circlrview")
{
$label="Circular";
include "circular_view.php";
}
else if($_REQUEST[$action]=="arview")
{
$label="Article";
include "article_view.php";
}
else if($_REQUEST[$action]=="arcat")
{
$label="Article Category";
include "article_categorywise.php";
}
else if($_REQUEST[$action]=="ntsview")
{
$label="Notice";
include "notice_view.php";
}
else if($_REQUEST[$action]=="gal")
{
$label="Image Gallery";
include "gallery.php";
}
else if($_REQUEST[$action]=="imggal")
{
$label="Image Gallery";
include "gallery_image.php";
}
else if($_REQUEST[$action]=="graph")
{
include "check_authorization.php";
$loginsection=1;
$label="My Exams";
include "graph.php";
}
else if($_REQUEST[$action]=="dlds")
{
$label="Downloads";
include "download.php";
}
else if($_REQUEST[$action]=="aluview")
{
include "alumni_view1.php";
}
else if($_REQUEST[$action]=="fdlds")
{
$label="File Download";
include "download_file.php";
}
else if($_REQUEST[$action]=="savedlds")
{
//$label="File Download";
include "download_save.php";
}
else if($_REQUEST[$action] =='cvdld')
{
include "download_cv.php";
}
else if($_REQUEST[$action]=="search")
{
include "check_authorization.php";
$loginsection=2;
//$label="Assignment";
include "search_alumni.php";
}
else if($_REQUEST[$action]=="assgview")
{
include "check_authorization.php";
$loginsection=1;
$label="Assignment";
include "assignmentsview.php";
}
else if($_REQUEST[$action]=="assmtview")
{
include "check_authorization.php";
$loginsection=1;
$label="Assignment";
include "assignments.php";
}
else if($_REQUEST[$action]=="sectionview")
{
include "check_authorization.php";
$loginsection=1;
$label="Assignment";
include "assignments.php";
}
else if($_REQUEST[$action]=="assmt")
{
include "check_authorization.php";
$loginsection=1;
$label="Assignment";
include"assignments_view.php";
//include "assignments.php";
}
else if($_REQUEST[$action]=="saveassmts")
{
include "check_authorization.php";
$loginsection=1;
include "assignment_save.php";
}
else if($_REQUEST[$action]=="lin")
{
$label="Login";
include "login.php";
}
else if($_REQUEST[$action]=="unauthorize")
{
$label="Unauthorize Access";
$middle_fname="unauthorized.htm";
}
else if($_REQUEST[$action]=="lout")
{
$label="Logout";
include "logout.php";
}
else if($_REQUEST[$action]=="fdld")
{
include "file_download.php";
}
else if($_REQUEST[$action]=="showimg")
{
include "showimage.php";
}
else if($_REQUEST[$action]=="achmtview")
{
include "achievement_view.php";
}
else if($_REQUEST[$action]=="assmtreply")
{
include "check_authorization.php";
$loginsection=1;
$label="Assignment Reply";
include "assignment_reply.php";
}
else if($_REQUEST[$action]=="saveassmtreply")
{
include "check_authorization.php";
$loginsection=1;
include "assignment_reply_save.php";
}
else if($_REQUEST[$action]=="uprofile")
{
include "check_authorization.php";
$loginsection=1;
$label="My Profile";
if($utype=="E")
include "employees_view.php";
else if($utype=="S")
include "student_view.php";
else if($utype=="A")
include "alumni_view.php";
$param=base64_encode($param);
$objsmarty->assign("param",$param);
}
else if($_REQUEST[$action]=="aluprofile")
{
include "check_authorization.php";
$loginsection=2;
$label="My Profile";
if($utype=="E")
include "employees_view.php";
else if($utype=="S")
include "student_view.php";
else if($utype=="A")
include "alumni_view1.php";
$param=base64_encode($param);
$objsmarty->assign("param",$param);
}
else if($_REQUEST[$action]=="savealu")
{
$loginsection=2;
include "alumni_save1.php";
}
else if($_REQUEST[$action]=="savestu")
{
$loginsection=1;
include "student_save.php";
}
else if($_REQUEST[$action]=="saveemp")
{
$loginsection=1;
include "employees_save.php";
}
else if($_REQUEST[$action]=="assmtstu")
{
include "check_authorization.php";
$loginsection=1;
$label="Assignment";
include "assignment_studentlist.php";
}
else if($_REQUEST[$action]=="art")
{
include "check_authorization.php";
$loginsection=1;
$label="Articles";
include "article.php";
}
else if($_REQUEST[$action]=="aluart")
{
include "check_authorization.php";
$loginsection=2;
$label="Articles";
include "alumni_article.php";
}
else if($_REQUEST[$action]=="searchalu")
{
//include "check_authorization.php";
$loginsection=2;
//$label="Articles";
include "search_alumni.php";
}
else if($_REQUEST[$action]=="savearticle")
{
include "check_authorization.php";
$loginsection=1;
include "article_save.php";
}
else if($_REQUEST[$action]=="savearticlealu")
{
include "check_authorization.php";
$loginsection=2;
include "alumni_alumni_save.php";
}
else if($_REQUEST[$action]=="imsg")
{
include "check_authorization.php";
$loginsection=1;
$label="Internal Messaging";
include "message.php";
}
else if($_REQUEST[$action]=="aluimsg")
{
include "check_authorization.php";
$loginsection=2;
$label="Internal Messaging";
include "alumni_message.php";
}
else if($_REQUEST[$action]=="imsgc")
{
include "check_authorization.php";
$loginsection=1;
$label="Internal Messaging";
include "message_compose.php";
}
else if($_REQUEST[$action]=="aluimsgc")
{
include "check_authorization.php";
$loginsection=2;
$label="Internal Messaging";
include "alumni_message_compose.php";
}
else if($_REQUEST[$action]=="saveimsg")
{
include "check_authorization.php";
$loginsection=1;
include "message_save.php";
}
else if($_REQUEST[$action]=="alusaveimsg")
{
include "check_authorization.php";
$loginsection=2;
include "alumni_message_save.php";
}
else if($_REQUEST[$action]=="imsgsel")
{
include "check_authorization.php";
$loginsection=1;
if($_REQUEST["rtype"]=="S")
include "message_student.php";
else
include "message_employee.php";
}
else if($_REQUEST[$action]=="aluimsgsel")
{
include "check_authorization.php";
$loginsection=2;
if($_REQUEST["rtype"]=="A")
include "message_alumni.php";
else if($_REQUEST["rtype"]=="E")
include "message_emp_alumni.php";
}
else if($_REQUEST[$action]=="imsgview")
{
include "check_authorization.php";
$loginsection=1;
include "message_view.php";
}
else if($_REQUEST[$action]=="logalu")
{
include "check_authorization.php";
$loginsection=2;
}
else if($_REQUEST[$action]=="logged")
{
include "check_authorization.php";
$loginsection=1;
}
else if(substr($_REQUEST[$action],0,5)=="cpass")
{
$loginsection=1;
include "change_pass.php";
}
//start guest book feature//
else if($_REQUEST[$action]=="gbook")
{
$label = "Guest Book";
include "guest_book.php";
}
else if($_REQUEST[$action]=="gbook_save")
{
$label = "Guest Book";
include "guest_book_save.php";
}
//end guest book feature//
//start jobs feature//
else if($_REQUEST[$action] == "votepoll")
{
include "votepoll.php";
}
else if($_REQUEST[$action] == "showpoll")
{
include "showpoll.php";
}
else if($_REQUEST[$action] == "newslatter_save")
{
include "newslatter_save.php";
}
else if($_REQUEST[$action] == "jobs")
{
$label = "Jobs @ DPS";
include "jobs.php";
}
else if($_REQUEST[$action] == "applyjob")
{
include "jobs_apply.php";
}
//end jobs feature//
else if(substr($_REQUEST[$action],0,4)=="skul")
{
include "subpages.php";
}
//start alumni feature//
//--added for student gallery feature --//
else if($_REQUEST[$action]=="studgal")
{
include "check_authorization.php";
$loginsection=1;
$label="My Gallery";
include "student_gallery.php";
}
//--end addition for student gallery feature--//
//--added for student achieve feature --//
else if($_REQUEST[$action]=="studachieve")
{
include "check_authorization.php";
$loginsection=1;
$label="My Achievements";
include "student_achieve.php";
}
else if($_REQUEST[$action]=="achdetail")
{
$label="Achievement Details";
include "student_ach_details.php";
}
//--end addition for student achieve feature--//
else if($_REQUEST[$action]=="stud_gal_img")
{
$label="Image Gallery";
include "view_student_gal_img.php";
}
else if($_REQUEST[$action] == 'alumni')
{
include "alumni.php";
}
else if($_REQUEST[$action] == 'save_alumni')
{
include "alumni_save.php";
}
//end alumni feature//
else
{
die(displaymsg("Invalid Request"));
//$middle_fname="test.htm";
}
if($control_name!="")
{
$tinyeditor="
";
$objsmarty->assign("tinyeditor",$tinyeditor);
}
//fetch banners//
/*
$topsql1="select pageid from banners where del='N' and position !='Index'";
$objdb->execute_query($topsql1);
$objdb->fetch_array();
$npgid=$objdb->f('pageid');
if($_REQUEST['pgid'] != $npgid)
{
$npgid = 0;
}
if($_REQUEST['spgid'] != $npgid)
{
$npgid = 0;
}
$topsql="select id,position,name,url,imgPath from banners where pageid='0' and del='N' and position !='Index' and isActive='Y'";
$objdb->execute_query($topsql);
$topbanner=array(); $rightbanner = array();
while($objdb->fetch_array())
{
if($objdb->f('position') == 'Top')
{
$topban[$objdb->f('id')]['position'] = $objdb->f('position');
$topban[$objdb->f('id')]['pageid'] = $objdb->f('pageid');
$topban[$objdb->f('id')]['name'] = $objdb->f('name');
$topban[$objdb->f('id')]['url'] = $objdb->f('url');
$topban[$objdb->f('id')]['imgPath'] = $objdb->f('imgPath');
}
else
{
$rightban[$objdb->f('id')]['position'] = $objdb->f('position');
$rightban[$objdb->f('id')]['pageid'] = $objdb->f('pageid');
$rightban[$objdb->f('id')]['name'] = $objdb->f('name');
$rightban[$objdb->f('id')]['url'] = $objdb->f('url');
$rightban[$objdb->f('id')]['imgPath'] = $objdb->f('imgPath');
$file = explode(".",$objdb->f('imgPath'));
$ext = $file[count($file)-1];
$rightban[$objdb->f('id')]['ext'] = strtolower($ext);
//print_r($rightbanner);
}
}
//end fetch banners//
*/
$_SESSION["msg"]=displaymsg($_SESSION["msg"]);
$_SESSION["message"]=displaymsg($_SESSION["message"]);
$_SESSION["func"]="bypass";
$sajax_remote_uri="$ajaxfunc_file_path?f=$_SESSION[func]";
$sajax_request_type="POST";
sajax_export($_SESSION["func"]);
//$objsmarty->assign("includeleft",$includeleft);
//$objsmarty->assign("arr_modules",$arr_modules);
$objsmarty->assign("topban",$topban);
$objsmarty->assign("rightban",$rightban);
$objsmarty->assign("action",$action);
$objsmarty->assign("action_value",$action_value);
$objsmarty->assign("sel_case",$sel_case);
$objsmarty->assign("label",$label);
$objsmarty->assign("middle_fname",$middle_fname);
//$objsmarty->assign("left_fname","left.$tpl_ext");
if($loginsection==0)
{
$objsmarty->assign("header_fname","header.$tpl_ext");
$objsmarty->assign("footer_fname","footer.$tpl_ext");
$objsmarty->assign("arrmenus",$arrmenus);
$objsmarty->display("main.$tpl_ext");
}
else if($loginsection==1)
{
include "message_new.php";
$objsmarty->display("logged.$tpl_ext");
}
else if($loginsection==2)
{
include "message_new.php";
$objsmarty->display("logged_alumni.$tpl_ext");
}
//unset($_SESSION["error"]);print_r($GLOBALS);
exit();
?>