Ignore:
Timestamp:
Jan 2, 2010, 3:57:12 PM (14 years ago)
Author:
EXFTB
Message:

LLGBO2 - Version H fix warning since version J

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/LLGBO2/maintain.inc.php

    r4574 r4603  
    3030if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
    3131function plugin_install()
    32 {  global $prefixeTable,$conf,$ttvalues,$plugvalues,$frvalues,$headvalues;
     32{  global $prefixeTable,$conf;
     33if (!defined('LLGBO_PATH'))
     34{define('LLGBO_PATH' , PHPWG_PLUGINS_PATH . basename(dirname(__FILE__)) . '/');}
     35include(LLGBO_PATH.'defaultvalues.php');
    3336  plugin_uninstall(); // en cas de mauvaise deinstallation anterieure
    3437        $q = '
     
    6063}
    6164function plugin_activate()
    62 { global $prefixeTable,$conf,$ttvalues,$plugvalues,$frvalues,$headvalues;
     65{ global $prefixeTable,$conf;
    6366 ///////////////////////////////////////////////////
    6467// 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";
    6968
    7069//
    71  if ( (!isset($conf['LLGBO'])) or (substr_count($conf['LLGBO'], ',')  != 9
     70 if ( (!isset($conf['LLGBO'])) or (substr_count($conf['LLGBO'], ',')  != 10
    7271 or  (!isset($conf['LLGBOTOOLTIP'])) or (substr_count($conf['LLGBOTOOLTIP'], ',')  != 5)
    7372 or  (!isset($conf['LLGBOFRAME'])) or (substr_count($conf['LLGBOFRAME'], ',')  != 32)
Note: See TracChangeset for help on using the changeset viewer.