[7196] | 1 | <?php |
---|
| 2 | /* |
---|
| 3 | Plugin Name: Advanced Search Engine |
---|
[15360] | 4 | Version: 1.2.0 |
---|
[7196] | 5 | Description: An advanced search engine |
---|
[16448] | 6 | Plugin URI: http://piwigo.org/ext/extension_view.php?eid=455 |
---|
[7196] | 7 | Author: grum@piwigo.org |
---|
[16448] | 8 | Author URI: http://www.grum.fr |
---|
[7196] | 9 | */ |
---|
| 10 | |
---|
| 11 | /* |
---|
| 12 | -------------------------------------------------------------------------------- |
---|
| 13 | Author : Grum |
---|
| 14 | email : grum@piwigo.com |
---|
[16448] | 15 | website : http://www.grum.fr |
---|
[7196] | 16 | |
---|
| 17 | << May the Little SpaceFrog be with you ! >> |
---|
| 18 | -------------------------------------------------------------------------------- |
---|
| 19 | |
---|
| 20 | :: HISTORY |
---|
| 21 | |
---|
| 22 | | release | date | |
---|
| 23 | | 0.1.0 | 2010-10-14 | * first lines of code |
---|
| 24 | | | | . release not published |
---|
| 25 | | | | |
---|
[7405] | 26 | | 1.0.0 | 2010-10-26 | * plugin published |
---|
[7196] | 27 | | | | |
---|
[7407] | 28 | | 1.0.1 | 2010-10-26 | * mantis bug:1958 |
---|
| 29 | | | | . Not possible to configure public gallery for non |
---|
| 30 | | | | french user |
---|
[7196] | 31 | | | | |
---|
[7407] | 32 | | | | * mantis bug:1959 |
---|
| 33 | | | | . Translation is not correct for RBuilder keys |
---|
[7196] | 34 | | | | |
---|
[7439] | 35 | | 1.0.2 | 2010-10-27 | * mantis bug:1963 |
---|
| 36 | | | | . Compatibiliy with AdvancedMenuManager |
---|
[7196] | 37 | | | | |
---|
[7439] | 38 | | | | * mantis bug:1961 |
---|
| 39 | | | | . Search Engine is accessible from gallery users even |
---|
| 40 | | | | if not activated |
---|
[7196] | 41 | | | | |
---|
[7450] | 42 | | 1.0.3 | 2010-10-28 | * mantis bug:1970 |
---|
| 43 | | | | . optimization in css management |
---|
[7196] | 44 | | | | |
---|
[15360] | 45 | | 1.1.0 | 2011-04-26 | * mantis feature:2145 |
---|
[10886] | 46 | | | | . Compatibility with Piwigo 2.2 |
---|
[7196] | 47 | | | | |
---|
[15360] | 48 | | 1.2.0 | 2012-05-25 | * mantis feature:2635 |
---|
| 49 | | | | . Compatibility with Piwigo 2.4 |
---|
| 50 | | | | . remove search on HD picture |
---|
[7196] | 51 | | | | |
---|
[7450] | 52 | | | | |
---|
| 53 | | | | |
---|
| 54 | | | | |
---|
| 55 | | | | |
---|
[7196] | 56 | |
---|
| 57 | |
---|
| 58 | :: TO DO |
---|
| 59 | |
---|
| 60 | -------------------------------------------------------------------------------- |
---|
| 61 | |
---|
| 62 | :: NFO |
---|
| 63 | ASE_root : common classe for admin and public classes |
---|
| 64 | ASE_AIM : classe to manage plugin integration into plugin menu |
---|
| 65 | ASE_AIP : classe to manage plugin admin pages |
---|
| 66 | ASE_PIP : classe to manage plugin public pages |
---|
| 67 | |
---|
| 68 | -------------------------------------------------------------------------------- |
---|
| 69 | */ |
---|
| 70 | |
---|
| 71 | // pour faciliter le debug :o) |
---|
| 72 | //ini_set('error_reporting', E_ALL); |
---|
| 73 | //ini_set('display_errors', true); |
---|
| 74 | |
---|
| 75 | if(!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
| 76 | |
---|
| 77 | |
---|
| 78 | define('ASE_DIR' , basename(dirname(__FILE__))); |
---|
| 79 | define('ASE_PATH' , PHPWG_PLUGINS_PATH . ASE_DIR . '/'); |
---|
| 80 | |
---|
| 81 | include_once(PHPWG_PLUGINS_PATH.'GrumPluginClasses/classes/CommonPlugin.class.inc.php'); |
---|
| 82 | include_once('ase_version.inc.php'); // => Don't forget to update this file !! |
---|
| 83 | |
---|
| 84 | global $prefixeTable; |
---|
| 85 | |
---|
[16008] | 86 | if(!defined('AJAX_CALL')) |
---|
[7196] | 87 | { |
---|
[16008] | 88 | if(defined('IN_ADMIN')) |
---|
[7196] | 89 | { |
---|
[16008] | 90 | //ASE admin interface loaded and active only if in admin page |
---|
| 91 | include_once("ase_aim.class.inc.php"); |
---|
| 92 | $obj=new ASE_AIM($prefixeTable, __FILE__); |
---|
| 93 | $obj->initEvents(); |
---|
[7196] | 94 | } |
---|
[16008] | 95 | else |
---|
| 96 | { |
---|
| 97 | if(CommonPlugin::checkGPCRelease(ASE_GPC_NEEDED) and !mobile_theme()) |
---|
| 98 | { |
---|
| 99 | //ASE public interface loaded and active only if in public page |
---|
| 100 | include_once("ase_pip.class.inc.php"); |
---|
| 101 | $obj=new ASE_PIP($prefixeTable, __FILE__); |
---|
| 102 | } |
---|
| 103 | } |
---|
[7196] | 104 | } |
---|
| 105 | |
---|
| 106 | set_plugin_data($plugin['id'], $obj); |
---|
| 107 | |
---|
| 108 | ?> |
---|