Ignore:
Timestamp:
May 7, 2010, 10:23:47 PM (14 years ago)
Author:
grum
Message:

Plugin is now in a usable state (color analysis is not yet tuned)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/ColorStat/cstat_aip_install.class.inc.php

    r5961 r6107  
    1010  See main.inc.php for release information
    1111
    12   LMT_AIP : classe to manage plugin admin pages
    13 
    1412  --------------------------------------------------------------------------- */
     13
     14  if(!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
    1515
    1616include_once('cstat_root.class.inc.php');
     
    128128    $smallColorTable=ColorStat::getColorTable($this->colorTableSize['small'][0],$this->colorTableSize['small'][1]);
    129129    $largeColorTable=ColorStat::getColorTable($this->colorTableSize['large'][0],$this->colorTableSize['large'][1]);
    130     $template->assign('smallTableColor', $this->htmlColorTable($smallColorTable, 19));
    131     $template->assign('largeTableColor', $this->htmlColorTable($largeColorTable, 10));
     130    $template->assign('smallTableColor', $this->htmlColorTable($smallColorTable, 19, '', 'color0px'));
     131    $template->assign('largeTableColor', $this->htmlColorTable($largeColorTable, 10, '', 'color0px'));
    132132
    133133    $template->assign(
     
    135135      $this->htmlColorList(
    136136        ColorStat::getFileColors(dirname($this->getFileLocation()).'/image/sample1.png', $smallColorTable, Array('quality' => 8, 'numColors' => 16)),
    137         16, 18, '', 'colorListSample'
     137        16, 18, '', 'colorListSample color0px'
    138138      )
    139139    );
     
    144144      $this->htmlColorList(
    145145        ColorStat::getFileColors(dirname($this->getFileLocation()).'/image/sample1.png', $largeColorTable, Array('quality' => 8, 'numColors' => 16)),
    146         16, 18, '', 'colorListSample'
     146        16, 18, '', 'colorListSample color0px'
    147147      )
    148148    );
     
    153153      $this->htmlColorList(
    154154        ColorStat::getFileColors(dirname($this->getFileLocation()).'/image/sample2.png', $smallColorTable, Array('quality' => 8, 'numColors' => 16)),
    155         16, 18, '', 'colorListSample'
     155        16, 18, '', 'colorListSample color0px'
    156156      )
    157157    );
     
    162162      $this->htmlColorList(
    163163        ColorStat::getFileColors(dirname($this->getFileLocation()).'/image/sample2.png', $largeColorTable, Array('quality' => 8, 'numColors' => 16)),
    164         16, 18, '', 'colorListSample'
     164        16, 18, '', 'colorListSample color0px'
    165165      )
    166166    );
     
    170170    unset($largeColorTable);
    171171
    172     $this->config['analyze.pps']=round($pps/4,0);
     172    $this->config['analyze_pps']=round($pps/4,0);
    173173    $this->saveConfig();
    174174
     
    202202  {
    203203    $this->config['newInstall']='n';
    204     $this->config['analyze.colorTable']=$tableSize;
     204    $this->config['analyze_colorTable']=$tableSize;
    205205    $this->saveConfig();
    206206
Note: See TracChangeset for help on using the changeset viewer.