source: extensions/ASearchEngine/main.inc.php @ 32052

Revision 16448, 3.3 KB checked in by grum, 8 years ago (diff)

feature:2635- compatibility with Piwigo 2.4
Update URI

  • Property svn:executable set to *
Line 
1<?php
2/*
3Plugin Name: Advanced Search Engine
4Version: 1.2.0
5Description: An advanced search engine
6Plugin URI: http://piwigo.org/ext/extension_view.php?eid=455
7Author: grum@piwigo.org
8Author URI: http://www.grum.fr
9*/
10
11/*
12--------------------------------------------------------------------------------
13  Author     : Grum
14    email    : grum@piwigo.com
15    website  : http://www.grum.fr
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|         |            |
26| 1.0.0   | 2010-10-26 | * plugin published
27|         |            |
28| 1.0.1   | 2010-10-26 | * mantis bug:1958
29|         |            |   . Not possible to configure public gallery for non
30|         |            |     french user
31|         |            |
32|         |            | * mantis bug:1959
33|         |            |   . Translation is not correct for RBuilder keys
34|         |            |
35| 1.0.2   | 2010-10-27 | * mantis bug:1963
36|         |            |   . Compatibiliy with AdvancedMenuManager
37|         |            |
38|         |            | * mantis bug:1961
39|         |            |   . Search Engine is accessible from gallery users even
40|         |            |     if not activated
41|         |            |
42| 1.0.3   | 2010-10-28 | * mantis bug:1970
43|         |            |   . optimization in css management
44|         |            |
45| 1.1.0   | 2011-04-26 | * mantis feature:2145
46|         |            |   . Compatibility with Piwigo 2.2
47|         |            |
48| 1.2.0   | 2012-05-25 | * mantis feature:2635
49|         |            |   . Compatibility with Piwigo 2.4
50|         |            |   . remove search on HD picture
51|         |            |
52|         |            |
53|         |            |
54|         |            |
55|         |            |
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
75if(!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
76
77
78define('ASE_DIR' , basename(dirname(__FILE__)));
79define('ASE_PATH' , PHPWG_PLUGINS_PATH . ASE_DIR . '/');
80
81include_once(PHPWG_PLUGINS_PATH.'GrumPluginClasses/classes/CommonPlugin.class.inc.php');
82include_once('ase_version.inc.php'); // => Don't forget to update this file !!
83
84global $prefixeTable;
85
86if(!defined('AJAX_CALL'))
87{
88  if(defined('IN_ADMIN'))
89  {
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();
94  }
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  }
104}
105
106set_plugin_data($plugin['id'], $obj);
107
108?>
Note: See TracBrowser for help on using the repository browser.