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

Last change on this file since 16008 was 16008, checked in by grum, 12 years ago

feature:2635- compatibility with Piwigo 2.4

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