source: extensions/GrumPluginClasses/admin/plugin_admin.php @ 6619

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

Update plugin with some new functions

File size: 1.2 KB
Line 
1<?php
2/* -----------------------------------------------------------------------------
3  Plugin     : Grum Plugin Class
4  Author     : Grum
5    email    : grum@piwigo.org
6    website  : http://photos.grum.fr
7    PWG user : http://forum.phpwebgallery.net/profile.php?id=3706
8
9    << May the Little SpaceFrog be with you ! >>
10  ------------------------------------------------------------------------------
11  See main.inc.php for release information
12
13  --------------------------------------------------------------------------- */
14
15if (!defined('PHPWG_ROOT_PATH')) { die('Hacking attempt!'); }
16
17
18global $prefixeTable;
19
20load_language('plugin.lang', GPC_PATH);
21
22
23if(isset($_REQUEST['searchRequest']))
24{
25  load_language('requestBuilder.lang', GPC_PATH);
26  // if set, this is probably an ajax search request
27  include_once(GPC_PATH."classes/GPCRequestBuilder.class.inc.php");
28  GPCRequestBuilder::init($prefixeTable, 'gpc');
29  GPCRequestBuilder::executeRequest();
30}
31else
32{
33  include(GPC_PATH."gpc_aip.class.inc.php");
34
35  $main_plugin_object = get_plugin_data($plugin_id);
36
37  $plugin_ai = new GPC_AIP($prefixeTable, $main_plugin_object->getFileLocation());
38  $plugin_ai->manage();
39}
40
41
42
43?>
Note: See TracBrowser for help on using the repository browser.