Changeset 3680
- Timestamp:
- Jul 26, 2009, 3:23:03 PM (15 years ago)
- Location:
- extensions/mypolls
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/mypolls/main.inc.php
r3397 r3680 2 2 /* 3 3 Plugin Name: MyPolls.2 4 Version: 2.1.0 5 Description: Plugin pour faire des sondages sur sa gallerie / Plugin to carry out surveys on its gallery 4 Version: 2.1.0 alpha-2 5 Description: Plugin pour faire des sondages sur sa gallerie / Plugin to carry out surveys on its gallery 6 6 Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid=181 7 7 Author: grum@piwigo.org … … 30 30 2.0.2 - 02/01/08 - correction template (ajax) pour être compatible avec IE7.0 31 31 - remplacement des "&" dans les URL par des "&" pour être aux normes 32 2.0.3 - 06/01/08 - correction insertions avec MySQL 5 32 2.0.3 - 06/01/08 - correction insertions avec MySQL 5 33 33 2.0.4 - 06/01/08 - correction insertions&maj 34 34 - correction pb sur affichage de mypolls_action_ok … … 42 42 + PHP5 classe 43 43 + install process can import database file (.sql) if present 44 + compatibilty with AMM 2.1.0 for ajax functions (alpha-2) 44 45 45 46 :: TO DO … … 66 67 define('MYPOLLS_PATH' , PHPWG_PLUGINS_PATH . MYPOLLS_DIR . '/'); 67 68 68 define('MYPOLLS_VERSION' , '2.1.0 '); // => ne pas oublier la version dans l'entête !!69 define('MYPOLLS_VERSION' , '2.1.0 Alpha-2'); // => ne pas oublier la version dans l'entête !! 69 70 70 71 global $prefixeTable; -
extensions/mypolls/maintain.inc.php
r3397 r3680 29 29 { 30 30 @include_once(PHPWG_PLUGINS_PATH.'grum_plugins_classes-2/main.inc.php'); 31 // need GPC release greater or equal than 2.0. 132 if(checkGPCRelease(2,0, 1))31 // need GPC release greater or equal than 2.0.3 32 if(checkGPCRelease(2,0,3)) 33 33 { 34 34 @include_once('mypolls_install.class.inc.php'); … … 39 39 function gpcMsgError(&$errors) 40 40 { 41 array_push($errors, sprintf(l10n('mypolls_gpc2_not_installed'), "2.0. 1"));41 array_push($errors, sprintf(l10n('mypolls_gpc2_not_installed'), "2.0.3")); 42 42 } 43 43 // ----------------------------------------------------------------------------- … … 49 49 50 50 51 function plugin_install($plugin_id, $plugin_version, &$errors) 51 function plugin_install($plugin_id, $plugin_version, &$errors) 52 52 { 53 53 global $prefixeTable, $gpc_installed; -
extensions/mypolls/mypolls_pip.class.inc.php
r3397 r3680 211 211 if((isset($_POST['submit_results']))&&(!$this->get_user_already_vote($poll_id, $user['user_id'], $_SERVER['REMOTE_ADDR']))) 212 212 { 213 214 213 if(!isset($_REQUEST['fmypolls_comment'])) 215 214 { $_REQUEST['fmypolls_comment']=''; } … … 467 466 if(isset($_REQUEST['ajaxfct'])) 468 467 { 469 $poll_id=$this->extract_poll_id_from_uri(); 470 //$user['language'] = $_REQUEST['lang']; 471 switch($_REQUEST['ajaxfct']) 472 { 473 case 'poll_question_blocks': 474 $result=$this->ajax_poll_question_blocks($poll_id, $_REQUEST['question'], $_REQUEST['lang']); 475 break; 476 case 'poll_comment_list': 477 $result=$this->ajax_poll_comment_list($poll_id, $_REQUEST['vpage']); 478 break; 479 } 480 $this->ajax->return_result($result); 468 if($_REQUEST['ajaxfct'] == 'poll_question_blocks' || $_REQUEST['ajaxfct'] == 'poll_comment_list') 469 { 470 switch($_REQUEST['ajaxfct']) 471 { 472 case 'poll_question_blocks': 473 $result=$this->ajax_poll_question_blocks($this->extract_poll_id_from_uri(), $_REQUEST['question'], $_REQUEST['lang']); 474 break; 475 case 'poll_comment_list': 476 $result=$this->ajax_poll_comment_list($this->extract_poll_id_from_uri(), $_REQUEST['vpage']); 477 break; 478 } 479 $this->ajax->return_result($result); 480 } 481 481 } 482 482 }
Note: See TracChangeset
for help on using the changeset viewer.