- Timestamp:
- May 19, 2011, 6:47:15 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Ver3.0/xpressme_integration_kit/include/wp_check.php
r744 r749 1 1 <?php 2 2 function is_wpdb_installed(){ 3 global $xoopsDB; 3 4 $mydirname = basename(dirname( dirname( __FILE__ ) )) ; 4 $prefix_mod = XOOPS_DB_PREFIX .'_' . preg_replace('/wordpress/','wp',$mydirname) . '_';5 $ xoopsDB =& Database::getInstance();5 6 $prefix_mod = $xoopsDB->prefix(preg_replace('/wordpress/','wp',$mydirname) . '_'); 6 7 $sql = "SHOW TABLES LIKE '$prefix_mod%'"; 7 8 if ($result = $xoopsDB->queryf($sql)){
Note: See TracChangeset
for help on using the changeset viewer.