Changeset 387 for trunk/xpressme_integration_kit/include
- Timestamp:
- Sep 26, 2009, 12:48:32 PM (15 years ago)
- Location:
- trunk/xpressme_integration_kit/include
- Files:
-
- 2 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 ?>
Note: See TracChangeset
for help on using the changeset viewer.