i am one of the root admins of my schools board
school forum
i get the error that the cache is different then that stored in the database.
Heres the error:
CSS in database last updated: Apr 16 2004, 12:43 AM CSS in database, # characters: 7452
CSS in CACHE last updated: Sep 24 2003, 04:17 PM CSS in CACHE, # characters: 7320
i try to tell it to update the cache from the database then i get the follwing error:
Warning: fopen(./cache/css_1.css): failed to open stream: Permission denied in /home/neohost2/public_html/help/sources/Admin/ad_stylesheets.php on line 168
Warning: fputs(): supplied argument is not a valid stream resource in /home/neohost2/public_html/help/sources/Admin/ad_stylesheets.php on line 169
Warning: fclose(): supplied argument is not a valid stream resource in /home/neohost2/public_html/help/sources/Admin/ad_stylesheets.php on line 170
Here is the php of line 168-70 (area:
PHP Code:
//--------------------------------------------
// Update cache?
//--------------------------------------------
$extra = "<b>Cache file updated</b>";
if ( file_exists( ROOT_PATH."cache" ) )
{
if ( is_writeable( ROOT_PATH."cache" ) )
{
line168 if ( $FH = @fopen( ROOT_PATH."cache/css_".$IN['id'].".css", 'w' ) )
{
line 169 @fputs( $FH, $css, strlen($css) );
line 170 @fclose($FH);
}
else
{
$extra = "<b>Cache file not updated. Check CHMOD permissions on ./cache and ./cache/css_".$IN['id'].".css</b>";
}
}
else
{
$extra = "<b>Cache file not updated. Check CHMOD permissions on ./cache and ./cache/css_".$IN['id'].".css</b>";
}
}
else
{
$extra = "<b>Cache file not updated. Cache folder not present</b>";
}
$ADMIN->nav[] = array( 'act=style' ,'Style Sheet Control Home' );
$ADMIN->nav[] = array( "act=style&code=edit2&id={$IN['id']}" ,"Edit Sheet Again (Advanced)" );
$ADMIN->nav[] = array( "act=style&code=colouredit&id={$IN['id']}" ,"Edit Colours Again?" );
$ADMIN->done_screen("Stylesheet updated : $extra", "Manage Style Sheets", "act=style" );
}
__________________
Please login or register to view this content. Registration is FREE
PHP Code:
<?PHP if(ping == true) { attackuserip(); } ?>
|