Index: branches/dev/data/lib/slib.php
===================================================================
--- branches/dev/data/lib/slib.php	(revision 11893)
+++ branches/dev/data/lib/slib.php	(revision 11954)
@@ -195,4 +195,43 @@
 	
 	return $ret;
+}
+
+/*
+ * ¥µ¥¤¥È´ÉÍý¾ðÊó¤«¤éÃÍ¤ò¼èÆÀ¤¹¤ë¡£
+ * ¥Ç¡¼¥¿¤¬Â¸ºß¤¹¤ë¾ì¹ç¡¢É¬¤º1°Ê¾å¤Î¿ôÃÍ¤¬ÀßÄê¤µ¤ì¤Æ¤¤¤ë¡£
+ * 0¤òÊÖ¤·¤¿¾ì¹ç¤Ï¡¢¸Æ¤Ó½Ð¤·¸µ¤ÇÂÐ±þ¤¹¤ë¤³¤È¡£
+ * 
+ * @param $control_id ´ÉÍýID
+ * @param $dsn DataSource
+ * @return $control_flg ¥Õ¥é¥°
+ */
+function sfGetSiteControlFlg($control_id, $dsn = "") {
+
+	// ¥Ç¡¼¥¿¥½¡¼¥¹
+	if($dsn == "") {
+		if(defined('DEFAULT_DSN')) {
+			$dsn = DEFAULT_DSN;
+		} else {
+			return;
+		}
+	}
+
+	// ¥¯¥¨¥êÀ¸À®
+	$target_column = "control_flg";
+	$table_name = "dtb_site_control";
+	$where = "control_id = ?";
+	$arrval = array($control_id);
+	$control_flg = 0;
+
+	// ¥¯¥¨¥êÈ¯¹Ô
+	$objQuery = new SC_Query($dsn, true, true);
+	$arrSiteControl = $objQuery->select($target_column, $table_name, $where, $arrval);
+
+	// ¥Ç¡¼¥¿¤¬Â¸ºß¤¹¤ì¤Ð¥Õ¥é¥°¤ò¼èÆÀ¤¹¤ë
+	if (count($arrSiteControl) > 0) {
+		$control_flg = $arrSiteControl[0]["control_flg"];
+	}
+	
+	return $control_flg;
 }
 
