- Timestamp:
- Mar 8, 2009, 4:09:17 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/blocks/recent_comments_block.php
r89 r100 59 59 function _b_comments_show($options) 60 60 { 61 global $wpdb;62 61 $mydirname = empty( $options[0] ) ? 'xpress' : $options[0] ; 63 62 $mydirpath = XOOPS_ROOT_PATH . '/modules/' . $mydirname; -
trunk/blocks/recent_posts_content_block.php
r89 r100 29 29 require_once(XOOPS_ROOT_PATH.'/modules/'.$mydirname.'/blocks/block_common.php'); 30 30 31 $form = "MyDirectory <input type='text' name='options[0]' value='" . $mydirname . "' /><br />"; 32 $form .= _MB_XPRESS_COUNT .": <input type='text' name='options[1]' value='" . $disp_count . "' />"; 33 $form .= "<br />" . yes_no_radio_option('options[2]', _MB_XPRESS_P_EXCEPT , $except); 34 $form .= "<br />" . _MB_XPRESS_P_EXCEPT_SIZE .": <input type='text' name='options[3]' value='" . $except_size . "' />"; 35 $form .= "<br /><br />" . _MB_XPRESS_CATS_SELECT ; 31 $form = "MyDirectory <input type='text' name='options[0]' value='" . $mydirname . "' /><br />\n"; 32 $form .= _MB_XPRESS_COUNT .": <input type='text' name='options[1]' value='" . $disp_count . "' /><br />\n"; 33 $form .= yes_no_radio_option('options[2]', _MB_XPRESS_P_EXCEPT , $except) . "<br />\n"; 34 $form .= _MB_XPRESS_P_EXCEPT_SIZE .": <input type='text' name='options[3]' value='" . $except_size . "' /><br />\n"; 35 36 $form .= "<br />\n"; 37 $form .= _MB_XPRESS_TAGS_SELECT .": <input type='text' name='options[4]' value='" . $tag_select . "' /><br />\n"; 38 $form .= _MB_XPRESS_CATS_SELECT ."<br />\n"; 36 39 $isAll = (count($selected)==0||empty($selected[0]))?true:false; 37 $form .= " <br /> <select name=\"options[]\" multiple=\"multiple\">";38 $form .= " <option value=\"0\" ";40 $form .= " <select name=\"options[]\" multiple=\"multiple\">\n"; 41 $form .= "\t<option value=\"0\" "; 39 42 if ($isAll) $form .= " selected=\"selected\""; 40 $form .= ">"._MB_XPRESS_ALL ."</option> ";43 $form .= ">"._MB_XPRESS_ALL ."</option>\n"; 41 44 ob_start(); 42 45 dropdown_cats_options('ID','asc',$selected); 43 46 $list_str = ob_get_contents(); 44 47 ob_end_clean(); 45 $form .= $list_str. "</select><br />"; 46 $form .= "<br />" . _MB_XPRESS_TAGS_SELECT .": <input type='text' name='options[4]' value='" . $tag_select . "' />"; 48 $form .= $list_str. "</select><br />\n"; 47 49 48 50 // $form .="<br /><input type='text' size='60' name='options[11]' id='this_template' value='".htmlspecialchars($this_template,ENT_QUOTES)."' />"; … … 54 56 function _b_content_show($options) 55 57 { 56 global $wpdb;57 58 $mydirname = empty( $options[0] ) ? 'xpress' : $options[0] ; 58 59 $mydirpath = XOOPS_ROOT_PATH . '/modules/' . $mydirname; -
trunk/include/config_from_xoops.class.php
r95 r100 45 45 $array_file = file($this->xoops_mainfile_path); 46 46 for ($i = 0 ; $i <count($array_file) ; $i++){ 47 /* Ref. ImpressCMS 48 49 mainfile.php 50 define( 'XOOPS_TRUST_PATH', 'C:/xampp/trust_pathf6fac' ); 51 52 include_once(XOOPS_TRUST_PATH . '/3aec9eefada2c57b3705952094b7b070.php'); 53 54 define( 'XOOPS_DB_PREFIX', SDATA_DB_PREFIX ); 55 define( 'XOOPS_DB_HOST', SDATA_DB_HOST ); 56 define( 'XOOPS_DB_USER', SDATA_DB_USER ); 57 define( 'XOOPS_DB_PASS', SDATA_DB_PASS ); 58 define( 'XOOPS_DB_NAME', SDATA_DB_NAME ); 59 define( 'XOOPS_DB_SALT', SDATA_DB_SALT ); 60 61 XOOPS_TRUST_PATH . '/3aec9eefada2c57b3705952094b7b070.php' 62 define( 'SDATA_DB_HOST', 'localhost' ); 63 define( 'SDATA_DB_USER', 'root' ); 64 define( 'SDATA_DB_PASS', '' ); 65 define( 'SDATA_DB_NAME', 'impress' ); 66 define( 'SDATA_DB_PREFIX', 'id85d03cc' ); 67 define( 'SDATA_DB_SALT', '3mhUHMrsTU3CTifQbenOtK1ULG5QN2Dwx8zCfwtynudub4TS9AnmZAhmdQr43Uvot' ); 68 69 ref. code C:\xampp\htdocs\impress\install\page_configsave.php 70 $sdata_rewrite = array(); 71 $sdata_rewrite['DB_HOST'] = $vars['DB_HOST']; 72 $sdata_rewrite['DB_USER'] = $vars['DB_USER']; 73 $sdata_rewrite['DB_PASS'] = $vars['DB_PASS']; 74 $sdata_rewrite['DB_NAME'] = $vars['DB_NAME']; 75 $sdata_rewrite['DB_PREFIX'] = $vars['DB_PREFIX']; 76 $sdata_rewrite['DB_SALT'] = $vars['DB_SALT']; 77 78 79 foreach( $sdata_rewrite as $key => $val ) { 80 if( preg_match( "/(define\()([\"'])(SDATA_$key)\\2,\s*([\"'])(.*?)\\4\s*\)/", $content ) ) { 81 $val = addslashes( $val ); 82 $content = preg_replace( "/(define\()([\"'])(SDATA_$key)\\2,\s*([\"'])(.*?)\\4\s*\)/", 83 "define( 'SDATA_$key', '$val' )", $content ); 84 } else { 85 //$this->error = true; 86 //$this->report .= _NGIMG.sprintf( ERR_WRITING_CONSTANT, "<b>$val</b>")."<br />\n"; 87 } 88 } 89 */ 90 47 91 $array_file[$i] = trim($array_file[$i]); 48 92 $array_file[$i] = str_replace(' ','',$array_file[$i]); -
trunk/language/ja_utf8/blocks.php
r96 r100 14 14 define("_MB_XPRESS_P_EXCEPT","記事を概要で表示する"); 15 15 define("_MB_XPRESS_P_EXCEPT_SIZE","記事の概要文字数"); 16 define("_MB_XPRESS_CATS_SELECT","カテゴリー選択"); 17 define("_MB_XPRESS_TAGS_SELECT","タグ選択(複数ある場合はカンマ区切りで入力"); 16 define("_MB_XPRESS_CATS_SELECT","対象のカテゴリー選択"); 17 define("_MB_XPRESS_TAGS_SELECT","対象のタグ選択(複数ある場合はカンマ区切りで入力"); 18 // recent posts list 19 define("_MB_XPRESS_REDNEW_DAYS","赤のNewマークを表示する日数"); 20 define("_MB_XPRESS_GREENNEW_DAYS","緑のNewマークを表示する日数"); 18 21 19 22 define("_MB_XPRESS_BLOCK_CACHE_ERR","キャッシュが存在しません。<br />最初に%sモジュールにアクセスしてください。"); -
trunk/language/ja_utf8/modinfo.php
r61 r100 16 16 define("_MI_XPRESS_BLOCK_COMMENTS","最近のコメント"); 17 17 define("_MI_XPRESS_BLOCK_CONTENT","最近の記事内容"); 18 define("_MI_XPRESS_BLOCK_POSTS","最近の記事"); 18 19 19 20 // Notify Categories -
trunk/templates/source/recent_posts_content_block.html
r96 r100 20 20 <{* Start Template *}> 21 21 22 <ul class="xpress_recent_ comments">22 <ul class="xpress_recent_post_content"> 23 23 <{$block.err_message}> 24 24 <{$block.data_count}> -
trunk/wp-content/plugins/xpressme/include/xpress_common_functions.php
r99 r100 2 2 global $xoops_config; 3 3 if (!is_object($xoops_config)){ // is call other modules 4 require_once dirname( __FILE__ ) .'/config_from_xoops.class.php' ;4 require_once dirname(dirname(dirname(dirname(dirname( __FILE__ ))))) .'/include/config_from_xoops.class.php' ; 5 5 $xoops_config = new ConfigFromXoops; 6 6 } -
trunk/xoops_version.php
r96 r100 122 122 'func_num' => 2, 123 123 ); 124 $modversion['blocks'][3] = array( 125 'file' => 'recent_posts_list_block.php' , 126 'name' => constant('_MI_XPRESS_BLOCK_POSTS') , 127 'description' => '' , 128 'show_func' => "b_". $mydirname . "_posts_show" , 129 'edit_func' => "b_". $mydirname . "_posts_edit" , 130 'options' => $mydirname. '|10|1|7||0' , 131 'can_clone' => true , 132 'func_num' => 3, 133 ); 124 134 125 135 // Notification
Note: See TracChangeset
for help on using the changeset viewer.