Advanced search  


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.

Pages: [1]   Go Down

Author Topic: Language setting for bridges in general  (Read 4686 times)

0 Members and 1 Guest are viewing this topic.


  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Language setting for bridges in general
« on: May 31, 2011, 11:43:28 am »

I have been making a bridge for a home grown application which manages approx 3000 users of the retirees of the defunct airline swissair (not swiss).
In order to set the language (which is stored in a cookie) I had to make a small enhancement for the cpg_udb class:

in (after user_get_profile):
// Get language from bridge *wvdmark*

in (somewhere under overridden function):
         function cookie_language()
            global $USER;
            return $USER['lang'];
in my bridge: attached: function cookie_language() that analyses my language cookie. Seems to work, found no other solution.

Pages: [1]   Go Up

Page created in 0.018 seconds with 20 queries.