list of special blocks is now dynamic via ajax
This commit is contained in:
@@ -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);
|
||||
|
||||
// ---
|
||||
|
||||
Reference in New Issue
Block a user