diff --git a/plugins/cipf_plugin/cipf_plugin.php b/plugins/cipf_plugin/cipf_plugin.php
index a217350..be7a8d3 100644
--- a/plugins/cipf_plugin/cipf_plugin.php
+++ b/plugins/cipf_plugin/cipf_plugin.php
@@ -4,7 +4,7 @@ Plugin Name: cipf_plugin
Plugin URI:
Description:
Author: hugogogo
-Version: 0.4.1
+Version: 0.4.2.1
Author URI:
*/
@@ -31,6 +31,8 @@ include_once(PLGNTLS_class::root_path() . 'utils/console_log.php');
include_once(PLGNTLS_class::root_path() . 'php/admin_menu/admin_menu.php');
include_once(PLGNTLS_class::root_path() . 'php/admin_menu/admin_menu_toggle.php');
include_once(PLGNTLS_class::root_path() . 'php/admin_menu/menu_content.php');
+include_once(PLGNTLS_class::root_path() . 'php/admin_menu/post_paypal.php');
+include_once(PLGNTLS_class::root_path() . 'php/admin_menu/post_email.php');
include_once(PLGNTLS_class::root_path() . 'php/paypal/paypal.php');
diff --git a/plugins/cipf_plugin/html/menu/cipf_menu.html b/plugins/cipf_plugin/html/menu/cipf_menu.html
index a04300d..ca05605 100644
--- a/plugins/cipf_plugin/html/menu/cipf_menu.html
+++ b/plugins/cipf_plugin/html/menu/cipf_menu.html
@@ -1,6 +1,12 @@
+
paypal credentials
+
+
+email a la creation de compte
+
+
diff --git a/plugins/cipf_plugin/php/admin_menu/menu_content.php b/plugins/cipf_plugin/php/admin_menu/menu_content.php
index 1e90033..8a3822a 100644
--- a/plugins/cipf_plugin/php/admin_menu/menu_content.php
+++ b/plugins/cipf_plugin/php/admin_menu/menu_content.php
@@ -12,13 +12,25 @@ if (!defined('ABSPATH')) {
function add_plugin_content_CIPF() {
PLGNTLS_class::debug_infos();
+
+ /*
+ * paypal
+ *
$option_paypal = PLGNTLS_class::OPTION_PAYPAL;
+ */
$admin_post_paypal = PLGNTLS_class::ADMIN_POST_PAYPAL;
$nonce_paypal = PLGNTLS_class::ADMIN_MENU_NONCE_PAYPAL;
- $paypal_inputs = PLGNTLS_class::ADMIN_MENU_PAYPAL_INPUTS;
-
$paypal_credentials = get_paypal_options_CIPF();
+ /*
+ * registration email
+ *
+ $option_email = PLGNTLS_class::OPTION_EMAIL;
+ */
+ $admin_post_email_registration = PLGNTLS_class::ADMIN_POST_EMAIL_REGISTRATION;
+ $nonce_email = PLGNTLS_class::ADMIN_MENU_NONCE_EMAIL_REGISTRATION;
+ $email_registration = get_email_registration_option_CIPF();
+
ob_start();
include(PLGNTLS_class::root_path() . '/html/menu/cipf_menu.html');
$html = ob_get_clean();
@@ -27,100 +39,13 @@ function add_plugin_content_CIPF() {
+
+
+
/*
-* use this hook 'admin_post_{$action}' to receive a form post
-* https://developer.wordpress.org/reference/hooks/admin_post_action/
-*
-* add the url to the action atrtibute of form, and the value of the action in an hidden input
-*