list of special blocks is now dynamic via ajax

This commit is contained in:
2019-03-03 17:59:01 +01:00
parent 61930c1277
commit a4f572f962
6 changed files with 248 additions and 402 deletions

View File

@@ -33,13 +33,13 @@ if (isset($_REQUEST['methode'])) $methode = $_REQUEST['methode'];
if (isset($_REQUEST['mode'])) $mode = intval($_REQUEST['mode']);
$img = null;
$str_mode = '';
if ($mode != 9999) $str_mode = '-'.$mode;
// ---
// --- Le cas général : on trouve le fichier image demandé
// ---
$imagefilename = DATA_PATH.'/'.$methode.'/'.$block_hash;
if ($mode != 9999) $imagefilename .= '-'.$mode;
$imagefilename .= '.png';
$imagefilename = DATA_PATH.'/'.$methode.'/'.$block_hash.$str_mode.'.png';
if (file_exists($imagefilename)) $img = imagecreatefrompng($imagefilename);
// ---