Monkey Albino

Linux altar53.supremepanel53.com 4.18.0-553.8.1.lve.el8.x86_64 #1 SMP Thu Jul 4 16:24:39 UTC 2024 x86_64
/ home/ bdapparelinfo/ www/ bjmea-1463dbf457e80c13-admin/

/home/bdapparelinfo/www/bjmea-1463dbf457e80c13-admin/editcontent_submit.php

<?php require_once("check_session.php");?>
<?php
require_once("config.php");
$config_obj = new database_config();
$config_obj->database_connect();
$id =$_REQUEST['id'];
$image1 =$_REQUEST['id1'];
$image2 =$_REQUEST['id2'];
$image3 =$_REQUEST['id3'];
$des = $_REQUEST['des'];
$title = $_REQUEST['title'];
$Company_Name = $_REQUEST['company_name'];
$pages_content = $_REQUEST['pages_name'];
$images_align = $_REQUEST['img_align'];

$files_temp=$_FILES['image']['tmp_name'];
$image_name=$_FILES['image']['name'];
$image_type=$_FILES['image']['type'];
$image_size=$_FILES['image']['size'];

$t=time();
$files_dir="upload/";
$iname=$t.$image_name;
if(copy($files_temp,"$files_dir/$iname"))
{
$image=$iname;

}	
else{
$image=$image1;

}
///////////////////////////////bannar /////////////////////

$files_temp_bannar=$_FILES['image_bannar']['tmp_name'];
$image_name_bannar=$_FILES['image_bannar']['name'];
$image_type_bannar=$_FILES['image_bannar']['type'];
$image_size_bannar=$_FILES['image_bannar']['size'];

$t_bannar=time();
$files_dir_bannar="upload/";
$iname_bannar=$t_bannar.$image_name_bannar;
if(copy($files_temp_bannar,"$files_dir_bannar/$iname_bannar"))
{
$image_bannar=$iname_bannar;

}	
else{
$image_bannar=$image2;

}

///////////////////////////////top bannar /////////////////////

$files_temp_bannar_top=$_FILES['top_bannar_image']['tmp_name'];
$image_name_bannar_top=$_FILES['top_bannar_image']['name'];
$image_type_bannar_top=$_FILES['top_bannar_image']['type'];
$image_size_bannar_top=$_FILES['top_bannar_image']['size'];

$t_bannar_top=time();
$files_dir_bannar_top="upload/";
$iname_bannar_top=$t_bannar_top.$image_name_bannar_top;
if(copy($files_temp_bannar_top,"$files_dir_bannar_top/$iname_bannar_top"))
{
$image_bannar_top=$iname_bannar_top;

}	
else{
$image_bannar_top=$image3;

}
if(mysql_query("UPDATE pages_content SET content_pages_name='$pages_content',company_id='$Company_Name', title = '$title', image = '$image',image_bannar='$image_bannar', image_bannar_top='$image_bannar_top',images_align='$images_align',description ='$des' WHERE id ='$id'"))
 {
 	echo"Successfully Update!";
	echo"<html>";
	echo"<head>
	<meta http-equiv=refresh content=0;url=content_manage.php>";
	echo"</head>";
	echo"</html> ";

 } 
 
else
{
echo "there is a problem.";
}

?>