function execute($requests) { $u = $GLOBALS['AUTH']->uid(); $this->set('c_siteadmin', p_common_c_siteadmin4target_pagename('sns_kiyaku')); $this->set('inc_navi', fetch_inc_navi("h")); return 'success'; }
function execute($requests) { //---- inc_ テンプレート用 変数 ----// $this->set('inc_page_header', fetch_inc_page_header('public')); $this->set('c_siteadmin', p_common_c_siteadmin4target_pagename('sns_privacy')); $this->set('sns_name', SNS_NAME); return 'success'; }
function execute($requests) { $u = $GLOBALS['KTAI_C_MEMBER_ID']; // --- リクエスト変数 $target_c_member_id = $requests['target_c_member_id']; // ---------- if ($target_c_member_id == $u) { openpne_redirect('ktai', 'page_h_home'); } if (!db_member_is_active_c_member_id($target_c_member_id)) { ktai_display_error('該当するメンバーが見つかりません。'); } if (db_member_is_access_block($u, $target_c_member_id)) { openpne_redirect('ktai', 'page_h_access_block'); } //管理画面HTML $this->set('c_siteadmin', p_common_c_siteadmin4target_pagename('k_f_home')); //ターゲットのc_member $is_friend = db_friend_is_friend($u, $target_c_member_id); $target_c_member = db_member_c_member_with_profile($target_c_member_id, 'private'); $target_c_member['last_login'] = p_f_home_last_login4access_date($target_c_member['access_date']); if ($target_c_member['birth_year']) { $target_c_member['age'] = getAge($target_c_member['birth_year'], $target_c_member['birth_month'], $target_c_member['birth_day']); } $this->set("target_c_member", $target_c_member); //ターゲットの最新日記5件 $this->set("c_diary_list", db_diary_get_c_diary_list4c_member_id($target_c_member_id, 5, $u)); //フレンドランダム5人 $this->set("c_friend_list", db_friend_c_friend_list_random4c_member_id($target_c_member_id, 5)); //参加コミュニティ最新書き込み5件 $this->set("c_commu_list", db_commu_c_commu_list_lastupdate4c_member_id($target_c_member_id, 5)); //共通コミュニティ $this->set('common_commu_count', count(db_common_commu_common_commu_id4c_member_id($target_c_member_id, $u))); //ターゲットと自分との関係 $this->set("relation", db_friend_relationship4two_members($u, $target_c_member_id)); $is_friend = db_friend_is_friend($u, $target_c_member_id); if ($is_friend) { $this->set('is_friend', $is_friend); } else { $this->set('friend_path', db_friend_friend_path4c_member_ids($u, $target_c_member_id)); } $this->set('profile_list', db_member_c_profile_list()); // 誕生日まであと何日? $this->set('days_birthday', db_member_count_days_birthday4c_member_id($target_c_member_id)); if (OPENPNE_USE_POINT_RANK) { // ポイント $point = db_point_get_point($target_c_member_id); $this->set("point", $point); // ランク $this->set("rank", db_point_get_rank4point($point)); } // inc_entry_point $this->set('inc_ktai_entry_point', fetch_inc_entry_point($this->getView(), 'ktai_f_home')); //あしあとをつける db_ashiato_insert_c_ashiato($target_c_member_id, $u); return 'success'; }
function execute($requests) { $v = array(); // 色設定名配列構造 $v['bgcolor_scheme_names'] = array('color_5' => '線の色', 'color_16' => 'ページ背景', 'color_17' => 'コンテンツ領域背景', 'color_4' => '枠色', 'color_10' => '見出し背景', 'color_13' => '説明領域背景', 'color_6' => 'ボックスの背景', 'color_14' => '左メニュー枠色'); $v['c_config_color_list'] = db_etc_c_config_color_list(); $v['c_config_color_list'][0]['caption'] = '現在の設定'; $v['c_config_color_list'][0] = util_apply_color_default2current($v['c_config_color_list'][0]); $v['inc_custom_css'] = p_common_c_siteadmin4target_pagename('inc_custom_css'); $this->set($v); return 'success'; }
/** * inc_page_footer.tpl */ function fetch_inc_page_footer($is_secure = false) { $inc_smarty = new OpenPNE_Smarty($GLOBALS['SMARTY']); $inc_smarty->templates_dir = 'pc/templates'; $inc_smarty->assign('PHPSESSID', md5(session_id())); if ($is_secure) { $inc_smarty->assign('inc_page_footer', p_common_c_siteadmin4target_pagename('inc_page_footer_after')); } else { $inc_smarty->assign('inc_page_footer', p_common_c_siteadmin4target_pagename('inc_page_footer_before')); } return $inc_smarty->ext_fetch('inc_page_footer.tpl'); }
function execute($requests) { if (LOGIN_URL_PC && !DISPLAY_LOGIN) { client_redirect_absolute(LOGIN_URL_PC); } //---- inc_ テンプレート用 変数 ----// $this->set('inc_page_header', fetch_inc_page_header('public')); $this->set('INC_PAGE_HEADER', db_banner_get_top_banner(false)); $this->set('IS_CLOSED_SNS', IS_CLOSED_SNS); $this->set('top_banner_html_before', p_common_c_siteadmin4target_pagename('top_banner_html_before')); $this->set('top_banner_html_after', p_common_c_siteadmin4target_pagename('top_banner_html_after')); $this->set('inc_page_footer', p_common_c_siteadmin4target_pagename('inc_page_footer_before')); return 'success'; }
function execute($requests) { $v = array(); $v['SNS_NAME'] = SNS_NAME; $v['is_image'] = db_image_is_c_image4filename($requests['filename']); $v['c_banner_top_list'] = db_admin_c_banner_list4null('TOP'); $v['c_banner_side_list'] = db_admin_c_banner_list4null('SIDE'); $v['cnt_c_banner_top_list'] = count($v['c_banner_top_list']); $v['top_banner_html_before'] = p_common_c_siteadmin4target_pagename('top_banner_html_before'); $v['top_banner_html_after'] = p_common_c_siteadmin4target_pagename('top_banner_html_after'); $v['side_banner_html_before'] = p_common_c_siteadmin4target_pagename('side_banner_html_before'); $v['side_banner_html_after'] = p_common_c_siteadmin4target_pagename('side_banner_html_after'); $this->set($v); return 'success'; }
function execute($requests) { $u = $GLOBALS['KTAI_C_MEMBER_ID']; // --- リクエスト変数 $target_c_commu_id = $requests['target_c_commu_id']; // ---------- $c_commu = db_commu_c_commu4c_commu_id($target_c_commu_id); //コミュニティの存在の有無 if (!$c_commu) { openpne_redirect('ktai', 'page_h_home'); } //--- 権限チェック //未処理 //掲示板の閲覧権限チェック tplでやっている $this->set("is_c_commu_view", db_commu_is_c_commu_view4c_commu_idAc_member_id($target_c_commu_id, $u)); $this->set("is_c_commu_member", db_commu_is_c_commu_member($target_c_commu_id, $u)); $this->set('is_c_commu_admin', db_commu_is_c_commu_admin($target_c_commu_id, $u)); //--- //管理画面HTML $this->set('c_siteadmin', p_common_c_siteadmin4target_pagename('k_c_home')); //コミュニティ情報 $this->set("c_commu", db_commu_c_commu4c_commu_id_k($target_c_commu_id)); // 副管理者情報 if ($c_commu['c_member_id_sub_admin']) { $c_member_sub_admin = db_member_c_member4c_member_id($c_commu['c_member_id_sub_admin']); $this->set('sub_admin', $c_member_sub_admin); } //コミュニティメンバーリスト $this->set("c_commu_member_list", db_commu_c_commu_member_list_random4c_commu_id($target_c_commu_id, 5)); //参加コミュニティの新着トピック書き込み $this->set("new_topic_comment", db_commu_new_topic_comment4c_commu_id($target_c_commu_id, 5)); //参加コミュニティの新着イベント書き込み $this->set("new_topic_comment_event", db_commu_new_topic_comment4c_commu_id($target_c_commu_id, 5, 1)); //自分($u)とこのコミュとの関係 $this->set("relation_c_member_and_c_commu", db_commu_relationship_between_member_commu($target_c_commu_id, $u)); //コミュニティメール(ktai)受信設定 $this->set("is_receive_mail", db_commu_is_receive_mail_ktai($target_c_commu_id, $u)); //コミュニティメール(pc)受信設定 $this->set("is_receive_mail_pc", db_commu_is_receive_mail_pc($target_c_commu_id, $u)); //管理者からのメッセージ受信設定 $this->set("is_receive_message", db_commu_is_receive_message($target_c_commu_id, $u)); $this->set('is_unused_pc_bbs', util_is_unused_mail('m_pc_bbs_info')); $this->set('is_unused_ktai_bbs', util_is_unused_mail('m_ktai_bbs_info')); // inc_entry_point $this->set('inc_ktai_entry_point', fetch_inc_entry_point($this->getView(), 'ktai_c_home')); return 'success'; }
/** * @copyright 2005-2008 OpenPNE Project * @license http://www.php.net/license/3_01.txt PHP License 3.01 */ function smarty_function_t_url_style($params, &$smarty) { $custom_css = p_common_c_siteadmin4target_pagename('inc_custom_css'); $decoration_config = db_decoration_enable_list(); $colors = util_get_color_config(); $skin_filename_list = db_get_c_skin_filename_list(); $hash = md5(OPENPNE_VERSION . OPENPNE_ENABLE_ROLLOVER . OPENPNE_SKIN_THEME . $custom_css . serialize($decoration_config) . serialize($colors) . serialize($skin_filename_list)); $result = <<<EOD <!--[if lte IE 6]> <script type="text/javascript"> //<![CDATA[ var offspringConfiguration = { runningMode: "light", targetElement: ["tr", "th", "td"] }; //]]> </script> <script type="text/javascript" src="./js/offspring.js?r7689"></script> <![endif]--> <link rel="stylesheet" href="./xhtml_style.php?hash={$hash}" type="text/css" /> EOD; return $result; }
function execute($requests) { //<PCKTAI if (OPENPNE_AUTH_MODE == 'slavepne' || !(OPENPNE_REGIST_FROM & OPENPNE_REGIST_FROM_PC)) { client_redirect_login(); } //> $sid = $requests['sid']; if (!db_member_is_active_sid($sid)) { $p = array('msg_code' => 'invalid_url'); openpne_redirect('pc', 'page_o_tologin', $p); } // メールアドレスが登録できるかどうか $pre = db_member_c_member_pre4sid($sid); if (!util_is_regist_mail_address($pre['pc_address'])) { $p = array('msg_code' => 'invalid_url'); openpne_redirect('pc', 'page_o_tologin', $p); } $this->set('inc_page_header', fetch_inc_page_header('public')); $this->set('sid', $sid); $this->set('c_siteadmin', p_common_c_siteadmin4target_pagename('sns_kiyaku')); return 'success'; }
function execute($requests) { $u = $GLOBALS['KTAI_C_MEMBER_ID']; // --- リクエスト変数 $target_c_member_id = $u; // ---------- $this->set('is_h_prof', 1); //管理画面HTML $this->set('c_siteadmin', p_common_c_siteadmin4target_pagename('k_f_home')); $target_c_member = db_member_c_member_with_profile($target_c_member_id, 'private'); $target_c_member['last_login'] = p_f_home_last_login4access_date($target_c_member['access_date']); if ($target_c_member['birth_year']) { $target_c_member['age'] = getAge($target_c_member['birth_year'], $target_c_member['birth_month'], $target_c_member['birth_day']); } $this->set("target_c_member", $target_c_member); //ターゲットの最新日記5件 $this->set('c_diary_list', db_diary_get_c_diary_list4c_member_id($target_c_member_id, 5, null, 'friend')); //フレンドランダム5人 $this->set("c_friend_list", db_friend_c_friend_list_random4c_member_id($target_c_member_id, 5)); //参加コミュニティ最新書き込み5件 $this->set("c_commu_list", db_commu_c_commu_list_lastupdate4c_member_id($target_c_member_id, 5)); //共通コミュニティ $this->set('common_commu_count', count(db_common_commu_common_commu_id4c_member_id($target_c_member_id, $u))); $this->set('profile_list', db_member_c_profile_list()); // 誕生日まであと何日? $this->set('days_birthday', db_member_count_days_birthday4c_member_id($target_c_member_id)); if (OPENPNE_USE_POINT_RANK) { // ポイント $point = db_point_get_point($target_c_member_id); $this->set("point", $point); // ランク $this->set("rank", db_point_get_rank4point($point)); } // inc_entry_point $this->set('inc_ktai_entry_point', fetch_inc_entry_point($this->getView(), 'ktai_f_home')); return 'success'; }
function execute($requests) { $u = $GLOBALS['AUTH']->uid(); $inc_navi = fetch_inc_navi('h'); $this->set('inc_navi', $inc_navi); $OPTION = $this->get('C_MEMBER_CONFIG'); /// infomation /// // 運営者からのおしらせ $this->set('site_info', p_common_c_siteadmin4target_pagename('h_home')); //未読メッセージの数をお知らせ $this->set('num_message_not_is_read', db_message_count_c_message_not_is_read4c_member_to_id($u)); //日記コメントの未読の数をお知らせ $this->set('num_diary_not_is_read', p_h_diary_count_c_diary_not_is_read4c_member_id($u)); //日記コメントの未読の中で、読ませるものを送る $this->set('first_diary_read', p_h_diary_c_diary_first_diary_read4c_member_id($u)); //あなたにフレンド承認を求めているメンバーリスト $f_confirm_list = db_friend_anatani_c_friend_confirm_list4c_member_id($u); $this->set('f_confirm_list', $f_confirm_list); $this->set('num_f_confirm_list', count($f_confirm_list)); //あなたにコミュニティ参加承認を求めているメンバーリスト $h_confirm_list = db_commu_anatani_c_commu_member_confirm_list4c_member_id($u); $this->set('h_confirm_list', $h_confirm_list); $this->set('num_h_confirm_list', count($h_confirm_list)); // あなたにコミュニティ管理者交代を希望しているメンバー $anatani_c_commu_admin_confirm_list = db_commu_anatani_c_commu_admin_confirm_list4c_member_id($u); $this->set('anatani_c_commu_admin_confirm_list', $anatani_c_commu_admin_confirm_list); $this->set('num_anatani_c_commu_admin_confirm_list', count($anatani_c_commu_admin_confirm_list)); // あなたにコミュニティ副管理者を希望しているメンバー $anatani_c_commu_sub_admin_confirm_list = db_commu_anatani_c_commu_sub_admin_confirm_list4c_member_id($u); $this->set('anatani_c_commu_sub_admin_confirm_list', $anatani_c_commu_sub_admin_confirm_list); $this->set('num_anatani_c_commu_sub_admin_confirm_list', count($anatani_c_commu_sub_admin_confirm_list)); // 誕生日かどうか $this->set('birthday_flag', db_member_birthday_flag4c_member_id($u)); /// 左側 /// // メンバー情報 $c_member = db_member_c_member_with_profile($u, 'private'); $this->set('c_member', $c_member); // フレンドリスト $c_friend_list = db_friend_c_friend_list4c_member_id($u, 9); $this->set('c_friend_list', $c_friend_list); $this->set('c_friend_count', db_friend_count_friends($u)); // 参加コミュニティ $c_commu_user_list = db_commu_c_commu_list4c_member_id_2($u, 9); $this->set('c_commu_user_list', $c_commu_user_list); $this->set('fh_com_count_user', db_commu_count_c_commu4c_member_id($u)); // 写真使用量 $image_limit_list = db_image_get_image_limit_list($u); $this->set('image_limit_list', $image_limit_list); /// 最新情報 /// // 最新日記 if (DISPLAY_NEWDIARYTOPIC_HOME && $OPTION['IS_DISPLAY_NEWDIARY_HOME']) { $this->set('c_diary_list_all', p_h_home_c_diary_all_list(5)); } // フレンド最新日記 $c_diary_friend_list = p_h_home_c_diary_friend_list4c_member_id($u, 5, true); $this->set('c_diary_friend_list', $c_diary_friend_list); // フレンド最新blog $this->set('c_rss_cache_list', db_rss_list_friend_c_rss_cache_list($u, 5)); // 日記コメント記入履歴 $c_diary_my_comment_list = p_h_home_c_diary_my_comment_list4c_member_id($u, 5); $this->set('c_diary_my_comment_list', $c_diary_my_comment_list); // コミュニティ全ての新着書き込み if (DISPLAY_NEWDIARYTOPIC_HOME && $OPTION['IS_DISPLAY_NEWTOPIC_HOME']) { $this->set('c_topic_list_all', p_h_home_c_topic_all_list(5)); } // 参加コミュニティの新着書き込み $this->set('c_commu_topic_comment_list', db_commu_c_commu_topic_comment_list4c_member_id($u, 5, true)); // レビュー $this->set('c_friend_review_list', db_review_c_friend_review_list4c_member_id($u, 5)); if (OPENPNE_USE_ALBUM) { // アルバム $this->set('c_friend_album_list', p_h_home_c_album_friend_list4c_member_id($u, 5)); } /// 自分の情報 /// // 日記 $c_diary_list = db_diary_get_c_diary_list4c_member_id($u, 5); $this->set('c_diary_list', $c_diary_list); // 外部blog $this->set('c_blog_list', db_rss_h_blog_list_friend4c_member_id($u, 5, 1)); // レビュー $this->set('c_review_list', db_review_c_review_list4member($u, 5)); if (OPENPNE_USE_ALBUM) { // アルバム $this->set('c_album_list', db_album_get_c_album_subject_list4c_member_id($u, 5)); } /// その他 /// if (OPENPNE_USE_POINT_RANK) { // ポイント $point = db_point_get_point($u); $this->set("point", $point); // ランク $this->set("rank", db_point_get_rank4point($point)); } // 紹介文 $c_friend_intro_list = db_friend_c_friend_intro_list4c_member_id($u, 5); $this->set('c_friend_intro_list', $c_friend_intro_list); // 今日の日付、曜日 $this->set('r_datetime', date('m/d')); $date = array('日', '月', '火', '水', '木', '金', '土'); $this->set('r_datetime_date', $date[date('w')]); /// 週間カレンダー if (DISPLAY_SCHEDULE_HOME && $OPTION['IS_DISPLAY_SCHEDULE_HOME']) { //開始曜日の設定 if ($c_member['schedule_start_day'] == 2) { $start_day = date("w"); } else { $start_day = $c_member['schedule_start_day']; } $this->set('calendar', $this->get_calendar($u, $requests['w'], $start_day)); } // お気に入りフィード if (USE_BOOKMARK_FEED) { // お気に入りの最新日記 if ($OPTION['IS_DISPLAY_BOOKMARK_DIARY_HOME']) { $this->set('bookmark_diary_list', db_bookmark_diary_list($u, 5)); } //お気に入りの最新ブログ if ($OPTION['IS_DISPLAY_BOOKMARK_BLOG_HOME']) { $this->set('bookmark_blog_list', db_bookmark_blog_list($u, 5)); } //お気に入りのメンバー $bookmark_member_list = db_bookmark_member_list($u, 9); $this->set('bookmark_member_list', $bookmark_member_list); $this->set('bookmark_count', db_bookmark_count($u)); } // API用セッションID $this->set('api_session_id', get_api_sessionid($u)); // アクセス日時を記録 db_member_do_access($u); // inc_entry_point $this->set('inc_entry_point', fetch_inc_entry_point($this->getView(), 'h_home')); return 'success'; }
function execute($requests) { $this->set('c_siteadmin', p_common_c_siteadmin4target_pagename('sns_kiyaku')); return 'success'; }
<?php /** * @copyright 2005-2008 OpenPNE Project * @license http://www.php.net/license/3_01.txt PHP License 3.01 */ require_once './config.inc.php'; require_once OPENPNE_WEBAPP_DIR . '/init.inc'; require_once 'smarty_plugins/function.t_img_url_skin.php'; $custom_css = p_common_c_siteadmin4target_pagename('inc_custom_css'); $decoration_config = db_decoration_enable_list(); $old_colors = util_get_color_config(); $colors = array(1 => $old_colors['bg_01'], 2 => $old_colors['bg_12'], 3 => $old_colors['bg_13'], 4 => $old_colors['bg_00'], 5 => $old_colors['bg_06'], 6 => $old_colors['bg_09'], 7 => $old_colors['bg_02'], 8 => $old_colors['bg_10']); function getSkin($name) { $params['filename'] = $name; return smarty_function_t_img_url_skin($params, $dummy); } header('Content-Type: text/css'); header('Cache-Control: max-age=315360000'); header('Expires: ' . gmdate('D, d M Y H:i:s', strtotime('+10 years')) . ' GMT'); ?> @charset "UTF-8"; /*============================================================================== * デフォルトスタイルシートの上書き *----------------------------------------------------------------------------*/ body, div, p, pre, blockquote, th, td, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, iframe, object, embed {
function execute($requests) { $u = $GLOBALS['KTAI_C_MEMBER_ID']; // --- リクエスト変数 $target_c_diary_id = $requests['target_c_diary_id']; $target_response_comment_id = $requests['target_response_comment_id']; $page = $requests['page']; // ---------- $c_diary = db_diary_get_c_diary4id($target_c_diary_id); $target_c_member = k_p_fh_diary_c_member4c_diary_id($target_c_diary_id); $target_c_member_id = $target_c_member['c_member_id']; if ($u != $target_c_member_id) { // check public_flag if (!pne_check_diary_public_flag($target_c_diary_id, $u)) { openpne_redirect('ktai', 'page_h_err_diary_access'); } //アクセスブロック設定 if (db_member_is_access_block($u, $target_c_member_id)) { openpne_redirect('ktai', 'page_h_access_block'); } } //管理画面HTML $this->set('c_siteadmin', p_common_c_siteadmin4target_pagename('k_fh_diary')); //日記の作者情報 $this->set('target_diary_writer', $target_c_member); //日記 $this->set('target_c_diary', $c_diary); $this->set('c_diary_id_prev', db_diary_c_diary_id_prev4c_diary_id($target_c_member_id, $target_c_diary_id, $u)); $this->set('c_diary_id_next', db_diary_c_diary_id_next4c_diary_id($target_c_member_id, $target_c_diary_id, $u)); //自分で日記を見たとき if ($c_diary['c_member_id'] == $u) { //日記を閲覧済みにする db_diary_update_c_diary_is_checked($target_c_diary_id, 1); $this->set('type', 'h'); } //コメント $page_size = 5; if ($requests['order'] === 'asc') { $desc = false; } else { $desc = true; } list($c_diary_comment_list, $is_prev, $is_next, $total_num, $total_page_num) = k_p_fh_diary_c_diary_comment_list4c_diary_id($target_c_diary_id, $page_size, $page, $desc); if ($desc) { $c_diary_comment_list = array_reverse($c_diary_comment_list); } if ($target_response_comment_id) { $target_comment = _do_c_diary_comment4c_diary_comment_id($target_response_comment_id); $response_set = db_member_c_member4c_member_id_LIGHT($target_comment['c_member_id']); $this->set('response_comment_format', '>>' . $target_comment['number'] . ' ' . $response_set['nickname'] . "さん\n"); } $this->set('c_diary_comment', $c_diary_comment_list); $this->set('total_num', $total_num); $this->set('total_page_num', $total_page_num); $this->set('page_size', $page_size); $this->set('page', $page); $this->set('is_writable_comment', db_diary_is_writable_comment4c_diary_id($target_c_diary_id)); // コメント許可設定取得 $this->set('is_comment_input', $c_diary['is_comment_input']); $start_comment = reset($c_diary_comment_list); $end_comment = end($c_diary_comment_list); $pager = array(); $pager['start'] = (int) $start_comment['number']; $pager['end'] = (int) $end_comment['number']; if ($is_prev) { if ($desc) { $pager['page_next'] = $page - 1; } else { $pager['page_prev'] = $page - 1; } } if ($is_next) { if ($desc) { $pager['page_prev'] = $page + 1; } else { $pager['page_next'] = $page + 1; } } $this->set('pager', $pager); // f or h $this->set('INC_NAVI_type', k_p_fh_common_get_type($target_c_member['c_member_id'], $u)); if (MAIL_ADDRESS_HASHED) { $mail_address = "bc{$target_c_diary_id}-" . t_get_user_hash($u) . '@' . MAIL_SERVER_DOMAIN; } else { $mail_address = "bc{$target_c_diary_id}" . '@' . MAIL_SERVER_DOMAIN; } $mail_address = MAIL_ADDRESS_PREFIX . $mail_address; $this->set('mail_address', $mail_address); //あしあとをつける db_ashiato_insert_c_ashiato($target_c_member_id, $u); return 'success'; }
function execute($requests) { // ヘッダ表示テキスト取得 $head_text_type = $this->_get_portal_config(PORTAL_CONFIG_HEAD_TEXT_TYPE); if (!$head_text_type) { $head_text_type = PORTAL_CONFIG_HEAD_TEXT_TYPE_SNS; } if ($head_text_type == PORTAL_CONFIG_HEAD_TEXT_TYPE_MANUAL) { $head_text = $this->_get_portal_config(PORTAL_CONFIG_HEAD_TEXT); } else { $head_text = SNS_NAME; } if (SNS_TITLE) { $title = SNS_TITLE; } else { $title = SNS_NAME; } //レイアウト設定 $layout_type = $this->_get_portal_config(PORTAL_CONFIG_LAYOUT_TYPE); if (strlen($layout_type) == 0 || !is_numeric(intval($layout_type))) { $layout_type = "1"; } //配色設定 $color_type = $this->_get_portal_config(PORTAL_CONFIG_COLOR_TYPE); if (strlen($color_type) == 0) { $color_type = "default"; } // CSS $custom_css = $this->_get_portal_config(PORTAL_CONFIG_CUSTOM_CSS); // meta タグ $meta_description = $this->_get_portal_config(PORTAL_CONFIG_META_DESCRIPTION); $meta_keywords = $this->_get_portal_config(PORTAL_CONFIG_META_KEYWORDS); $top = array(); $left = array(); $right = array(); $bottom = array(); $layout_list = db_portal_layout_order_by_position(); foreach ($layout_list as $layout) { $pos = $layout['position']; $name = $layout['content_name']; $content = $this->get_contents($name); $content['is_image'] = $layout['is_image']; if ($pos >= 10 && $pos < 20) { $top[] = $content; } else { if ($pos >= 20 && $pos < 30) { $left[] = $content; } else { if ($pos >= 30 && $pos < 40) { $right[] = $content; } else { if ($pos >= 40 && $pos < 50) { $bottom[] = $content; } } } } } if ($color_type == 'no_image') { $preset_color = util_get_preset_color_list(); $default_color_id = 7; $default_color = $preset_color[$default_color_id]; $this->set('color_config', $default_color); } $this->set('title', $title); $this->set('head_text', $head_text); $this->set('layout_type', $layout_type); $this->set('color_type', $color_type); $this->set('custom_css', $custom_css); $this->set('meta_description', $meta_description); $this->set('meta_keywords', $meta_keywords); $this->set('top', $top); $this->set('left', $left); $this->set('right', $right); $this->set('bottom', $bottom); $this->set('INC_FOOTER_inc_side_banner', db_banner_get_side_banner()); $this->set('INC_FOOTER_inc_page_footer', p_common_c_siteadmin4target_pagename('inc_page_footer_before')); return 'success'; }
function execute($requests) { $u = $GLOBALS['KTAI_C_MEMBER_ID']; $OPTION = $this->get('C_MEMBER_CONFIG'); $c_member_secure = db_member_c_member_secure4c_member_id($u); //管理画面HTML $this->set('c_siteadmin', p_common_c_siteadmin4target_pagename('k_h_home')); $c_member = db_member_c_member_with_profile($u, 'private'); //メンバー情報 $this->set('c_member', $c_member); //新着メッセージ数 $this->set('c_message_unread_count', db_message_c_message_received_unread_all_count4c_member_id($u)); //フレンドの最新日記 $this->set('c_diary_friend_list', p_h_home_c_diary_friend_list4c_member_id($u, 5, true)); //参加コミュニティリスト $this->set('c_commu_list', db_commu_c_commu_list_lastupdate4c_member_id($u, 5)); //参加コミュニティの数 $this->set('fh_com_count_user', db_commu_count_c_commu4c_member_id($u)); //フレンドリスト $this->set('c_friend_list', db_friend_c_friend_list_random4c_member_id($u, 5)); //フレンドの数 $this->set('c_friend_count', db_friend_count_friends($u)); //参加コミュニティの新着書き込み $this->set('c_commu_topic_list', db_commu_c_commu_topic_comment_list4c_member_id($u, 5, true)); $this->set('SNS_NAME', SNS_NAME); if (DISPLAY_NEWDIARYTOPIC_HOME) { if ($OPTION['IS_DISPLAY_NEWDIARY_HOME_KTAI']) { $this->set('c_diary_list_all', p_h_home_c_diary_all_list(5)); } if ($OPTION['IS_DISPLAY_NEWTOPIC_HOME_KTAI']) { $this->set('c_topic_list_all', p_h_home_c_topic_all_list(5)); } } //アクセス日時を記録 db_member_do_access($u); //未読メッセージの数をお知らせ $this->set("num_message_not_is_read", db_message_count_c_message_not_is_read4c_member_to_id($u)); //日記コメントの未読の数をお知らせ $this->set("num_diary_not_is_read", p_h_diary_count_c_diary_not_is_read4c_member_id($u)); //日記コメントの未読の中で、読ませるものを送る $this->set("first_diary_read", p_h_diary_c_diary_first_diary_read4c_member_id($u)); //コミュニティ承認を求めているメンバーリスト $h_confirm_list = db_commu_anatani_c_commu_member_confirm_list4c_member_id($u); $this->set("h_confirm_list", $h_confirm_list); //そのメンバーの人数 $this->set("num_h_confirm_list", count($h_confirm_list)); //あなたにフレンド認証を求めているメンバーリスト $f_confirm_list = db_friend_anatani_c_friend_confirm_list4c_member_id($u); $this->set("f_confirm_list", $f_confirm_list); //そのメンバーの人数 $this->set("num_f_confirm_list", count($f_confirm_list)); // あなたにコミュニティ管理者交代を希望しているメンバー $anatani_c_commu_admin_confirm_list = db_commu_anatani_c_commu_admin_confirm_list4c_member_id($u); $this->set("anatani_c_commu_admin_confirm_list", $anatani_c_commu_admin_confirm_list); //そのメンバーの人数 $this->set("num_anatani_c_commu_admin_confirm_list", count($anatani_c_commu_admin_confirm_list)); // あなたにコミュニティ副管理者を希望しているメンバー $anatani_c_commu_sub_admin_confirm_list = db_commu_anatani_c_commu_sub_admin_confirm_list4c_member_id($u); $this->set("anatani_c_commu_sub_admin_confirm_list", $anatani_c_commu_sub_admin_confirm_list); //そのメンバーの人数 $this->set("num_anatani_c_commu_sub_admin_confirm_list", count($anatani_c_commu_sub_admin_confirm_list)); //日記コメント記入履歴 $this->set("c_diary_my_comment_list", p_h_home_c_diary_my_comment_list4c_member_id($u, 5)); // 誕生日かどうか $this->set('birthday_flag', db_member_birthday_flag4c_member_id($u)); if (MAIL_ADDRESS_HASHED) { $mail_address = "b{$u}-" . t_get_user_hash($u) . "@" . MAIL_SERVER_DOMAIN; } else { $mail_address = "blog" . "@" . MAIL_SERVER_DOMAIN; } $mail_address = MAIL_ADDRESS_PREFIX . $mail_address; $this->set('blog_address', $mail_address); if (OPENPNE_USE_POINT_RANK) { // ポイント $point = db_point_get_point($u); $this->set("point", $point); // ランク $this->set("rank", db_point_get_rank4point($point)); // メール送信設定 $this->set('is_unused_rank_up', util_is_unused_mail('m_ktai_rank_up')); } // メール送信設定 $this->set('is_unused_ashiato', util_is_unused_mail('m_ktai_ashiato')); $this->set('is_unused_diary_comment', util_is_unused_mail('m_ktai_diary_comment_info')); // inc_entry_point $this->set('inc_ktai_entry_point', fetch_inc_entry_point($this->getView(), 'ktai_h_home')); return 'success'; }
function do_common_send_daily_news() { // 改行コード $cr = "\r"; $lf = "\n"; $crlf = "\r\n"; // 設定値によりMTAに渡すヘッダの区切り記号を分ける if (MAIL_HEADER_SEP === 'CRLF') { $sep = $crlf; } else { $sep = $lf; } $list = db_member_c_member_list4daily_news(); $count_receive_daily_news = db_member_count_c_member_is_receive_daily_news(); $count_daily_news_day = count(explode(',', DAILY_NEWS_DAY)); $str_daily_news_day = str_replace(',', '・', DAILY_NEWS_DAY); $send_2_flag = 0; $day_arr = array('日', '月', '火', '水', '木', '金', '土'); $day = date('w'); if (strstr(DAILY_NEWS_DAY, $day_arr[$day])) { $send_2_flag = 1; } $logstr = '【SNS名】' . SNS_NAME . $sep . '【URL】' . OPENPNE_URL . $sep . '【SNSメンバー総数】' . number_format(count(db_member_c_member_id_list4null())) . $sep . '【デイリーニュース送信対象総数】' . $sep . '毎回:' . number_format($count_receive_daily_news['every_day']) . $sep . '週' . $count_daily_news_day . '回(' . $str_daily_news_day . '):' . number_format($count_receive_daily_news['daily_news_day']) . $sep . '【配信日】' . date("Y/m/d") . '(' . $day_arr[$day] . ')' . $sep . $sep . "c_member_id\t通し番号\tタイムスタンプ" . $sep; print mb_convert_encoding($logstr, 'JIS'); $i = 1; $date = date("Y. n. j"); $daily_news_head = p_common_c_siteadmin4target_pagename('daily_news_head'); $daily_news_foot = p_common_c_siteadmin4target_pagename('daily_news_foot'); foreach ($list as $key => $value) { if ($value['is_receive_daily_news'] == 1 || $value['is_receive_daily_news'] == 2 && $send_2_flag) { $c_member_id = $value['c_member_id']; print $c_member_id . "\t" . $i++ . "\t" . date("Y-m-d H:i:s") . $sep; $c_member_secure = db_member_c_member_secure4c_member_id($c_member_id); $pc_address = $c_member_secure['pc_address']; $params = array('c_member' => db_member_c_member4c_member_id($c_member_id), 'date' => $date, 'ashiato_num' => db_ashiato_c_ashiato_num4c_member_id($c_member_id), 'diary_friend_list' => p_h_home_c_diary_friend_list4c_member_id($c_member_id, 5), 'c_commu_topic_comment_list' => db_commu_c_commu_topic_comment_list4c_member_id($c_member_id, 5), 'daily_news_head' => $daily_news_head, 'daily_news_foot' => $daily_news_foot); fetch_send_mail($pc_address, 'm_pc_daily_news', $params); } } }
function fetch_inc_ktai_footer() { $inc_smarty = new OpenPNE_Smarty($GLOBALS['SMARTY']); $inc_smarty->templates_dir = 'ktai/templates'; $inc_smarty->assign('inc_ktai_footer', p_common_c_siteadmin4target_pagename('inc_ktai_footer')); $inc_smarty->assign('tail', $GLOBALS['KTAI_URL_TAIL']); $inc_smarty->assign('page', $GLOBALS['__Framework']['current_action']); $inc_smarty->assign('ktai_color_config', util_get_color_config_ktai()); return $inc_smarty->ext_fetch('inc_ktai_footer.tpl'); }