1 | <?php |
---|
2 | /* |
---|
3 | Plugin Name: Advanced Search Engine |
---|
4 | Version: 1.0.0 |
---|
5 | Description: An advanced search engine |
---|
6 | Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid= |
---|
7 | Author: grum@piwigo.org |
---|
8 | Author 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 | | | | |
---|
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 | |
---|
62 | if(!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
63 | |
---|
64 | |
---|
65 | define('ASE_DIR' , basename(dirname(__FILE__))); |
---|
66 | define('ASE_PATH' , PHPWG_PLUGINS_PATH . ASE_DIR . '/'); |
---|
67 | |
---|
68 | include_once(PHPWG_PLUGINS_PATH.'GrumPluginClasses/classes/CommonPlugin.class.inc.php'); |
---|
69 | include_once('ase_version.inc.php'); // => Don't forget to update this file !! |
---|
70 | |
---|
71 | global $prefixeTable; |
---|
72 | |
---|
73 | if(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 | } |
---|
80 | else |
---|
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 | |
---|
90 | set_plugin_data($plugin['id'], $obj); |
---|
91 | |
---|
92 | ?> |
---|