- Timestamp:
- Jul 9, 2009, 3:39:14 PM (15 years ago)
- Location:
- trunk/xpressme_integration_kit/wp-content/plugins/xpressme
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/xpressme_integration_kit/wp-content/plugins/xpressme/language/xpressme-ja.po
r313 r328 3 3 "Project-Id-Version: XPressME Plugin\n" 4 4 "Report-Msgid-Bugs-To: \n" 5 "POT-Creation-Date: 2009-07-0 3 12:16+0900\n"6 "PO-Revision-Date: 2009-07-0 3 12:46+0900\n"5 "POT-Creation-Date: 2009-07-09 15:40+0900\n" 6 "PO-Revision-Date: 2009-07-09 15:41+0900\n" 7 7 "Last-Translator: toemon <info@toemon.com>\n" 8 8 "Language-Team: toemon <info@toemon.com>\n" … … 18 18 "X-Poedit-SearchPath-0: .\n" 19 19 20 #: xpressme.php:33 21 msgid "XPressME Settings" 22 msgstr "XPressME設定" 20 #: xpressme.php:34 21 msgid "Display Settings" 22 msgstr "表示設定" 23 24 #: xpressme.php:35 25 msgid "Integration Settings" 26 msgstr "統合設定" 27 28 #: xpressme.php:36 29 msgid "Other Settings" 30 msgstr "その他の設定" 31 32 #: xpressme.php:216 33 #: xpressme.php:265 34 #: xpressme.php:306 35 msgid "XPressME Configuration Page" 36 msgstr "XPressMEの設定ページ" 37 38 #: xpressme.php:217 39 #: xpressme.php:266 40 #: xpressme.php:307 41 msgid "to XOOPS Modules Admin Page" 42 msgstr "XOOPSモジュール管理ページへ" 43 44 #: xpressme.php:222 45 msgid "Thema Sidebar Display" 46 msgstr "テーマ表示時にサイドバー表示する。" 47 48 #: xpressme.php:223 49 #: xpressme.php:312 50 #: xpressme.php:318 51 #: xpressme.php:323 52 #: xpressme.php:329 53 #: xpressme_class.php:264 54 #: xpressme_class.php:280 55 msgid "YES" 56 msgstr "はい" 57 58 #: xpressme.php:224 59 #: xpressme.php:313 60 #: xpressme.php:319 61 #: xpressme.php:324 62 #: xpressme.php:330 63 #: xpressme_class.php:265 64 #: xpressme_class.php:281 65 msgid "NO" 66 msgstr "いいえ" 67 68 #: xpressme.php:232 69 #: xpressme.php:281 70 #: xpressme.php:335 71 msgid "Update Config" 72 msgstr "更新" 73 74 #: xpressme.php:233 75 #: xpressme.php:282 76 #: xpressme.php:336 77 msgid "Preset Config" 78 msgstr "プリセット" 79 80 #: xpressme.php:270 81 msgid "Media Upload Base Path" 82 msgstr "メディアアップロードのベースパス設定" 83 84 #: xpressme.php:271 85 msgid "Use XOOPS UPLOAD PATH" 86 msgstr "XOOPSのアップロードパスを使用する。" 87 88 #: xpressme.php:272 89 msgid "USE WordPress BASE_PATH" 90 msgstr "WordPressのベースパスを使用する。" 91 92 #: xpressme.php:311 93 msgid "The change tracking of the post is preserved" 94 msgstr "投稿の変更履歴を有効にする。" 95 96 #: xpressme.php:317 97 msgid "Select Multi user mode" 98 msgstr "マルチユーザーモードを選択" 99 100 #: xpressme.php:322 101 msgid "Is the posts author views counted?" 102 msgstr "投稿者の閲覧をカウントしますか?" 103 104 #: xpressme.php:328 105 msgid "Is SQL debugging window displayed?" 106 msgstr "SQLデバッグウィンドを表示しますか?" 23 107 24 108 #: xpressme_class.php:51 25 #: xpressme_class.php:2 02109 #: xpressme_class.php:220 26 110 msgid "Older Post" 27 111 msgstr "前の投稿へ" 28 112 29 113 #: xpressme_class.php:52 30 #: xpressme_class.php:2 04114 #: xpressme_class.php:223 31 115 msgid "Newer Post" 32 116 msgstr "次の投稿へ" 33 117 34 118 #: xpressme_class.php:54 35 #: xpressme_class.php:2 07119 #: xpressme_class.php:226 36 120 msgid "Older Entries" 37 121 msgstr "前ページへ" 38 122 39 123 #: xpressme_class.php:55 40 #: xpressme_class.php:2 09124 #: xpressme_class.php:229 41 125 msgid "Newer Entries" 42 126 msgstr "次ページへ" … … 45 129 msgid "more" 46 130 msgstr "続きを読む" 47 48 #: xpressme_class.php:26449 #: xpressme_class.php:28050 #: xpressme_class.php:71951 #: xpressme_class.php:72452 #: xpressme_class.php:73053 #: xpressme_class.php:74154 #: xpressme_class.php:74755 msgid "YES"56 msgstr "はい"57 58 #: xpressme_class.php:26559 #: xpressme_class.php:28160 #: xpressme_class.php:72061 #: xpressme_class.php:72562 #: xpressme_class.php:73163 #: xpressme_class.php:74264 #: xpressme_class.php:74865 msgid "NO"66 msgstr "いいえ"67 131 68 132 #: xpressme_class.php:323 … … 303 367 msgstr "WordPressのロボットインデックス" 304 368 305 #: xpressme_class.php:707 306 msgid "XPressME Configuration Page" 307 msgstr "XPressMEの設定ページ" 308 309 #: xpressme_class.php:708 310 msgid "to XOOPS Modules Admin Page" 311 msgstr "XOOPSモジュール管理ページへ" 312 313 #: xpressme_class.php:713 314 msgid "Media Upload Base Path" 315 msgstr "メディアアップロードのベースパス設定" 316 317 #: xpressme_class.php:714 318 msgid "Use XOOPS UPLOAD PATH" 319 msgstr "XOOPSのアップロードパスを使用する。" 320 321 #: xpressme_class.php:715 322 msgid "USE WordPress BASE_PATH" 323 msgstr "WordPressのベースパスを使用する。" 324 325 #: xpressme_class.php:718 326 msgid "Thema Sidebar Display" 327 msgstr "テーマ表示時にサイドバー表示する。" 328 329 #: xpressme_class.php:723 330 msgid "The change tracking of the post is preserved" 331 msgstr "投稿の変更履歴を有効にする。" 332 333 #: xpressme_class.php:729 334 msgid "Select Multi user mode" 335 msgstr "マルチユーザーモードを選択" 336 337 #: xpressme_class.php:740 338 msgid "Is the posts author views counted?" 339 msgstr "投稿者の閲覧をカウントしますか?" 340 341 #: xpressme_class.php:746 342 msgid "Is SQL debugging window displayed?" 343 msgstr "SQLデバッグウィンドを表示しますか?" 344 345 #: xpressme_class.php:758 346 msgid "Update Config" 347 msgstr "更新" 348 349 #: xpressme_class.php:759 350 msgid "Preset Config" 351 msgstr "プリセット" 352 353 #: xpressme_class.php:784 369 #: xpressme_class.php:699 354 370 #, php-format 355 371 msgid "Unable to create directory %s. Is its parent directory writable by the server?" … … 361 377 msgstr "%sのパーマリンク" 362 378 363 #: include/custom_functions.php:4 16364 #: include/custom_functions.php:4 41379 #: include/custom_functions.php:430 380 #: include/custom_functions.php:455 365 381 #, php-format 366 382 msgid "views :%d" 367 383 msgstr "閲覧数 :%d" 368 384 369 #: include/custom_functions.php: 595385 #: include/custom_functions.php:609 370 386 msgid "Main" 371 387 msgstr "メイン" 372 388 373 #: include/custom_functions.php: 598389 #: include/custom_functions.php:612 374 390 #, php-format 375 391 msgid "Archive for the ‘%s’ Category" 376 392 msgstr "カテゴリー ‘%s’ のアーカイブ" 377 393 378 #: include/custom_functions.php:6 01394 #: include/custom_functions.php:615 379 395 #, php-format 380 396 msgid "Posts Tagged ‘%s’" 381 397 msgstr "‘%s’ タグのついている投稿" 382 398 383 #: include/custom_functions.php:6 04399 #: include/custom_functions.php:618 384 400 #, php-format 385 401 msgid "Archive for %s|Daily archive page" 386 402 msgstr "%sの日別アーカイブ" 387 403 388 #: include/custom_functions.php:6 04404 #: include/custom_functions.php:618 389 405 msgid "F jS, Y" 390 406 msgstr "Y年n月j日" 391 407 392 #: include/custom_functions.php:6 06408 #: include/custom_functions.php:620 393 409 #, php-format 394 410 msgid "Archive for %s|Monthly archive page" 395 411 msgstr "%sの月別アーカイブ" 396 412 397 #: include/custom_functions.php:6 06413 #: include/custom_functions.php:620 398 414 msgid "F, Y" 399 415 msgstr "Y年n月" 400 416 401 #: include/custom_functions.php:6 08417 #: include/custom_functions.php:622 402 418 #, php-format 403 419 msgid "Archive for %s|Yearly archive page" 404 420 msgstr "%sの年別アーカイブ " 405 421 406 #: include/custom_functions.php:6 08422 #: include/custom_functions.php:622 407 423 msgid "Y" 408 424 msgstr "Y年" 409 425 410 #: include/custom_functions.php:6 11426 #: include/custom_functions.php:625 411 427 #, php-format 412 428 msgid "Archive for the ‘%s’ Author" 413 429 msgstr "投稿者 ‘%s’ のアーカイブ" 414 430 415 #: include/custom_functions.php:6 14431 #: include/custom_functions.php:628 416 432 #, php-format 417 433 msgid "Search Results of word ‘%s’" 418 434 msgstr "‘%s’ の検索結果" 419 435 420 #: include/custom_functions.php:6 20421 #: include/custom_functions.php:6 22436 #: include/custom_functions.php:634 437 #: include/custom_functions.php:636 422 438 #, php-format 423 439 msgid "Article of %s" 424 440 msgstr "%sの記事" 425 441 426 #: include/custom_functions.php:6 44442 #: include/custom_functions.php:658 427 443 #, php-format 428 444 msgid "From %1$s on site %2$s" 429 445 msgstr "サイト %2$s の %1$s より" 430 446 431 #: include/custom_functions.php:6 65447 #: include/custom_functions.php:679 432 448 msgid "No Trackback/Pingback" 433 449 msgstr "トラックバック・ピンバックはありません" 434 450 435 #: include/custom_functions.php:6 66451 #: include/custom_functions.php:680 436 452 msgid "One Trackback/Pingback" 437 453 msgstr "トラックバック・ピンバック 1 件" 438 454 439 #: include/custom_functions.php:6 67455 #: include/custom_functions.php:681 440 456 msgid "% TrackBack/Pingback" 441 457 msgstr "トラックバック・ピンバック % 件" 442 458 443 #: include/custom_functions.php:8 18459 #: include/custom_functions.php:832 444 460 msgid "Calendar" 445 461 msgstr "カレンダー" 446 462 447 #: include/custom_functions.php:8 19463 #: include/custom_functions.php:833 448 464 #, php-format 449 465 msgid "%1$s %2$s|Used as a calendar caption" 450 466 msgstr "%2$s 年 %1$s|カレンダーのキャプションに使われます" 451 467 452 #: include/custom_functions.php:8 51453 #: include/custom_functions.php:8 61468 #: include/custom_functions.php:865 469 #: include/custom_functions.php:875 454 470 #, php-format 455 471 msgid "View posts for %1$s %2$s" 456 472 msgstr "%2$s年%1$sの投稿を表示" 457 473 458 #: include/functions_for_wp20.php:2 0474 #: include/functions_for_wp20.php:21 459 475 msgid "<strong>ERROR</strong>: The password field is empty." 460 476 msgstr "<strong>エラー</strong>: パスワードが入力されていません." 461 477 462 #: include/functions_for_wp20.php:2 8478 #: include/functions_for_wp20.php:29 463 479 msgid "<strong>ERROR</strong>: Invalid username." 464 480 msgstr "<strong>エラー</strong>: ユーザ名が異なっています." 465 481 466 #: include/functions_for_wp20.php:3 6482 #: include/functions_for_wp20.php:37 467 483 msgid "<strong>ERROR</strong>: Incorrect password." 468 484 msgstr "<strong>エラー</strong>: パスワードが異なっています." -
trunk/xpressme_integration_kit/wp-content/plugins/xpressme/xpressme.php
r313 r328 25 25 function my_plugin_menu() 26 26 { 27 global $xpress_config; 27 global $xpress_config,$xoops_config; 28 28 29 $plugin_url = WP_PLUGIN_URL."/xpressme/"; 29 30 30 // add_options_page('XPressME', __('XPressME Settings', 'xpressme'), 8, 'xpressme_config', array(&$xpress_config, 'option_page')); 31 // * Top Level Menu 32 add_menu_page('XPressME','XPressME', 8, 'xpressme_config', array(&$xpress_config, 'option_page'), $plugin_url.'/images/menu_icon.png'); 33 add_submenu_page('xpressme_config', __('XPressME Settings', 'xpressme'), __('XPressME Settings', 'xpressme'), 8, 'xpressme_config', array(&$xpress_config, 'option_page')); 34 // add_submenu_page('xpressme_config', 'Test Sublevel2', __('to XOOPS Admin', 'xpressme'), 8, 'to_xoops_admin', array(&$xpress_config, 'to_xoops_admin')); 31 // Add a new top-level menu: 32 add_menu_page('XPressME','XPressME', 8, __FILE__, 'display_option_page' , $plugin_url.'/images/menu_icon.png'); 33 // Add submenus to the custom top-level menu: 34 add_submenu_page(__FILE__, __('Display Settings', 'xpressme'), __('Display Settings', 'xpressme'), 8, __FILE__, 'display_option_page'); 35 add_submenu_page(__FILE__, __('Integration Settings', 'xpressme'), __('Integration Settings', 'xpressme'), 8, 'integration_option_page', 'integration_option_page'); 36 add_submenu_page(__FILE__, __('Other Settings', 'xpressme'), __('Other Settings', 'xpressme'), 8, 'other_option_page', 'other_option_page'); 37 // add_submenu_page(__FILE__, __('XPressME Settings', 'xpressme'), __('XPressME Settings', 'xpressme'), 8, 'option_page', 'option_page'); 35 38 } 36 39 add_action('admin_menu', 'my_plugin_menu'); … … 108 111 add_action('wp_footer', array(&$xpress_config, 'displayDebugLog')); 109 112 113 /* 114 function option_page() 115 { 116 global $xoops_config,$xpress_config; 117 118 $xoops_admin_url = $xoops_config->module_url . '/admin/index.php'; 119 120 $do_message =''; 121 if (!empty($_POST['submit_update'])) { 122 $xpress_config->ReadPostData($_POST); 123 $xpress_config->SettingValueWrite('update'); 124 } else if (isset($_POST['submit_reset'])) { 125 $xpress_config->setDefault(); 126 $xpress_config->SettingValueWrite('update'); 127 } else if (isset($_POST['export_d3f'])) { 128 $do_message = 'export(' . $xpress_config->d3forum_module_dir . '--ID=' . $xpress_config->d3forum_forum_id . ')................'; 129 $do_message .= wp_to_d3forum($xpress_config->d3forum_forum_id, $xpress_config->d3forum_module_dir); 130 $do_message .= '....END'; 131 } else if (isset($_POST['inport_d3f'])) { 132 $do_message = 'Import(' . $xpress_config->d3forum_module_dir . '--ID=' . $xpress_config->d3forum_forum_id . ')................'; 133 $do_message .= d3forum_to_wp($xpress_config->d3forum_forum_id, $xpress_config->d3forum_module_dir); 134 $do_message .= '....END'; 135 } 136 137 echo '<div class="wrap">'."\n"; 138 echo '<div id="icon-options-general" class="icon32"><br /></div>'."\n"; 139 echo '<h2>' . __('XPressME Configuration Page', 'xpressme') . "</h2><br>\n"; 140 echo '<div align="right"><a href="' . $xoops_admin_url . '"><h3>'. __('to XOOPS Modules Admin Page', 'xpressme') . '</h3></a></div>'; 141 echo '<form method="post" action="' . $_SERVER["REQUEST_URI"] . '">'."\n" ; 142 echo '<table class="form-table">'."\n"; 143 echo $xpress_config->viewer_type_option(); 144 echo $xpress_config->yes_no_radio_option('is_use_xoops_upload_path', 145 __('Media Upload Base Path','xpressme'), 146 __('Use XOOPS UPLOAD PATH','xpressme'), 147 __('USE WordPress BASE_PATH','xpressme') 148 ); 149 echo $xpress_config->yes_no_radio_option('is_theme_sidebar_disp', 150 __('Thema Sidebar Display','xpressme'), 151 __('YES','xpressme'), 152 __('NO','xpressme') 153 ); 154 echo $xpress_config->yes_no_radio_option('is_save_post_revision', 155 __('The change tracking of the post is preserved','xpressme'), 156 __('YES','xpressme'), 157 __('NO','xpressme') 158 ); 159 160 echo $xpress_config->yes_no_radio_option('is_multi_user', 161 __('Select Multi user mode','xpressme'), 162 __('YES','xpressme'), 163 __('NO','xpressme') 164 ); 165 166 167 echo $xpress_config->single_post_navi_option(); 168 echo $xpress_config->posts_page_navi_option(); 169 echo $xpress_config->excerpt_option(); 170 171 echo $xpress_config->yes_no_radio_option('is_author_view_count', 172 __('Is the posts author views counted?','xpressme'), 173 __('YES','xpressme'), 174 __('NO','xpressme') 175 ); 176 echo $xpress_config->header_meta_option(); 177 echo $xpress_config->yes_no_radio_option('is_sql_debug', 178 __('Is SQL debugging window displayed?','xpressme'), 179 __('YES','xpressme'), 180 __('NO','xpressme') 181 ); 182 183 echo $xpress_config->groupe_role_option(); 184 185 echo $xpress_config->d3forum_option($do_message); 186 // $xpress_config->is_use_xoops_upload_path_html(); 187 echo "</table>\n"; 188 189 echo '<p class="submit">'."\n"; 190 echo '<input type="submit" value= "' . __('Update Config', 'xpressme') . '" name="submit_update" />' ."\n"; 191 echo '<input type="submit" value= "' . __('Preset Config', 'xpressme') . '" name="submit_reset" />' ."\n"; 192 echo "</p>\n"; 193 194 echo "</form>\n" ; 195 echo "</div>\n"; 196 } 197 */ 198 199 function display_option_page() 200 { 201 global $xoops_config,$xpress_config; 202 203 $xoops_admin_url = $xoops_config->module_url . '/admin/index.php'; 204 205 $do_message =''; 206 if (!empty($_POST['submit_update'])) { 207 $xpress_config->ReadPostData($_POST); 208 $xpress_config->SettingValueWrite('update'); 209 } else if (isset($_POST['submit_reset'])) { 210 $xpress_config->setDefault(); 211 $xpress_config->SettingValueWrite('update'); 212 } 213 214 echo '<div class="wrap">'."\n"; 215 echo '<div id="icon-options-general" class="icon32"><br /></div>'."\n"; 216 echo '<h2>' . __('XPressME Configuration Page', 'xpressme') . "</h2><br>\n"; 217 echo '<div align="right"><a href="' . $xoops_admin_url . '"><h3>'. __('to XOOPS Modules Admin Page', 'xpressme') . '</h3></a></div>'; 218 echo '<form method="post" action="' . $_SERVER["REQUEST_URI"] . '">'."\n" ; 219 echo '<table class="form-table">'."\n"; 220 echo $xpress_config->viewer_type_option(); 221 echo $xpress_config->yes_no_radio_option('is_theme_sidebar_disp', 222 __('Thema Sidebar Display','xpressme'), 223 __('YES','xpressme'), 224 __('NO','xpressme') 225 ); 226 echo $xpress_config->single_post_navi_option(); 227 echo $xpress_config->posts_page_navi_option(); 228 echo $xpress_config->excerpt_option(); 229 echo "</table>\n"; 230 231 echo '<p class="submit">'."\n"; 232 echo '<input type="submit" value= "' . __('Update Config', 'xpressme') . '" name="submit_update" />' ."\n"; 233 echo '<input type="submit" value= "' . __('Preset Config', 'xpressme') . '" name="submit_reset" />' ."\n"; 234 echo "</p>\n"; 235 236 echo "</form>\n" ; 237 echo "</div>\n"; 238 } 239 240 function integration_option_page() 241 { 242 global $xoops_config,$xpress_config; 243 244 $xoops_admin_url = $xoops_config->module_url . '/admin/index.php'; 245 246 $do_message =''; 247 if (!empty($_POST['submit_update'])) { 248 $xpress_config->ReadPostData($_POST); 249 $xpress_config->SettingValueWrite('update'); 250 } else if (isset($_POST['submit_reset'])) { 251 $xpress_config->setDefault(); 252 $xpress_config->SettingValueWrite('update'); 253 } else if (isset($_POST['export_d3f'])) { 254 $do_message = 'export(' . $xpress_config->d3forum_module_dir . '--ID=' . $xpress_config->d3forum_forum_id . ')................'; 255 $do_message .= wp_to_d3forum($xpress_config->d3forum_forum_id, $xpress_config->d3forum_module_dir); 256 $do_message .= '....END'; 257 } else if (isset($_POST['inport_d3f'])) { 258 $do_message = 'Import(' . $xpress_config->d3forum_module_dir . '--ID=' . $xpress_config->d3forum_forum_id . ')................'; 259 $do_message .= d3forum_to_wp($xpress_config->d3forum_forum_id, $xpress_config->d3forum_module_dir); 260 $do_message .= '....END'; 261 } 262 263 echo '<div class="wrap">'."\n"; 264 echo '<div id="icon-options-general" class="icon32"><br /></div>'."\n"; 265 echo '<h2>' . __('XPressME Configuration Page', 'xpressme') . "</h2><br>\n"; 266 echo '<div align="right"><a href="' . $xoops_admin_url . '"><h3>'. __('to XOOPS Modules Admin Page', 'xpressme') . '</h3></a></div>'; 267 echo '<form method="post" action="' . $_SERVER["REQUEST_URI"] . '">'."\n" ; 268 echo '<table class="form-table">'."\n"; 269 echo $xpress_config->yes_no_radio_option('is_use_xoops_upload_path', 270 __('Media Upload Base Path','xpressme'), 271 __('Use XOOPS UPLOAD PATH','xpressme'), 272 __('USE WordPress BASE_PATH','xpressme') 273 ); 274 275 echo $xpress_config->groupe_role_option(); 276 277 echo $xpress_config->d3forum_option($do_message); 278 echo "</table>\n"; 279 280 echo '<p class="submit">'."\n"; 281 echo '<input type="submit" value= "' . __('Update Config', 'xpressme') . '" name="submit_update" />' ."\n"; 282 echo '<input type="submit" value= "' . __('Preset Config', 'xpressme') . '" name="submit_reset" />' ."\n"; 283 echo "</p>\n"; 284 285 echo "</form>\n" ; 286 echo "</div>\n"; 287 } 288 289 function other_option_page() 290 { 291 global $xoops_config,$xpress_config; 292 293 $xoops_admin_url = $xoops_config->module_url . '/admin/index.php'; 294 295 $do_message =''; 296 if (!empty($_POST['submit_update'])) { 297 $xpress_config->ReadPostData($_POST); 298 $xpress_config->SettingValueWrite('update'); 299 } else if (isset($_POST['submit_reset'])) { 300 $xpress_config->setDefault(); 301 $xpress_config->SettingValueWrite('update'); 302 } 303 304 echo '<div class="wrap">'."\n"; 305 echo '<div id="icon-options-general" class="icon32"><br /></div>'."\n"; 306 echo '<h2>' . __('XPressME Configuration Page', 'xpressme') . "</h2><br>\n"; 307 echo '<div align="right"><a href="' . $xoops_admin_url . '"><h3>'. __('to XOOPS Modules Admin Page', 'xpressme') . '</h3></a></div>'; 308 echo '<form method="post" action="' . $_SERVER["REQUEST_URI"] . '">'."\n" ; 309 echo '<table class="form-table">'."\n"; 310 echo $xpress_config->yes_no_radio_option('is_save_post_revision', 311 __('The change tracking of the post is preserved','xpressme'), 312 __('YES','xpressme'), 313 __('NO','xpressme') 314 ); 315 316 echo $xpress_config->yes_no_radio_option('is_multi_user', 317 __('Select Multi user mode','xpressme'), 318 __('YES','xpressme'), 319 __('NO','xpressme') 320 ); 321 echo $xpress_config->yes_no_radio_option('is_author_view_count', 322 __('Is the posts author views counted?','xpressme'), 323 __('YES','xpressme'), 324 __('NO','xpressme') 325 ); 326 echo $xpress_config->header_meta_option(); 327 echo $xpress_config->yes_no_radio_option('is_sql_debug', 328 __('Is SQL debugging window displayed?','xpressme'), 329 __('YES','xpressme'), 330 __('NO','xpressme') 331 ); 332 echo "</table>\n"; 333 334 echo '<p class="submit">'."\n"; 335 echo '<input type="submit" value= "' . __('Update Config', 'xpressme') . '" name="submit_update" />' ."\n"; 336 echo '<input type="submit" value= "' . __('Preset Config', 'xpressme') . '" name="submit_reset" />' ."\n"; 337 echo "</p>\n"; 338 339 echo "</form>\n" ; 340 echo "</div>\n"; 341 } 342 110 343 ?> -
trunk/xpressme_integration_kit/wp-content/plugins/xpressme/xpressme_class.php
r313 r328 192 192 } 193 193 194 function ReadPostData() 195 { 196 $this->is_use_xoops_upload_path = stripslashes(trim($_POST['ch_is_use_xoops_upload_path'])); 197 $this->is_theme_sidebar_disp = stripslashes(trim($_POST['ch_is_theme_sidebar_disp'])); 198 $this->is_save_post_revision = stripslashes(trim($_POST['ch_is_save_post_revision'])); 199 $this->is_postnavi_title_disp = stripslashes(trim($_POST['ch_is_postnavi_title_disp'])); 200 $this->is_left_postnavi_old = stripslashes(trim($_POST['ch_is_left_postnavi_old'])); 201 $this->old_post_link_text = stripslashes($_POST['ch_old_post_link_text']); 202 if(empty($this->old_post_link_text)) $this->old_post_link_text = __('Older Post', 'xpressme'); 203 $this->newer_post_link_text = stripslashes($_POST['ch_newer_post_link_text']); 204 if(empty($this->newer_post_link_text)) $this->newer_post_link_text = __('Newer Post', 'xpressme'); 205 $this->is_left_page_navi_old = stripslashes(trim($_POST['ch_is_left_page_navi_old'])); 206 $this->old_page_link_text = stripslashes($_POST['ch_old_page_link_text']); 207 if(empty($this->old_page_link_text)) $this->old_page_link_text = __('Older Entries', 'xpressme'); 208 $this->newer_page_link_text = stripslashes($_POST['ch_newer_page_link_text']); 209 if(empty($this->newer_page_link_text)) $this->newer_page_link_text = __('Newer Entries', 'xpressme'); 210 $this->is_author_view_count = stripslashes(trim($_POST['ch_is_author_view_count'])); 211 $this->is_sql_debug = stripslashes(trim($_POST['ch_is_sql_debug'])); 212 //d3forum 213 $d3forum_select = stripslashes(trim($_POST['ch_d3forum'])); 214 if ($d3forum_select == 'none') { 215 $this->is_use_d3forum = false; 216 $this->d3forum_module_dir = ''; 217 $this->d3forum_forum_id = ''; 218 $this->d3forum_external_link_format = get_xpress_dir_name() . '::xpressD3commentContent'; 219 } else { 220 $d3f_set = explode('|', $d3forum_select); 221 $this->is_use_d3forum = true; 222 $this->d3forum_module_dir = $d3f_set[1]; 223 $this->d3forum_forum_id = $d3f_set[2]; 224 $this->d3forum_external_link_format = get_xpress_dir_name() . '::xpressD3commentContent'; 225 } 226 $this->is_d3forum_flat = stripslashes(trim($_POST['ch_d3forum_type'])); 227 $this->is_d3forum_desc = stripslashes(trim($_POST['ch_d3forum_order'])); 228 $this->d3forum_views_num = stripslashes(trim($_POST['ch_d3forum_view_num'])); 229 230 $this->is_content_excerpt = stripslashes(trim($_POST['ch_is_content_excerpt'])); 231 $this->ascii_judged_rate = stripslashes(trim($_POST['ch_ascii_judged_rate'])); 232 $this->excerpt_length_word = stripslashes(trim($_POST['ch_excerpt_length_word'])); 233 $this->excerpt_length_character = stripslashes(trim($_POST['ch_excerpt_length_character'])); 234 $this->more_link_text = stripslashes(trim($_POST['ch_more_link_text'])); 235 $this->viewer_type = stripslashes(trim($_POST['ch_viewer_type'])); 236 $this->is_multi_user = stripslashes(trim($_POST['ch_is_multi_user'])); 237 $this->meta_keyword_type = stripslashes(trim($_POST['ch_meta_keyword_type'])); 238 $this->meta_description_type = stripslashes(trim($_POST['ch_meta_description_type'])); 239 $this->meta_robot_type = stripslashes(trim($_POST['ch_meta_robot_type'])); 194 function ReadPostData($post_data = null) 195 { 196 global $xoops_db; 197 198 foreach ( (array) $post_data as $index_key => $value ){ 199 if (preg_match('/^ch_/',$index_key)){ // case ch_ 200 $indedx = preg_replace('/^ch_/', '', $index_key); 201 $set_value = stripslashes(trim($value)); 202 // post d3forum 203 if ($indedx === 'd3forum') { 204 if ($value == 'none'){ 205 $this->is_use_d3forum = false; 206 $this->d3forum_module_dir = ''; 207 $this->d3forum_forum_id = ''; 208 $this->d3forum_external_link_format = get_xpress_dir_name() . '::xpressD3commentContent'; 209 } else { 210 $d3f_set = explode('|', $value); 211 $this->is_use_d3forum = true; 212 $this->d3forum_module_dir = $d3f_set[1]; 213 $this->d3forum_forum_id = $d3f_set[2]; 214 $this->d3forum_external_link_format = get_xpress_dir_name() . '::xpressD3commentContent'; 215 } 216 } else { //post other 217 if(empty($set_value)){ 218 switch ($indedx) { 219 case 'old_post_link_text': 220 $set_value = __('Older Post', 'xpressme'); 221 break; 222 case 'newer_post_link_text': 223 $set_value = __('Newer Post', 'xpressme'); 224 break; 225 case 'old_page_link_text': 226 $set_value = __('Older Entries', 'xpressme'); 227 break; 228 case 'newer_page_link_text': 229 $set_value = __('Newer Entries', 'xpressme'); 230 break; 231 default: 232 } 233 } 234 $this->$indedx = $value; 235 } 236 } // end of case 'ch_' 237 } // end of loop 240 238 241 239 global $xoops_db; … … 245 243 246 244 foreach ($this->groupe_role as $groupe) { 247 $post_name = 'role_gid_' . $groupe->groupid; 248 $role = stripslashes(trim($_POST[$post_name])); 249 $post_name = 'login_all_gid_' . $groupe->groupid; 250 $login_all = stripslashes(trim($_POST[$post_name])); 251 if (empty($login_all)) $login_all = '0'; 252 $groupe->role = $role; 253 $groupe->login_all = $login_all; 254 $update_sql = "UPDATE $table "; 255 $update_sql .= 'SET '; 256 $update_sql .= "role = '$role' , "; 257 $update_sql .= "login_all = $login_all "; 258 $update_sql .= "WHERE (groupid = '$groupe->groupid' )"; 259 $xoops_db->query($update_sql); 245 $post_role_gid = 'role_gid_' . $groupe->groupid; 246 $login_all_gid = 'login_all_gid_' . $groupe->groupid; 247 if (isset($post_data[$post_role_gid])){ 248 $role = stripslashes(trim($post_data[$post_role_gid])); 249 $login_all = stripslashes(trim($post_data[$login_all_gid])); 250 if (empty($login_all)) $login_all = '0'; 251 $groupe->role = $role; 252 $groupe->login_all = $login_all; 253 $update_sql = "UPDATE $table "; 254 $update_sql .= 'SET '; 255 $update_sql .= "role = '$role' , "; 256 $update_sql .= "login_all = $login_all "; 257 $update_sql .= "WHERE (groupid = '$groupe->groupid' )"; 258 $xoops_db->query($update_sql); 259 } 260 260 } 261 261 } … … 516 516 $form .= __('Select the Type of display of D3Forum comment.', 'xpressme') . " \n&emsp"; 517 517 if ($this->is_d3forum_flat){ 518 $form .= "&ensp<label><input type='radio' name='ch_ d3forum_type' value='1' checked='checked' />" . __('Flat','xpressme') ."</label>\n";519 $form .= "&ensp<label><input type='radio' name='ch_ d3forum_type' value='0' />". __('Threaded','xpressme') . "</label>\n";518 $form .= "&ensp<label><input type='radio' name='ch_is_d3forum_flat' value='1' checked='checked' />" . __('Flat','xpressme') ."</label>\n"; 519 $form .= "&ensp<label><input type='radio' name='ch_is_d3forum_flat' value='0' />". __('Threaded','xpressme') . "</label>\n"; 520 520 }else{ 521 $form .= "&ensp<label><input type='radio' name='ch_ d3forum_type' value='1' />" . __('Flat','xpressme') . "</label>\n";522 $form .= "&ensp<label><input type='radio' name='ch_ d3forum_type' value='0' checked='checked' />". __('Threaded','xpressme') ."</label>\n";521 $form .= "&ensp<label><input type='radio' name='ch_is_d3forum_flat' value='1' />" . __('Flat','xpressme') . "</label>\n"; 522 $form .= "&ensp<label><input type='radio' name='ch_is_d3forum_flat' value='0' checked='checked' />". __('Threaded','xpressme') ."</label>\n"; 523 523 } 524 524 $form .= '<br />'; 525 525 $form .= __('Select the order of display of D3Forum comment.', 'xpressme') . " \n&emsp"; 526 526 if ($this->is_d3forum_desc){ 527 $form .= "&ensp<label><input type='radio' name='ch_ d3forum_order' value='1' checked='checked' />" . __('DESC','xpressme') ."</label>\n";528 $form .= "&ensp<label><input type='radio' name='ch_ d3forum_order' value='0' />". __('ASC','xpressme') . "</label>\n";527 $form .= "&ensp<label><input type='radio' name='ch_is_d3forum_desc' value='1' checked='checked' />" . __('DESC','xpressme') ."</label>\n"; 528 $form .= "&ensp<label><input type='radio' name='ch_is_d3forum_desc' value='0' />". __('ASC','xpressme') . "</label>\n"; 529 529 }else{ 530 $form .= "&ensp<label><input type='radio' name='ch_ d3forum_order' value='1' />" . __('DESC','xpressme') . "</label>\n";531 $form .= "&ensp<label><input type='radio' name='ch_ d3forum_order' value='0' checked='checked' />". __('ASC','xpressme') ."</label>\n";530 $form .= "&ensp<label><input type='radio' name='ch_is_d3forum_desc' value='1' />" . __('DESC','xpressme') . "</label>\n"; 531 $form .= "&ensp<label><input type='radio' name='ch_is_d3forum_desc' value='0' checked='checked' />". __('ASC','xpressme') ."</label>\n"; 532 532 } 533 533 $form .= '<br />'; 534 534 $form .= __('Number of displays of D3Forum comments.', 'xpressme') ." \n"; 535 $form .= '&emsp<label> <input name="ch_d3forum_view _num" type="text" size="3" maxlength="3" value="' . $this->d3forum_views_num . '" /></label>'."\n";535 $form .= '&emsp<label> <input name="ch_d3forum_views_num" type="text" size="3" maxlength="3" value="' . $this->d3forum_views_num . '" /></label>'."\n"; 536 536 537 537 $form .= '<div class="submit">'."\n"; … … 679 679 } 680 680 681 682 function option_page()683 {684 global $xoops_config;685 686 $xoops_admin_url = $xoops_config->module_url . '/admin/index.php';687 688 $do_message ='';689 if (!empty($_POST['submit_update'])) {690 $this->ReadPostData();691 $this->SettingValueWrite('update');692 } else if (isset($_POST['submit_reset'])) {693 $this->setDefault();694 $this->SettingValueWrite('update');695 } else if (isset($_POST['export_d3f'])) {696 $do_message = 'export(' . $this->d3forum_module_dir . '--ID=' . $this->d3forum_forum_id . ')................';697 $do_message .= wp_to_d3forum($this->d3forum_forum_id, $this->d3forum_module_dir);698 $do_message .= '....END';699 } else if (isset($_POST['inport_d3f'])) {700 $do_message = 'Import(' . $this->d3forum_module_dir . '--ID=' . $this->d3forum_forum_id . ')................';701 $do_message .= d3forum_to_wp($this->d3forum_forum_id, $this->d3forum_module_dir);702 $do_message .= '....END';703 }704 705 echo '<div class="wrap">'."\n";706 echo '<div id="icon-options-general" class="icon32"><br /></div>'."\n";707 echo '<h2>' . __('XPressME Configuration Page', 'xpressme') . "</h2><br>\n";708 echo '<div align="right"><a href="' . $xoops_admin_url . '"><h3>'. __('to XOOPS Modules Admin Page', 'xpressme') . '</h3></a></div>';709 echo '<form method="post" action="' . $_SERVER["REQUEST_URI"] . '">'."\n" ;710 echo '<table class="form-table">'."\n";711 echo $this->viewer_type_option();712 echo $this->yes_no_radio_option('is_use_xoops_upload_path',713 __('Media Upload Base Path','xpressme'),714 __('Use XOOPS UPLOAD PATH','xpressme'),715 __('USE WordPress BASE_PATH','xpressme')716 );717 echo $this->yes_no_radio_option('is_theme_sidebar_disp',718 __('Thema Sidebar Display','xpressme'),719 __('YES','xpressme'),720 __('NO','xpressme')721 );722 echo $this->yes_no_radio_option('is_save_post_revision',723 __('The change tracking of the post is preserved','xpressme'),724 __('YES','xpressme'),725 __('NO','xpressme')726 );727 728 echo $this->yes_no_radio_option('is_multi_user',729 __('Select Multi user mode','xpressme'),730 __('YES','xpressme'),731 __('NO','xpressme')732 );733 734 735 echo $this->single_post_navi_option();736 echo $this->posts_page_navi_option();737 echo $this->excerpt_option();738 739 echo $this->yes_no_radio_option('is_author_view_count',740 __('Is the posts author views counted?','xpressme'),741 __('YES','xpressme'),742 __('NO','xpressme')743 );744 echo $this->header_meta_option();745 echo $this->yes_no_radio_option('is_sql_debug',746 __('Is SQL debugging window displayed?','xpressme'),747 __('YES','xpressme'),748 __('NO','xpressme')749 );750 751 echo $this->groupe_role_option();752 753 echo $this->d3forum_option($do_message);754 // $this->is_use_xoops_upload_path_html();755 echo "</table>\n";756 757 echo '<p class="submit">'."\n";758 echo '<input type="submit" value= "' . __('Update Config', 'xpressme') . '" name="submit_update" />' ."\n";759 echo '<input type="submit" value= "' . __('Preset Config', 'xpressme') . '" name="submit_reset" />' ."\n";760 echo "</p>\n";761 762 echo "</form>\n" ;763 echo "</div>\n";764 }765 766 681 function xpress_upload_filter($uploads) 767 682 { … … 836 751 </script>'; 837 752 } 838 } 839 840 function set_d3forum_external_link_format() 841 { 842 global $xoops_db; 843 /* var $is_use_d3forum; 844 var $d3forum_module_dir; 845 var $d3forum_forum_id; 846 var $d3forum_external_link_format; 847 if ($this->$is_use_d3forum){ 848 $content = ''; 849 $content .= '<html><head><meta http-equiv="content-type" content="text/html; charset='._CHARSET.'" />'; 850 $content .= '<meta http-equiv="content-language" content="'._LANGCODE.'" />' ; 851 $content .= '<title>XPressME SQL DEBUG</title>' ; 852 $content .= '</head><body>'; 853 $content .= $GLOBALS['XPress_SQL_Query']; 854 $content .= '<div style="text-align:center;"><input class="formButton" value="CLOSE" type="button" onclick="javascript:window.close();" /></div></body></html>'; 855 856 echo '<script type="text/javascript"> 857 <!--// 858 xpress_debug_window = window.open("", "xpress_debug", "width=680 , height=600 ,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no"); 859 xpress_debug_window.document.clear(); 860 xpress_debug_window.focus(); 861 '; 862 $lines = preg_split("/(\r\n|\r|\n)( *)/", $content); 863 foreach ($lines as $line) { 864 echo 'xpress_debug_window.document.writeln("'.str_replace('"', '\"', $line).'");'; 865 } 866 echo ' 867 xpress_debug_window.document.close(); 868 //--> 869 </script>'; 870 } 871 */ 872 } 873 753 } 874 754 } 875 755 ?>
Note: See TracChangeset
for help on using the changeset viewer.