Changeset 10369 for temp/trunk/html/admin
- Timestamp:
- 2006/12/06 16:48:39 (20 years ago)
- File:
-
- 1 edited
-
temp/trunk/html/admin/design/upload.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
temp/trunk/html/admin/design/upload.php
r10368 r10369 77 77 global $objUpFile; 78 78 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); 80 80 } 81 81 … … 93 93 /* 94 94 * ´Ø¿ô̾¡§lfErrorCheck() 95 * °ú¿ô1 ¡§¥Ñ¥é¥á¡¼¥¿ 95 96 * ÀâÌÀ¡¡¡§¥Ñ¥é¥á¡¼¥¿¾ðÊó¤Î½é´ü²½ 96 97 */ … … 112 113 $objErr->arrErr['template_code'] = "¢¨ ¤¹¤Ç¤ËÅÐÏ¿¤µ¤ì¤Æ¤¤¤ë¥Æ¥ó¥×¥ì¡¼¥È¥³¡¼¥É¤Ç¤¹¡£<br/>"; 113 114 } 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 } 114 134 } 115 135 … … 117 137 } 118 138 139 /* 140 * ´Ø¿ô̾¡§lfErrorCheck() 141 * °ú¿ô1 ¡§¥Ñ¥é¥á¡¼¥¿ 142 * ÀâÌÀ¡¡¡§¥Æ¥ó¥×¥ì¡¼¥È¥Ç¡¼¥¿ÅÐÏ¿ 143 */ 119 144 function lfRegistTemplate($arrList) { 120 145 global $objQuery;
Note: See TracChangeset
for help on using the changeset viewer.
