Changeset 534 for trunk/xpressme_integration_kit/include
- Timestamp:
- Mar 10, 2010, 4:47:23 PM (15 years ago)
- Location:
- trunk/xpressme_integration_kit/include
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/xpressme_integration_kit/include/add_xpress_process.php
r524 r534 18 18 $guess_url = preg_replace('|/' . $module_name . '/.*|i', '/' . $module_name, $schema . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] ); 19 19 $blog_sub_path = ''; 20 if (defined('MULTISITE') && MULTISITE){20 if(function_exists('is_multisite') && is_multisite()){ 21 21 if ($blog_id > 1){ 22 $blog_path = '/cube_mu/modules/xpress3/toy/';23 22 $blog_sub_path = '/' .$blogname; 24 23 } -
trunk/xpressme_integration_kit/include/oninstall.php
r531 r534 121 121 $views_queries ="CREATE TABLE $group_role ( 122 122 groupid smallint(5) unsigned NOT NULL default '0', 123 blog_id bigint(20) unsigned NOT NULL default '0', 123 124 name varchar(50) NOT NULL default '' , 124 125 description text NOT NULL default '', -
trunk/xpressme_integration_kit/include/onupdate.php
r481 r534 254 254 } 255 255 256 $group_role = XOOPS_DB_PREFIX . '_' . $xp_prefix .'_group_role' ; 256 257 if (! enhanced_table_check($mydirname,'group_role')){ 257 $group_role = XOOPS_DB_PREFIX . '_' . $xp_prefix .'_group_role' ;258 258 $queries ="CREATE TABLE $group_role ( 259 259 groupid smallint(5) unsigned NOT NULL default '0', 260 blog_id bigint(20) unsigned NOT NULL default '0', 260 261 name varchar(50) NOT NULL default '' , 261 262 description text NOT NULL default '', … … 269 270 $db->queryF( $sql ) ; 270 271 $msgs[] = "$group_role table of XPressME was made."; 272 } else { 273 if (!is_found_table_column($group_role,'blog_id')){ 274 $queries ="ALTER TABLE $group_role ADD blog_id bigint(20) AFTER groupid"; 275 $db->queryF( $queries ) ; 276 $msgs[] = "$group_role ADD blog_id ."; 277 } 278 // The table is repaired. 279 $update_sql = "UPDATE $group_role SET blog_id = 1 WHERE(blog_id IS NULL OR blog_id < 1)"; 280 $db->queryF( $update_sql ) ; 271 281 } 272 282
Note: See TracChangeset
for help on using the changeset viewer.