Ticket #5273: weather.am.php.diff

File weather.am.php.diff, 1.1 KB (added by Paul Sands <usg990a@…>, 17 years ago)
  • weather.am.php

     
    3232            echo "imageTotal = ". $matches[2] .";\n";
    3333            for ($i=0; $i<$matches[2]; $i++)  {
    3434                echo "images[$i] = new Image();\n";
    35                 echo "images[$i].src = \"/". cache_dir ."/". $matches[1] ."-$i\";\n";
     35/**
     36 * Removed escaped backslash - backslash assuming mythweb is the root of the server
     37/**/
     38                echo "images[$i].src = \"" . cache_dir ."/". $matches[1] ."-$i\";\n";
    3639            }
    3740?>
    3841        function nextFrame (inc) {
     
    6871?>
    6972
    7073        output += ' <b>Faster</b><br>'
    71         output += '<img name="animation" src="<?php echo "/". cache_dir ."/". $matches[1] ."-0" ?>" alt="Animation" onload="setTimeout(\'animate()\', delay)">'
     74        output += '<img name="animation" src="<?php echo "". cache_dir ."/". $matches[1] ."-0" ?>" alt="Animation" onload="setTimeout(\'animate()\', delay)">'
    7275        output += '</form>'
    7376        document.write(output);