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

Last change on this file since 7439 was 7439, checked in by grum, 14 years ago

Fix bugs bug:1961, bug:1963

  • Property svn:executable set to *
File size: 2.8 KB
Line 
1<?php
2/*
3Plugin Name: Advanced Search Engine
4Version: 1.0.2
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|         |            |
27| 1.0.0   | 2010-10-26 | * plugin published
28|         |            |
29| 1.0.1   | 2010-10-26 | * mantis bug:1958
30|         |            |   . Not possible to configure public gallery for non
31|         |            |     french user
32|         |            |
33|         |            | * mantis bug:1959
34|         |            |   . Translation is not correct for RBuilder keys
35|         |            |
36| 1.0.2   | 2010-10-27 | * mantis bug:1963
37|         |            |   . Compatibiliy with AdvancedMenuManager
38|         |            |
39|         |            | * mantis bug:1961
40|         |            |   . Search Engine is accessible from gallery users even
41|         |            |     if not activated
42|         |            |
43|         |            |
44|         |            |
45|         |            |
46
47
48:: TO DO
49
50--------------------------------------------------------------------------------
51
52:: NFO
53  ASE_root : common classe for admin and public classes
54  ASE_AIM  : classe to manage plugin integration into plugin menu
55  ASE_AIP  : classe to manage plugin admin pages
56  ASE_PIP  : classe to manage plugin public pages
57
58--------------------------------------------------------------------------------
59*/
60
61// pour faciliter le debug :o)
62 //ini_set('error_reporting', E_ALL);
63 //ini_set('display_errors', true);
64
65if(!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
66
67
68define('ASE_DIR' , basename(dirname(__FILE__)));
69define('ASE_PATH' , PHPWG_PLUGINS_PATH . ASE_DIR . '/');
70
71include_once(PHPWG_PLUGINS_PATH.'GrumPluginClasses/classes/CommonPlugin.class.inc.php');
72include_once('ase_version.inc.php'); // => Don't forget to update this file !!
73
74global $prefixeTable;
75
76if(defined('IN_ADMIN'))
77{
78  //ASE admin interface loaded and active only if in admin page
79  include_once("ase_aim.class.inc.php");
80  $obj=new ASE_AIM($prefixeTable, __FILE__);
81  $obj->initEvents();
82}
83else
84{
85  if(CommonPlugin::checkGPCRelease(ASE_GPC_NEEDED))
86  {
87    //ASE public interface loaded and active only if in public page
88    include_once("ase_pip.class.inc.php");
89    $obj=new ASE_PIP($prefixeTable, __FILE__);
90  }
91}
92
93set_plugin_data($plugin['id'], $obj);
94
95?>
Note: See TracBrowser for help on using the repository browser.