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

Revision 15922, 1.1 KB checked in by kakinaka, 15 years ago (diff)
RevLine 
[8]1<?php
2/*
[17]3 * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
[8]4 *
5 * http://www.lockon.co.jp/
6 */
[15922]7$start_time = sfGetMicrotime_float();
8 
[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);
[15922]29$end_time=$start_time = sfGetMicrotime_float();
30echo 'Script Execution Time: ' . round($end - $start, 3) . ' seconds';
[8]31//-----------------------------------------------------------------------------------------------------------------------------------
[15922]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
[8]39?>
Note: See TracBrowser for help on using the repository browser.