Browse Source

Prise en compte de PHP8 et simplifications de boucles

master
Matthieu Marcillaud 4 months ago
parent
commit
5cb0065094
5 changed files with 25 additions and 175 deletions
  1. +15
    -103
      json/stats-tout.html
  2. +6
    -68
      json/stats-v.html
  3. +2
    -2
      paquet.xml
  4. +1
    -1
      stats-tout.html
  5. +1
    -1
      stats-v.html

+ 15
- 103
json/stats-tout.html View File

@ -1,43 +1,18 @@
#SET{total,0}
#SET{versions_spip,#LISTE{3.3, 3.2, 3.1, 3.0, 2.1, 2.0, 1.9}}
#SET{versions_php,#LISTE{8.0, 7.4, 7.3, 7.2, 7.1, 7.0, 5.6, 5.5, 5.4, 5.3, 5.2, 5.1, 5.0, 4.4, 4.3}}
{<B_sitesspip>
"total_sites": "#GRAND_TOTAL",
"versions": [
<BOUCLE_sitesspip(WEBSITES){statut=publie}{pagination 1}>
<BOUCLE_v33(WEBSITES){statut=publie}{spip LIKE '3.3%'} />{
"version" : "3.3",
"sites" : "#TOTAL_BOUCLE",
"pourcentage": "[(#TOTAL_BOUCLE|mult{100}|div{#_sitesspip:GRAND_TOTAL}|round{1})]"
},#SET{total,#GET{total}|plus{#TOTAL_BOUCLE}}<//B_v33>
<BOUCLE_v32(WEBSITES){statut=publie}{spip LIKE '3.2%'} />{
"version" : "3.2",
"sites" : "#TOTAL_BOUCLE",
"pourcentage": "[(#TOTAL_BOUCLE|mult{100}|div{#_sitesspip:GRAND_TOTAL}|round{1})]"
},#SET{total,#GET{total}|plus{#TOTAL_BOUCLE}}<//B_v32>
<BOUCLE_v31(WEBSITES){statut=publie}{spip LIKE '3.1%'} />{
"version" : "3.1",
"sites" : "#TOTAL_BOUCLE",
"pourcentage": "[(#TOTAL_BOUCLE|mult{100}|div{#_sitesspip:GRAND_TOTAL}|round{1})]"
},#SET{total,#GET{total}|plus{#TOTAL_BOUCLE}}<//B_v31>
<BOUCLE_v30(WEBSITES){statut=publie}{spip LIKE '3.0%'} />{
"version" : "3.0",
"sites" : "#TOTAL_BOUCLE",
"pourcentage": "[(#TOTAL_BOUCLE|mult{100}|div{#_sitesspip:GRAND_TOTAL}|round{1})]"
},#SET{total,#GET{total}|plus{#TOTAL_BOUCLE}}<//B_v30>
<BOUCLE_v21(WEBSITES){statut=publie}{spip LIKE '2.1%'} />{
"version" : "2.1",
"sites" : "#TOTAL_BOUCLE",
"pourcentage": "[(#TOTAL_BOUCLE|mult{100}|div{#_sitesspip:GRAND_TOTAL}|round{1})]"
},#SET{total,#GET{total}|plus{#TOTAL_BOUCLE}}<//B_v21>
<BOUCLE_v20(WEBSITES){statut=publie}{spip LIKE '2.0%'} />{
"version" : "2.0",
"sites" : "#TOTAL_BOUCLE",
"pourcentage": "[(#TOTAL_BOUCLE|mult{100}|div{#_sitesspip:GRAND_TOTAL}|round{1})]"
},#SET{total,#GET{total}|plus{#TOTAL_BOUCLE}}<//B_v20>
<BOUCLE_v19(WEBSITES){statut=publie}{spip LIKE '1.9%'} />{
"version" : "1.9",
"sites" : "#TOTAL_BOUCLE",
"pourcentage": "[(#TOTAL_BOUCLE|mult{100}|div{#_sitesspip:GRAND_TOTAL}|round{1})]"
}#SET{total,#GET{total}|plus{#TOTAL_BOUCLE}}<//B_v19>
<BOUCLE_spip_versions(DATA){source tableau,#GET{versions_spip}}{", "}>[(#REM)
]<BOUCLE_stats_spip_version(WEBSITES){statut=publie}{spip LIKE #VALEUR|concat{%}} />{
"version" : "#VALEUR",
"sites" : "#TOTAL_BOUCLE",
"pourcentage": "[(#TOTAL_BOUCLE|mult{100}|div{#_sitesspip:GRAND_TOTAL}|round{1})%]"
}#SET{total,#GET{total}|plus{#TOTAL_BOUCLE}}[(#REM)
]<//B_stats_spip_version>[(#REM)
]</BOUCLE_spip_versions>
</BOUCLE_sitesspip>
],</B_sitesspip><B_hasplug>
"nombre_plugins": [
@ -62,75 +37,12 @@
}</BOUCLE_pays>
],</B_pays>
"php": [
<BOUCLE_v43(WEBSITES){statut=publie}{php LIKE '4.3%'} />{
"version" : "4.3",
"sites" : "#TOTAL_BOUCLE",
"pourcentage": "[(#TOTAL_BOUCLE|mult{100}|div{#GET{total}}|round{1})%]"
},<//B_v43>
<BOUCLE_v44(WEBSITES){statut=publie}{php LIKE '4.4%'} />{
"version" : "4.4",
"sites" : "#TOTAL_BOUCLE",
"pourcentage": "[(#TOTAL_BOUCLE|mult{100}|div{#GET{total}}|round{1})%]"
},<//B_v44>
<BOUCLE_v50(WEBSITES){statut=publie}{php LIKE '5.0%'} />{
"version" : "5.0",
"sites" : "#TOTAL_BOUCLE",
"pourcentage": "[(#TOTAL_BOUCLE|mult{100}|div{#GET{total}}|round{1})%]"
},<//B_v50>
<BOUCLE_v51(WEBSITES){statut=publie}{php LIKE '5.1%'} />{
"version" : "5.1",
"sites" : "#TOTAL_BOUCLE",
"pourcentage": "[(#TOTAL_BOUCLE|mult{100}|div{#GET{total}}|round{1})%]"
},<//B_v51>
<BOUCLE_v52(WEBSITES){statut=publie}{php LIKE '5.2%'} />{
"version" : "5.2",
"sites" : "#TOTAL_BOUCLE",
"pourcentage": "[(#TOTAL_BOUCLE|mult{100}|div{#GET{total}}|round{1})%]"
},<//B_v52>
<BOUCLE_v53(WEBSITES){statut=publie}{php LIKE '5.3%'} />{
"version" : "5.3",
"sites" : "#TOTAL_BOUCLE",
"pourcentage": "[(#TOTAL_BOUCLE|mult{100}|div{#GET{total}}|round{1})%]"
},<//B_v53>
<BOUCLE_v54(WEBSITES){statut=publie}{php LIKE '5.4%'} />{
"version" : "5.4",
"sites" : "#TOTAL_BOUCLE",
"pourcentage": "[(#TOTAL_BOUCLE|mult{100}|div{#GET{total}}|round{1})%]"
},<//B_v54>
<BOUCLE_v55(WEBSITES){statut=publie}{php LIKE '5.5%'} />{
"version" : "5.5",
"sites" : "#TOTAL_BOUCLE",
"pourcentage": "[(#TOTAL_BOUCLE|mult{100}|div{#GET{total}}|round{1})%]"
},<//B_v55>
<BOUCLE_v56(WEBSITES){statut=publie}{php LIKE '5.6%'} />{
"version" : "5.6",
"sites" : "#TOTAL_BOUCLE",
"pourcentage": "[(#TOTAL_BOUCLE|mult{100}|div{#GET{total}}|round{1})%]"
},<//B_v56>
<BOUCLE_v70(WEBSITES){statut=publie}{php LIKE '7.0%'} />{
"version" : "7.0",
"sites" : "#TOTAL_BOUCLE",
"pourcentage": "[(#TOTAL_BOUCLE|mult{100}|div{#GET{total}}|round{1})%]"
},<//B_v70>
<BOUCLE_v71(WEBSITES){statut=publie}{php LIKE '7.1%'} />{
"version" : "7.1",
"sites" : "#TOTAL_BOUCLE",
"pourcentage": "[(#TOTAL_BOUCLE|mult{100}|div{#GET{total}}|round{1})%]"
},<//B_v71>
<BOUCLE_v72(WEBSITES){statut=publie}{php LIKE '7.2%'} />{
"version" : "7.2",
"sites" : "#TOTAL_BOUCLE",
"pourcentage": "[(#TOTAL_BOUCLE|mult{100}|div{#GET{total}}|round{1})%]"
},<//B_v72>
<BOUCLE_v73(WEBSITES){statut=publie}{php LIKE '7.3%'} />{
"version" : "7.3",
"sites" : "#TOTAL_BOUCLE",
"pourcentage": "[(#TOTAL_BOUCLE|mult{100}|div{#GET{total}}|round{1})%]"
},<//B_v73>
<BOUCLE_v74(WEBSITES){statut=publie}{php LIKE '7.4%'} />{
"version" : "7.4",
<BOUCLE_php_versions(DATA){source tableau,#GET{versions_php}}{", "}>[(#REM)
]<BOUCLE_stats_php_version(WEBSITES){statut=publie}{php LIKE #VALEUR|concat{%}} />{
"version" : "#VALEUR",
"sites" : "#TOTAL_BOUCLE",
"pourcentage": "[(#TOTAL_BOUCLE|mult{100}|div{#GET{total}}|round{1})%]"
}<//B_v74>
}<//B_stats_php_version>[(#REM)
]</BOUCLE_php_versions>
]
}

+ 6
- 68
json/stats-v.html View File

@ -1,5 +1,6 @@
#SET{total,0}
#SET{likev,#ENV{v}|concat{%}}
#SET{versions_php,#LISTE{8.0, 7.4, 7.3, 7.2, 7.1, 7.0, 5.6, 5.5, 5.4, 5.3, 5.2, 5.1, 5.0, 4.4, 4.3}}
<BOUCLE_compte(WEBSITES){spip like #GET{likev}}{statut=publie} />#SET{total,#TOTAL_BOUCLE}<//B_compte>
{
"total_sites": "#GET{total}",
@ -33,75 +34,12 @@
}</BOUCLE_pays>
],</B_pays>
"php": [
<BOUCLE_v43(WEBSITES){spip like #GET{likev}}{statut=publie}{php LIKE '4.3%'} />{
"version" : "4.3",
<BOUCLE_php_versions(DATA){source tableau,#GET{versions_php}}{", "}>[(#REM)
]<BOUCLE_stats_php_version(WEBSITES){statut=publie}{php LIKE #VALEUR|concat{%}} />{
"version" : "#VALEUR",
"sites" : "#TOTAL_BOUCLE",
"pourcentage": "[(#TOTAL_BOUCLE|mult{100}|div{#GET{total}}|round{1})%]"
},<//B_v43>
<BOUCLE_v44(WEBSITES){spip like #GET{likev}}{statut=publie}{php LIKE '4.4%'} />{
"version" : "4.4",
"sites" : "#TOTAL_BOUCLE",
"pourcentage": "[(#TOTAL_BOUCLE|mult{100}|div{#GET{total}}|round{1})%]"
},<//B_v44>
<BOUCLE_v50(WEBSITES){spip like #GET{likev}}{statut=publie}{php LIKE '5.0%'} />{
"version" : "5.0",
"sites" : "#TOTAL_BOUCLE",
"pourcentage": "[(#TOTAL_BOUCLE|mult{100}|div{#GET{total}}|round{1})%]"
},<//B_v50>
<BOUCLE_v51(WEBSITES){spip like #GET{likev}}{statut=publie}{php LIKE '5.1%'} />{
"version" : "5.1",
"sites" : "#TOTAL_BOUCLE",
"pourcentage": "[(#TOTAL_BOUCLE|mult{100}|div{#GET{total}}|round{1})%]"
},<//B_v51>
<BOUCLE_v52(WEBSITES){spip like #GET{likev}}{statut=publie}{php LIKE '5.2%'} />{
"version" : "5.2",
"sites" : "#TOTAL_BOUCLE",
"pourcentage": "[(#TOTAL_BOUCLE|mult{100}|div{#GET{total}}|round{1})%]"
},<//B_v52>
<BOUCLE_v53(WEBSITES){spip like #GET{likev}}{statut=publie}{php LIKE '5.3%'} />{
"version" : "5.3",
"sites" : "#TOTAL_BOUCLE",
"pourcentage": "[(#TOTAL_BOUCLE|mult{100}|div{#GET{total}}|round{1})%]"
},<//B_v53>
<BOUCLE_v54(WEBSITES){spip like #GET{likev}}{statut=publie}{php LIKE '5.4%'} />{
"version" : "5.4",
"sites" : "#TOTAL_BOUCLE",
"pourcentage": "[(#TOTAL_BOUCLE|mult{100}|div{#GET{total}}|round{1})%]"
},<//B_v54>
<BOUCLE_v55(WEBSITES){spip like #GET{likev}}{statut=publie}{php LIKE '5.5%'} />{
"version" : "5.5",
"sites" : "#TOTAL_BOUCLE",
"pourcentage": "[(#TOTAL_BOUCLE|mult{100}|div{#GET{total}}|round{1})%]"
},<//B_v55>
<BOUCLE_v56(WEBSITES){spip like #GET{likev}}{statut=publie}{php LIKE '5.6%'} />{
"version" : "5.6",
"sites" : "#TOTAL_BOUCLE",
"pourcentage": "[(#TOTAL_BOUCLE|mult{100}|div{#GET{total}}|round{1})%]"
},<//B_v56>
<BOUCLE_v70(WEBSITES){spip like #GET{likev}}{statut=publie}{php LIKE '7.0%'} />{
"version" : "7.0",
"sites" : "#TOTAL_BOUCLE",
"pourcentage": "[(#TOTAL_BOUCLE|mult{100}|div{#GET{total}}|round{1})%]"
},<//B_v70>
<BOUCLE_v71(WEBSITES){spip like #GET{likev}}{statut=publie}{php LIKE '7.1%'} />{
"version" : "7.1",
"sites" : "#TOTAL_BOUCLE",
"pourcentage": "[(#TOTAL_BOUCLE|mult{100}|div{#GET{total}}|round{1})%]"
},<//B_v71>
<BOUCLE_v72(WEBSITES){spip like #GET{likev}}{statut=publie}{php LIKE '7.2%'} />{
"version" : "7.2",
"sites" : "#TOTAL_BOUCLE",
"pourcentage": "[(#TOTAL_BOUCLE|mult{100}|div{#GET{total}}|round{1})%]"
},<//B_v72>
<BOUCLE_v73(WEBSITES){spip like #GET{likev}}{statut=publie}{php LIKE '7.3%'} />{
"version" : "7.3",
"sites" : "#TOTAL_BOUCLE",
"pourcentage": "[(#TOTAL_BOUCLE|mult{100}|div{#GET{total}}|round{1})%]"
},<//B_v73>
<BOUCLE_v74(WEBSITES){spip like #GET{likev}}{statut=publie}{php LIKE '7.4%'} />{
"version" : "7.4",
"sites" : "#TOTAL_BOUCLE",
"pourcentage": "[(#TOTAL_BOUCLE|mult{100}|div{#GET{total}}|round{1})%]"
}<//B_v74>
}<//B_stats_php_version>[(#REM)
]</BOUCLE_php_versions>
]
}

+ 2
- 2
paquet.xml View File

@ -1,9 +1,9 @@
<paquet
prefix="univers"
categorie="statistique"
version="0.2.32"
version="0.2.4"
etat="test"
compatibilite="[3.0.0;3.3.*]"
compatibilite="[3.2.0;3.3.*]"
schema="0.1.10"
>


+ 1
- 1
stats-tout.html View File

@ -1,7 +1,7 @@
#SET{total,0}
#SET{versions,#LISTE{3.3, 3.2, 3.1, 3.0, 2.1, 2.0, 1.9}}
#SET{versions_php,#LISTE{7.4, 7.3, 7.2, 7.1, 7.0, 5.6, 5.5, 5.4, 5.3, 5.2, 5.1, 5.0, 4.4, 4.3}}
#SET{versions_php,#LISTE{8.0, 7.4, 7.3, 7.2, 7.1, 7.0, 5.6, 5.5, 5.4, 5.3, 5.2, 5.1, 5.0, 4.4, 4.3}}
<B_sitesspip>
<h2>#GRAND_TOTAL sites vérifiés</h2>


+ 1
- 1
stats-v.html View File

@ -1,6 +1,6 @@
#SET{total,0}
#SET{likev,#ENV{v}|concat{%}}
#SET{versions_php,#LISTE{7.4, 7.3, 7.2, 7.1, 7.0, 5.6, 5.5, 5.4, 5.3, 5.2, 5.1, 5.0, 4.4, 4.3}}
#SET{versions_php,#LISTE{8.0, 7.4, 7.3, 7.2, 7.1, 7.0, 5.6, 5.5, 5.4, 5.3, 5.2, 5.1, 5.0, 4.4, 4.3}}
<BOUCLE_compte(WEBSITES){spip like #GET{likev}}{statut=publie} />#SET{total,#TOTAL_BOUCLE}<//B_compte>
<B_sitesspip>


Loading…
Cancel
Save