Changeset 99 for trunk/wp-content
- Timestamp:
- Mar 7, 2009, 11:05:20 PM (16 years ago)
- Location:
- trunk/wp-content/plugins/xpressme
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/plugins/xpressme/include/xpress_common_functions.php
r96 r99 1 1 <?php 2 global $xoops_config; 3 if (!is_object($xoops_config)){ // is call other modules 4 require_once dirname( __FILE__ ) .'/config_from_xoops.class.php' ; 5 $xoops_config = new ConfigFromXoops; 6 } 7 2 8 // xoops db 3 9 function get_xpress_dir_path() … … 27 33 return $ret; 28 34 } 35 36 function get_xoops_root_path() 37 { 38 global $xoops_config; 39 $ret =$xoops_config->xoops_root_path; 40 return $ret; 41 } 42 29 43 function get_wp_prefix() 30 44 { … … 118 132 $blockID = $block->bid; 119 133 $options = explode("|", $block->options); 120 134 121 135 $block_theme_file = get_block_file_path($mydirname,$inc_theme_file_name); 122 136 require_once $block_theme_file; -
trunk/wp-content/plugins/xpressme/language/xpressme-ja.po
r88 r99 3 3 "Project-Id-Version: XPressME Plugin\n" 4 4 "POT-Creation-Date: \n" 5 "PO-Revision-Date: 2009-0 2-04 16:00+0900\n"5 "PO-Revision-Date: 2009-03-07 16:29+0900\n" 6 6 "Last-Translator: toemon <toychee@toemon.com>\n" 7 7 "Language-Team: \n" … … 12 12 "X-Poedit-Country: JAPAN\n" 13 13 "X-Poedit-KeywordsList: _e;__\n" 14 "X-Poedit-Basepath: C:\\ xampp\\htdocs\\cube\\modules\\xpress2X\\wp-content\\plugins\\xpressme\n"14 "X-Poedit-Basepath: C:\\XPressME_Ver2_SVN\\trunk\\wp-content\\plugins\\xpressme\n" 15 15 "X-Poedit-SearchPath-0: .\n" 16 16 … … 30 30 31 31 #: xpressme_class.php:170 32 #: xpressme_class.php: 28333 #: xpressme_class.php: 28834 #: xpressme_class.php:3 0935 #: xpressme_class.php:3 1432 #: xpressme_class.php:337 33 #: xpressme_class.php:342 34 #: xpressme_class.php:363 35 #: xpressme_class.php:368 36 36 msgid "YES" 37 37 msgstr "はい" 38 38 39 39 #: xpressme_class.php:171 40 #: xpressme_class.php: 28441 #: xpressme_class.php: 28942 #: xpressme_class.php:3 1043 #: xpressme_class.php:3 1540 #: xpressme_class.php:338 41 #: xpressme_class.php:343 42 #: xpressme_class.php:364 43 #: xpressme_class.php:369 44 44 msgid "NO" 45 45 msgstr "いいえ" … … 73 73 msgstr "ユーザ登録しない" 74 74 75 #: xpressme_class.php:273 75 #: xpressme_class.php:266 76 msgid "Do Not Comment Integration." 77 msgstr "コメント統合しません。" 78 79 #: xpressme_class.php:302 80 msgid "Comment integration with D3Forum" 81 msgstr "D3Forumとのコメント統合" 82 83 #: xpressme_class.php:304 84 msgid "Select the forum of D3Forum that does the comment integration from the following lists." 85 msgstr "以下のリストからコメント統合をするD3Forumのフォーラムを選択してください。" 86 87 #: xpressme_class.php:327 76 88 msgid "XPressME Configuration Page" 77 89 msgstr "XPressMEの設定ページ" 78 90 79 #: xpressme_class.php: 27791 #: xpressme_class.php:331 80 92 msgid "Media Upload Base Path" 81 93 msgstr "メディアアップロードのベースパス設定" 82 94 83 #: xpressme_class.php: 27895 #: xpressme_class.php:332 84 96 msgid "Use XOOPS UPLOAD PATH" 85 97 msgstr "XOOPSのアップロードパスを使用する。" 86 98 87 #: xpressme_class.php: 27999 #: xpressme_class.php:333 88 100 msgid "USE WordPress BASE_PATH" 89 101 msgstr "WordPressのベースパスを使用する。" 90 102 91 #: xpressme_class.php: 282103 #: xpressme_class.php:336 92 104 msgid "Thema Sidebar Display" 93 105 msgstr "テーマ表示時にサイドバー表示する。" 94 106 95 #: xpressme_class.php: 287107 #: xpressme_class.php:341 96 108 msgid "The change tracking of the post is preserved" 97 109 msgstr "投稿の変更履歴を有効にする。" 98 110 99 #: xpressme_class.php: 292111 #: xpressme_class.php:346 100 112 msgid "Display Navi Title of Old Post Link" 101 113 msgstr "古い記事へのナビタイトルを設定" 102 114 103 #: xpressme_class.php: 295115 #: xpressme_class.php:349 104 116 msgid "Display Navi Title of Newer Post Link" 105 117 msgstr "新しい記事へのナビタイトルを設定" 106 118 107 #: xpressme_class.php: 298119 #: xpressme_class.php:352 108 120 msgid "Select Display name of PostNavi Link" 109 121 msgstr "投稿記事リンクナビのタイトル設定" 110 122 111 #: xpressme_class.php: 299123 #: xpressme_class.php:353 112 124 msgid "Title of post" 113 125 msgstr "投稿記事のタイトルを表示" 114 126 115 #: xpressme_class.php:3 00127 #: xpressme_class.php:354 116 128 msgid "Title of Navi" 117 129 msgstr "ナビタイトルを表示" 118 130 119 #: xpressme_class.php:3 03131 #: xpressme_class.php:357 120 132 msgid "Adjustment of Navi link display position" 121 133 msgstr "投稿記事ナビリンクの表示位置設定" 122 134 123 #: xpressme_class.php:3 04135 #: xpressme_class.php:358 124 136 msgid "'Old Post Link' is displayed in the left, and 'Newer Post Link' is displayed in the right" 125 137 msgstr "古い記事へのリンクを左に、より新しい記事へのリンクを右に表示" 126 138 127 #: xpressme_class.php:3 05139 #: xpressme_class.php:359 128 140 msgid "'Newer Post Link' is displayed in the left, and 'Old Post Link' is displayed in the right" 129 141 msgstr "より新しい記事へのリンクを左に、古い記事へのリンクを右に表示" 130 142 131 #: xpressme_class.php:3 08143 #: xpressme_class.php:362 132 144 msgid "Is the posts author views counted?" 133 145 msgstr "投稿者の閲覧をカウントしますか?" 134 146 135 #: xpressme_class.php:3 13147 #: xpressme_class.php:367 136 148 msgid "Is SQL debugging window displayed?" 137 149 msgstr "SQLデバッグウィンドを表示しますか?" 138 150 139 #: xpressme_class.php:3 23151 #: xpressme_class.php:379 140 152 msgid "Update Config" 141 153 msgstr "更新" 142 154 143 #: xpressme_class.php:3 24155 #: xpressme_class.php:380 144 156 msgid "Preset Config" 145 157 msgstr "プリセット" 146 158 147 #: include/custom_functions.php: 244159 #: include/custom_functions.php:180 148 160 #, php-format 149 161 msgid "views :%d" -
trunk/wp-content/plugins/xpressme/xpressme_class.php
r95 r99 15 15 var $is_sql_debug; 16 16 var $groupe_role; 17 17 var $is_use_d3forum; 18 var $d3forum_module_dir; 19 var $d3forum_forum_id; 20 var $d3forum_external_link_format; 18 21 //constructor 19 22 function XPressME_Class() … … 49 52 $this->is_author_view_count = false; 50 53 $this->is_sql_debug = false; 54 $this->is_use_d3forum = false; 55 $this->d3forum_module_dir = ''; 56 $this->d3forum_forum_id = ''; 57 $this->d3forum_external_link_format = get_xpress_dir_name() . '::xpressD3commentContent'; 51 58 } 52 59 … … 79 86 'newer_post_link_text' => $this->newer_post_link_text, 80 87 'is_author_view_count' => $this->is_author_view_count, 81 'is_sql_debug' => $this->is_sql_debug 88 'is_sql_debug' => $this->is_sql_debug, 89 'is_use_d3forum' => $this->is_use_d3forum, 90 'd3forum_module_dir' => $this->d3forum_module_dir, 91 'd3forum_forum_id' => $this->d3forum_forum_id, 92 'd3forum_external_link_format' => $this->d3forum_external_link_format 82 93 ); 83 94 if ($mode == 'add_new') { … … 144 155 $this->is_author_view_count = stripslashes(trim($_POST['ch_is_author_view_count'])); 145 156 $this->is_sql_debug = stripslashes(trim($_POST['ch_is_sql_debug'])); 157 //d3forum 158 $d3forum_select = stripslashes(trim($_POST['ch_d3forum'])); 159 if ($d3forum_select == 'none') { 160 $this->is_use_d3forum = false; 161 $this->d3forum_module_dir = ''; 162 $this->d3forum_forum_id = ''; 163 $this->d3forum_external_link_format = get_xpress_dir_name() . '::xpressD3commentContent'; 164 } else { 165 $d3f_set = explode('|', $d3forum_select); 166 $this->is_use_d3forum = true; 167 $this->d3forum_module_dir = $d3f_set[1]; 168 $this->d3forum_forum_id = $d3f_set[2]; 169 $this->d3forum_external_link_format = get_xpress_dir_name() . '::xpressD3commentContent'; 170 } 146 171 147 172 global $xoops_db; … … 256 281 257 282 } 258 283 284 function d3forum_option(){ 285 global $xoops_db; 286 287 $d3frum_list = array(); 288 $module_dir_path = get_xoops_root_path(); 289 290 $forum_list = '<select name="ch_d3forum">' . "\n"; 291 292 if ($this->is_use_d3forum != true) 293 $selected = ' selected="selected"'; 294 else 295 $selected = ''; 296 $forum_list .= '<option value="none"' . $selected . '>' . __('Do Not Comment Integration.', 'xpressme') . "</option>\n"; 297 298 // Form making for forum selection of D3forum 299 $modules_table = get_xoops_prefix() .'modules'; 300 $sql = "SELECT mid,name,isactive,dirname FROM $modules_table WHERE isactive = 1"; 301 $modules = $xoops_db->get_results($sql); 302 foreach ($modules as $module) { 303 $file_path = $module_dir_path . '/modules/' . $module->dirname . '/mytrustdirname.php'; 304 if (! file_exists($file_path)) continue; 305 $array_files = file($file_path); 306 // It is checked whether there is character string "$mytrustdirname ='d3forum'"in the file. 307 foreach ($array_files as $aeey_file){ 308 if( preg_match( "/\s*($mytrustdirname)\s*(=)\s*([\"'])(d3forum)([\"'])/", $aeey_file ) ) { 309 $forums_tb = get_xoops_prefix() . $module->dirname . '_forums'; 310 $cat_tb = get_xoops_prefix() . $module->dirname . '_categories'; 311 $sql= "SELECT * FROM $forums_tb LEFT JOIN $cat_tb ON $forums_tb.cat_id = $cat_tb.cat_id"; 312 $forums = $xoops_db->get_results($sql); 313 foreach ($forums as $forum) { 314 if (($module->dirname == $this->d3forum_module_dir) && ($forum->forum_id == $this->d3forum_forum_id)) 315 $selected = ' selected="selected"'; 316 else 317 $selected = ''; 318 $forum_div = 'forum|' . $module->dirname . '|' . $forum->forum_id; 319 $forum_select = "$module->name($module->dirname) $forum->cat_title-$forum->forum_title(ID=$forum->forum_id)"; 320 $forum_list .= '<option value="' . $forum_div . '" ' . $selected . '>' . $forum_select . "</option>\n"; 321 } 322 break; 323 } 324 } 325 $form .= '<br>'; 326 } 327 $forum_list .= '</select>' . "\n"; 328 329 $form = '<tr>' . "\n"; 330 $form .= '<th><label for="d3forum">' .__('Comment integration with D3Forum', 'xpressme') . '</label></th>' . "\n"; 331 $form .= "<td>\n"; 332 $form .= __('Select the forum of D3Forum that does the comment integration from the following lists.', 'xpressme') ."<br />\n"; 333 $form .= $forum_list."\n"; 334 $form .= '<br /><br /><br /><br /><br /><br /><br />'; 335 $form .= "</td>\n"; 336 $form .= "</tr><tr>\n"; 337 return $form; 338 } 339 259 340 function option_page() 260 341 { … … 316 397 ); 317 398 318 echo $this->groupe_role_option(); 399 echo $this->groupe_role_option(); 400 401 echo $this->d3forum_option(); 319 402 // $this->is_use_xoops_upload_path_html(); 320 403 echo "</table>\n";
Note: See TracChangeset
for help on using the changeset viewer.