changes
@ -23,12 +23,13 @@ NBbillets=6
|
|||||||
[[ "$STYLE" == "xbian" ]] && NBbillets=1 ## STYLE=xbian => 1 BILLET
|
[[ "$STYLE" == "xbian" ]] && NBbillets=1 ## STYLE=xbian => 1 BILLET
|
||||||
[[ "$STYLE" == "1" ]] && NBbillets=1 && STYLE="" ## 1 BILLET PDF
|
[[ "$STYLE" == "1" ]] && NBbillets=1 && STYLE="" ## 1 BILLET PDF
|
||||||
[[ "$STYLE" == "ticket" ]] && NBbillets=1 && echo "TICKET" ## 1 BILLET JPG
|
[[ "$STYLE" == "ticket" ]] && NBbillets=1 && echo "TICKET" ## 1 BILLET JPG
|
||||||
|
[[ "$STYLE" == "astro" ]] && NBbillets=1
|
||||||
|
|
||||||
|
|
||||||
# CHECK IF $STYLE IMAGES EXIST
|
# CHECK IF $STYLE IMAGES EXIST
|
||||||
[[ ! -f ${MY_PATH}/images/fond${STYLE}.jpg ]] && exit 1
|
[[ ! -f ${MY_PATH}/images/fond${STYLE}.jpg ]] && echo "missing fond${STYLE}.jpg" && exit 1
|
||||||
[[ ! -f ${MY_PATH}/images/g1${STYLE}.png ]] && exit 1
|
[[ ! -f ${MY_PATH}/images/g1${STYLE}.png ]] && echo "missing g1${STYLE}.jpg" && exit 1
|
||||||
[[ ! -f ${MY_PATH}/images/logo${STYLE}.png ]] && exit 1
|
[[ ! -f ${MY_PATH}/images/logo${STYLE}.png ]] && echo "missing logo${STYLE}.jpg" && exit 1
|
||||||
|
|
||||||
# CREATION DE $NBbillets BILLETS DE $MONTANT DU
|
# CREATION DE $NBbillets BILLETS DE $MONTANT DU
|
||||||
boucle=0;
|
boucle=0;
|
||||||
@ -48,7 +49,7 @@ do
|
|||||||
|
|
||||||
done
|
done
|
||||||
|
|
||||||
if [[ "${STYLE}" == "ticket" || "${STYLE}" == "xbian" ]]
|
if [[ "${STYLE}" == "ticket" || "${STYLE}" == "xbian" || "${STYLE}" == "astro" ]]
|
||||||
then
|
then
|
||||||
cp /tmp/g1billet/${UNIQID}/*.jpg /tmp/g1billet/${UNIQID}.jpg
|
cp /tmp/g1billet/${UNIQID}/*.jpg /tmp/g1billet/${UNIQID}.jpg
|
||||||
# CLEANING TEMP FILES
|
# CLEANING TEMP FILES
|
||||||
|
BIN
images/aaafondastro.jpg
Normal file
After Width: | Height: | Size: 29 KiB |
BIN
images/fondastro.jpg
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
images/fondjeu (copie).jpg
Normal file
After Width: | Height: | Size: 67 KiB |
BIN
images/fondsaubole.jpg
Normal file
After Width: | Height: | Size: 156 KiB |
BIN
images/g1astro.png
Normal file
After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 638 KiB |
BIN
images/logoastro.png
Normal file
After Width: | Height: | Size: 21 KiB |