コード例 #1
0
 function execute($requests)
 {
     $this->set('SNS_NAME', SNS_NAME);
     $this->set('IS_CLOSED_SNS', IS_CLOSED_SNS);
     if (SNS_TITLE) {
         $title = SNS_TITLE;
     } else {
         $title = SNS_NAME;
     }
     $top = array();
     $bottom = array();
     $layout_list = db_portal_layout_ktai_order_by_position();
     foreach ($layout_list as $layout) {
         $pos = $layout['position'];
         $name = $layout['content_name'];
         $content = $this->get_contents($name);
         if ($pos == 10 || $pos == 11) {
             $top[] = $content;
         } else {
             if ($pos == 20 || $pos == 21) {
                 $bottom[] = $content;
             }
         }
     }
     $this->set('title', $title);
     $this->set('top', $top);
     $this->set('bottom', $bottom);
     $this->set('ktai_color_config', util_get_color_config_ktai());
     $this->set('inc_ktai_header', fetch_inc_ktai_header());
     $this->set('inc_ktai_footer', fetch_inc_ktai_footer());
     $this->set('WORD_FRIEND', WORD_FRIEND);
     $this->set('WORD_MY_FRIEND', WORD_MY_FRIEND);
     $this->set('WORD_FRIEND_HALF', WORD_FRIEND_HALF);
     $this->set('WORD_MY_FRIEND_HALF', WORD_MY_FRIEND_HALF);
     // inc_entry_point
     $this->set('inc_ktai_entry_point', fetch_inc_entry_point($this->getView(), 'ktai_o_login'));
     return 'success';
 }
コード例 #2
0
ファイル: ktai.php プロジェクト: KimuraYoichi/PukiWiki
function ktai_display_error($errors)
{
    $smarty = new OpenPNE_Smarty($GLOBALS['SMARTY']);
    $smarty->setOutputCharset('SJIS');
    $smarty->templates_dir = 'ktai/templates';
    $smarty->assign('inc_ktai_header', fetch_inc_ktai_header());
    $smarty->assign('inc_ktai_footer', fetch_inc_ktai_footer());
    $smarty->assign('errors', (array) $errors);
    $smarty->assign('ktai_color_config', util_get_color_config_ktai());
    $smarty->ext_display('error.tpl');
    exit;
}