소스 검색

show client-side filename

tags/v0.99.beta17
Ben Wiley Sittler bsittler 17 년 전
부모
커밋
7f251a3e93
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. +2
    -1
      caca-php/examples/www/export.php

+ 2
- 1
caca-php/examples/www/export.php 파일 보기

@@ -25,6 +25,7 @@ $pixels = imagecreatetruecolor(256, 256);
$exports = caca_get_export_list();

$file = isset($_FILES['file']) ? $_FILES['file']['tmp_name'] : NULL;
$filename = isset($_FILES['file']) ? $_FILES['file']['name'] : NULL;
$format = isset($_REQUEST['format']) ? $_REQUEST['format'] : NULL;

if((! $format) || (! array_key_exists($format, $exports)))
@@ -110,7 +111,7 @@ if($file)
$cv = caca_create_canvas(0, 0);
if(caca_import_file($cv, $file, "") < 0)
{
die($argv[0] . ": `" . $file . "' has unknown format\n");
die("`" . htmlspecialchars($filename) . "' has unknown format\n");
}
}
else


불러오는 중...
취소
저장