http://mark014.beep.pl/realtime.txt is updating correctly, but as you say the banner seems to have a different 'period'.
Why is 'realtime' an extrafile - I don't remember that, but I could be wrong
Moderator: daj
Correct, Cumulus will upload at the realtime interval so long as you tick the option in settings, no need to add it as an extra file.beteljuice wrote: ↑Sun 07 Jul 2019 9:51 pm Why is 'realtime' an extrafile - I don't remember that, but I could be wrong![]()
That's why I wandering if there were two files in different places ....Unless you want to upload at longer than the reltime interval I guess?
Code: Select all
<Files banner.php>
FileETag None
Header unset ETag
Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
Header set Pragma "no-cache"
Header set Expires "Wed, 11 Jan 1984 05:00:00 GMT"
</Files>
No I want to upload the realtime file every 50 secs.
Code: Select all
include 'mytags.php';
date_default_timezone_set('Europe/London');
$current = time();
$daytime = strtotime('$sunrise');
$nighttime = strtotime('$sunset');
if($daytime <= $current && $current < $nighttime) {
$baseimg = imagecreatefromjpeg("images/day_banner.jpg");
} else {
$baseimg = imagecreatefromjpeg("images/night_banner.jpg");
}Code: Select all
if($DATA[49] == 1) {
// OR if(ret_value("named field") == 1) {
$baseimg = imagecreatefromjpeg("images/clouds_banner.jpg"); // daytime image
} else {
$baseimg = imagecreatefromjpeg("images/clouds__night_banner.jpg"); //night-time image
}
Code: Select all
// Output the header to let the browser know we are
// sending a graphic file format
header("Content-type: image/" . $SITE['format'] );
$im = @imagecreate($SITE['image_width'], $SITE['image_height'])
or die("Cannot Initialize new GD image stream");
// Set colors we want to use...
// first background is a white background
$background_color = imagecolorallocate($im, 0xFF, 0xFF, 0xFF);
$black = imagecolorallocate($im, 0x00, 0x00, 0x00);
$green = imagecolorallocate($im, 0x00, 0x80, 0x00);
$blue = imagecolorallocate($im, 0x00, 0x00, 0xff);
$red = imagecolorallocate($im, 0xff, 0x00, 0x00);
$baseimg = imagecreatefromjpeg(".NFWbanner.jpg");
imagecopy($im,$baseimg,0,0,0,0,$SITE['image_width'], $SITE['image_height']);imagedestroy($baseimg);// Make a Border Around the box
ImageRectangle($im, 0, 0, $SITE['image_width'] -1 ,
$SITE['image_height'] -1, $black);Code: Select all
$baseimg = imagecreatefromjpeg(".NFWbanner.jpg");Code: Select all
$baseimg = imagecreatefromjpeg("komokaimage1.jpg");Removing the dot also helped thanks.Could it be that the image file name has a leading dot (.)?