rationaliser les hashes et hashes2hashes
This commit is contained in:
@@ -51,7 +51,7 @@ $img_h = $height+(2*$bandeau);
|
||||
// création d'une image plus haute pour inclure bandeaux haut et bas
|
||||
$img = imagecreatetruecolor($img_w, $img_h);
|
||||
|
||||
$paramHeader = blockchain::DrawBlockHeaderFooter($the_block, $img, $bandeau);
|
||||
$paramHeader = blockchain::DrawBlockHeaderFooter($the_block, $img, $bandeau, $mode);
|
||||
|
||||
imagefilledrectangle($img, 0, $bandeau, $width, $bandeau + $height, $paramHeader[2]);
|
||||
|
||||
|
||||
@@ -11,18 +11,12 @@ fi
|
||||
touch $flag
|
||||
|
||||
cd $APPS_PATH/methode/$METHODE
|
||||
for TYPE in CACHE LAST
|
||||
for BLOCK in `awk '{print $2}' $DATA_PATH/block_list.txt`
|
||||
do
|
||||
for BLOCK in `grep $TYPE $DATA_PATH/block_list.txt | awk '{print $2}'`
|
||||
do
|
||||
BLOCK_HEIGHT=`grep $BLOCK $DATA_PATH/block_list.txt | awk '{print $3}'`
|
||||
BNAME=`grep $BLOCK $DATA_PATH/block_list.txt | awk '{print $1}'`
|
||||
|
||||
if [ ! -f $DATA_PATH/$METHODE/$BLOCK.png ]
|
||||
then
|
||||
php robot.php $BLOCK $((RANDOM % 6))
|
||||
fi
|
||||
done
|
||||
if [ ! -f $DATA_PATH/$METHODE/$BLOCK.png ]
|
||||
then
|
||||
php robot.php $BLOCK $((RANDOM % 6))
|
||||
fi
|
||||
done
|
||||
|
||||
rm -f $flag
|
||||
|
||||
Reference in New Issue
Block a user