function execute($requests)
 {
     $use_portal = db_portal_config('USE_PORTAL_KTAI');
     if (!$use_portal['value']) {
         openpne_redirect('ktai');
     }
     $this->set('SNS_NAME', SNS_NAME);
     $this->set('IS_CLOSED_SNS', IS_CLOSED_SNS);
     $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('top', $top);
     $this->set('bottom', $bottom);
     // inc_entry_point
     $this->set('inc_ktai_entry_point', fetch_inc_entry_point($this->getView(), 'ktai_o_login'));
     return 'success';
 }
Exemplo n.º 2
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';
 }