Changeset 4603 for extensions/LLGBO2/maintain.inc.php
- Timestamp:
- Jan 2, 2010, 3:57:12 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/LLGBO2/maintain.inc.php
r4574 r4603 30 30 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); 31 31 function plugin_install() 32 { global $prefixeTable,$conf,$ttvalues,$plugvalues,$frvalues,$headvalues; 32 { global $prefixeTable,$conf; 33 if (!defined('LLGBO_PATH')) 34 {define('LLGBO_PATH' , PHPWG_PLUGINS_PATH . basename(dirname(__FILE__)) . '/');} 35 include(LLGBO_PATH.'defaultvalues.php'); 33 36 plugin_uninstall(); // en cas de mauvaise deinstallation anterieure 34 37 $q = ' … … 60 63 } 61 64 function plugin_activate() 62 { global $prefixeTable,$conf ,$ttvalues,$plugvalues,$frvalues,$headvalues;65 { global $prefixeTable,$conf; 63 66 /////////////////////////////////////////////////// 64 67 // Vérification de la config, si pas bon -> reinstallation 65 $plugvalues = "true,true,true,true,true,true,true,theAboutPage;theTagsPage;theCommentsPage;theIdentificationPage;theAdminPage,true,true";66 $ttvalues = "150,2,#fff,#000,#c92,#dadada";67 $frvalues = "#16195f,#ffffff,3,#040404,1,#ffffff,7,#ffffff,1,#fdfdfd,1,#fcfcfc,1,#fafafa,1,#eaeaea,1,#d3d3d3,1,#bababa,1,#9f9f9f,1,#858585,1,#777777,1,#646464,1,#575757,1,#474747,1";68 $headvalues = "true,false,false,false,false,false,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true";69 68 70 69 // 71 if ( (!isset($conf['LLGBO'])) or (substr_count($conf['LLGBO'], ',') != 9)70 if ( (!isset($conf['LLGBO'])) or (substr_count($conf['LLGBO'], ',') != 10) 72 71 or (!isset($conf['LLGBOTOOLTIP'])) or (substr_count($conf['LLGBOTOOLTIP'], ',') != 5) 73 72 or (!isset($conf['LLGBOFRAME'])) or (substr_count($conf['LLGBOFRAME'], ',') != 32)
Note: See TracChangeset
for help on using the changeset viewer.