Changeset 835
- Timestamp:
- Feb 9, 2013, 8:47:25 AM (12 years ago)
- Location:
- branches/Ver2.4/xpressme_integration_kit
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Ver2.4/xpressme_integration_kit/admin/index.php
r736 r835 32 32 function admin_check_user_meta_prefix($is_report = false){ 33 33 global $xoopsModule; 34 $xoopsDB =& Database::getInstance();34 $xoopsDB =& XoopsDatabaseFactory::getDatabaseConnection(); 35 35 36 36 $mydirname = basename(dirname(dirname(__FILE__))); … … 115 115 { 116 116 global $xoopsModule; 117 $xoopsDB =& Database::getInstance();117 $xoopsDB =& XoopsDatabaseFactory::getDatabaseConnection(); 118 118 119 119 $mydirname = basename(dirname(dirname(__FILE__))); … … 541 541 include_once(dirname(__FILE__) . '/../include/general_functions.php'); 542 542 543 $xoopsDB =& Database::getInstance();543 $xoopsDB =& XoopsDatabaseFactory::getDatabaseConnection(); 544 544 545 545 $xp_prefix = $GLOBALS['xoopsModule']->getInfo('dirname'); … … 614 614 { 615 615 global $xoopsModule; 616 $xoopsDB =& Database::getInstance();616 $xoopsDB =& XoopsDatabaseFactory::getDatabaseConnection(); 617 617 $xp_prefix = $GLOBALS['xoopsModule']->getInfo('dirname'); 618 618 $xp_prefix = preg_replace('/wordpress/','wp',$xp_prefix); -
branches/Ver2.4/xpressme_integration_kit/blocks/block_common.php
r829 r835 24 24 $mydirname = basename( dirname( dirname( __FILE__ ) ) ) ; 25 25 $wp_prefix = preg_replace('/wordpress/','wp',$mydirname) . '_'; 26 $xoopsDB =& Database::getInstance();26 $xoopsDB =& XoopsDatabaseFactory::getDatabaseConnection(); 27 27 $myts =& MyTextSanitizer::getInstance(); 28 28 $selected = explode(',' , $value); … … 97 97 $mydirname = basename( dirname( dirname( __FILE__ ) ) ) ; 98 98 $wp_prefix = preg_replace('/wordpress/','wp',$mydirname) . '_'; 99 $xoopsDB =& Database::getInstance();99 $xoopsDB =& XoopsDatabaseFactory::getDatabaseConnection(); 100 100 $myts =& MyTextSanitizer::getInstance(); 101 101 $selected = explode(',' , $value); -
branches/Ver2.4/xpressme_integration_kit/blocks/widget_block.php
r583 r835 24 24 $selected = explode(',' , $widget_select); 25 25 $wp_prefix = preg_replace('/wordpress/','wp',$mydirname) . '_'; 26 $xoopsDB =& Database::getInstance();26 $xoopsDB =& XoopsDatabaseFactory::getDatabaseConnection(); 27 27 $myts =& MyTextSanitizer::getInstance(); 28 28 -
branches/Ver2.4/xpressme_integration_kit/class/xpressD3commentContent.class.php
r616 r835 11 11 global $forum_id; 12 12 13 $db =& Database::getInstance() ;13 $db =& XoopsDatabaseFactory::getDatabaseConnection() ; 14 14 $myts =& MyTextsanitizer::getInstance() ; 15 15 … … 80 80 } 81 81 } 82 $db =& Database::getInstance() ;82 $db =& XoopsDatabaseFactory::getDatabaseConnection() ; 83 83 $myts =& MyTextsanitizer::getInstance() ; 84 84 … … 181 181 $xpress_prefix = preg_replace('/wordpress/','wp',$mydirname); 182 182 $blog_info = $this->get_comment_blog_info($forum_id); 183 $db =& Database::getInstance() ;183 $db =& XoopsDatabaseFactory::getDatabaseConnection() ; 184 184 185 185 list( $count ) = $db->fetchRow( $db->query( "SELECT COUNT(*) FROM ".$blog_info['mb_table_prefix'] ."posts WHERE ID=$post_id AND comment_status ='open'" ) ) ; … … 209 209 $wp_full_prefix = $blog_info['mb_table_prefix']; 210 210 211 $db =& Database::getInstance() ;211 $db =& XoopsDatabaseFactory::getDatabaseConnection() ; 212 212 $myts =& MyTextsanitizer::getInstance() ; 213 213 … … 302 302 $d3f_prefix = $d3f_forum_dir; 303 303 $myts =& MyTextSanitizer::getInstance(); 304 $xoopsDB =& Database::getInstance();304 $xoopsDB =& XoopsDatabaseFactory::getDatabaseConnection(); 305 305 306 306 $wp_comments = $wp_full_prefix . 'comments'; … … 444 444 $xp_prefix = preg_replace('/wordpress/','wp',$xp_prefix); 445 445 446 $xoopsDB =& Database::getInstance();446 $xoopsDB =& XoopsDatabaseFactory::getDatabaseConnection(); 447 447 $wp_d3forum_link = $xoopsDB->prefix($xp_prefix . '_d3forum_link'); 448 448 … … 458 458 459 459 function get_comment_blog_info($d3forum_forum_id){ 460 $xoopsDB =& Database::getInstance();460 $xoopsDB =& XoopsDatabaseFactory::getDatabaseConnection(); 461 461 $xp_prefix = $wpdirname = basename( dirname( dirname( __FILE__ ) ) ) ; 462 462 $xp_prefix = preg_replace('/wordpress/','wp',$xp_prefix); -
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.