PATH:
var
/
www
/
clients
/
client1
/
web1
/
web
/
wp-content
/
sitepress-multilingual-cms
/
inc
<?php wp_cache_add_global_groups( array( 'sitepress_ms' ) ); $filtered_action = filter_input( INPUT_POST, 'action', FILTER_SANITIZE_FULL_SPECIAL_CHARS, FILTER_NULL_ON_FAILURE ); $filtered_action = $filtered_action ? $filtered_action : filter_input( INPUT_GET, 'action', FILTER_SANITIZE_FULL_SPECIAL_CHARS, FILTER_NULL_ON_FAILURE ); if ( 0 === strcmp( $filtered_action, 'resetwpml' ) ) { include_once WPML_PLUGIN_PATH . '/inc/functions-troubleshooting.php'; } add_action( 'network_admin_menu', 'icl_network_administration_menu' ); add_action( 'wpmuadminedit', 'icl_wpmuadminedit' ); function icl_wpmuadminedit() { if ( ! isset( $_REQUEST['action'] ) ) { return; } $filtered_action = filter_input( INPUT_POST, 'action', FILTER_SANITIZE_FULL_SPECIAL_CHARS, FILTER_NULL_ON_FAILURE ); $filtered_action = $filtered_action ? $filtered_action : filter_input( INPUT_GET, 'action', FILTER_SANITIZE_FULL_SPECIAL_CHARS, FILTER_NULL_ON_FAILURE ); switch ( $filtered_action ) { case 'resetwpml': icl_network_reset_wpml(); break; case 'deactivatewpml': icl_network_deactivate_wpml(); break; case 'activatewpml': icl_network_activate_wpml(); break; } } function icl_network_administration_menu() { add_menu_page( __( 'WPML', 'sitepress' ), __( 'WPML', 'sitepress' ), 'manage_sitess', WPML_PLUGIN_FOLDER . '/menu/network.php', null, ICL_PLUGIN_URL . '/res/img/icon16.png' ); add_submenu_page( WPML_PLUGIN_FOLDER . '/menu/network.php', __( 'Network settings', 'sitepress' ), __( 'Network settings', 'sitepress' ), 'manage_sites', WPML_PLUGIN_FOLDER . '/menu/network.php' ); } function icl_network_reset_wpml() { icl_reset_wpml(); wp_redirect( network_admin_url( 'admin.php?page=' . WPML_PLUGIN_FOLDER . '/menu/network.php&updated=true&action=resetwpml' ) ); } function icl_network_deactivate_wpml( $blog_id = false ) { global $wpdb; $filtered_action = filter_input( INPUT_POST, 'action', FILTER_SANITIZE_FULL_SPECIAL_CHARS, FILTER_NULL_ON_FAILURE ); $filtered_action = $filtered_action ? $filtered_action : filter_input( INPUT_GET, 'action', FILTER_SANITIZE_FULL_SPECIAL_CHARS, FILTER_NULL_ON_FAILURE ); if ( 0 === strcmp( $filtered_action, 'deactivatewpml' ) ) { if ( empty( $_REQUEST['_wpnonce'] ) || ! wp_verify_nonce( $_REQUEST['_wpnonce'], 'deactivatewpml' ) ) { return; } } if ( empty( $blog_id ) ) { $filtered_id = filter_input( INPUT_POST, 'id', FILTER_SANITIZE_FULL_SPECIAL_CHARS, FILTER_NULL_ON_FAILURE ); $filtered_id = $filtered_id ? $filtered_id : filter_input( INPUT_GET, 'id', FILTER_SANITIZE_FULL_SPECIAL_CHARS, FILTER_NULL_ON_FAILURE ); $blog_id = $filtered_id !== false ? $filtered_id : $wpdb->blogid; } if ( $blog_id ) { switch_to_blog( $blog_id ); update_option( '_wpml_inactive', true ); restore_current_blog(); } wp_redirect( network_admin_url( 'admin.php?page=' . WPML_PLUGIN_FOLDER . '/menu/network.php&updated=true&action=deactivatewpml' ) ); } function icl_network_activate_wpml( $blog_id = false ) { global $wpdb; $filtered_action = filter_input( INPUT_POST, 'action', FILTER_SANITIZE_FULL_SPECIAL_CHARS, FILTER_NULL_ON_FAILURE ); $filtered_action = $filtered_action ? $filtered_action : filter_input( INPUT_GET, 'action', FILTER_SANITIZE_FULL_SPECIAL_CHARS, FILTER_NULL_ON_FAILURE ); if ( 0 === strcmp( $filtered_action, 'activatewpml' ) ) { if ( empty( $_REQUEST['_wpnonce'] ) || ! wp_verify_nonce( $_REQUEST['_wpnonce'], 'activatewpml' ) ) { return; } } if ( empty( $blog_id ) ) { $filtered_id = filter_input( INPUT_POST, 'id', FILTER_SANITIZE_FULL_SPECIAL_CHARS, FILTER_NULL_ON_FAILURE ); $filtered_id = $filtered_id ? $filtered_id : filter_input( INPUT_GET, 'id', FILTER_SANITIZE_FULL_SPECIAL_CHARS, FILTER_NULL_ON_FAILURE ); $blog_id = $filtered_id !== false ? $filtered_id : $wpdb->blogid; } if ( $blog_id ) { switch_to_blog( $blog_id ); delete_option( '_wpml_inactive' ); restore_current_blog(); } wp_redirect( network_admin_url( 'admin.php?page=' . WPML_PLUGIN_FOLDER . '/menu/network.php&updated=true&action=activatewpml' ) ); exit(); }
[-] constants.php
[edit]
[-] functions-helpers.php
[edit]
[-] functions-load.php
[edit]
[-] plugins-integration.php
[edit]
[-] functions-sanitation.php
[edit]
[-] lang-data.php
[edit]
[-] template-functions.php
[edit]
[-] import-xml.php
[edit]
[+]
utilities
[+]
absolute-links
[-] ajax.php
[edit]
[-] wpml-post-edit-ajax.class.php
[edit]
[-] functions-troubleshooting.php
[edit]
[-] hacks.php
[edit]
[-] functions-network.php
[edit]
[-] functions-security.php
[edit]
[-] cache.php
[edit]
[+]
tools
[-] wpml-private-actions.php
[edit]
[-] functions.php
[edit]
[+]
translation-jobs
[+]
hacks
[+]
wpml-config
[-] wpml-api.php
[edit]
[+]
local-translation
[-] wpml-private-filters.php
[edit]
[+]
translation-proxy
[-] wpml-private-actions-tm.php
[edit]
[+]
taxonomy-term-translation
[+]
setup
[-] wpml_zip.php
[edit]
[-] language-switcher.php
[edit]
[-] wpml-post-comments.class.php
[edit]
[+]
url-handling
[-] functions-load-tm.php
[edit]
[-] plugin-integration-nextgen.php
[edit]
[-] js-scripts.php
[edit]
[+]
query-filtering
[-] constants-tm.php
[edit]
[+]
translation-management
[-] js-tm-scripts.php
[edit]
[-] upgrade.php
[edit]
[+]
upgrade-functions
[+]
..
[-] icl-admin-notifier.php
[edit]
[-] not-compatible-plugins.php
[edit]
[-] deprecated-hooks.php
[edit]
[+]
actions
[-] functions-debug-information.php
[edit]
[+]
core
[+]
wp-nav-menus
[+]
post-translation
[-] wpml_load_request_handler.php
[edit]