Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: $USER_DATA['username'] definition.  (Read 3534 times)

0 Members and 1 Guest are viewing this topic.

DenVault

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
$USER_DATA['username'] definition.
« on: April 24, 2006, 07:04:19 pm »

Hello!
I have a problem with finding where the $USER_DATA['username'] variable is first defined. The reason I need it is in following:
I need manually change charset for every username loaded from the MySQL. I tried to find it almost everywhere (the most likely variant is still udb_base.inc.php$)) but when I see a variable definition and try to redefine it right after that -- I get no effect, USERS in admin page show me the same picture and the same stuff with private albums.
I need to find a place where I can redefine $USER_DATA['username'] in such a way every user can see theese changes.
Thanks a lot!
Best regards.
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: $USER_DATA['username'] definition.
« Reply #1 on: April 24, 2006, 07:32:01 pm »

yup, udb_base.inc.php
define('USER_NAME', addslashes($USER_DATA['user_name']));
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 20 queries.