Changeset 852 for trunk/xpressme_integration_kit/include/onupdate.php
- Timestamp:
- Nov 19, 2013, 9:47:43 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/xpressme_integration_kit/include/onupdate.php
r835 r852 23 23 $db =& XoopsDatabaseFactory::getDatabaseConnection() ; 24 24 $mid = $module->getVar('mid') ; 25 25 26 26 27 27 … … 39 39 } 40 40 41 //Site_url and home of an optional table are repaired. 41 //Site_url and home of an optional table are repaired. 42 42 $site_url= XOOPS_URL."/modules/".$mydirname; 43 43 xpress_put_siteurl($mydirname,$site_url); … … 61 61 $t_mess = xpress_clean_templates_file($mydirname,$mod_version); 62 62 $msgs = array_merge($msgs,$t_mess); 63 63 64 64 $t_mess = xpress_templates_make($mid,$mydirname); 65 65 $msgs = array_merge($msgs,$t_mess); 66 66 67 // The activation processing of the XPressME plugin is omitted. 67 // The activation processing of the XPressME plugin is omitted. 68 68 // Because the XPressME plugin is done with wp-config in activation 69 69 … … 73 73 // $msgs[] = 'The xpressme plug-in was activated.'; 74 74 // } 75 75 76 76 return true ; 77 77 } … … 110 110 111 111 $sql = "SELECT option_value FROM $option_table WHERE option_name = '" . $option_name . "'"; 112 112 113 113 $result = $xoopsDB->query($sql, 0, 0); 114 114 if ($xoopsDB->getRowsNum($result) > 0){ … … 163 163 } 164 164 165 switch ( $xoops_block_check->get_op() ) 165 switch ( $xoops_block_check->get_op() ) 166 166 { 167 167 case "remove_block": … … 194 194 post_views bigint(20) unsigned NOT NULL default '0', 195 195 KEY post_id (post_id) 196 ) TYPE=MyISAM";196 ) ENGINE=MyISAM"; 197 197 $db->queryF( $queries ) ; 198 198 $msgs[] = "$views_table table of XPressME was made."; … … 203 203 $msgs[] = "$views_table ADD blog_id ."; 204 204 } 205 205 206 206 // The table is repaired. 207 207 $non_blogid_sql ="SELECT * FROM $views_table WHERE blog_id IS NULL OR blog_id < 1"; … … 222 222 } 223 223 } 224 224 225 225 $d3forum_link = XOOPS_DB_PREFIX . '_' . $xp_prefix .'_d3forum_link' ; 226 226 if (! enhanced_table_check($mydirname,'d3forum_link')){ … … 232 232 blog_id bigint(20) unsigned NOT NULL default '0', 233 233 KEY post_id (post_id) 234 ) TYPE=MyISAM";234 )ENGINE=MyISAM"; 235 235 $db->queryF( $queries ) ; 236 236 $msgs[] = "$d3forum_link table of XPressME was made."; … … 265 265 login_all smallint(5) unsigned NOT NULL default '0' , 266 266 KEY groupid (groupid) 267 ) TYPE=MyISAM";267 )ENGINE=MyISAM"; 268 268 $db->queryF( $queries ) ; 269 269 $sql = "INSERT INTO $group_role (groupid, role) VALUES (1, 'administrator')"; … … 280 280 $db->queryF( $update_sql ) ; 281 281 } 282 282 283 283 if (! enhanced_table_check($mydirname,'notify_reserve')){ 284 284 $notify_reserve = XOOPS_DB_PREFIX . '_' . $xp_prefix .'_notify_reserve' ; … … 294 294 omit_user_id varchar(20) NOT NULL default '' , 295 295 KEY notify_reserve_id (notify_reserve_id) 296 ) TYPE=MyISAM";296 )ENGINE=MyISAM"; 297 297 $db->queryF( $queries ) ; 298 298 $msgs[] = "$notify_reserve table of XPressME was made."; … … 305 305 function enhanced_table_check($mydirname,$table_name){ 306 306 global $xoopsModule; 307 307 308 308 $xoopsDB =& XoopsDatabaseFactory::getDatabaseConnection(); 309 309 $xpress_prefix = $xoopsDB->prefix(preg_replace('/wordpress/','wp',$mydirname) . '_');
Note: See TracChangeset
for help on using the changeset viewer.