source: branches/dev/html/index.php @ 15923

Revision 15923, 1.1 KB checked in by kakinaka, 15 years ago (diff)
Line 
1<?php
2/*
3 * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
4 *
5 * http://www.lockon.co.jp/
6 */
7$start_time = sfGetMicrotime_float();
8 
9require_once("./require.php");
10
11class LC_Page {
12    function LC_Page() {
13        /** ɬ¤ºÊѹ¹¤¹¤ë **/
14        $this->tpl_css = URL_DIR.'css/layout/index.css';                        // ¥á¥¤¥óCSS¥Ñ¥¹
15        /** ɬ¤ºÊѹ¹¤¹¤ë **/
16        $this->tpl_mainpage = HTML_PATH . "user_data/templates/top.tpl";        // ¥á¥¤¥ó¥Æ¥ó¥×¥ì¡¼¥È
17    }
18}
19
20$objPage = new LC_Page();
21$conn = new SC_DBConn();
22
23// ¥ì¥¤¥¢¥¦¥È¥Ç¥¶¥¤¥ó¤ò¼èÆÀ
24$objPage = sfGetPageLayout($objPage, false, "index.php");
25
26$objView = new SC_SiteView();
27$objView->assignobj($objPage);
28$objView->display(SITE_FRAME);
29$end_time=$start_time = sfGetMicrotime_float();
30sfprintr( 'Script Execution Time: ' . round($end - $start, 3) . ' seconds');
31//-----------------------------------------------------------------------------------------------------------------------------------
32// Function to calculate script execution time.
33function sfGetMicrotime_float () {
34    list ($msec, $sec) = explode(' ', microtime());
35    $microtime = (float)$msec + (float)$sec;
36    return $microtime;
37}
38
39?>
Note: See TracBrowser for help on using the repository browser.