ÿØÿà JFIF ` ` ÿþ
|
Server : Apache System : Linux cloud.heroica.com.br 4.18.0-553.36.1.el8_10.x86_64 #1 SMP Wed Jan 22 03:07:54 EST 2025 x86_64 User : farolpborg ( 1053) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/farolpborg/public_html/cms/ |
Upload File : |
<?
require("_configs/config.php");
//include("_configs/checar.php");
include("_ui/funcoes.php");
$op = $_GET['op'];
foreach($_POST as $key => $valor){
$$key = addslashes($valor);
}
$tabela = "uploader";
$imagens = $_FILES['myfile'];
$imagem = $_FILES['myfile']['tmp_name'];
$imagem_name = $_FILES['myfile']['name'];
$imagem_ref = "upl";
$imagem_data = date("dmYHis")."-";
$imagem_new = remove_acentos(substr($imagem_name, 0, (strrpos($imagem_name, "."))));
//$imagem_ext = pathinfo($imagem_name, PATHINFO_EXTENSION);
$imagem_ext = strtolower(substr($imagem_name, strrpos($imagem_name, '.')+0));
$imagem_dir = "../_shared/nicedit/";
if($op == 'adicionar'){
if(isset($imagens)){
move_uploaded_file($imagem, $imagem_dir.$imagem_ref.$imagem_data.$imagem_new.$imagem_ext);
$sucesso_adicionar = true;
$atividade = $atividade_uploader.$imagem_name;
}
}
if($op == 'deletar'){
$arquivo = $_POST['arquivo'];
@unlink($imagem_dir."/".$arquivo);
$atividade = $atividade_uploader_deletar.$arquivo;
}
include("_ui/registros.php");
?>