source: extensions/event_cats/admin/config.inc.php @ 7811

Last change on this file since 7811 was 7811, checked in by LucMorizur, 13 years ago

A little bit less dirty list styling...

File size: 3.9 KB
Line 
1<?php
2// +-----------------------------------------------------------------------+
3// | Plugin Name : Event Cats                                              |
4// | Plugin Version : 1.0                                                  |
5// | File Version : 1.0                                                    |
6// | Plugin Version author : LucMorizur                                    |
7// | Plugin description : (plugin for Piwigo, http://piwigo.org )          |
8// | This plugin allows an account to be automatically logged in ; and to  |
9// | let users duplicate the account they are logged with, to get benefits |
10// | of the groups of the previous account, immediately on their new acc.  |
11// | Ce plugin permet d'identifier automatiquement un compte ; et permet à |
12// | un utilisateur de dupliquer un compte, pour que le nouveau compte     |
13// | bénéficie immédiatement de l'affectation aux groupes de l'ancien cpte |
14// +-----------------------------------------------------------------------+
15
16// +-----------------------------------------------------------------------+
17// | Piwigo - a PHP based picture gallery                                  |
18// +-----------------------------------------------------------------------+
19// | Copyright(C) 2008-2009 Piwigo Team                  http://piwigo.org |
20// | Copyright(C) 2003-2008 PhpWebGallery Team    http://phpwebgallery.net |
21// | Copyright(C) 2002-2003 Pierrick LE GALL   http://le-gall.net/pierrick |
22// +-----------------------------------------------------------------------+
23// | This program is free software; you can redistribute it and/or modify  |
24// | it under the terms of the GNU General Public License as published by  |
25// | the Free Software Foundation                                          |
26// |                                                                       |
27// | This program is distributed in the hope that it will be useful, but   |
28// | WITHOUT ANY WARRANTY; without even the implied warranty of            |
29// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
30// | General Public License for more details.                              |
31// |                                                                       |
32// | You should have received a copy of the GNU General Public License     |
33// | along with this program; if not, write to the Free Software           |
34// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
35// | USA.                                                                  |
36// +-----------------------------------------------------------------------+
37
38// Keeps file coded in UTF-8 without BOM : é
39
40if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
41
42global $ec_conf_possible_values, $ec_conf;
43
44// +-----------------------------------------------------------------------+
45// | Global configuration management                                       |
46// +-----------------------------------------------------------------------+
47
48// Gets $lang['Register'] and $lang['Duplicate']
49load_language('common.lang');
50load_language('duplic.lang', EVNTCATS_PATH);
51
52$template->assign(
53  'ec_dup_link_conf',
54  sprintf(
55    l10n('Register replacement'),
56    '<br>',
57    $lang['Register'],
58    $lang['Duplicate']
59  )
60);
61
62$template->assign(
63  'ec_display_connect_conf',
64  sprintf(
65    l10n('Display connection'),
66    '<br>',
67    (version_compare(PHPWG_VERSION, '2.1.0', '<')) ?
68     $lang['Connection'] : $lang['Login']
69  )
70);
71
72// In case some $lang have the same index, overwrites them to have the ones
73// needed here
74load_language('plugin.lang', EVNTCATS_PATH);
75
76$template->assign('ec_ap_ok', defined('ADD_PAGES_TABLE'));
77$template->assign('add_pages', $ec_lists['add_pages']);
78
79// Sends configuration values to the template, described per key
80$ec_conf2 = array(); $i = 0;
81foreach ($ec_conf_possible_values as $k => $v)
82 { $ec_conf2[$k] = $ec_conf[$i]; $i++; }
83$template->assign('ec_conf', $ec_conf2);
84$template->assign('ec_help_banner1', l10n('ec_help_banner1_config'));
85
86?>
Note: See TracBrowser for help on using the repository browser.