Changeset 61589 in spip-zone
- Timestamp:
- May 23, 2012, 2:08:23 PM (9 years ago)
- Location:
- _plugins_/spip-bible/trunk
- Files:
-
- 1 deleted
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/spip-bible/trunk/bible_administrations.php
r61579 r61589 1 1 <?php 2 function bible_install($action){3 2 4 switch($action){5 3 6 case 'install': 7 if (function_exists('ecrire_config')){ 8 4 function bible_upgrade($nom_meta_base_version,$version_cible) { 5 $maj = array(); 6 $maj['create'] = array(array('bible_conf')); 7 include_spip('base/upgrade'); 8 maj_plugin($nom_meta_base_version, $version_cible, $maj); 9 } 10 function bible_vider_tables($nom_meta_base_version) { 11 effacer_config('bible'); 12 effacer_config('bible_pp'); 13 effacer_meta($nom_meta_base_version); 14 } 15 function bible_conf(){ 16 include_spip('inc/config'); 9 17 ecrire_config('bible/numeros','oui'); 10 18 ecrire_config('bible/retour','oui'); … … 25 33 ecrire_config('bible/traduction_ru','вж'); 26 34 ecrire_config('bible/traduction_bg','bb'); 27 bible_initialise_pp(); 28 29 30 } 31 return; 32 33 case 'uninstall': 34 35 if (function_exists('effacer_config')){ 36 effacer_config('bible'); 37 effacer_config('bible_pp'); 38 } 39 40 break; 41 case 'test': 42 // spip_log('on passe icicfg','bible'); 43 if (function_exists('lire_config')){ 44 45 if (lire_config('bible')&lire_config('bible_pp')){ 46 47 return true; 48 } 49 else { 50 return false; 51 } 52 } 53 return true; 54 } 55 35 bible_initialise_pp(); 56 36 } 57 37 function bible_initialise_pp(){
Note: See TracChangeset
for help on using the changeset viewer.