rationaliser les hashes et hashes2hashes

This commit is contained in:
2018-12-30 13:01:12 +01:00
parent 37442a9506
commit b3c60a5a76
4 changed files with 48 additions and 59 deletions

View File

@@ -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]);

View File

@@ -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