1 | <?php |
---|
2 | |
---|
3 | // Mise a jour automatique des depots (CRON) |
---|
4 | // - Flag de declenchement |
---|
5 | define('_SVP_CRON_ACTUALISATION_DEPOTS', true); |
---|
6 | // - Periode d'actualisation en nombre d'heures (de 1 a 24) |
---|
7 | define('_SVP_PERIODE_ACTUALISATION_DEPOTS', 6); |
---|
8 | |
---|
9 | |
---|
10 | // Définition de la boite du logo de depot pour utilisation de iconifier() |
---|
11 | $GLOBALS['logo_libelles']['id_depot'] = _T('svp:titre_boite_logo_depot'); |
---|
12 | |
---|
13 | // Type parseur XML a appliquer pour recuperer les infos du plugin |
---|
14 | // - plugin, pour utiliser plugin.xml |
---|
15 | // - paquet, pour paquet.xml |
---|
16 | define('_SVP_DTD_PLUGIN', 'plugin'); |
---|
17 | define('_SVP_DTD_PAQUET', 'paquet'); |
---|
18 | |
---|
19 | // Regexp de recherche des balises principales de archives.xml |
---|
20 | define('_SVP_REGEXP_BALISE_DEPOT', '#<depot[^>]*>(.*)</depot>#Uims'); |
---|
21 | define('_SVP_REGEXP_BALISE_ARCHIVES', '#<archives[^>]*>(.*)</archives>#Uims'); |
---|
22 | define('_SVP_REGEXP_BALISE_ARCHIVE', '#<archive[^>]*>(.*)</archive>#Uims'); |
---|
23 | define('_SVP_REGEXP_BALISE_ZIP', '#<zip[^>]*>(.*)</zip>#Uims'); |
---|
24 | define('_SVP_REGEXP_BALISE_TRADUCTIONS', '#<traductions[^>]*>(.*)</traductions>#Uims'); |
---|
25 | define('_SVP_REGEXP_BALISE_PLUGIN', '#<plugin[^>]*>(.*)</plugin>#Uims'); |
---|
26 | define('_SVP_REGEXP_BALISE_PAQUET', '#<paquet[^>]*>(.*)</paquet>#Uims'); |
---|
27 | |
---|
28 | // Liste des categories de plugin |
---|
29 | // --> A METTRE DANS SPIP !!! |
---|
30 | $GLOBALS['categories_plugin'] = array( |
---|
31 | 'auteur', |
---|
32 | 'communication', |
---|
33 | 'date', |
---|
34 | 'divers', |
---|
35 | 'edition', |
---|
36 | 'maintenance', |
---|
37 | 'multimedia', |
---|
38 | 'navigation', |
---|
39 | 'outil', |
---|
40 | 'performance', |
---|
41 | 'statistique', |
---|
42 | 'squelette', |
---|
43 | 'theme', |
---|
44 | 'aucune' |
---|
45 | ); |
---|
46 | |
---|
47 | // Version SPIP minimale quand un plugin ne le precise pas |
---|
48 | // -- Version SPIP correspondant a l'apparition des plugins |
---|
49 | define('_SVP_VERSION_SPIP_MIN', '1.9.0'); |
---|
50 | // -- Pour l'instant on ne connait pas la borne sup exacte |
---|
51 | define('_SVP_VERSION_SPIP_MAX', '3.0.99'); |
---|
52 | |
---|
53 | // Liste des branches significatives de SPIP et de leurs bornes (versions min et max) |
---|
54 | // A mettre a jour en fonction des sorties |
---|
55 | $GLOBALS['infos_branches_spip'] = array( |
---|
56 | '1.9' => array(_SVP_VERSION_SPIP_MIN,'1.9.2'), |
---|
57 | '2.0' => array('2.0.0','2.0.15'), |
---|
58 | '2.1' => array('2.1.0','2.1.10'), |
---|
59 | '3.0' => array('3.0.0',_SVP_VERSION_SPIP_MAX) |
---|
60 | ); |
---|
61 | |
---|
62 | ?> |
---|