source: spip-zone/_plugins_/_test_/afficher_pagerank/pb_pagerank_options.php @ 21784

Last change on this file since 21784 was 21784, checked in by arno@…, 13 years ago

+ Systeme de cache "propre" (pas d'utilisation de meta), generalisable a n'importe quelle url.
+ Affichage du pagerank des referers

File size: 306 bytes
Line 
1<?php
2
3$p=explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__))));
4define('_DIR_PLUGIN_PAGERANK',(_DIR_PLUGINS.end($p))."/");
5
6
7function afficher_pagerank($url, $racine=false) {
8        include_spip("inc/calculer_pagerank");
9
10        return round(trim(pb_getpagerank($url, $racine)));
11}
12
13?>
Note: See TracBrowser for help on using the repository browser.