Changeset 835 for branches/Ver2.4/xpressme_integration_kit/include
- Timestamp:
- Feb 9, 2013, 8:47:25 AM (12 years ago)
- Location:
- branches/Ver2.4/xpressme_integration_kit/include
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Ver2.4/xpressme_integration_kit/include/data.inc.php
r583 r835 250 250 if( ! function_exists( 'get_blog_option' ) ) { 251 251 function get_blog_option($option_table,$option_name){ 252 $xoopsDB =& Database::getInstance();252 $xoopsDB =& XoopsDatabaseFactory::getDatabaseConnection(); 253 253 254 254 $sql = "SELECT option_value FROM $option_table WHERE option_name = '" . $option_name . "'"; -
branches/Ver2.4/xpressme_integration_kit/include/oninstall.php
r814 r835 35 35 } 36 36 37 $db =& Database::getInstance() ;37 $db =& XoopsDatabaseFactory::getDatabaseConnection() ; 38 38 $mid = $module->getVar('mid') ; 39 39 -
branches/Ver2.4/xpressme_integration_kit/include/onuninstall.php
r583 r835 22 22 } 23 23 24 $db =& Database::getInstance() ;24 $db =& XoopsDatabaseFactory::getDatabaseConnection() ; 25 25 $mid = $module->getVar('mid') ; 26 26 -
branches/Ver2.4/xpressme_integration_kit/include/onupdate.php
r814 r835 21 21 } 22 22 23 $db =& Database::getInstance() ;23 $db =& XoopsDatabaseFactory::getDatabaseConnection() ; 24 24 $mid = $module->getVar('mid') ; 25 25 … … 82 82 global $xoopsModule; 83 83 $wp_prefix = preg_replace('/wordpress/','wp',$mydirname); 84 $xoopsDB =& Database::getInstance();84 $xoopsDB =& XoopsDatabaseFactory::getDatabaseConnection(); 85 85 $db_xpress_option = $xoopsDB->prefix($wp_prefix . '_options'); 86 86 … … 94 94 global $xoopsModule; 95 95 $wp_prefix = preg_replace('/wordpress/','wp',$mydirname); 96 $xoopsDB =& Database::getInstance();96 $xoopsDB =& XoopsDatabaseFactory::getDatabaseConnection(); 97 97 $db_xpress_option = $xoopsDB->prefix($wp_prefix . '_options'); 98 98 … … 106 106 global $xoopsModule; 107 107 $wp_prefix = preg_replace('/wordpress/','wp',$mydirname); 108 $xoopsDB =& Database::getInstance();108 $xoopsDB =& XoopsDatabaseFactory::getDatabaseConnection(); 109 109 $option_table = $xoopsDB->prefix($wp_prefix . '_options'); 110 110 … … 137 137 global $xoopsModule; 138 138 $wp_prefix = preg_replace('/wordpress/','wp',$mydirname); 139 $xoopsDB =& Database::getInstance();139 $xoopsDB =& XoopsDatabaseFactory::getDatabaseConnection(); 140 140 $db_xpress_option = $xoopsDB->prefix($wp_prefix . '_options'); 141 141 … … 180 180 function xpress_table_make($module, $mydirname) 181 181 { 182 $db =& Database::getInstance() ;182 $db =& XoopsDatabaseFactory::getDatabaseConnection() ; 183 183 $mid = $module->getVar('mid') ; 184 184 … … 306 306 global $xoopsModule; 307 307 308 $xoopsDB =& Database::getInstance();308 $xoopsDB =& XoopsDatabaseFactory::getDatabaseConnection(); 309 309 $xpress_prefix = $xoopsDB->prefix(preg_replace('/wordpress/','wp',$mydirname) . '_'); 310 310 $db_enhanced = $xpress_prefix . $table_name; … … 326 326 function is_found_table_column($table,$column){ 327 327 global $xoopsModule; 328 $xoopsDB =& Database::getInstance();328 $xoopsDB =& XoopsDatabaseFactory::getDatabaseConnection(); 329 329 330 330 $sql = "DESCRIBE $table $column"; -
branches/Ver2.4/xpressme_integration_kit/include/search.php
r689 r835 107 107 if( ! function_exists( 'get_blog_option' ) ) { 108 108 function get_blog_option($option_table,$option_name){ 109 $xoopsDB =& Database::getInstance();109 $xoopsDB =& XoopsDatabaseFactory::getDatabaseConnection(); 110 110 111 111 $sql = "SELECT option_value FROM $option_table WHERE option_name = '" . $option_name . "'"; -
branches/Ver2.4/xpressme_integration_kit/include/sitemap.plugin.php
r583 r835 64 64 global $sitemap_configs; 65 65 66 $xoopsDB =& Database::getInstance();66 $xoopsDB =& XoopsDatabaseFactory::getDatabaseConnection(); 67 67 68 68 $sitemap = array(); … … 150 150 if( ! function_exists( 'get_blog_option' ) ) { 151 151 function get_blog_option($option_table,$option_name){ 152 $xoopsDB =& Database::getInstance();152 $xoopsDB =& XoopsDatabaseFactory::getDatabaseConnection(); 153 153 154 154 $sql = "SELECT option_value FROM $option_table WHERE option_name = '" . $option_name . "'"; -
branches/Ver2.4/xpressme_integration_kit/include/xpress_block_render.php
r802 r835 52 52 $options_string .= $val; 53 53 } 54 $xoopsDB =& Database::getInstance();54 $xoopsDB =& XoopsDatabaseFactory::getDatabaseConnection(); 55 55 $block_tbl = $xoopsDB->prefix('newblocks'); 56 56 $module_dir = XOOPS_ROOT_PATH . '/modules/' . $mydirname; … … 67 67 function get_block_mid($mydirname) 68 68 { 69 $xoopsDB =& Database::getInstance();69 $xoopsDB =& XoopsDatabaseFactory::getDatabaseConnection(); 70 70 $modules_tbl = $xoopsDB->prefix('modules'); 71 71 … … 84 84 85 85 if (is_null($wpdb)){ 86 $xoopsDB =& Database::getInstance();86 $xoopsDB =& XoopsDatabaseFactory::getDatabaseConnection(); 87 87 $wp_prefix = preg_replace('/wordpress/','wp',$mydirname); 88 88 … … 312 312 $xoopsModule =& $module_handler->getByDirname($mydirname); 313 313 $mid = $xoopsModule->getVar('mid'); 314 $xoopsDB =& Database::getInstance();314 $xoopsDB =& XoopsDatabaseFactory::getDatabaseConnection(); 315 315 $db_config = $xoopsDB->prefix('config'); 316 316
Note: See TracChangeset
for help on using the changeset viewer.