Changeset 27392
- Timestamp:
- Feb 16, 2014, 11:16:03 PM (10 years ago)
- Location:
- extensions/see_photos_by_user
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/see_photos_by_user/main.inc.php
r27391 r27392 42 42 { 43 43 global $tokens; 44 $testd = explode('user-', $_SERVER['REQUEST_URI']); 45 if (!empty ($testd[1])) 46 {$me = 'user-'.$testd[1];} 44 $testa = explode('user-', $_SERVER['REQUEST_URI']); 45 if (!empty ($testa[1])) 46 { 47 $testd= explode('/', $testa[1]); 48 $me = 'user-'.$testd[0]; 49 } 47 50 else 48 51 {$me = 'user-';} -
extensions/see_photos_by_user/pagespba.php
r27391 r27392 4 4 global $page, $conf, $user, $template; 5 5 6 $testd = explode('user-', $_SERVER['REQUEST_URI']); 7 if (!empty ($testd[1])) 8 {$me = 'user-'.$testd[1]; 6 $testa = explode('user-', $_SERVER['REQUEST_URI']); 7 if (!empty ($testa[1])) 8 { 9 $testd= explode('/', $testa[1]); 10 $me = 'user-'.$testd[0]; 9 11 $page['section'] = $me; 10 12 … … 12 14 SELECT id, username 13 15 FROM ' . USERS_TABLE . ' 14 WHERE username = \''.$testd[ 1].'\'16 WHERE username = \''.$testd[0].'\' 15 17 ;'; 16 18 $result = pwg_query($query); 17 19 $row = pwg_db_fetch_assoc($result); 20 $coutantuser = $row['id']; 18 21 $template->assign( 19 22 'gestionB', 20 23 array( 21 'USERUSBU' => $testd[ 1],24 'USERUSBU' => $testd[0], 22 25 )); 23 26
Note: See TracChangeset
for help on using the changeset viewer.