Index: branches/dev/data/downloads/module/security/security.php
===================================================================
--- branches/dev/data/downloads/module/security/security.php	(revision 12092)
+++ branches/dev/data/downloads/module/security/security.php	(revision 12093)
@@ -20,5 +20,5 @@
 $objPage = new LC_Page();
 $objView = new SC_AdminView();
-$objQuery = new SC_Query();
+
 
 $arrList[] = sfCheckOpenData();
@@ -66,3 +66,26 @@
     return $arrResult;
 }
+
+// ´ÉÍý¼Ô¥æ¡¼¥¶¤ÎID/¥Ñ¥¹¥ï¡¼¥É¥Á¥§¥Ã¥¯
+function sfCheckIDPass($user, $password) {
+    $objQuery = new SC_Query();
+    $sql = "SELECT password FROM dtb_member WHERE login_id = ?";
+	// DB¤«¤é°Å¹æ²½¥Ñ¥¹¥ï¡¼¥É¤ò¼èÆÀ¤¹¤ë¡£
+	$arrRet = $objQuery->getAll($sql ,$user); 
+	// ¥æ¡¼¥¶ÆþÎÏ¥Ñ¥¹¥ï¡¼¥É¤ÎÈ½Äê
+	$ret = sha1($password . ":" . AUTH_MAGIC);
+    
+    if($ret == $arrRet[0]['password']) {
+        $arrResult['result'] = "¡ß";
+        $arrResult['detail'] = "Èó¾ï¤Ë¿äÂ¬¤Î¤·¤ä¤¹¤¤´ÉÍý¼ÔID¤È¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£¸Ä¿Í¾ðÊóÏ³±Ì¤Î´í¸±À­¤¬¹â¤¤¤Ç¤¹¡£";       
+    } else {
+        if(count($arrRet) > 0) {
+	        $arrResult['result'] = "¢¤";
+	        $arrResult['detail'] = "´ÉÍý¼ÔÌ¾¤Ë¡Öadmin¡×¤òÍøÍÑ¤·¤Ê¤¤¤è¤¦¤Ë¤·¤Æ²¼¤µ¤¤¡£";               
+        } else {
+            $arrResult['result'] = "¡û";
+            $arrResult['detail'] = "ÆÈ¼«¤ÎID¡¢¥Ñ¥¹¥ï¡¼¥É¤¬ÀßÄê¤µ¤ì¤Æ¤¤¤ë¤è¤¦¤Ç¤¹¡£";               
+        }
+    }
+}
 ?>
