Index: /branches/feature-module-update/html/mobile/index.php
===================================================================
--- /branches/feature-module-update/html/mobile/index.php	(revision 15080)
+++ /branches/feature-module-update/html/mobile/index.php	(revision 15527)
@@ -10,25 +10,14 @@
  */
 
-require_once('./require.php');
+// {{{ requires
+require_once("./require.php");
+require_once(CLASS_PATH . "page_extends/LC_Page_Index_Ex.php");
 
-class LC_Page {
-	function LC_Page() {
-		/** 必ず変更する **/
-		$this->tpl_mainpage = 'top.tpl';	// メインテンプレート
-	}
-}
+// }}}
+// {{{ generate page
 
-$objPage = new LC_Page();
-$conn = new SC_DBConn();
-$objCustomer = new SC_Customer();
-
-// レイアウトデザインを取得
-//$objPage = sfGetPageLayout($objPage, false, 'index.php');
-
-$objView = new SC_MobileView();
-$objView->assign("isLogin", $objCustomer->isLoginSuccess());
-$objView->assignobj($objPage);
-$objView->display(SITE_FRAME);
-
-//-----------------------------------------------------------------------------------------------------------------------------------
+$objPage = new LC_Page_Index_Ex();
+$objPage->mobileInit();
+$objPage->mobileProcess();
+register_shutdown_function(array($objPage, "destroy"));
 ?>
Index: /branches/feature-module-update/html/mobile/require.php
===================================================================
--- /branches/feature-module-update/html/mobile/require.php	(revision 15080)
+++ /branches/feature-module-update/html/mobile/require.php	(revision 15527)
@@ -1,49 +1,65 @@
 <?php
 /**
- * 
+ *
  * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
  *
  * http://www.lockon.co.jp/
- * 
+ *
  */
 $include_dir = realpath(dirname( __FILE__));
 require_once($include_dir . "/../define.php");
-
+if (!defined("CLASS_PATH")) {
+    /** クラスパス */
+    define("CLASS_PATH", $include_dir . "/.." . HTML2DATA_DIR . "class/");
+}
 require_once($include_dir . "/.." . HTML2DATA_DIR . "conf/conf.php");
 require_once($include_dir . "/.." . HTML2DATA_DIR . "conf/mobile_conf.php");
 require_once($include_dir . "/.." . HTML2DATA_DIR . "include/module.inc");
