Changeset 6210 for extensions/ColorStat/cstat_aip.class.inc.php
- Timestamp:
- May 17, 2010, 8:36:54 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/ColorStat/cstat_aip.class.inc.php
r6176 r6210 138 138 $result=$this->ajax_cstat_showStatsGetListColors($_REQUEST['orderType']); 139 139 break; 140 case 'doPpsBench': 141 $result=$this->ajax_cstat_ppsBench($_REQUEST['quality'], true); 142 break; 140 143 } 141 144 GPCAjax::returnResult($result); … … 188 191 } 189 192 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 } 192 200 193 201 } … … 309 317 dirname($this->getFileLocation()).'/admin/cstat_config.tpl'); 310 318 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 311 331 $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(), 312 341 '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'], 314 344 ); 315 345 … … 349 379 $colorTable, 350 380 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'], 355 384 ) 356 385 );
Note: See TracChangeset
for help on using the changeset viewer.