Changeset 27392


Ignore:
Timestamp:
Feb 16, 2014, 11:16:03 PM (7 years ago)
Author:
ddtddt
Message:

[extensions] - see_photos_by_user - bug if nb photos > 15

Location:
extensions/see_photos_by_user
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/see_photos_by_user/main.inc.php

    r27391 r27392  
    4242{
    4343 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']);
     45if (!empty ($testa[1]))
     46{
     47$testd= explode('/', $testa[1]);
     48$me = 'user-'.$testd[0];
     49}
    4750else
    4851{$me = 'user-';}
  • extensions/see_photos_by_user/pagespba.php

    r27391 r27392  
    44global $page, $conf, $user, $template;
    55
    6 $testd = explode('user-', $_SERVER['REQUEST_URI']);
    7 if (!empty ($testd[1]))
    8 {$me = 'user-'.$testd[1];
     6$testa = explode('user-', $_SERVER['REQUEST_URI']);
     7if (!empty ($testa[1]))
     8{
     9$testd= explode('/', $testa[1]);
     10$me = 'user-'.$testd[0];
    911$page['section'] = $me;
    1012
     
    1214SELECT id, username
    1315 FROM ' . USERS_TABLE . '
    14  WHERE username = \''.$testd[1].'\'
     16 WHERE username = \''.$testd[0].'\'
    1517;';
    1618$result = pwg_query($query);
    1719$row = pwg_db_fetch_assoc($result);
     20$coutantuser = $row['id'];
    1821  $template->assign(
    1922    'gestionB',
    2023    array(
    21       'USERUSBU' => $testd[1],
     24      'USERUSBU' => $testd[0],
    2225      ));
    2326
Note: See TracChangeset for help on using the changeset viewer.