Changeset 33008
- Timestamp:
- Jan 21, 2024, 12:39:07 PM (4 months ago)
- Location:
- extensions/see_photos_by_user
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/see_photos_by_user/main.inc.php
r32937 r33008 62 62 $userok[] = $row['id']; 63 63 } 64 65 $page['section'] = 'user-'; 64 66 if (in_array($testd[0], $userok)) { 65 67 $me = 'user-' . $testd[0].'-'.$username; -
extensions/see_photos_by_user/maintain.class.php
r32937 r33008 59 59 conf_update_param('see_photos_by_user_shape', 'sphere',true); 60 60 } 61 61 62 pwg_query('UPDATE '.HISTORY_TABLE.' SET section = \'user-\' WHERE section like \'user-%\''); 63 $history_sections = get_enums(HISTORY_TABLE, 'section'); 64 foreach ($history_sections as $key => $value) { 65 if (substr($value,0,5) == 'user-') { 66 unset($history_sections[$key]); 67 } 68 } 69 $history_sections[]='user-'; 70 pwg_query('ALTER TABLE '.HISTORY_TABLE.' CHANGE section section enum(\''.implode("','", array_unique($history_sections)).'\') DEFAULT NULL;'); 71 conf_update_param('history_sections_cache', get_enums(HISTORY_TABLE, 'section'), true); 72 62 73 } 63 74 … … 86 97 conf_update_param('see_photos_by_user_shape', 'sphere',true); 87 98 } 99 100 pwg_query('UPDATE '.HISTORY_TABLE.' SET section = \'user-\' WHERE section like \'user-%\''); 101 $history_sections = get_enums(HISTORY_TABLE, 'section'); 102 foreach ($history_sections as $key => $value) { 103 if (substr($value,0,5) == 'user-') { 104 unset($history_sections[$key]); 105 } 106 } 107 $history_sections[]='user-'; 108 pwg_query('ALTER TABLE '.HISTORY_TABLE.' CHANGE section section enum(\''.implode("','", array_unique($history_sections)).'\') DEFAULT NULL;'); 109 conf_update_param('history_sections_cache', get_enums(HISTORY_TABLE, 'section'), true); 110 88 111 } 89 112 -
extensions/see_photos_by_user/pagespba.php
r32937 r33008 29 29 $username= see_username($testd[0]); 30 30 $me = 'user-' . $testd[0].'-'.$username; 31 $page['section'] = $me;31 $page['section'] = 'user-'; 32 32 $page['section_title'] = '<a href="' . get_absolute_root_url() . '">' . l10n('Home') . '</a>' . $conf['level_separator'] . '<a href="' . get_absolute_root_url() . 'index.php?/user-">' . l10n('Users').'</a>'. $conf['level_separator'] . '<a href="' . get_absolute_root_url() . 'index.php?/' . $me . '">'.$username. '</a>'; 33 33 $template->assign( … … 73 73 global $page, $conf, $user, $template; 74 74 $me = 'user-'; 75 $page['section'] = $me;75 $page['section'] = 'user-'; 76 76 $page['section_title'] = '<a href="' . get_absolute_root_url() . '">' . l10n('Home') . '</a>' . $conf['level_separator'] . '<a href="' . get_absolute_root_url() . 'index.php?/' . $me . '">' . l10n('Users') . '</a>'; 77 77 $userslistecloud1 = see_userlist_nb_photo();
Note: See TracChangeset
for help on using the changeset viewer.