Changeset 6893
- Timestamp:
- Sep 13, 2010, 8:48:17 PM (14 years ago)
- Location:
- extensions/ColorStat
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/ColorStat/cstat_rb_callback.class.inc.php
r6210 r6893 23 23 24 24 /** 25 * the getImageId returns the name of the image id attribute 26 * return String 27 */ 28 static public function getImageId() 29 { 30 return("pci.image_id"); 31 } 32 33 /** 25 34 * the getSelect function must return an attribute list separated with a comma 26 35 * … … 60 69 } 61 70 62 $colors= split(',', $param['colors']);71 $colors=explode(',', $param['colors']); 63 72 if(count($colors)>0) 64 73 { … … 66 75 { 67 76 if($returned!='') $returned.=" ".$param['mode']." "; 68 $returned.=" pci. colors LIKE '%".trim($val)."%'";77 $returned.=" pci.analyzed='y' AND pci.colors LIKE '%".trim($val)."%'"; 69 78 } 70 79 } … … 87 96 88 97 98 /** 99 * the getFilter function must return a ready to use where clause 100 * this where clause is used to filter the cache when the used tables can 101 * return more than one result 102 * 103 * the filter can be empty, can be equal to the where clause, or can be equal 104 * to a sub part of the where clause 105 * 106 */ 107 static public function getFilter($param="") 108 { 109 return(self::getWhere($param)); 110 } 89 111 90 112 /** -
extensions/ColorStat/cstat_version.inc.php
r6258 r6893 15 15 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); 16 16 17 define('CSTAT_VERSION', '1.0. 1');18 define('CSTAT_VERSION2', '01.00.0 1');17 define('CSTAT_VERSION', '1.0.2'); 18 define('CSTAT_VERSION2', '01.00.02'); 19 19 ?> -
extensions/ColorStat/main.inc.php
r6258 r6893 2 2 /* 3 3 Plugin Name: ColorStat 4 Version: 1.0. 14 Version: 1.0.2 5 5 Description: Allow to make stat on pictures colors 6 6 Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid=393 … … 29 29 | | | . Constant not defined 30 30 | | | 31 | | |32 | | | 33 | | | 34 | | | 35 | | | 31 | 1.0.2 | 2010/09/12 | * mantis bug:1796 32 | | | . Images color-search broken 33 | | | * mantis bug:1854 34 | | | . Not analyzed pictures are selected 35 | | | * update the plugin to request builder v 1.1.0 36 36 | | | 37 37 | | | -
extensions/ColorStat/maintain.inc.php
r6107 r6893 26 26 ----------------------------------------------------------------------------- */ 27 27 $gpc_installed=false; 28 $gpcNeeded="3. 1.0";28 $gpcNeeded="3.2.0"; 29 29 if(file_exists(PHPWG_PLUGINS_PATH.'GrumPluginClasses/classes/CommonPlugin.class.inc.php')) 30 30 { 31 31 include_once(PHPWG_PLUGINS_PATH.'GrumPluginClasses/classes/CommonPlugin.class.inc.php'); 32 // need GPC release greater or equal than 3. 1.033 if(CommonPlugin::checkGPCRelease(3, 1,0))32 // need GPC release greater or equal than 3.2.0 33 if(CommonPlugin::checkGPCRelease(3,2,0)) 34 34 { 35 35 include_once('cstat_install.class.inc.php');
Note: See TracChangeset
for help on using the changeset viewer.