-require_once($include_dir . "/.." . HTML2DATA_DIR . "include/mobile.inc");
-require_once($include_dir . "/.." . HTML2DATA_DIR . "lib/glib.php");
-require_once($include_dir . "/.." . HTML2DATA_DIR . "lib/slib.php");
-require_once($include_dir . "/.." . HTML2DATA_DIR . "class/SC_View.php");
-require_once($include_dir . "/.." . HTML2DATA_DIR . "class/SC_DbConn.php");
-require_once($include_dir . "/.." . HTML2DATA_DIR . "class/SC_Session.php");
-require_once($include_dir . "/.." . HTML2DATA_DIR . "class/SC_Query.php");
-require_once($include_dir . "/.." . HTML2DATA_DIR . "class/SC_SelectSql.php");
-require_once($include_dir . "/.." . HTML2DATA_DIR . "class/SC_CheckError.php");
-require_once($include_dir . "/.." . HTML2DATA_DIR . "class/SC_PageNavi.php");
-require_once($include_dir . "/.." . HTML2DATA_DIR . "class/SC_Date.php");
-require_once($include_dir . "/.." . HTML2DATA_DIR . "class/SC_Image.php");
-require_once($include_dir . "/.." . HTML2DATA_DIR . "class/SC_UploadFile.php");
-require_once($include_dir . "/.." . HTML2DATA_DIR . "class/SC_SiteInfo.php");
-require_once($include_dir . "/.." . HTML2DATA_DIR . "class/GC_SendMail.php");
-require_once($include_dir . "/.." . HTML2DATA_DIR . "class/SC_FormParam.php");
-require_once($include_dir . "/.." . HTML2DATA_DIR . "class/SC_CartSession.php");
-require_once($include_dir . "/.." . HTML2DATA_DIR . "class/SC_SiteSession.php");
-require_once($include_dir . "/.." . HTML2DATA_DIR . "class/SC_Customer.php");
-require_once($include_dir . "/.." . HTML2DATA_DIR . "class/SC_Cookie.php");
-require_once($include_dir . "/.." . HTML2DATA_DIR . "class/SC_Page.php");
-require_once($include_dir . "/.." . HTML2DATA_DIR . "class/SC_Pdf.php");
-require_once($include_dir . "/.." . HTML2DATA_DIR . "class/GC_MobileUserAgent.php");
-require_once($include_dir . "/.." . HTML2DATA_DIR . "class/GC_MobileEmoji.php");
-require_once($include_dir . "/.." . HTML2DATA_DIR . "class/GC_MobileImage.php");
-require_once($include_dir . "/.." . HTML2DATA_DIR . "include/page_layout.inc");
+require_once(CLASS_PATH . "util_extends/GC_Utils_Ex.php");
+require_once(CLASS_PATH . "util_extends/SC_Utils_Ex.php");
+require_once(CLASS_PATH . "db_extends/SC_DB_MasterData_Ex.php");
+require_once(CLASS_PATH . "db_extends/SC_DB_DBFactory_Ex.php");
+//require_once($include_dir . "/.." . HTML2DATA_DIR . "include/mobile.inc");
+//require_once($include_dir . "/.." . HTML2DATA_DIR . "lib/glib.php");
+//require_once($include_dir . "/.." . HTML2DATA_DIR . "lib/slib.php");
+require_once(CLASS_PATH . "SC_View.php");
+require_once(CLASS_PATH . "SC_DbConn.php");
+require_once(CLASS_PATH . "SC_Session.php");
+require_once(CLASS_PATH . "SC_Query.php");
+require_once(CLASS_PATH . "SC_SelectSql.php");
+require_once(CLASS_PATH . "SC_CheckError.php");
+require_once(CLASS_PATH . "SC_PageNavi.php");
+require_once(CLASS_PATH . "SC_Date.php");
+require_once(CLASS_PATH . "SC_Image.php");
+require_once(CLASS_PATH . "SC_UploadFile.php");
+require_once(CLASS_PATH . "SC_SiteInfo.php");
+require_once(CLASS_PATH . "GC_SendMail.php");
+require_once(CLASS_PATH . "SC_FormParam.php");
+require_once(CLASS_PATH . "SC_CartSession.php");
+require_once(CLASS_PATH . "SC_SiteSession.php");
+require_once(CLASS_PATH . "SC_Customer.php");
+require_once(CLASS_PATH . "SC_Cookie.php");
+require_once(CLASS_PATH . "SC_Page.php");
+require_once(CLASS_PATH . "SC_Pdf.php");
+require_once(CLASS_PATH . "GC_MobileUserAgent.php");
+require_once(CLASS_PATH . "GC_MobileEmoji.php");
+require_once(CLASS_PATH . "GC_MobileImage.php");
+require_once(CLASS_PATH . "helper_extends/SC_Helper_PageLayout_Ex.php");
+require_once(CLASS_PATH . "helper_extends/SC_Helper_DB_Ex.php");
+require_once(CLASS_PATH . "helper_extends/SC_Helper_Mobile_Ex.php");
+require_once(CLASS_PATH . "helper_extends/SC_Helper_Session_Ex.php");
+
+// セッションハンドラ開始
+$objSession = new SC_Helper_Session_Ex();
+
+//require_once($include_dir . "/.." . HTML2DATA_DIR . "include/page_layout.inc");
 
 // アップデートで取得したPHPを読み出す
-sfLoadUpdateModule();
+SC_Utils_Ex::sfLoadUpdateModule();
 
 // モバイルサイト用の初期処理を実行する。
 if (!defined('SKIP_MOBILE_INIT')) {
-	sfMobileInit();
+    $objMobile = new SC_Helper_Mobile_Ex();
+    $objMobile->sfMobileInit();
 }
 ?>
