Current User Data in config.php
-
Casual Pligger
Current User Data in config.php
Hi,
I'm trying to make my site bilingual, so I need current user's data to use in config.php. I've tried to define $current_user as global in config.php, but $current_user->user_login didn't return a value. How can I acquire current user's data in config.php? Any help would be appreciated.
-
Casual Pligger
I used
(isset($_COOKIE['mnm_user'] ) ? sanit($_COOKIE['mnm_user']) : '')
to get current user's name.
Similar Threads
-
By dariodn in forum Questions & Comments
Replies: 4
Last Post: 03-12-2011, 07:45 PM
-
By ewel in forum Questions & Comments
Replies: 3
Last Post: 04-08-2010, 12:27 PM
-
By metacomedy in forum Questions & Comments
Replies: 1
Last Post: 12-28-2009, 04:00 AM
-
By Andreiii in forum Questions & Comments
Replies: 0
Last Post: 05-03-2009, 06:49 AM
-
By cryptkeeper in forum Questions & Comments
Replies: 8
Last Post: 02-03-2006, 09:55 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules