include_once('configs.php'); include_once('includes/classes/Publisher.class.php'); include_once('includes/classes/Journallist.class.php'); include_once('includes/classes/Country.class.php'); include_once('includes/classes/Areaofresearch.class.php'); include_once('includes/classes/Indexby.class.php'); $objJournal=new Journal(); $objPublisher=new Publisher(); $objPublisher->checkSessionUser(); $objCountry=new Country(); $objAreamodule=new Areaofresearch(); $objIndexby=new Indexby(); $InfoDataAreaofresearch = $objAreamodule->ActiveAreaofResearch(); $InfoDataCountry = $objCountry->AllCountry(); $objDataIndexby=$objIndexby->ActiveIndexby(); if(isset($_POST['SubmitJournalBtn']) and $_POST['SubmitJournalBtn']!="") { //print_r($_POST);die; unset($_SESSION['journal_title']); unset($_SESSION['issn_no']); if($_POST['journal_title']) { $query=$objJournal->checkJournalExist($_POST['journal_title']); if(mysqli_num_rows($query) > 0) { $error= 'Journal already exist.'; } else { $_POST['perma_link']=str_replace('?','',str_replace(' ','-',str_replace('&','',str_replace('& ','',trim(strtolower($_POST['journal_title'])))))); $_POST['publisher_id']=$_SESSION['userid']['user_id']; $_POST['publisher']=$_SESSION['userid']['company_name']; $_POST['user_type']=2; $_POST['status']=0; if($objJournal->JournalAddPublisher($_POST,$_FILES)) { redirectUrl('success.php'); } } } } ?>