[PHP] Problem With Cutenews

Status
Not open for further replies.
Experienced Elementalist
Joined
Feb 20, 2006
Messages
214
Reaction score
3
I get following problem:

malemees - [PHP] Problem With Cutenews - RaGEZONE Forums


And the code there is:
//----------------------------------
// Notify user if the news were auto-archived
//----------------------------------

//get last auto-archive date
$ladb_content = file("$cutepath/data/auto_archive.db.php");
list($last_archived[year], $last_archived[month]) = split("\|", $ladb_content[0] );
$last_login_year = date("Y", (int)$member_db[9]);
$last_login_month = date("n", (int)$member_db[9]);


if((int)$last_login_month < (int)$last_archived[month] and $last_login_year <= $last_archived[year]){

echo"<tr><td style='padding:3px; border:1px dashed orange; background-color:yellow;' colspan=5 height=1>
<b>Attention!</b><br>
CuteNews has performed auto-archive opperation since your last login at ".date("d M Y H:i:s", $member_db[9])."<br>
If you don't want your news to be auto-archived every month,<br>
you can swith this option off from <a href=\"?mod=options&action=syscon\">System Configurations</a>.

</td></tr>";

}

Please solutions how to fix
 
Last edited by a moderator:
Praise the Sun!
Loyal Member
Joined
Dec 4, 2007
Messages
2,502
Reaction score
986
Your error reporting of the host you're running your PHP script at is way to high. Use the PHP function error_reporting ( ) and pass a 0 as argument.
 
Skilled Illusionist
Joined
Apr 6, 2007
Messages
384
Reaction score
2
date_default_timezone_set('US/Eastern');



for a list of timezones. Make sure that's set in any file that uses date().
 
Praise the Sun!
Loyal Member
Joined
Dec 4, 2007
Messages
2,502
Reaction score
986
Or just change the default timezone in the php.ini file....

Possible, but still his error reporting is too high. If he doesn't want to get fucked over with "index not defined" then he should set it to normal or disable it.
 
Experienced Elementalist
Joined
Feb 20, 2006
Messages
214
Reaction score
3
Your error reporting of the host you're running your PHP script at is way to high. Use the PHP function error_reporting ( ) and pass a 0 as argument.

Thanks that was usefull you solved my problem :)

Closed or what ever :D
 
Status
Not open for further replies.
Back
Top