Index: trunk/xpressme_integration_kit/wp-content/plugins/xpressme/include/xpress_upgrade.php
===================================================================
--- trunk/xpressme_integration_kit/wp-content/plugins/xpressme/include/xpress_upgrade.php	(revision 711)
+++ trunk/xpressme_integration_kit/wp-content/plugins/xpressme/include/xpress_upgrade.php	(revision 712)
@@ -10,4 +10,6 @@
 	$xpress_version = $xoops_config->module_version . $xoops_config->module_codename;
 	$lang = WPLANG;
+	
+	$automatically_enable = file_exists(ABSPATH .'wp-admin/includes/class-wp-upgrader.php');
 
 	$check_url = "http://ja.xpressme.info/version_check/index.php?version=$xpress_version&lang=$lang";
@@ -40,5 +42,9 @@
 				$download_diff .='</a>';
 			}
-			$message = 	sprintf(__('You can update to XPressME Integration Kit Ver %s</a> automatically or download the package and install it manually:', 'xpressme'), $latest_version);
+			if($automatically_enable){
+				$message = 	sprintf(__('You can update to XPressME Integration Kit Ver %s</a> automatically or download the package and install it manually:', 'xpressme'), $latest_version);
+			} else {
+				$message = 	sprintf(__('You can upgrade to version %s download the package and install it manually:', 'xpressme'),$latest_version);
+			}
 			$submit = __('Update Automatically', 'xpressme');
 			$form_action = 'admin.php?page=upgrade_page&action=do-xpress-upgrade';
@@ -65,7 +71,9 @@
 			$develop_latest_version=$latest['develop_latest_version'];
 			$develop_form_action = 'admin.php?page=upgrade_page&action=do-xpress-develop_upgrade';
-//			$develop_message =sprintf(__('You can use the development version %s download the package and install it manually:', 'xpressme'),$latest['develop_latest_version']);
-			$develop_message = 	sprintf(__('You can update to  XPressME Integration Kit development version %s automatically or download the package and install it manually:'), $develop_latest_version);
-
+			if($automatically_enable){
+				$develop_message = 	sprintf(__('You can update to  XPressME Integration Kit development version %s automatically or download the package and install it manually:'), $develop_latest_version);
+			} else {
+				$develop_message = 	sprintf(__('You can use the development version %s download the package and install it manually:', 'xpressme'),$develop_latest_version);
+			}
 			$develop_show = true;
 			$develop_package=$latest['develop_package'];
@@ -93,5 +101,7 @@
 		echo '<input name="locale" value="'. esc_attr($update->locale) .'" type="hidden"/>';
 		if ( $show_buttons ) {
-			echo '<input id="upgrade" class="button" type="submit" value="' . esc_attr($submit) . '" name="upgrade" />&nbsp;';
+			if($automatically_enable){
+				echo '<input id="upgrade" class="button" type="submit" value="' . esc_attr($submit) . '" name="upgrade" />&nbsp;';
+			}
 			echo '<a href="' . esc_url($package) . '" class="button">' . $download . '</a>&nbsp;';
 			echo $download_diff;
@@ -107,5 +117,7 @@
 			echo '<input name="version" value="'. esc_attr($update->current) .'" type="hidden"/>';
 			echo '<input name="locale" value="'. esc_attr($update->locale) .'" type="hidden"/>';
-				echo '<input id="upgrade" class="button" type="submit" value="' . esc_attr($develop_submit) . '" name="develop_upgrade" />&nbsp;';
+				if($automatically_enable){
+					echo '<input id="upgrade" class="button" type="submit" value="' . esc_attr($develop_submit) . '" name="develop_upgrade" />&nbsp;';
+				}
 				echo '<a href="' . esc_url($develop_package) . '" class="button">' . $develop_download . '</a>&nbsp;';
 				echo $develop_download_diff;
