init
This commit is contained in:
28
modules/EcmDocumentTemplatesaa/logo.php
Executable file
28
modules/EcmDocumentTemplatesaa/logo.php
Executable file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
if(isset($_REQUEST['logo']) && $_REQUEST['logo'] != '') {
|
||||
|
||||
$file_name = 'modules/EcmDocumentTemplates/files/'.$_REQUEST['logo'];
|
||||
|
||||
if(file_exists($file_name)) {
|
||||
|
||||
$ext = strtolower(substr(strrchr($file_name, "."),1));
|
||||
|
||||
if($ext == "jpg" || $ext == "png") {
|
||||
|
||||
header('Content-type: image/jpg');
|
||||
|
||||
header('Content-length: '.filesize($file_name));
|
||||
|
||||
readfile($file_name);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user