source: extensions/mypolls/main.inc.php @ 12153

Last change on this file since 12153 was 3680, checked in by grum, 15 years ago

Update MyPolls to 2.1.0 alpha-2
Minor changes (ajax management is modified to be compatible with AMM 2.1.0)

  • Property svn:executable set to *
File size: 3.6 KB
Line 
1<?php
2/*
3Plugin Name: MyPolls.2
4Version: 2.1.0 alpha-2
5Description: Plugin pour faire des sondages sur sa gallerie / Plugin to carry out surveys on its gallery
6Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid=181
7Author: grum@piwigo.org
8Author URI: http://photos.grum.dnsaliascom/
9*/
10
11/*
12--------------------------------------------------------------------------------
13  Author     : Grum
14    email    : grum@piwigo.com
15    website  : http://photos.grum.dnsalias.com
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:: HISTORY
23  2.0.0-beta  - 04/11/07  +refonte complète du plugin
24  2.0.1-beta  - 10/11/07  +conservation & récupération des sondages de la version 1.x
25                          -correction de messages d'erreurs js
26                          -couleur du graphique d'un sondage correspond à la couleur affectée
27                          -bloque l'activation d'un sondage si une traduction n'est faite qu'en partie
28                          -procédure d'export (fichier SQL) automatique lors de la désinstallation
29                          -usage du plugin GRUM_PLUGIN_CORE
30  2.0.2       - 02/01/08  - correction template (ajax) pour être compatible avec IE7.0
31                          - remplacement des "&" dans les URL par des "&amp;" pour être aux normes
32  2.0.3       - 06/01/08  - correction insertions avec MySQL 5
33  2.0.4       - 06/01/08  - correction insertions&maj
34                          - correction pb sur affichage de mypolls_action_ok
35  2.0.5       - 25/05/08  - adaption du plugin suite à modification de la gestion
36                            de google translator (cf. grum_plugin_classes v1.2.0)
37  2.0.6       - 01/06/08  - correction pour compatibilité avec le plugin manager
38                            http://forum.phpwebgallery.net/viewtopic.php?pid=89458#p89458
39  2.0.7       - 01/06/08  - correction du bug 'lang'
40                            http://forum.phpwebgallery.net/viewtopic.php?pid=89560#p89560
41  2.1.0       - 06/11/08  - release for piwigo 2.0
42                          + PHP5 classe
43                          + install process can import database file (.sql) if present
44                          + compatibilty with AMM 2.1.0 for ajax functions (alpha-2)
45
46:: TO DO
47
48--------------------------------------------------------------------------------
49
50:: NFO
51  MyPolls_root : common classe for admin and public classes
52  MyPolls_AIM  : classe to manage plugin integration into plugin menu
53  MyPolls_AIP  : classe to manage plugin admin pages
54  MyPolls_PIP  : classe to manage plugin public pages
55
56--------------------------------------------------------------------------------
57*/
58
59// pour faciliter le debug :o)
60// ini_set('error_reporting', E_ALL);
61// ini_set('display_errors', true);
62
63if(!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
64
65
66define('MYPOLLS_DIR' , basename(dirname(__FILE__)));
67define('MYPOLLS_PATH' , PHPWG_PLUGINS_PATH . MYPOLLS_DIR . '/');
68
69define('MYPOLLS_VERSION' , '2.1.0 Alpha-2'); // => ne pas oublier la version dans l'entête !!
70
71global $prefixeTable;
72
73
74if(defined('IN_ADMIN'))
75{
76  //MyPolls admin interface loaded and active only if in admin page
77  include_once("mypolls_aim.class.inc.php");
78  $obj=new MyPolls_AIM($prefixeTable, __FILE__);
79  $obj->init_events();
80}
81else
82{
83  //MyPolls public interface loaded and active only if in public page
84  include_once("mypolls_pip.class.inc.php");
85  $obj=new MyPolls_PIP($prefixeTable, __FILE__);
86}
87
88set_plugin_data($plugin['id'], $obj);
89
90?>
Note: See TracBrowser for help on using the repository browser.