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

Last change on this file since 7374 was 7196, checked in by grum, 13 years ago

Commit first files

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