Commit 9f5db9e6 authored by Antoine Tenart's avatar Antoine Tenart

kwain

parent e5f7dfac
......@@ -57,7 +57,7 @@ define('AREA_HEIGHT',500);
if ( $_REQUEST["action"] == "area_image" || $_REQUEST["action"] == "area_html" )
{
$lastModified = gmdate('D, d M Y H:i:s', filemtime("var/mini_galaxy.png") ) . ' GMT';
$lastModified = gmdate('D, d M Y H:i:s', filemtime("data/img/mini_galaxy.png") ) . ' GMT';
$etag=md5($_SERVER['SCRIPT_FILENAME']."?".$_SERVER['QUERY_STRING'].'#'.$lastModified);
if ( isset($_SERVER['HTTP_IF_MODIFIED_SINCE']) )
......@@ -279,7 +279,7 @@ $cts->puts("<div class=\"viewer\" id=\"viewer\">
<div class=\"square\" id=\"square13\"></div>
<div class=\"square\" id=\"square14\"></div>
<div class=\"square\" id=\"square15\"></div>
<div class=\"map\" id=\"map\"><img src=\"var/mini_galaxy.png\" />
<div class=\"map\" id=\"map\"><img src=\"data/img/mini_galaxy.png\" />
<div class=\"position\" id=\"position\"></div></div></div><script>init_galaxy($tx,$ty,\"&highlight=$hl\");</script>");
......@@ -373,7 +373,7 @@ $cts->puts("<div class=\"viewer\" id=\"viewer\">
<div class=\"square\" id=\"square13\"></div>
<div class=\"square\" id=\"square14\"></div>
<div class=\"square\" id=\"square15\"></div>
<div class=\"map\" id=\"map\"><img src=\"var/mini_galaxy.png\" />
<div class=\"map\" id=\"map\"><img src=\"data/img/mini_galaxy.png\" />
<div class=\"position\" id=\"position\"></div></div></div><script>init_galaxy($goX,$goY,\"\");</script>");
//$cts->add_paragraph("<a href=\"var/galaxy.png\">Tout galaxy sur une seule image</a>");
......
......@@ -475,7 +475,7 @@ class galaxy
$img2 = imagecreatetruecolor($this->width/100,$this->height/100);
imagecopyresampled($img2,$img,0,0,0,0,$this->width/100,$this->height/100,$this->width/50,$this->height/50);
if(is_writable("/var/www/var/"))
if(is_writable("/var/www/ae2/data/img/"))
imagepng($img2,$mini_target);
imagedestroy($img2);
imagedestroy($img);
......
......@@ -27,7 +27,7 @@ $galaxy->update();
for($i=0;$i<45;$i++) // Environs 1100 cycles/jours
$galaxy->cycle();
$galaxy->mini_render($topdir."var/mini_galaxy.png");
$galaxy->mini_render($topdir."data/img/mini_galaxy.png");
// Tâche 2 [verous]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment