Ignore:
Timestamp:
2006/12/06 16:48:39 (20 years ago)
Author:
uehara
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • temp/trunk/html/admin/design/upload.php

    r10368 r10369  
    7777    global $objUpFile; 
    7878 
    79     $objUpFile->addFile("¥Æ¥ó¥×¥ì¡¼¥È¥Õ¥¡¥¤¥ë", 'template_file', array('tar.gz', 'tgz', 'tar.bz2'), TEMPLATE_SIZE, true, 0, 0, false); 
     79    $objUpFile->addFile("¥Æ¥ó¥×¥ì¡¼¥È¥Õ¥¡¥¤¥ë", 'template_file', array(), TEMPLATE_SIZE, true, 0, 0, false); 
    8080} 
    8181 
     
    9393/*  
    9494 * ´Ø¿ô̾¡§lfErrorCheck() 
     95 * °ú¿ô1 ¡§¥Ñ¥é¥á¡¼¥¿ 
    9596 * ÀâÌÀ¡¡¡§¥Ñ¥é¥á¡¼¥¿¾ðÊó¤Î½é´ü²½ 
    9697 */ 
     
    112113            $objErr->arrErr['template_code'] = "¢¨ ¤¹¤Ç¤ËÅÐÏ¿¤µ¤ì¤Æ¤¤¤ë¥Æ¥ó¥×¥ì¡¼¥È¥³¡¼¥É¤Ç¤¹¡£<br/>"; 
    113114        } 
     115        // ¥Õ¥¡¥¤¥ë¤Î³ÈÄ¥»Ò¥Á¥§¥Ã¥¯(.tar/tar.gz¤Î¤ßµö²Ä) 
     116        $errFlag = true; 
     117        $array_ext = explode(".", $_FILES['template_file']['name']); 
     118        $ext = $array_ext[ count ( $array_ext ) - 1 ]; 
     119        $ext = strtolower($ext); 
     120        // .tar¥Á¥§¥Ã¥¯ 
     121        if ($ext == 'tar') { 
     122            $errFlag = false; 
     123        } 
     124        $ext = $array_ext[ count ( $array_ext ) - 2 ].$ext; 
     125        $ext = strtolower($ext); 
     126        // .tar.gz¥Á¥§¥Ã¥¯ 
     127        if ($ext== 'tar.gz') { 
     128            $errFlag = false; 
     129        } 
     130         
     131        if($errFlag) { 
     132            $objErr->arrErr['template_file'] = "¢¨ ¥¢¥Ã¥×¥í¡¼¥É¤¹¤ë¥Æ¥ó¥×¥ì¡¼¥È¥Õ¥¡¥¤¥ë¤Çµö²Ä¤µ¤ì¤Æ¤¤¤ë·Á¼°¤Ï¡¢tar/tar.gz¤Ç¤¹¡£<br />";      
     133        } 
    114134    } 
    115135     
     
    117137} 
    118138 
     139/*  
     140 * ´Ø¿ô̾¡§lfErrorCheck() 
     141 * °ú¿ô1 ¡§¥Ñ¥é¥á¡¼¥¿ 
     142 * ÀâÌÀ¡¡¡§¥Æ¥ó¥×¥ì¡¼¥È¥Ç¡¼¥¿ÅÐÏ¿ 
     143 */ 
    119144function lfRegistTemplate($arrList) { 
    120145    global $objQuery; 
Note: See TracChangeset for help on using the changeset viewer.