Browse Source

Une mise à jour à la va-vite de quelques éléments.

svn/root
marcimat@rezo.net 3 years ago
parent
commit
0d213765b8
12 changed files with 70 additions and 73 deletions
  1. +4
    -6
      base/univers.php
  2. +0
    -2
      exec/universparse.php
  3. +0
    -2
      genie/univers_feed.php
  4. +0
    -2
      genie/univers_referers.php
  5. +7
    -7
      inc/univers.php
  6. +5
    -7
      inc/univers_analyser.php
  7. +1
    -1
      plugin.xml
  8. +44
    -30
      stats-tout.html
  9. +7
    -12
      stats-v.html
  10. +1
    -1
      stats.html
  11. +1
    -1
      stats_header.html
  12. +0
    -2
      univers_pipelines.php

+ 4
- 6
base/univers.php View File

@ -85,14 +85,14 @@ function univers_upgrade($nom_meta_base_version,$version_cible){
}
if (version_compare($current_version,"0.1.4",'<')){
include_spip('inc/univers');
$res = sql_select('referer','spip_referers',"referer LIKE '%spip.php%' AND referer NOT LIKE 'http://www.spip-contrib.net%' AND referer NOT LIKE '%localhost%'");
$res = sql_select('referer','spip_referers',"referer LIKE '%spip.php%' AND referer NOT LIKE 'https://contrib.spip.net%' AND referer NOT LIKE '%localhost%'");
echo "Import depuis les referer %spip.php% : ".sql_count($res)." <br />";
while ($row = sql_fetch($res))
univers_proposer_site($row['referer']);
ecrire_meta($nom_meta_base_version,$current_version="0.1.4",'non');
}
if (version_compare($current_version,"0.1.5",'<')){
$res = sql_select('referer','spip_referers',"referer LIKE '%/ecrire/%' AND referer NOT LIKE 'http://www.spip-contrib.net%' AND referer NOT LIKE '%localhost%'");
$res = sql_select('referer','spip_referers',"referer LIKE '%/ecrire/%' AND referer NOT LIKE 'https://contrib.spip.net%' AND referer NOT LIKE '%localhost%'");
echo "Import depuis les referer %/ecrire/% : ".sql_count($res)." <br />";
while ($row = sql_fetch($res))
univers_proposer_site(preg_replace(',/ecrire/.*$,Uims','/spip.php',$row['referer']));
@ -130,8 +130,6 @@ function univers_upgrade($nom_meta_base_version,$version_cible){
function univers_vider_tables($nom_meta_base_version) {
effacer_meta($nom_meta_base_version);
sql_drop_table("spip_websites_key");
sql_drop_table("spip_websites_plugins");
sql_drop_table("spip_websites");
}
?>

+ 0
- 2
exec/universparse.php View File

@ -31,5 +31,3 @@ function exec_universparse_dist(){
}
}
?>

+ 0
- 2
genie/univers_feed.php View File

@ -12,5 +12,3 @@ function genie_univers_feed_dist($t) {
return 0;
}
?>

+ 0
- 2
genie/univers_referers.php View File

@ -12,5 +12,3 @@ function genie_univers_referers_dist($t) {
return 0;
}
?>

+ 7
- 7
inc/univers.php View File

@ -84,14 +84,14 @@ function univers_nettoyer_urls(){
}
function univers_rechercher_referers($date){
$res = sql_select('referer','spip_referers',"date=".sql_quote($date)." AND referer LIKE '%spip.php%' AND referer NOT LIKE 'http://www.spip-contrib.net%' AND referer NOT LIKE '%localhost%'");
$res = sql_select('referer','spip_referers',"date=".sql_quote($date)." AND referer LIKE '%spip.php%' AND referer NOT LIKE 'https://contrib.spip.net%' AND referer NOT LIKE '%localhost%'");
spip_log("Import depuis les referer du $date : %spip.php% , ".sql_count($res),"universreferers");
while ($row = sql_fetch($res)) {
spip_log("Import referer : ".$row['referer'],"universreferers");
univers_proposer_site($row['referer']);
}
$res = sql_select('referer','spip_referers',"date=".sql_quote($date)." AND referer LIKE '%/ecrire/%' AND referer NOT LIKE 'http://www.spip-contrib.net%' AND referer NOT LIKE '%localhost%'");
$res = sql_select('referer','spip_referers',"date=".sql_quote($date)." AND referer LIKE '%/ecrire/%' AND referer NOT LIKE 'https://contrib.spip.net%' AND referer NOT LIKE '%localhost%'");
spip_log("Import depuis les referer du $date : %/ecrire/% , ".sql_count($res),"universreferers");
while ($row = sql_fetch($res)) {
spip_log("Import referer : ".$row['referer'],"universreferers");
@ -234,10 +234,10 @@ function univers_twitter_extraire_feed_urls($url, $enlarge=true){
$titles = extraire_balises($page,"title");
$page = preg_replace(",</?title>,ims","\n",implode($titles));
preg_match_all(",http://[^?\"'#;:\s]*,ims", $page, $regs, PREG_SET_ORDER);
preg_match_all(",https?://[^?\"'#;:\s]*,ims", $page, $regs, PREG_SET_ORDER);
$urls = array_map('reset',$regs);
foreach($urls as $k=>$url) {
if (!preg_match(",http://[^?\"'#;:]*spip[.]php3?,Uims", $url)){
if (!preg_match(",https?://[^?\"'#;:]*spip[.]php3?,Uims", $url)){
// essayer de l'elargir
if (!isset($long[$url])){
#var_dump($url);
@ -249,7 +249,7 @@ function univers_twitter_extraire_feed_urls($url, $enlarge=true){
$urls[$k] = $url = $long[$url];
}
}
if (!preg_match(",http://[^?\"'#;:]*spip[.]php3?,Uims", $url)){
if (!preg_match(",https?://[^?\"'#;:]*spip[.]php3?,Uims", $url)){
unset($urls[$k]);
}
}
@ -290,9 +290,9 @@ function univers_feed_watch($echo=false){
$explore = array(
//MORT 'twitter'=>"http://search.twitter.com/search.atom?q=spip.php",
'twitter' => 'https://blog.spip.net/?page=backend-twitter-spip',
'spipnet'=>"http://www.spip.net/?page=backend-sites-sous-spip&id_article=884",
'spipnet'=>"https://www.spip.net/?page=backend-sites-sous-spip&id_article=884",
//MORT 'googlenews'=>"http://news.google.fr/news?pz=1&cf=all&ned=fr&hl=fr&q=%22spip.php%22&cf=all&output=rss",
'delisarka'=>'http://feeds.delicious.com/v2/rss/sarkaspip?count=10',
//MORT 'delisarka'=>'http://feeds.delicious.com/v2/rss/sarkaspip?count=10',
//MORT 'identica'=>"http://identi.ca/search/notice/rss?q=spip.php",
);


+ 5
- 7
inc/univers_analyser.php View File

@ -236,11 +236,11 @@ function univers_analyser_un($row,$debug = false){
}
elseif ($res['response']===true) {
$set['ip'] = $res['ip'];
$set['server'] = $res['server']?$res['server']:'';
$set['php'] = $res['php']?$res['php']:'';
$set['gzip'] = $res['gzip']?'oui':'';
$set['length'] = $res['length']?$res['length']:0;
$set['size'] = $res['size']?$res['size']:0;
$set['server'] = !empty($res['server'])?$res['server']:'';
$set['php'] = !empty($res['php'])?$res['php']:'';
$set['gzip'] = !empty($res['gzip'])?'oui':'';
$set['length'] = !empty($res['length'])?$res['length']:0;
$set['size'] = !empty($res['size'])?$res['size']:0;
if (isset($res['spip'])){
$set['pays'] = univers_geoip($set['ip']);
@ -300,5 +300,3 @@ function univers_geoip($ip=null){
return geoip_country_code_by_addr($gi,$ip);
}
?>

+ 1
- 1
plugin.xml View File

@ -3,7 +3,7 @@
<auteur>&#169; 2010 C&eacute;dric MORIN</auteur>
<licence>GPL</licence>
<etat>test</etat>
<version>0.2.26</version>
<version>0.2.27</version>
<version_base>0.1.9</version_base>
<install>base/univers.php</install>
<description>


+ 44
- 30
stats-tout.html View File

@ -1,35 +1,57 @@
#SET{total,0}
#SET{versions,#LISTE{3.2, 3.1, 3.0, 2.2, 2.1, 2.0}}
#SET{versions_19,#LISTE{1.9.3, 1.9.2, 1.9.1, 1.9}}
#SET{versions_18,#LISTE{1.8.3, 1.8.2, 1.8.1, 1.8.0}}
#SET{versions_php,#LISTE{7.2, 7.1, 7.0, 5.6, 5.5, 5.4, 5.3, 5.2, 5.1, 5.0, 4.3}}
<B_sitesspip>
<h2>#GRAND_TOTAL sites vérifiés</h2>
<BOUCLE_todo(WEBSITES){retry=0}{statut=prop} /><em>#TOTAL_BOUCLE d&eacute;couverts
</em><//B_todo>,
<BOUCLE_pending(WEBSITES){retry>0}{statut=prop} /><em>#TOTAL_BOUCLE sans reponse</em><//B_pending>,
<BOUCLE_refuse(WEBSITES){retry=0}{statut=refuse} /><em>#TOTAL_BOUCLE refusés</em><//B_refuse>,
<BOUCLE_anciens(WEBSITES){statut=publie}{date<#REM|time|moins{2592000}|date{Y-m-d 00:00:00}} /><em>#TOTAL_BOUCLE visités il y a plus de 30 jours</em><//B_anciens>
<BOUCLE_anciens(WEBSITES){statut=publie}{date<#REM|time|moins{2592000}|affdate{Y-m-d 00:00:00}} /><em>#TOTAL_BOUCLE visités il y a plus de 30 jours</em><//B_anciens>
<h3>Versions</h3>
<table id='versions'>
<thead>
<tr><th>Version</th><th>Nombre de sites</th></tr>
</thead>
<tbody>
<BOUCLE_sitesspip(WEBSITES){statut=publie}{pagination 1}>
<BOUCLE_v32(WEBSITES){statut=publie}{spip LIKE '3.2%'} /><tr><td><a href="#URL_PAGE{stats,v=3.2}" title="voir les stats de cette version">3.2</a></td><td>#TOTAL_BOUCLE ([(#TOTAL_BOUCLE|mult{100}|div{#_sitesspip:GRAND_TOTAL}|round{1})%])</td></tr>#SET{total,#GET{total}|plus{#TOTAL_BOUCLE}}<//B_v32>
<BOUCLE_v31(WEBSITES){statut=publie}{spip LIKE '3.1%'} /><tr><td><a href="#URL_PAGE{stats,v=3.1}" title="voir les stats de cette version">3.1</a></td><td>#TOTAL_BOUCLE ([(#TOTAL_BOUCLE|mult{100}|div{#_sitesspip:GRAND_TOTAL}|round{1})%])</td></tr>#SET{total,#GET{total}|plus{#TOTAL_BOUCLE}}<//B_v31>
<BOUCLE_v30(WEBSITES){statut=publie}{spip LIKE '3.0%'} /><tr><td><a href="#URL_PAGE{stats,v=3.0}" title="voir les stats de cette version">3.0</a></td><td>#TOTAL_BOUCLE ([(#TOTAL_BOUCLE|mult{100}|div{#_sitesspip:GRAND_TOTAL}|round{1})%])</td></tr>#SET{total,#GET{total}|plus{#TOTAL_BOUCLE}}<//B_v30>
<BOUCLE_v22(WEBSITES){statut=publie}{spip LIKE '2.2%'} /><tr><td><a href="#URL_PAGE{stats,v=2.2}" title="voir les stats de cette version">2.2</a></td><td>#TOTAL_BOUCLE ([(#TOTAL_BOUCLE|mult{100}|div{#_sitesspip:GRAND_TOTAL}|round{1})%])</td></tr>#SET{total,#GET{total}|plus{#TOTAL_BOUCLE}}<//B_v22>
<BOUCLE_v21(WEBSITES){statut=publie}{spip LIKE '2.1%'} /><tr><td><a href="#URL_PAGE{stats,v=2.1}" title="voir les stats de cette version">2.1</a></td><td>#TOTAL_BOUCLE ([(#TOTAL_BOUCLE|mult{100}|div{#_sitesspip:GRAND_TOTAL}|round{1})%])</td></tr>#SET{total,#GET{total}|plus{#TOTAL_BOUCLE}}<//B_v21>
<BOUCLE_v20(WEBSITES){statut=publie}{spip LIKE '2.0%'} /><tr><td><a href="#URL_PAGE{stats,v=2.0}" title="voir les stats de cette version">2.0</a></td><td>#TOTAL_BOUCLE ([(#TOTAL_BOUCLE|mult{100}|div{#_sitesspip:GRAND_TOTAL}|round{1})%])</td></tr>#SET{total,#GET{total}|plus{#TOTAL_BOUCLE}}<//B_v20>
<BOUCLE_v193(WEBSITES){statut=publie}{spip LIKE '1.9.3%'}{doublons} /><tr><td><a href="#URL_PAGE{stats,v=1.9.3}" title="voir les stats de cette version">1.9.3dev</a></td><td>#TOTAL_BOUCLE ([(#TOTAL_BOUCLE|mult{100}|div{#_sitesspip:GRAND_TOTAL}|round{1})%])</td></tr>#SET{total,#GET{total}|plus{#TOTAL_BOUCLE}}<//B_v193>
<BOUCLE_v192(WEBSITES){statut=publie}{spip LIKE '1.9.2%'}{doublons} /><tr><td><a href="#URL_PAGE{stats,v=1.9.2}" title="voir les stats de cette version">1.9.2</a></td><td>#TOTAL_BOUCLE ([(#TOTAL_BOUCLE|mult{100}|div{#_sitesspip:GRAND_TOTAL}|round{1})%])</td></tr>#SET{total,#GET{total}|plus{#TOTAL_BOUCLE}}<//B_v192>
<BOUCLE_v191(WEBSITES){statut=publie}{spip LIKE '1.9.1%'}{doublons} /><tr><td><a href="#URL_PAGE{stats,v=1.9.1}" title="voir les stats de cette version">1.9.1</a></td><td>#TOTAL_BOUCLE ([(#TOTAL_BOUCLE|mult{100}|div{#_sitesspip:GRAND_TOTAL}|round{1})%])</td></tr>#SET{total,#GET{total}|plus{#TOTAL_BOUCLE}}<//B_v191>
<BOUCLE_v19(WEBSITES){statut=publie}{spip LIKE '1.9%'}{doublons} /><tr><td><a href="#URL_PAGE{stats,v=1.9}" title="voir les stats de cette version">1.9</a></td><td>#TOTAL_BOUCLE ([(#TOTAL_BOUCLE|mult{100}|div{#_sitesspip:GRAND_TOTAL}|round{1})%])</td></tr>#SET{total,#GET{total}|plus{#TOTAL_BOUCLE}}<//B_v19>
<BOUCLE_v183(WEBSITES){statut=publie}{spip LIKE '1.8.3%'} /><tr><td><a href="#URL_PAGE{stats,v=1.8.3}" title="voir les stats de cette version">1.8.3</a></td><td>#TOTAL_BOUCLE ([(#TOTAL_BOUCLE|mult{100}|div{#_sitesspip:GRAND_TOTAL}|round{1})%])</td></tr>#SET{total,#GET{total}|plus{#TOTAL_BOUCLE}}<//B_v183>
<BOUCLE_v182(WEBSITES){statut=publie}{spip LIKE '1.8.2%'} /><tr><td><a href="#URL_PAGE{stats,v=1.8.2}" title="voir les stats de cette version">1.8.2</a></td><td>#TOTAL_BOUCLE ([(#TOTAL_BOUCLE|mult{100}|div{#_sitesspip:GRAND_TOTAL}|round{1})%])</td></tr>#SET{total,#GET{total}|plus{#TOTAL_BOUCLE}}<//B_v182>
<BOUCLE_v181(WEBSITES){statut=publie}{spip LIKE '1.8.1%'} /><tr><td><a href="#URL_PAGE{stats,v=1.8.1}" title="voir les stats de cette version">1.8.1</a></td><td>#TOTAL_BOUCLE ([(#TOTAL_BOUCLE|mult{100}|div{#_sitesspip:GRAND_TOTAL}|round{1})%])</td></tr>#SET{total,#GET{total}|plus{#TOTAL_BOUCLE}}<//B_v181>
<BOUCLE_v180(WEBSITES){statut=publie}{spip LIKE '1.8.0%'} /><tr><td><a href="#URL_PAGE{stats,v=1.8.0}" title="voir les stats de cette version">1.8.0</a></td><td>#TOTAL_BOUCLE ([(#TOTAL_BOUCLE|mult{100}|div{#_sitesspip:GRAND_TOTAL}|round{1})%])</td></tr>#SET{total,#GET{total}|plus{#TOTAL_BOUCLE}}<//B_v180>
<BOUCLE_vold(WEBSITES){statut=publie}{spip LIKE '<1.8%'} /><tr><td><a href="#URL_PAGE{stats,v=<1.8}" title="voir les stats de cette version"><1.8</a></td><td>#TOTAL_BOUCLE ([(#TOTAL_BOUCLE|mult{100}|div{#_sitesspip:GRAND_TOTAL}|round{1})%])</td></tr><//B_vold>
<BOUCLE_vinc(WEBSITES){statut=publie}{spip='?'} /><tr><td>?</td><td>#TOTAL_BOUCLE ([(#TOTAL_BOUCLE|mult{100}|div{#_sitesspip:GRAND_TOTAL}|round{1})%])</td></tr><//B_vinc>
<BOUCLE_versions(DATA){source tableau,#GET{versions}}>
<BOUCLE_sites_version(WEBSITES){statut=publie}{spip LIKE #VALEUR|concat{%}} />
<tr>
<td><a href="#URL_PAGE{stats,v=#VALEUR}" title="Voir les stats de cette version">#VALEUR</a></td>
<td>#TOTAL_BOUCLE ([(#TOTAL_BOUCLE|mult{100}|div{#_sitesspip:GRAND_TOTAL}|round{1})%])</td>
</tr>#SET{total,#GET{total}|plus{#TOTAL_BOUCLE}}
<//B_sites_version>
</BOUCLE_versions>
<BOUCLE_versions_19(DATA){source tableau,#GET{versions_19}}>
<BOUCLE_sites_version_19(WEBSITES){statut=publie}{spip LIKE #VALEUR|concat{%}}{doublons} />
<tr>
<td><a href="#URL_PAGE{stats,v=#VALEUR}" title="Voir les stats de cette version">#VALEUR</a></td>
<td>#TOTAL_BOUCLE ([(#TOTAL_BOUCLE|mult{100}|div{#_sitesspip:GRAND_TOTAL}|round{1})%])</td>
</tr>#SET{total,#GET{total}|plus{#TOTAL_BOUCLE}}
<//B_sites_version_19>
</BOUCLE_versions_19>
<BOUCLE_versions_18(DATA){source tableau,#GET{versions_18}}>
<BOUCLE_sites_version_18(WEBSITES){statut=publie}{spip LIKE #VALEUR|concat{%}} />
<tr>
<td><a href="#URL_PAGE{stats,v=#VALEUR}" title="Voir les stats de cette version">#VALEUR</a></td>
<td>#TOTAL_BOUCLE ([(#TOTAL_BOUCLE|mult{100}|div{#_sitesspip:GRAND_TOTAL}|round{1})%])</td>
</tr>#SET{total,#GET{total}|plus{#TOTAL_BOUCLE}}
<//B_sites_version_18>
</BOUCLE_versions_18>
<BOUCLE_vold(WEBSITES){statut=publie}{spip LIKE '<1.8%'} /><tr><td><a href="#URL_PAGE{stats,v=<1.8}" title="voir les stats de cette version"><1.8</a></td><td>#TOTAL_BOUCLE ([(#TOTAL_BOUCLE|mult{100}|div{#_sitesspip:GRAND_TOTAL}|round{1})%])</td></tr><//B_vold>
<BOUCLE_vinc(WEBSITES){statut=publie}{spip='?'} /><tr><td>?</td><td>#TOTAL_BOUCLE ([(#TOTAL_BOUCLE|mult{100}|div{#_sitesspip:GRAND_TOTAL}|round{1})%])</td></tr><//B_vinc>
</BOUCLE_sitesspip>
</tbody>
</table>
@ -101,18 +123,10 @@
<tr><th>PHP</th><th>Nombre de sites</th></tr>
</thead>
<tbody>
<BOUCLE_v40(WEBSITES){statut=publie}{php LIKE '4.0%'} />[(#TOTAL_BOUCLE|>{0}|oui) <tr><td>4.0</td><td>#TOTAL_BOUCLE ([(#TOTAL_BOUCLE|mult{100}|div{#GET{total}}|round{1})%])</td></tr>]<//B_v40>
<BOUCLE_v41(WEBSITES){statut=publie}{php LIKE '4.1%'} />[(#TOTAL_BOUCLE|>{0}|oui) <tr><td>4.1</td><td>#TOTAL_BOUCLE ([(#TOTAL_BOUCLE|mult{100}|div{#GET{total}}|round{1})%])</td></tr>]<//B_v41>
<BOUCLE_v42(WEBSITES){statut=publie}{php LIKE '4.2%'} />[(#TOTAL_BOUCLE|>{0}|oui) <tr><td>4.2</td><td>#TOTAL_BOUCLE ([(#TOTAL_BOUCLE|mult{100}|div{#GET{total}}|round{1})%])</td></tr>]<//B_v42>
<BOUCLE_v43(WEBSITES){statut=publie}{php LIKE '4.3%'} />[(#TOTAL_BOUCLE|>{0}|oui) <tr><td>4.3</td><td>#TOTAL_BOUCLE ([(#TOTAL_BOUCLE|mult{100}|div{#GET{total}}|round{1})%])</td></tr>]<//B_v43>
<BOUCLE_v50(WEBSITES){statut=publie}{php LIKE '5.0%'} />[(#TOTAL_BOUCLE|>{0}|oui) <tr><td>5.0</td><td>#TOTAL_BOUCLE ([(#TOTAL_BOUCLE|mult{100}|div{#GET{total}}|round{1})%])</td></tr>]<//B_v50>
<BOUCLE_v51(WEBSITES){statut=publie}{php LIKE '5.1%'} />[(#TOTAL_BOUCLE|>{0}|oui) <tr><td>5.1</td><td>#TOTAL_BOUCLE ([(#TOTAL_BOUCLE|mult{100}|div{#GET{total}}|round{1})%])</td></tr>]<//B_v51>
<BOUCLE_v52(WEBSITES){statut=publie}{php LIKE '5.2%'} />[(#TOTAL_BOUCLE|>{0}|oui) <tr><td>5.2</td><td>#TOTAL_BOUCLE ([(#TOTAL_BOUCLE|mult{100}|div{#GET{total}}|round{1})%])</td></tr>]<//B_v52>
<BOUCLE_v53(WEBSITES){statut=publie}{php LIKE '5.3%'} />[(#TOTAL_BOUCLE|>{0}|oui) <tr><td>5.3</td><td>#TOTAL_BOUCLE ([(#TOTAL_BOUCLE|mult{100}|div{#GET{total}}|round{1})%])</td></tr>]<//B_v53>
<BOUCLE_v54(WEBSITES){statut=publie}{php LIKE '5.4%'} />[(#TOTAL_BOUCLE|>{0}|oui) <tr><td>5.4</td><td>#TOTAL_BOUCLE ([(#TOTAL_BOUCLE|mult{100}|div{#GET{total}}|round{1})%])</td></tr>]<//B_v54>
<BOUCLE_v55(WEBSITES){statut=publie}{php LIKE '5.5%'} />[(#TOTAL_BOUCLE|>{0}|oui) <tr><td>5.5</td><td>#TOTAL_BOUCLE ([(#TOTAL_BOUCLE|mult{100}|div{#GET{total}}|round{1})%])</td></tr>]<//B_v55>
<BOUCLE_v56(WEBSITES){statut=publie}{php LIKE '5.6%'} />[(#TOTAL_BOUCLE|>{0}|oui) <tr><td>5.6</td><td>#TOTAL_BOUCLE ([(#TOTAL_BOUCLE|mult{100}|div{#GET{total}}|round{1})%])</td></tr>]<//B_v56>
<BOUCLE_v70(WEBSITES){statut=publie}{php LIKE '7.0%'} />[(#TOTAL_BOUCLE|>{0}|oui) <tr><td>7.0</td><td>#TOTAL_BOUCLE ([(#TOTAL_BOUCLE|mult{100}|div{#GET{total}}|round{1})%])</td></tr>]<//B_v70>
<BOUCLE_v71(WEBSITES){statut=publie}{php LIKE '7.1%'} />[(#TOTAL_BOUCLE|>{0}|oui) <tr><td>7.1</td><td>#TOTAL_BOUCLE ([(#TOTAL_BOUCLE|mult{100}|div{#GET{total}}|round{1})%])</td></tr>]<//B_v71>
<BOUCLE_versions_php(DATA){source tableau,#GET{versions_php}}>
<BOUCLE_version_php(WEBSITES){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>

+ 7
- 12
stats-v.html View File

@ -1,5 +1,7 @@
#SET{total,0}
#SET{likev,#ENV{v}|concat{%}}
#SET{versions_php,#LISTE{7.2, 7.1, 7.0, 5.6, 5.5, 5.4, 5.3, 5.2, 5.1, 5.0, 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>
@ -83,17 +85,10 @@
<tr><th>PHP</th><th>Nombre de sites</th></tr>
</thead>
<tbody>
<BOUCLE_v40(WEBSITES){spip like #GET{likev}}{statut=publie}{php LIKE '4.0%'} />[(#TOTAL_BOUCLE|>{0}|oui) <tr><td>4.0</td><td>#TOTAL_BOUCLE ([(#TOTAL_BOUCLE|mult{100}|div{#GET{total}}|round{1})%])</td></tr>]<//B_v40>
<BOUCLE_v41(WEBSITES){spip like #GET{likev}}{statut=publie}{php LIKE '4.1%'} />[(#TOTAL_BOUCLE|>{0}|oui) <tr><td>4.1</td><td>#TOTAL_BOUCLE ([(#TOTAL_BOUCLE|mult{100}|div{#GET{total}}|round{1})%])</td></tr>]<//B_v41>
<BOUCLE_v42(WEBSITES){spip like #GET{likev}}{statut=publie}{php LIKE '4.2%'} />[(#TOTAL_BOUCLE|>{0}|oui) <tr><td>4.2</td><td>#TOTAL_BOUCLE ([(#TOTAL_BOUCLE|mult{100}|div{#GET{total}}|round{1})%])</td></tr>]<//B_v42>
<BOUCLE_v43(WEBSITES){spip like #GET{likev}}{statut=publie}{php LIKE '4.3%'} />[(#TOTAL_BOUCLE|>{0}|oui) <tr><td>4.3</td><td>#TOTAL_BOUCLE ([(#TOTAL_BOUCLE|mult{100}|div{#GET{total}}|round{1})%])</td></tr>]<//B_v43>
<BOUCLE_v50(WEBSITES){spip like #GET{likev}}{statut=publie}{php LIKE '5.0%'} />[(#TOTAL_BOUCLE|>{0}|oui) <tr><td>5.0</td><td>#TOTAL_BOUCLE ([(#TOTAL_BOUCLE|mult{100}|div{#GET{total}}|round{1})%])</td></tr>]<//B_v50>
<BOUCLE_v51(WEBSITES){spip like #GET{likev}}{statut=publie}{php LIKE '5.1%'} />[(#TOTAL_BOUCLE|>{0}|oui) <tr><td>5.1</td><td>#TOTAL_BOUCLE ([(#TOTAL_BOUCLE|mult{100}|div{#GET{total}}|round{1})%])</td></tr>]<//B_v51>
<BOUCLE_v52(WEBSITES){spip like #GET{likev}}{statut=publie}{php LIKE '5.2%'} />[(#TOTAL_BOUCLE|>{0}|oui) <tr><td>5.2</td><td>#TOTAL_BOUCLE ([(#TOTAL_BOUCLE|mult{100}|div{#GET{total}}|round{1})%])</td></tr>]<//B_v52>
<BOUCLE_v53(WEBSITES){spip like #GET{likev}}{statut=publie}{php LIKE '5.3%'} />[(#TOTAL_BOUCLE|>{0}|oui) <tr><td>5.3</td><td>#TOTAL_BOUCLE ([(#TOTAL_BOUCLE|mult{100}|div{#GET{total}}|round{1})%])</td></tr>]<//B_v53>
<BOUCLE_v54(WEBSITES){spip like #GET{likev}}{statut=publie}{php LIKE '5.4%'} />[(#TOTAL_BOUCLE|>{0}|oui) <tr><td>5.4</td><td>#TOTAL_BOUCLE ([(#TOTAL_BOUCLE|mult{100}|div{#GET{total}}|round{1})%])</td></tr>]<//B_v54>
<BOUCLE_v55(WEBSITES){spip like #GET{likev}}{statut=publie}{php LIKE '5.5%'} />[(#TOTAL_BOUCLE|>{0}|oui) <tr><td>5.5</td><td>#TOTAL_BOUCLE ([(#TOTAL_BOUCLE|mult{100}|div{#GET{total}}|round{1})%])</td></tr>]<//B_v55>
<BOUCLE_v56(WEBSITES){spip like #GET{likev}}{statut=publie}{php LIKE '5.6%'} />[(#TOTAL_BOUCLE|>{0}|oui) <tr><td>5.6</td><td>#TOTAL_BOUCLE ([(#TOTAL_BOUCLE|mult{100}|div{#GET{total}}|round{1})%])</td></tr>]<//B_v56>
<BOUCLE_v70(WEBSITES){spip like #GET{likev}}{statut=publie}{php LIKE '7.0%'} />[(#TOTAL_BOUCLE|>{0}|oui) <tr><td>7.0</td><td>#TOTAL_BOUCLE ([(#TOTAL_BOUCLE|mult{100}|div{#GET{total}}|round{1})%])</td></tr>]<//B_v70>
<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>

+ 1
- 1
stats.html View File

@ -13,7 +13,7 @@
<div id="content">
<div class="wrap">
<p>Cet outil indexe les sites <a href="http://www.spip.net/">SPIP</a> en continu dans les moteurs de recherche, les news et les flux de microbloging.
<p>Cet outil indexe les sites <a href="https://www.spip.net/">SPIP</a> en continu dans les moteurs de recherche, les news et les flux de microbloging.
<br />Chaque site est v&eacute;rifi&eacute; et analys&eacute; pour d&eacute;terminer
la version de SPIP et les plugins utilis&eacute;s, ainsi que la version de PHP et la localisation g&eacute;ographique du serveur.</p>


+ 1
- 1
stats_header.html View File

@ -1,6 +1,6 @@
<div id="header">
<div class="wrap">
<h1><a href="http://stats.spip.org">stats.spip.org</a></h1>
<h1><a href="https://stats.spip.net">stats.spip.net</a></h1>
<img class="logo" src="#CHEMIN{stats.png}" >
</div>
</div>

+ 0
- 2
univers_pipelines.php View File

@ -21,5 +21,3 @@ function univers_taches_generales_cron($taches_generales){
#$taches_generales['univers_check_3'] = 31;
return $taches_generales;
}
?>

Loading…
Cancel
Save