Index: temp/trunk/html/admin/design/upload.php
===================================================================
--- temp/trunk/html/admin/design/upload.php	(revision 10368)
+++ temp/trunk/html/admin/design/upload.php	(revision 10369)
@@ -77,5 +77,5 @@
 	global $objUpFile;
 
-	$objUpFile->addFile("¥Æ¥ó¥×¥ì¡¼¥È¥Õ¥¡¥¤¥ë", 'template_file', array('tar.gz', 'tgz', 'tar.bz2'), TEMPLATE_SIZE, true, 0, 0, false);
+	$objUpFile->addFile("¥Æ¥ó¥×¥ì¡¼¥È¥Õ¥¡¥¤¥ë", 'template_file', array(), TEMPLATE_SIZE, true, 0, 0, false);
 }
 
@@ -93,4 +93,5 @@
 /* 
  * ´Ø¿ôÌ¾¡§lfErrorCheck()
+ * °ú¿ô1 ¡§¥Ñ¥é¥á¡¼¥¿
  * ÀâÌÀ¡¡¡§¥Ñ¥é¥á¡¼¥¿¾ðÊó¤Î½é´ü²½
  */
@@ -112,4 +113,23 @@
 			$objErr->arrErr['template_code'] = "¢¨ ¤¹¤Ç¤ËÅÐÏ¿¤µ¤ì¤Æ¤¤¤ë¥Æ¥ó¥×¥ì¡¼¥È¥³¡¼¥É¤Ç¤¹¡£<br/>";
 		}
+		// ¥Õ¥¡¥¤¥ë¤Î³ÈÄ¥»Ò¥Á¥§¥Ã¥¯(.tar/tar.gz¤Î¤ßµö²Ä)
+		$errFlag = true;
+		$array_ext = explode(".", $_FILES['template_file']['name']);
+		$ext = $array_ext[ count ( $array_ext ) - 1 ];
+		$ext = strtolower($ext);
+		// .tar¥Á¥§¥Ã¥¯
+		if ($ext == 'tar') {
+			$errFlag = false;
+		}
+		$ext = $array_ext[ count ( $array_ext ) - 2 ].$ext;
+		$ext = strtolower($ext);
+		// .tar.gz¥Á¥§¥Ã¥¯
+		if ($ext== 'tar.gz') {
+			$errFlag = false;
+		}
+		
+		if($errFlag) {
+			$objErr->arrErr['template_file'] = "¢¨ ¥¢¥Ã¥×¥í¡¼¥É¤¹¤ë¥Æ¥ó¥×¥ì¡¼¥È¥Õ¥¡¥¤¥ë¤Çµö²Ä¤µ¤ì¤Æ¤¤¤ë·Á¼°¤Ï¡¢tar/tar.gz¤Ç¤¹¡£<br />";		
+		}
 	}
 	
@@ -117,4 +137,9 @@
 }
 
+/* 
+ * ´Ø¿ôÌ¾¡§lfErrorCheck()
+ * °ú¿ô1 ¡§¥Ñ¥é¥á¡¼¥¿
+ * ÀâÌÀ¡¡¡§¥Æ¥ó¥×¥ì¡¼¥È¥Ç¡¼¥¿ÅÐÏ¿
+ */
 function lfRegistTemplate($arrList) {
 	global $objQuery;
