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
/ home1/ bdapparelinfo/ public_html/ bjmea-1463dbf457e80c13-admin/

//home1/bdapparelinfo/public_html/bjmea-1463dbf457e80c13-admin/main_content_submit.php

<?php

require_once("config.php");
$config_obj = new database_config();
$config_obj->database_connect();
$des = $_REQUEST['des'];
$title = $_REQUEST['title'];
$dob = $_REQUEST['date'];
//$Company_Name = $_REQUEST['company_name'];
$pagescontent = $_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();
$iname=$t.$image_name;
$files_dir="upload/";

copy($files_temp, "$files_dir/$iname");	


if(mysql_query("INSERT INTO  main_content VALUES('', '$pagescontent','', '$title','$dob','$iname','$images_align','$des')"))
 {
 	echo"Successfully Created!";
	echo"<html>";
	echo"<head>
	<meta http-equiv=refresh content=0;url=main_content_manage.php>";
	echo"</head>";
	echo"</html> ";

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

?>