Ignore:
Timestamp:
May 17, 2010, 8:36:54 PM (14 years ago)
Author:
grum
Message:

prepare release 1.0.0

File:
1 edited

Legend:

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

    r6176 r6210  
    138138          $result=$this->ajax_cstat_showStatsGetListColors($_REQUEST['orderType']);
    139139          break;
     140        case 'doPpsBench':
     141          $result=$this->ajax_cstat_ppsBench($_REQUEST['quality'], true);
     142          break;
    140143      }
    141144      GPCAjax::returnResult($result);
     
    188191      }
    189192
    190     }
    191 
     193
     194      if($_REQUEST['ajaxfct']=='doPpsBench')
     195      {
     196        if(!isset($_REQUEST['quality'])) $_REQUEST['quality']=8;
     197        if($_REQUEST['quality']>50 or $_REQUEST['quality']<1) $_REQUEST['quality']=8;
     198      }
     199    }
    192200
    193201  }
     
    309317                dirname($this->getFileLocation()).'/admin/cstat_config.tpl');
    310318
     319    $nbPictures=0;
     320    $sql="SELECT COUNT(image_id) FROM ".$this->tables['images'];
     321    $result=pwg_query($sql);
     322    if($result)
     323    {
     324      while($row=pwg_db_fetch_row($result))
     325      {
     326        $nbPictures=$row[0];
     327      }
     328    }
     329
     330
    311331    $datas=Array(
     332      'nbPictures' => $nbPictures,
     333      'pps' => $this->config['analyze_pps'],
     334      'quality' => $this->config['analyze_ppsQuality'],
     335      'qualityHighest' => 14000,
     336      'qualityHigh' => 7500,
     337      'qualityNormal' => 3500,
     338      'qualityLow' => 1200,
     339      'qualityLowest' => 600,
     340      'urlRequest' => $this->getAdminLink(),
    312341      'minPct' => $this->config['stat_minPct'],
    313       'showColors' => $this->config['display_gallery_showColors']
     342      'showColors' => $this->config['display_gallery_showColors'],
     343      'colorSize' => $this->config['display_gallery_colorSize'],
    314344    );
    315345
     
    349379      $colorTable,
    350380      Array(
    351         'quality' => 8,
    352         'numColors' => 16,
    353         'maxTime' => $this->config['analyze_maxTime'],
    354         'pps' => $this->config['analyze_pps'],
     381        'mode' => 'numAnalyzed',
     382        'numColors' => 24,
     383        'numAnalyzed' => $this->config['analyze_ppsQuality'],
    355384      )
    356385    );
Note: See TracChangeset for help on using the changeset viewer.