Changeset 387 for trunk/xpressme_integration_kit
- Timestamp:
- Sep 26, 2009, 12:48:32 PM (15 years ago)
- Location:
- trunk/xpressme_integration_kit
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/xpressme_integration_kit/include/xml.php
r353 r387 88 88 //libxml2 ver.2.7.0 -2.7.2 stripping leading angle brackets bug patch 89 89 if ( 90 LIBXML_DOTTED_VERSION == '2.7.0' 90 $GLOBALS['DO_LIBXML_PATCH'] == '1' 91 || LIBXML_DOTTED_VERSION == '2.7.0' 91 92 || LIBXML_DOTTED_VERSION == '2.7.1' 92 93 || LIBXML_DOTTED_VERSION == '2.7.2' -
trunk/xpressme_integration_kit/include/xpress_block_render.php
r364 r387 24 24 $xml_name = $block_name . '.xml'; 25 25 $xml_data = xpress_cache_read($mydirname,$xml_name); 26 26 27 $GLOBALS['DO_LIBXML_PATCH'] = get_xpress_mod_config($mydirname,'libxml_patch'); 28 27 29 $ret = @xpress_XML_unserialize($xml_data); 28 30 if (strstr($xml_data, '<?xml version="1.0" encoding="EUC-JP" ?>') !== false){ … … 266 268 } 267 269 } 270 271 function get_xpress_mod_config($mydirname,$conf_name=''){ 272 $module_handler =& xoops_gethandler('module'); 273 $xoopsModule =& $module_handler->getByDirname($mydirname); 274 $mid = $xoopsModule->getVar('mid'); 275 $xoopsDB =& Database::getInstance(); 276 $db_config = $xoopsDB->prefix('config'); 277 278 $wu_sql = "SELECT conf_value FROM $db_config "; 279 $wu_sql .= "WHERE (conf_modid = $mid ) AND (conf_name LIKE '$conf_name')"; 280 $wu_res = $xoopsDB->queryF($wu_sql, 0, 0); 281 282 if ($wu_res === false){ 283 return 0; 284 } else { 285 $xu_row = $xoopsDB->fetchArray($wu_res); 286 return $xu_row['conf_value']; 287 } 288 } 289 268 290 } 269 291 ?> -
trunk/xpressme_integration_kit/language/english/modinfo.php
r336 r387 22 22 define("_MI_XP2_MENU_XPRESS","XPressME Setting"); 23 23 define("_MI_XP2_MENU_TO_MODULE","to Modules"); 24 25 // Module Config 26 define("_MI_LIBXML_PATCH","Force a patch for the libxml2 bug in a block"); 27 define("_MI_LIBXML_PATCH_DESC","libxml2 Ver 2.70-2.72 have the bug that '<' and '>' are removed. 28 XPressME acquires a version of libxml2 automatically, and it is adapted a patch if it is necessary. 29 When XPressME cannot acquire a version of libxml2, you can let a patch fit it with this option forcibly."); 24 30 25 31 // Block Name -
trunk/xpressme_integration_kit/language/ja_utf8/modinfo.php
r336 r387 22 22 define("_MI_XP2_MENU_XPRESS","XPressME設定"); 23 23 define("_MI_XP2_MENU_TO_MODULE","モジュールへ"); 24 25 // Module Config 26 define("_MI_LIBXML_PATCH","ブロックでlibxml2 バグに対するパッチを強制適応する"); 27 define("_MI_LIBXML_PATCH_DESC","libxml2 Ver 2.70-2.72には'<'と'>'が取り除かれるバグがあります。 28 XPressMEはlibxml2のバージョンを自動的に取得し、必要であればパッチが適応されます。 29 XPressMEがlibxml2のバージョンを取得できない場合、このオプションで強制的にパッチを適応させることができます。"); 24 30 25 31 // Block Name -
trunk/xpressme_integration_kit/xoops_version.php
r385 r387 118 118 $modversion['templates'] = array() ; 119 119 120 if (defined('ICMS_ROOT_PATH')){ 121 $modversion['hasconfig'] = 1; 122 $modversion['config'][] = array( 123 'name' => 'dummy' , 124 'title' => 'Dummy Value' , 125 'description' => 'This is Dummy Value' , 126 'formtype' => 'yesno' , 127 'valuetype' => 'int' , 128 'default' => 0 , 129 ); 130 } 120 $modversion['hasconfig'] = 1; 121 $modversion['config'][] = array( 122 'name' => 'libxml_patch' , 123 'title' => '_MI_LIBXML_PATCH' , 124 'description' => '_MI_LIBXML_PATCH_DESC' , 125 'formtype' => 'yesno' , 126 'valuetype' => 'int' , 127 'default' => 0 , 128 ); 131 129 132 130 //BLOCKS
Note: See TracChangeset
for help on using the changeset viewer.