From 6edd6f794d5596fbdef2fd2bb5865a47eb90ecd1 Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Sun, 25 Mar 2012 02:49:32 +0100 Subject: [PATCH] renamed --- admin/woocommerce-admin-status.php | 396 ----------------------------- 1 file changed, 396 deletions(-) delete mode 100644 admin/woocommerce-admin-status.php diff --git a/admin/woocommerce-admin-status.php b/admin/woocommerce-admin-status.php deleted file mode 100644 index c0d9ff37821..00000000000 --- a/admin/woocommerce-admin-status.php +++ /dev/null @@ -1,396 +0,0 @@ - -
-

-

- - clear_product_transients(); - - echo '

' . __('Product Transients Cleared', 'woocommerce') . '

'; - break; - case "reset_roles" : - global $wp_roles; - - // Roles - remove_role( 'customer' ); - remove_role( 'shop_manager' ); - - // Capabilities - $wp_roles->remove_cap( 'administrator', 'manage_woocommerce' ); - - $woocommerce->init_user_roles(); - - echo '

' . __('Roles successfully reset', 'woocommerce') . '

'; - break; - } - } - ?> -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - array( - 'option' => 'woocommerce_shop_page_id', - 'shortcode' => '' - ), - __('Cart Page', 'woocommerce') => array( - 'option' => 'woocommerce_cart_page_id', - 'shortcode' => '[woocommerce_cart]' - ), - __('Checkout Page', 'woocommerce') => array( - 'option' => 'woocommerce_checkout_page_id', - 'shortcode' => '[woocommerce_checkout]' - ), - __('Pay Page', 'woocommerce') => array( - 'option' => 'woocommerce_pay_page_id', - 'shortcode' => '[woocommerce_pay]' - ), - __('Thanks Page', 'woocommerce') => array( - 'option' => 'woocommerce_thanks_page_id', - 'shortcode' => '[woocommerce_thankyou]' - ), - __('My Account Page', 'woocommerce') => array( - 'option' => 'woocommerce_myaccount_page_id', - 'shortcode' => '[woocommerce_my_account]' - ), - __('Edit Address Page', 'woocommerce') => array( - 'option' => 'woocommerce_edit_address_page_id', - 'shortcode' => '[woocommerce_edit_address]' - ), - __('View Order Page', 'woocommerce') => array( - 'option' => 'woocommerce_view_order_page_id', - 'shortcode' => '[woocommerce_view_order]' - ), - __('Change Password Page', 'woocommerce') => array( - 'option' => 'woocommerce_change_password_page_id', - 'shortcode' => '[woocommerce_change_password]' - ) - ); - - $alt = 1; - - foreach ( $check_pages as $page_name => $values ) { - - if ( $alt == 1 ) echo ''; else echo ''; - - echo ''; - - $alt = $alt * -1; - } - ?> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
version; ?>
  • ' . implode( ',
  • ', $wc_plugins ) . '
  • '; - - ?>
    ' . $page_name . ''; - - $error = false; - - $page_id = get_option($values['option']); - - // Page ID check - if ( ! $page_id ) { - echo '' . __('Page not set', 'woocommerce') . ''; - $error = true; - } else { - - // Shortcode check - if ( $values['shortcode'] ) { - $page = get_post( $page_id ); - - if ( ! strstr( $page->post_content, $values['shortcode'] ) ) { - - echo '' . sprintf(__('Page does not contain the shortcode: %s', 'woocommerce'), $values['shortcode'] ) . ''; - $error = true; - - } - } - - } - - if ( ! $error ) echo '#' . $page_id . ' - ' . get_permalink( $page_id ) . ''; - - echo '
    ' . __('Yes', 'woocommerce') . ''; else echo '' . __('No', 'woocommerce') . ''; ?>
    plugin_path() . '/logs/paypal.txt', 'a' ) ) - echo '' . __('Log directory is writable.', 'woocommerce') . ''; - else - echo '' . __('Log directory (woocommerce/logs/) is not writable. Logging will not be possible.', 'woocommerce') . ''; - ?>
    ' . sprintf( __('%s does not exist - contact your host to resolve the problem.', 'woocommerce'), $save_path ). ''; - } elseif ( ! is_writeable( $save_path ) ) { - echo '' . sprintf( __('%s is not writable - contact your host to resolve the problem.', 'woocommerce'), $save_path ). ''; - } else { - echo '' . sprintf( __('%s is writable.', 'woocommerce'), $save_path ). ''; - } - ?>
    ' . __('Your server has fsockopen or Curl enabled.', 'woocommerce'). ''; - else - echo '' . __('Your server does not have fsockopen or Curl enabled - PayPal IPN and other scripts which communicate with other servers will not work. Contact your hosting provider.', 'woocommerce'). ''; ?>
    false, - 'timeout' => 30, - 'user-agent' => 'WooCommerce/'.$woocommerce->version - ); - $response = wp_remote_post( 'https://www.paypal.com/cgi-bin/webscr', $params ); - - if ( ! is_wp_error($response) && $response['response']['code'] >= 200 && $response['response']['code'] < 300 ) - echo '' . __('wp_remote_post() was successful - PayPal IPN is working.', 'woocommerce'). ''; - else - echo '' . __('wp_remote_post() failed. PayPal IPN won\'t work with your server. Contact your hosting provider. Error: ', 'woocommerce') . $response->get_error_message() . ''; - ?>
    -

    - - -

    -
    -

    - - -

    -
    - -
    - -