ここの情報は古いです。ご理解頂いた上でお取り扱いください。
Line | |
---|
1 | <?php |
---|
2 | /** |
---|
3 | * @copyright 2005-2008 OpenPNE Project |
---|
4 | * @license http://www.php.net/license/3_01.txt PHP License 3.01 |
---|
5 | */ |
---|
6 | |
---|
7 | // config |
---|
8 | require_once(OPENPNE_DIR . '/config-koko.php'); |
---|
9 | |
---|
10 | // ライブラリ読み込みがある場合ここで |
---|
11 | require_once(OPENPNE_WEBAPP_EXT_DIR . '/lib/koko/db_koko.php'); |
---|
12 | require_once(OPENPNE_WEBAPP_EXT_DIR . '/lib/koko/util_koko.php'); |
---|
13 | //$module_lib_dir = dirname(__FILE__) . '/lib'; |
---|
14 | //require_once($module_lib_dir . '/hoge.php'); |
---|
15 | |
---|
16 | // PCモジュールのinit.inc読み込み |
---|
17 | require_once openpne_ext_search('pc/init.inc'); |
---|
18 | |
---|
19 | //デフォルトページ |
---|
20 | $GLOBALS['__Framework']['default_page'] = 'home'; |
---|
21 | |
---|
22 | //<PCKTAI |
---|
23 | if (!OPENPNE_ENABLE_PC) { |
---|
24 | // disable pc module |
---|
25 | exit; |
---|
26 | } |
---|
27 | //> |
---|
28 | |
---|
29 | function init_koko_pc_page(&$smarty) |
---|
30 | { |
---|
31 | init_pc_page(&$smarty); |
---|
32 | |
---|
33 | $is_secure = $GLOBALS['__Framework']['is_secure']; |
---|
34 | |
---|
35 | // モジュール追加設定 |
---|
36 | // PCのcommon/layout.tpl |
---|
37 | if ($layout_template = openpne_ext_search("pc/templates/common/layout.tpl")) { |
---|
38 | $smarty->assign('PC_LAYOUT_TEMPLATE', $layout_template); |
---|
39 | } |
---|
40 | |
---|
41 | if ($is_secure) { |
---|
42 | // PCのinc_navi.tpl |
---|
43 | if ($inc_navi = openpne_ext_search("pc/templates/inc_navi.tpl")) { |
---|
44 | $smarty->assign('PC_NAVI_TEMPLATE', $navi_template); |
---|
45 | } |
---|
46 | |
---|
47 | // } else { |
---|
48 | } |
---|
49 | |
---|
50 | // デフォルトマップサイズ |
---|
51 | $smarty->assign("map_size", array('w' =>KOKO_MAP_WIDTH, 'h' => KOKO_MAP_HEIGHT, 'z' => KOKO_MAP_ZOOM)); |
---|
52 | |
---|
53 | |
---|
54 | // INC_HEADER_* (inc_header.tpl)に追加設定 |
---|
55 | |
---|
56 | // INC_FOOTER_* (inc_footer.tpl)に追加設定 |
---|
57 | |
---|
58 | } |
---|
59 | |
---|
60 | function init_pc_koko_do() |
---|
61 | { |
---|
62 | init_do_page(&$smarty); |
---|
63 | } |
---|
64 | |
---|
65 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.
Download in other formats: