#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>
|
|
<B_sitesspip>
|
|
<h2>Version #ENV{v} : [(#GET{total})] sites vérifiés</h2>
|
|
|
|
<h3>Versions</h3>
|
|
<table id='versions'>
|
|
<thead>
|
|
<tr><th>Version</th><th>Nombre de sites</th></tr>
|
|
</thead>
|
|
<tbody>
|
|
<BOUCLE_sitesspip(WEBSITES){spip like #GET{likev}}{statut=publie}{fusion spip}{compte spip}{!par compte_spip}>
|
|
<tr>
|
|
<td>#SPIP</td>
|
|
<td>#COMPTE{spip} ([(#COMPTE{spip}|mult{100}|div{#GET{total}}|round{1})%])</td>
|
|
</tr>
|
|
</BOUCLE_sitesspip>
|
|
</tbody>
|
|
</table>
|
|
</B_sitesspip>
|
|
|
|
<h3>PHP</h3>
|
|
<table id='php'>
|
|
<thead>
|
|
<tr>
|
|
<th>PHP</th>
|
|
<th>Nombre de sites</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<BOUCLE_versions_php(DATA){source tableau,#GET{versions_php}}>
|
|
<BOUCLE_version_php(WEBSITES){spip like #GET{likev}}{statut=publie}{php LIKE #VALEUR|concat{%}} />[(#TOTAL_BOUCLE|>{0}|oui)
|
|
<tr>
|
|
<td>#VALEUR</td>
|
|
<td>#TOTAL_BOUCLE ([(#TOTAL_BOUCLE|mult{100}|div{#GET{total}}|round{1})%])</td>
|
|
</tr>
|
|
]<//B_version_php>
|
|
</BOUCLE_versions_php>
|
|
</tbody>
|
|
</table>
|
|
|
|
<B_hasplug>
|
|
<h3>Nombre de plugins installés</h3>
|
|
<p>Nombre total de sites ayant activé un ou plusieurs plugins: <BOUCLE_tothas(WEBSITES){spip like #GET{likev}}{plugins>=1}{statut=publie} />#TOTAL_BOUCLE/#GET{total} soit[ (#TOTAL_BOUCLE|mult{100}|div{#GET{total}}|round{1})%]<//B_tothas></p>
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>Nombre de plugins</th>
|
|
<th>Nombre de sites</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<BOUCLE_hasplug(WEBSITES){spip like #GET{likev}}{fusion plugins}{compte plugins}{!par compte_plugins}{plugins>=1}{statut=publie}>
|
|
<tr>
|
|
<td>#PLUGINS plugins</td>
|
|
<td>#COMPTE{plugins} ([(#COMPTE{plugins}|mult{100}|div{#GET{total}}|round{1})%])</td>
|
|
</tr>
|
|
</BOUCLE_hasplug>
|
|
</tbody>
|
|
</table>
|
|
</B_hasplug>
|
|
|
|
<B_plugins>
|
|
<h3>Plugins</h3>
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>Nom</th>
|
|
<th>Nombre de sites</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<BOUCLE_plugins(websites_plugins websites){websites.statut=publie}{websites.spip like #GET{likev}}{fusion plugin}{!par compte_plugin}{compte plugin}>
|
|
<tr>
|
|
<td>#CHAMP_SQL{plugin}</td>
|
|
<td>#COMPTE{plugin} ([(#COMPTE{plugin}|mult{100}|div{#GET{total}}|round{1})%])</td>
|
|
</tr>
|
|
</BOUCLE_plugins>
|
|
</tbody>
|
|
</table>
|
|
</B_plugins>
|
|
|
|
<B_pays>
|
|
<h3>Pays</h3>
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>Nom</th>
|
|
<th>Nombre de sites</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<BOUCLE_pays(websites){spip like #GET{likev}}{fusion pays}{!par compte_pays}{compte pays}{statut=publie}>
|
|
<tr>
|
|
<td>#PAYS</td>
|
|
<td>#COMPTE{pays} ([(#COMPTE{pays}|mult{100}|div{#GET{total}}|round{1})%])</td>
|
|
</tr>
|
|
</BOUCLE_pays>
|
|
</tbody>
|
|
</table>
|
|
</B_pays>
|