Server IP : 92.204.138.22 / Your IP : 3.139.105.38 Web Server : Apache System : Linux ns1009439.ip-92-204-138.us 4.18.0-553.8.1.el8_10.x86_64 #1 SMP Tue Jul 2 07:26:33 EDT 2024 x86_64 User : internationaljou ( 1019) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/internationaljou/www/application/admin1/ |
Upload File : |
<?php include('config.php'); if(isset($_POST['submit']) && ($_POST['submit'] == 'login')) { ob_start(); @session_start(); $login['username'] = trim($_POST['username']); $login['password'] = md5($_POST['password']); $log_sql = "select * from `login` where `username`='".$login['username']."' and `password` = '".$login['password']."' "; $log_qr = mysqli_query($conn,$log_sql); $log_res = mysqli_num_rows($log_qr); if($log_res == 1) { $log_fet = mysqli_fetch_array($log_qr); $_SESSION['user_id'] = "101"; $_SESSION['u-name'] = "Admin"; //header('location:dashboard.php'); echo '<script type="text/javascript">window.location.href="dashboard.php";</script>"'; } else { echo '<script type="text/javascript">alert("username and password is wrong");window.location.href="index.php";</script>"'; } } // Change Admin Password Start if(isset($_POST['ch_pass']) && ($_POST['ch_pass'] == 'Update')) { //$password = md5($_POST["password"]); $login['username'] = $_POST['username']; $login['password'] = md5($_POST['password']); $log_sql="update `login` set `username`='".$login['username']."',`password`='".$login['password']."' where `id`='1' "; $log_qr = mysqli_query($conn,$log_sql); if($log_qr == TRUE){ echo '<script type="text/javascript">alert("Account Updated Successfully");window.location.href="profile.php";</script>"'; } else { echo '<script type="text/javascript">alert("Account Not Updated Successfully");window.location.href="profile.php";</script>"'; } } // Add DSJE Info Start if(isset($_POST['add_ijcse']) && ($_POST['add_ijcse'] == 'Save')) { $jname = $_POST['jname']; $dio = trim($_POST['dio']); $paper_id = trim($_POST['paper_id']); $title1= str_replace( "<a>", "", $_POST['title'] ); $title = str_replace( "</a>", "", $title1); $author = trim($_POST['author']); $volume = trim($_POST['volume']); $issue = trim($_POST['issue']); $volume1 = str_replace(" ","",$volume); $issue1 = str_replace(" ","",$issue); $month = trim($_POST['month']); $year = trim($_POST['year']); $path = 'IJCSE/'.$year.'/'; if (!file_exists($path)){mkdir($path);} $target_path = 'IJCSE/'.$year.'/'.$volume1.'-'.$issue1.'/'; if (!file_exists($target_path)){mkdir($target_path);} $validextensions = array(".pdf", ".PDF"); //Extensions which are allowed $ext = explode('.', basename($_FILES['pdf']['name'])); $file_extension = end($ext); //store extensions in the variable $filepath =$paper_id.'.pdf'; //$target = $target_path.$filepath; $target = $target_path.$filepath; move_uploaded_file($_FILES['pdf']['tmp_name'], $target); $abstract= str_replace( "'", "`@", $_POST['abstract'] ); $keywords= str_replace( "'", "`@", $_POST['keywords'] ); $mla= str_replace( "'", "`@", $_POST['mla'] ); $apa= str_replace( "'", "`@", $_POST['apa'] ); $references= str_replace( "'", "`@", $_POST['details'] ); // $references = implode(',@', $_POST['details']); $status= trim($_POST['status']); $log_sql = "insert into `ijcse`(`joural_name`,`dio`,`paperid`,`journal_title`,`author`,`volume`,`issue`,`month`,`year`,`pdf`,`abstract`,`reference`,`keywords`,`mla`,`apa`,`status`,`reg_date`) values ('".$jname."','".$dio."','".$paper_id."','".$title."','".$author."','".$volume."','".$issue."','".$month."','".$year."','".$target."','".$abstract."','".$references."','".$keywords."','".$mla."','".$apa."','".$status."',Now())"; $log_qr = mysqli_query($conn,$log_sql); if($log_qr == TRUE) { echo '<script type="text/javascript">alert(" IJCSE Information inserted successfully ");window.location.href="ijcse.php";</script>"'; } else { echo mysql_error(); echo '<script type="text/javascript">alert(" IJCSE Information Not inserted");window.location.href="add_ijcse.php";</script>"'; } } // Add DSJE Info End // Update DSJE Info Start if(isset($_POST['edit_ijcse']) && ($_POST['edit_ijcse'] == 'Save')) { $joural_name = $_POST['jname']; $dio = trim($_POST['dio']); $paperid = trim($_POST['paper_id']); $title1= str_replace( "<a>", "", $_POST['title'] ); $title = str_replace( "</a>", "", $title1); $author = trim($_POST['author']); $volume = trim($_POST['volume']); $issue = trim($_POST['issue']); $volume1 = str_replace(" ","",$volume); $issue1 = str_replace(" ","",$issue); $month = trim($_POST['month']); $year = trim($_POST['year']); if(!empty($_FILES['pdf']['tmp_name'])) { $path = '../JE/'.$year.'/'; if (!file_exists($path)){mkdir($path);} $target_path = '../JE/'.$year.'/'.$volume1.'-'.$issue1.'/'; if (!file_exists($target_path)){mkdir($target_path);} $validextensions = array(".pdf", ".PDF"); //Extensions which are allowed $ext = explode('.', basename($_FILES['pdf']['name'])); $file_extension = end($ext); //store extensions in the variable $filepath =$paperid.'.pdf'; //$target = $target_path.$filepath; $target = $target_path.$filepath; move_uploaded_file($_FILES['pdf']['tmp_name'], $target); } else { $target= trim($_POST['oldpdf']); } $abstract= str_replace( "'", "`@", $_POST['abstract'] ); $keywords= str_replace( "'", "`@", $_POST['keywords'] ); $mla= str_replace( "'", "`@", $_POST['mla'] ); $apa= str_replace( "'", "`@", $_POST['apa'] ); $references= str_replace( "'", "`@", $_POST['details'] ); // $references = implode(',@', $_POST['details']); $status= trim($_POST['status']); $sno= trim($_POST['sno']); $log_sql = "update `ijcse` set `joural_name`='".$joural_name."',`dio`='".$dio."',`paperid`='".$paperid."',`journal_title`='".$title."',`author`='".$author."',`volume`='".$volume."',`issue`='".$issue."',`month`='".$month."',`year`='".$year."',`pdf`='".$target."', `abstract`='".$abstract."',`reference`='".$references."',`keywords`='".$keywords."',`mla`='".$mla."',`apa`='".$apa."',`status`='".$status."' where sno='".$sno."'"; $log_qr = mysqli_query($conn,$log_sql); if($log_qr == TRUE) { echo '<script type="text/javascript">alert(" IJCSE Information Updated successfully ");window.location.href="ijcse.php";</script>"'; } else { echo '<script type="text/javascript">alert("IJCSE Information Not Updated");window.location.href="ijcse.php";</script>"'; } } // Update DSJE Info End // Add DSJLS Info Start if(isset($_POST['add_dsjls']) && ($_POST['add_dsjls'] == 'Save')) { $jname = $_POST['jname']; $dio = trim($_POST['dio']); $paper_id = trim($_POST['paper_id']); $title1= str_replace( "<a>", "", $_POST['title'] ); $title = str_replace( "</a>", "", $title1); $author = trim($_POST['author']); $volume = trim($_POST['volume']); $issue = trim($_POST['issue']); $volume1 = str_replace(" ","",$volume); $issue1 = str_replace(" ","",$issue); $month = trim($_POST['month']); $year = trim($_POST['year']); $path = '../JLS/'.$year.'/'; if (!file_exists($path)){mkdir($path);} $target_path = '../JLS/'.$year.'/'.$volume1.'-'.$issue1.'/'; if (!file_exists($target_path)){mkdir($target_path);} $validextensions = array(".pdf", ".PDF"); //Extensions which are allowed $ext = explode('.', basename($_FILES['pdf']['name'])); $file_extension = end($ext); //store extensions in the variable $filepath =$paper_id.'.pdf'; //$target = $target_path.$filepath; $target = $target_path.$filepath; move_uploaded_file($_FILES['pdf']['tmp_name'], $target); $abstract= str_replace( "'", "`@", $_POST['abstract'] ); $keywords= str_replace( "'", "`@", $_POST['keywords'] ); $mla= str_replace( "'", "`@", $_POST['mla'] ); $apa= str_replace( "'", "`@", $_POST['apa'] ); $references= str_replace( "'", "`@", $_POST['details'] ); // $references = implode(',@', $_POST['details']); $status= trim($_POST['status']); $log_sql = "insert into `dsjls`(`joural_name`,`dio`,`paperid`,`journal_title`,`author`,`volume`,`issue`,`month`,`year`,`pdf`,`abstract`,`references`,`keywords`,`mla`,`apa`,`status`,`reg_date`) values ('".$jname."','".$dio."','".$paper_id."','".$title."','".$author."','".$volume."','".$issue."','".$month."','".$year."','".$target."','".$abstract."','".$references."','".$keywords."','".$mla."','".$apa."','".$status."',Now())"; $log_qr = mysqli_query($conn,$log_sql); if($log_qr == TRUE) { echo '<script type="text/javascript">alert(" DSJLS Information inserted successfully ");window.location.href="dsjls.php";</script>"'; } else { echo mysql_error(); echo '<script type="text/javascript">alert(" DSJLS Information Not inserted");window.location.href="add_dsjls.php";</script>"'; } } // Add DSJLS Info End // Update DSJLS Info Start if(isset($_POST['edit_dsjls']) && ($_POST['edit_dsjls'] == 'Save')) { $joural_name = $_POST['jname']; $dio = trim($_POST['dio']); $paperid = trim($_POST['paper_id']); $title1= str_replace( "<a>", "", $_POST['title'] ); $title = str_replace( "</a>", "", $title1); $author = trim($_POST['author']); $volume = trim($_POST['volume']); $issue = trim($_POST['issue']); $volume1 = str_replace(" ","",$volume); $issue1 = str_replace(" ","",$issue); $month = trim($_POST['month']); $year = trim($_POST['year']); if(!empty($_FILES['pdf']['tmp_name'])) { $path = '../JLS/'.$year.'/'; if (!file_exists($path)){mkdir($path);} $target_path = '../JLS/'.$year.'/'.$volume1.'-'.$issue1.'/'; if (!file_exists($target_path)){mkdir($target_path);} $validextensions = array(".pdf", ".PDF"); //Extensions which are allowed $ext = explode('.', basename($_FILES['pdf']['name'])); $file_extension = end($ext); //store extensions in the variable $filepath =$paperid.'.pdf'; //$target = $target_path.$filepath; $target = $target_path.$filepath; move_uploaded_file($_FILES['pdf']['tmp_name'], $target); } else { $target= trim($_POST['oldpdf']); } $abstract= str_replace( "'", "`@", $_POST['abstract'] ); $keywords= str_replace( "'", "`@", $_POST['keywords'] ); $mla= str_replace( "'", "`@", $_POST['mla'] ); $apa= str_replace( "'", "`@", $_POST['apa'] ); $references= str_replace( "'", "`@", $_POST['details'] ); // $references = implode(',@', $_POST['details']); $status= trim($_POST['status']); $sno= trim($_POST['sno']); $log_sql = "update `dsjls` set `joural_name`='".$joural_name."',`dio`='".$dio."',`paperid`='".$paperid."',`journal_title`='".$title."',`author`='".$author."',`volume`='".$volume."',`issue`='".$issue."',`month`='".$month."',`year`='".$year."',`pdf`='".$target."', `abstract`='".$abstract."',`references`='".$references."',`keywords`='".$keywords."',`mla`='".$mla."',`apa`='".$apa."',`status`='".$status."' where sno='".$sno."'"; $log_qr = mysqli_query($conn,$log_sql); if($log_qr == TRUE) { echo '<script type="text/javascript">alert(" DSJLS Information Updated successfully ");window.location.href="dsjls.php";</script>"'; } else { echo '<script type="text/javascript">alert("DSJLS Information Not Updated");window.location.href="dsjls.php";</script>"'; } } // Update DSJLS Info End // Add DSJST Info Start if(isset($_POST['add_dsjst']) && ($_POST['add_dsjst'] == 'Save')) { $jname = $_POST['jname']; $dio = trim($_POST['dio']); $paper_id = trim($_POST['paper_id']); $title1= str_replace( "<a>", "", $_POST['title'] ); $title = str_replace( "</a>", "", $title1); $author = trim($_POST['author']); $volume = trim($_POST['volume']); $issue = trim($_POST['issue']); $volume1 = str_replace(" ","",$volume); $issue1 = str_replace(" ","",$issue); $month = trim($_POST['month']); $year = trim($_POST['year']); $path = '../JST/'.$year.'/'; if (!file_exists($path)){mkdir($path);} $target_path = '../JST/'.$year.'/'.$volume1.'-'.$issue1.'/'; if (!file_exists($target_path)){mkdir($target_path);} $validextensions = array(".pdf", ".PDF"); //Extensions which are allowed $ext = explode('.', basename($_FILES['pdf']['name'])); $file_extension = end($ext); //store extensions in the variable $filepath =$paper_id.'.pdf'; //$target = $target_path.$filepath; $target = $target_path.$filepath; move_uploaded_file($_FILES['pdf']['tmp_name'], $target); $abstract= str_replace( "'", "`@", $_POST['abstract'] ); $keywords= str_replace( "'", "`@", $_POST['keywords'] ); $mla= str_replace( "'", "`@", $_POST['mla'] ); $apa= str_replace( "'", "`@", $_POST['apa'] ); $references= str_replace( "'", "`@", $_POST['details'] ); // $references = implode(',@', $_POST['details']); $status= trim($_POST['status']); $log_sql = "insert into `dsjst`(`joural_name`,`dio`,`paperid`,`journal_title`,`author`,`volume`,`issue`,`month`,`year`,`pdf`,`abstract`,`references`,`keywords`,`mla`,`apa`,`status`,`reg_date`) values ('".$jname."','".$dio."','".$paper_id."','".$title."','".$author."','".$volume."','".$issue."','".$month."','".$year."','".$target."','".$abstract."','".$references."','".$keywords."','".$mla."','".$apa."','".$status."',Now())"; $log_qr = mysqli_query($conn,$log_sql); if($log_qr == TRUE) { echo '<script type="text/javascript">alert(" DSJST Information inserted successfully ");window.location.href="dsjst.php";</script>"'; } else { echo mysql_error(); echo '<script type="text/javascript">alert(" DSJST Information Not inserted");window.location.href="add_dsjst.php";</script>"'; } } // Add DSJST Info End // Update DSJST Info Start if(isset($_POST['edit_dsjst']) && ($_POST['edit_dsjst'] == 'Save')) { $joural_name = $_POST['jname']; $dio = trim($_POST['dio']); $paperid = trim($_POST['paper_id']); $title1= str_replace( "<a>", "", $_POST['title'] ); $title = str_replace( "</a>", "", $title1); $author = trim($_POST['author']); $volume = trim($_POST['volume']); $issue = trim($_POST['issue']); $volume1 = str_replace(" ","",$volume); $issue1 = str_replace(" ","",$issue); $month = trim($_POST['month']); $year = trim($_POST['year']); if(!empty($_FILES['pdf']['tmp_name'])) { $path = '../JST/'.$year.'/'; if (!file_exists($path)){mkdir($path);} $target_path = '../JST/'.$year.'/'.$volume1.'-'.$issue1.'/'; if (!file_exists($target_path)){mkdir($target_path);} $validextensions = array(".pdf", ".PDF"); //Extensions which are allowed $ext = explode('.', basename($_FILES['pdf']['name'])); $file_extension = end($ext); //store extensions in the variable $filepath =$paperid.'.pdf'; //$target = $target_path.$filepath; $target = $target_path.$filepath; move_uploaded_file($_FILES['pdf']['tmp_name'], $target); } else { $target= trim($_POST['oldpdf']); } $abstract= str_replace( "'", "`@", $_POST['abstract'] ); $keywords= str_replace( "'", "`@", $_POST['keywords'] ); $mla= str_replace( "'", "`@", $_POST['mla'] ); $apa= str_replace( "'", "`@", $_POST['apa'] ); $references= str_replace( "'", "`@", $_POST['details'] ); // $references = implode(',@', $_POST['details']); $status= trim($_POST['status']); $sno= trim($_POST['sno']); $log_sql = "update `dsjst` set `joural_name`='".$joural_name."',`dio`='".$dio."',`paperid`='".$paperid."',`journal_title`='".$title."',`author`='".$author."',`volume`='".$volume."',`issue`='".$issue."',`month`='".$month."',`year`='".$year."',`pdf`='".$target."', `abstract`='".$abstract."',`references`='".$references."',`keywords`='".$keywords."',`mla`='".$mla."',`apa`='".$apa."',`status`='".$status."' where sno='".$sno."'"; $log_qr = mysqli_query($conn,$log_sql); if($log_qr == TRUE) { echo '<script type="text/javascript">alert(" DSJST Information Updated successfully ");window.location.href="dsjst.php";</script>"'; } else { echo '<script type="text/javascript">alert("DSJST Information Not Updated");window.location.href="dsjst.php";</script>"'; } } if(isset($_POST['Current_issue'])) { $sno = $_POST['sno']; $volume = trim($_POST['volume']); $issue = trim($_POST['issue']); $log_sql = "update `current_issue` set `volume`='".$volume."',`issue`='".$issue."' where sno='".$sno."'"; $log_qr = mysqli_query($conn,$log_sql); if($log_qr == TRUE) { echo '<script type="text/javascript">alert(" Current_issue Updated successfully ");window.location.href="current_issue.php";</script>"'; } else { echo '<script type="text/javascript">alert("Current_issue Not Updated");window.location.href="current_issue.php";</script>"'; } } // Update DSJST Info End //if condition is not fount then re-direct to dashboard page start echo '<script type="text/javascript">window.location.href="index.php";</script>"'; //if condition is not fount then re-direct to dashboard page end ?>