__(strtolower(substr(get_bloginfo("language"), 3, 2)), 'plugin-domain' ), ); wp_localize_script( 'lang_option', 'trad', $lang_array ); $lang_array = array( 'themoney_lang' => __(strtolower(substr(get_bloginfo("language"), 3, 2)), 'plugin-domain' ), ); wp_localize_script( 'custom_script', 'trad', $lang_array ); wp_enqueue_script( 'lang_option' ); wp_enqueue_style ( 'css_style', plugins_url( '/css/style.css', __FILE__ )); wp_enqueue_script( 'custom_script' );}function themoneytizer_register_submenu_page(){ add_submenu_page( 'options-general.php', 'The Moneytizer', 'The Moneytizer', 'manage_options', 'themoneytizer', 'themoneytizer_submenu_page' );}function themoneytizer_submenu_page() { if(!current_user_can('manage_options')) { wp_die(__('You do not have sufficient permissions to access this page.')); } include(sprintf("%s/themoneytizer-config-page.php", dirname(__FILE__)));}function themoneytizer_init_settings(){ register_setting('themoneytizer_settings_group', 'themoney_is_registered'); register_setting('themoneytizer_settings_group', 'nom_money'); register_setting('themoneytizer_settings_group', 'prenom_money'); register_setting('themoneytizer_settings_group', 'mail_money'); register_setting('themoneytizer_settings_group', 'tel_money'); register_setting('themoneytizer_settings_group', 'currency_money'); register_setting('themoneytizer_settings_group', 'password_money'); register_setting('themoneytizer_settings_group', 'adresse_money'); register_setting('themoneytizer_settings_group', 'cp_money'); register_setting('themoneytizer_settings_group', 'ville_money'); register_setting('themoneytizer_settings_group', 'country_money'); register_setting('themoneytizer_settings_group', 'type_structure_money'); register_setting('themoneytizer_settings_group', 'parrainage_money');}function themoneytizer_init_settings_two(){ register_setting('themoneytizer_settings_group_two', 'themoney_is_registered'); register_setting('themoneytizer_settings_group_two', 'url_money'); register_setting('themoneytizer_settings_group_two', 'theme_money'); register_setting('themoneytizer_settings_group_two', 'sub_theme_money'); register_setting('themoneytizer_settings_group_two', 'lang_money'); register_setting('themoneytizer_settings_group_two', 'vu_money'); register_setting('themoneytizer_settings_group_two', 'pv_money'); register_setting('themoneytizer_settings_group_two', 'newsletter_money');}function themoneytizer_init_settings_three(){ register_setting('themoneytizer_settings_group_three', 'themoney_is_registered');}function themoneytizer_init_settings_four(){ register_setting('themoneytizer_settings_group_four', 'themoney_is_registered'); register_setting('themoneytizer_settings_group_four', 'themoneytizer_setting_siteid');}function themoneytizer_init_settings_five(){ register_setting('themoneytizer_settings_group_five', 'themoney_is_registered'); register_setting('themoneytizer_settings_group_five', 'bankChoice_money');}function themoneytizer_init_settings_six(){ register_setting('themoneytizer_settings_group_six', 'themoney_is_registered'); register_setting('themoneytizer_settings_group_six', 'themoneytizer_setting_mail_connexion'); register_setting('themoneytizer_settings_group_six', 'themoneytizer_setting_password_connexion');}function themoneytizer_test_ajax_load_scripts() { wp_enqueue_script('jquery_ui', $src ='https://code.jquery.com/ui/1.11.4/jquery-ui.js',$deps = array(), $ver = false, $in_footer = false); wp_enqueue_script('jquery_validate', plugins_url( '/js/jquery.validate.min.js', __FILE__ ),$deps = array(), $ver = false, $in_footer = false); wp_enqueue_script('sweet_alert', plugins_url( '/js/sweetalert.min.js', __FILE__ ),$deps = array(), $ver = false, $in_footer = false); wp_enqueue_script( "ajax-test", plugins_url( '/js/custom-script.js', __FILE__ ), array( 'jquery' ) ); wp_localize_script( 'ajax-test', 'the_ajax_script', array( 'ajaxurl' => admin_url( 'admin-ajax.php' ) ) );}add_action('wp_print_scripts', 'themoneytizer_test_ajax_load_scripts');/*===== Registration Start =====*/function themoneytizer_check_registration_validity() { $url='https://www.themoneytizer.com/plugin/verify_account'; $response = wp_remote_post($url, array( 'method' => 'POST', 'timeout' => 45, 'redirection' => 5, 'sslverify' => false, 'httpversion' => '1.0', 'blocking' => true, 'headers' => array(), 'body' => array('mail' => get_option('mail_money'), 'url' =>$_POST['url_money']), 'cookies' => array() )); $response = wp_remote_retrieve_body($response); echo $response;}add_action('wp_ajax_check_registration_validity', 'themoneytizer_check_registration_validity');function themoneytizer_register_user_and_site() { $url='https://www.themoneytizer.com/plugin/register_user_and_site'; $response = wp_remote_post($url, array( 'method' => 'POST', 'timeout' => 45, 'redirection' => 5, 'sslverify' => false, 'httpversion' => '1.0', 'blocking' => true, 'headers' => array(), 'body' => array("lastname" =>get_option('nom_money'), "firstname" =>get_option('prenom_money'),"mail" =>get_option('mail_money'),"tel" =>get_option('tel_money'),"currency" =>get_option('currency_money'),"password" =>get_option('password_money'),"url" =>$_POST['url_money'],"theme" =>$_POST['theme_money'],"vu" =>$_POST['vu_money'],"newsletter" =>$_POST['newsletter_money'],"country"=>get_option('country_money'),"parrainage" =>get_option('parrainage_money'),"wordpress" =>"wordpress", "adresse"=>get_option('adresse_money'), "ville"=>get_option('ville_money'), "cp"=>get_option('cp_money'),"lang"=>$_POST['lang_money'], "lang_wordpress"=>get_option('WPLANG'), "type_structure"=>get_option('type_structure_money')), 'cookies' => array() )); $response = wp_remote_retrieve_body($response); echo $response;}add_action('wp_ajax_register_user_and_site', 'themoneytizer_register_user_and_site');function themoneytizer_register_site() { $url='https://www.themoneytizer.com/plugin/register_site'; $response = wp_remote_post($url, array( 'method' => 'POST', 'timeout' => 45, 'redirection' => 5, 'sslverify' => false, 'httpversion' => '1.0', 'blocking' => true, 'headers' => array(), 'body' => array("login" =>$_POST['credentials'][0], "password" =>$_POST['credentials'][1], "url" =>$_POST['url_money'],"theme" =>$_POST['theme_money'],"vu" =>$_POST['vu_money'],"country"=>$_POST['country_money']), 'cookies' => array() )); $response = wp_remote_retrieve_body($response); echo $response;}add_action('wp_ajax_register_site', 'themoneytizer_register_site');function themoneytizer_login_user() { $url='https://www.themoneytizer.com/plugin/login_user'; $response = wp_remote_post($url, array( 'method' => 'POST', 'timeout' => 45, 'redirection' => 5, 'sslverify' => false, 'httpversion' => '1.0', 'blocking' => true, 'headers' => array(), 'body' => array("login" =>$_POST['credentials'][0], "password" =>$_POST['credentials'][1]), 'cookies' => array() )); $response = wp_remote_retrieve_body($response); echo $response;}add_action('wp_ajax_login_user', 'themoneytizer_login_user');/*===== Registration End =====*//*===== Ads.txt & Cmp Start =====*/function themoneytizer_get_ads_txt_file(){ $response_ads_txt = wp_remote_get('https://www.themoneytizer.com/ads.txt'); if (is_array($response_ads_txt)) { $body = $response_ads_txt['body']; echo $body; } else { echo ''; }}add_action('wp_ajax_get_ads_txt', 'themoneytizer_get_ads_txt_file');function themoneytizer_check_ads_txt() { $url='https://www.themoneytizer.com/plugin/check_ads_txt'; $response = wp_remote_post($url, array( 'method' => 'POST', 'timeout' => 45, 'redirection' => 5, 'sslverify' => false, 'httpversion' => '1.0', 'blocking' => true, 'headers' => array(), 'body' => array("site_id" =>$_POST['siteId']), 'cookies' => array() )); $response = wp_remote_retrieve_body($response); echo $response;}add_action('wp_ajax_check_ads_txt', 'themoneytizer_check_ads_txt');function themoneytizer_check_cmp() { $url='https://www.themoneytizer.com/plugin/check_cmp'; $response = wp_remote_post($url, array( 'method' => 'POST', 'timeout' => 45, 'redirection' => 5, 'sslverify' => false, 'httpversion' => '1.0', 'blocking' => true, 'headers' => array(), 'body' => array("site_id" =>$_POST['siteId']), 'cookies' => array() )); $response = wp_remote_retrieve_body($response); echo $response;}add_action('wp_ajax_check_cmp', 'themoneytizer_check_cmp');function themoneytizer_get_cmp(){ $response_cmp = wp_remote_get('https://www.themoneytizer.com/cmp.php?lang='.$_POST['lang']); if (is_array($response_cmp)) { $body = $response_cmp['body']; echo $body; } else { echo ''; }}add_action('wp_ajax_get_cmp', 'themoneytizer_get_cmp');/*===== Ads.txt & Cmp End =====*//*===== Format Delivery Start =====*/function themoneytizer_generate_tag() { $url='https://www.themoneytizer.com/plugin/generate_tag'; $response = wp_remote_post($url, array( 'method' => 'POST', 'timeout' => 45, 'redirection' => 5, 'sslverify' => false, 'httpversion' => '1.0', 'blocking' => true, 'headers' => array(), 'body' => array('ad_id' => $_POST['adID'], 'site_id' => $_POST['siteID']), 'cookies' => array() )); $response = wp_remote_retrieve_body($response); echo $response;}add_action('wp_ajax_generate_tag', 'themoneytizer_generate_tag');function themoneytizer_put_format_on_pending() { $url='https://www.themoneytizer.com/plugin/putFormatOnPending'; $response = wp_remote_post($url, array( 'method' => 'POST', 'timeout' => 45, 'redirection' => 5, 'sslverify' => false, 'httpversion' => '1.0', 'blocking' => true, 'headers' => array(), 'body' => array('ad_id' => $_POST['adID'], 'site_id' => $_POST['siteID']), 'cookies' => array() )); $response = wp_remote_retrieve_body($response); echo $response;}add_action('wp_ajax_put_format_on_pending', 'themoneytizer_put_format_on_pending');function themoneytizer_reactivate_tag() { $url='https://www.themoneytizer.com/plugin/reactivate_tag'; $response = wp_remote_post($url, array( 'method' => 'POST', 'timeout' => 45, 'redirection' => 5, 'sslverify' => false, 'httpversion' => '1.0', 'blocking' => true, 'headers' => array(), 'body' => array("tag_id" =>$_POST['tagID']), 'cookies' => array() )); $response = wp_remote_retrieve_body($response); echo $response;}add_action('wp_ajax_reactivate_tag', 'themoneytizer_reactivate_tag');/*===== Format Delivery End =====*//*===== Profile & bank editing Start =====*/function themoneytizer_update_bank_data() { $url='https://www.themoneytizer.com/plugin/update_bank_data'; $response = wp_remote_post( $url, array( 'method' => 'POST', 'timeout' => 45, 'redirection' => 5, 'httpversion' => '1.0', 'sslverify' => false, 'blocking' => true, 'headers' => array(), 'body' => array("user_id"=>get_option('user_id_money'), "bank_name"=>$_POST["bank_name"], "bank_iban"=>$_POST["bank_iban"], "bank_bic"=>$_POST["bank_bic"], "bank_name_bank"=>$_POST["bank_name_bank"], "bank_adress_bank"=>$_POST["bank_adress_bank"], "bank_country_bank"=>$_POST["bank_country_bank"], "bank_city_bank"=>$_POST["bank_city_bank"], "bank_zip_bank"=>$_POST["bank_zip_bank"], "paypal"=>$_POST["paypal_money"]), 'cookies' => array() )); $response = wp_remote_retrieve_body($response); echo $response;}add_action('wp_ajax_update_bank_data', 'themoneytizer_update_bank_data');function themoneytizer_update_process_request() { $url='https://www.themoneytizer.com/plugin/update_personal_data'; $response = wp_remote_post( $url, array( 'method' => 'POST', 'timeout' => 45, 'redirection' => 5, 'httpversion' => '1.0', 'sslverify' => false, 'blocking' => true, 'headers' => array(), 'body' => array("user_id"=>get_option('user_id_money'), "prenom"=>$_POST["prenom"], "nom"=>$_POST["nom"], "mail"=>$_POST["mail"], "tel"=>$_POST["tel"], "adresse"=>$_POST["adresse"], "ville"=>$_POST["ville"], "cp"=>$_POST["cp"], "pays"=>$_POST["pays"], "user_type_structure" => $_POST["structure"],"user_entreprise"=>$_POST["entreprise"], "user_siren"=>$_POST["siren"], "user_tva"=>$_POST["tva"]), 'cookies' => array() )); $response = wp_remote_retrieve_body($response); echo $response;}add_action('wp_ajax_update', 'themoneytizer_update_process_request');/*===== Profile & bank editing End =====*//*===== Statistics Start =====*/function themoneytizer_get_stats_process_request() { $url='https://www.themoneytizer.com/plugin/getStats'; $response = wp_remote_post( $url, array( 'method' => 'POST', 'timeout' => 45, 'redirection' => 5, 'httpversion' => '1.0', 'sslverify' => false, 'blocking' => true, 'headers' => array(), 'body' => array("site_id"=>get_option('id_site_money'), "periode"=>$_POST["periode"], "lang"=>get_option('WPLANG'), "date_from"=>$_POST["date_from"], "date_to"=>$_POST["date_to"], "format"=>$_POST["format"], "imp_yes"=>$_POST["imp_yes"] ), 'cookies' => array() )); $response = wp_remote_retrieve_body( $response ); if ( is_wp_error( $response ) ) { $error_message = $response->get_error_message(); echo "Something went wrong: $error_message"; } else { print_r( $response ); die(); }}add_action('wp_ajax_get_stats', 'themoneytizer_get_stats_process_request');/*===== Statistics End =====*/ Centrosinistra all'attacco: "Opere e progetti bloccati. Amministrazione Roberti ferma da otto mesi" - Il Giornale del Molise
Pubblicato: mercoledì 12 Febbraio, 2020 WordPress › Errore

Si è verificato un errore critico sul tuo sito web.

Scopri di più riguardo al debug in WordPress.