You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 59 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Warning: setlocale() [function.setlocale]: [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
zidion
Nuke Soldier
Nuke Soldier


Joined: Jan 31, 2003
Posts: 15

Location: USA

PostPosted: Fri Feb 07, 2003 10:27 am Reply with quoteBack to top

Passing locale category name as string is deprecated. Use the LC_* -constants instead. in /httpd/html/server/sitename/mainfile.php on line 565.

I guess it's a time error or a title for formatting stories, from what I can figure out . line 565 is (echo "$aid"Wink.... aid to what? $aid = $aid;????
does this make sence to anyone? Here's the mainfile formating stories
/*********************************************************/
/* formatting stories */
/*********************************************************/

function formatTimestamp($time) {
global $datetime, $locale;
setlocale ("LC_TIME", "$locale");
ereg ("([0-9]{4})-([0-9]{1,2})-([0-9]{1,2}) ([0-9]{1,2})Sad[0-9]{1,2})Sad[0-9]{1,2})", $time, $datetime);
$datetime = strftime(""._DATESTRING."", mktime($datetime[4],$datetime[5],$datetime[6],$datetime[2],$datetime[3],$datetime[1]));
$datetime = ucfirst($datetime);
return($datetime);
}

function formatAidHeader($aid) {
global $prefix, $dbi;
$holder = sql_query("SELECT url, email FROM ".$prefix."_authors where aid='$aid'", $dbi);
if (!$holder) {
echo _ERROR;
exit();
}
list($url, $email) = sql_fetch_row($holder, $dbi);
if (isset($url)) {
$aid = "<a href=\"$url\">$aid</a>";
} elseif (isset($email)) {
$aid = "<a href=\"mailto:$email\">$aid</a>";
} else {
$aid = $aid;
}
<strong> LINE 565=</strong>echo "$aid";</strong>
}

function get_author($aid) {
global $prefix, $dbi;
$holder = sql_query("SELECT url, email FROM ".$prefix."_authors where aid='$aid'", $dbi);
if (!$holder) {
echo _ERROR;
exit();
}
Also I would like to know how to set the time to a diffrent time other than what my server is on. The time shows chez time and I need central standard time for usa. I didn't do those smileys up there and how come my <strong> didn't work? Oh yeah, Who stole my avitar?

_________________
zidion
Find all posts by zidionView user's profileSend private message
Zhen-Xjell
Nuke Cops Founder
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939


PostPosted: Fri Feb 07, 2003 10:45 am Reply with quoteBack to top

You must remove the quotes around "LC_TIME".

_________________
Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki]
Find all posts by Zhen-XjellView user's profileSend private messageSend e-mailVisit poster's website
zidion
Nuke Soldier
Nuke Soldier


Joined: Jan 31, 2003
Posts: 15

Location: USA

PostPosted: Fri Feb 07, 2003 11:01 am Reply with quoteBack to top

Thanks for the fast reply.
That did the trick! Razz Exclamation

_________________
zidion

Last edited by zidion on Fri Feb 07, 2003 11:22 am; edited 1 time in total
Find all posts by zidionView user's profileSend private message
Zhen-Xjell
Nuke Cops Founder
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939


PostPosted: Fri Feb 07, 2003 11:07 am Reply with quoteBack to top

"LC_TIME" is everywhere in the code. Make sure you change it all to LC_TIME without quotes. Also, run analyzer from this site so we can see your theme, et al.

_________________
Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki]
Find all posts by Zhen-XjellView user's profileSend private messageSend e-mailVisit poster's website
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.286 Seconds - 308 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::