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

Revision 15929, 1.1 KB checked in by kakinaka, 17 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
26sfprintr("a");
27
28$objView = new SC_SiteView();
29$objView->assignobj($objPage);
30$objView->display(SITE_FRAME);
31$end_time=sfGetMicrotime_float();
32
33sfprintr( 'Script Execution Time: ' . round($end_time - $start_time, 10) . ' seconds');
34//-----------------------------------------------------------------------------------------------------------------------------------
35// Function to calculate script execution time. 
36function sfGetMicrotime_float () {
37    list ($msec, $sec) = explode(' ', microtime());
38    $microtime = (float)$msec + (float)$sec;
39    return $microtime;
40}
41
42?>
Note: See TracBrowser for help on using the repository browser.