Changeset 749 for branches/Ver3.0/xpressme_integration_kit/admin/index.php
- Timestamp:
- May 19, 2011, 6:47:15 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Ver3.0/xpressme_integration_kit/admin/index.php
r744 r749 31 31 32 32 function admin_check_user_meta_prefix($is_report = false){ 33 global $xoopsModule; 34 $xoopsDB =& Database::getInstance(); 33 global $xoopsModule,$xoopsDB; 35 34 36 35 $mydirname = basename(dirname(dirname(__FILE__))); … … 114 113 function get_xpress_active_plugin_list($before_str = '') 115 114 { 116 global $xoopsModule; 117 $xoopsDB =& Database::getInstance(); 115 global $xoopsModule,$xoopsDB; 118 116 119 117 $mydirname = basename(dirname(dirname(__FILE__))); … … 537 535 function xpress_state($is_report = false) 538 536 { 539 global $xoopsModule ;537 global $xoopsModule,$xoopsDB; 540 538 include(dirname(__FILE__) . '/../wp-includes/version.php'); 541 539 include_once(dirname(__FILE__) . '/../include/general_functions.php'); 542 540 543 $xoopsDB =& Database::getInstance();544 541 545 542 $xp_prefix = $GLOBALS['xoopsModule']->getInfo('dirname'); … … 613 610 function xpress_group_role_state($is_report = false) 614 611 { 615 global $xoopsModule; 616 $xoopsDB =& Database::getInstance(); 612 global $xoopsModule,$xoopsDB; 617 613 $xp_prefix = $GLOBALS['xoopsModule']->getInfo('dirname'); 618 614 $xp_prefix = preg_replace('/wordpress/','wp',$xp_prefix); … … 692 688 function xpress_block_options($is_report = false) 693 689 { 690 global $xoopsModule; 694 691 $mydirname = basename( dirname( dirname( __FILE__ ) ) ) ; 695 692 696 693 $module_objs = & get_module_objects($mydirname); 697 694 $module_obj = $module_objs[0]; 698 $mod_id = $ module_obj->getVar('mid', 'n');695 $mod_id = $xoopsModule->getVar('mid', 'n'); 699 696 $blocks = & get_block_object_orber_num_bymodule_id( $mod_id ); 700 $infos = & $module_obj->getInfo('blocks');697 $infos = $xoopsModule->getInfo('blocks'); 701 698 if ($is_report){ 702 699 echo "******** " . _AM_XP2_BLOCK_OPTIONS . "********" . "<br />\n";
Note: See TracChangeset
for help on using the changeset viewer.