<?php if ( ! defined( 'ABSPATH' ) ) exit; 
$this->custom_css();
 if(isset($_POST['submit'])) { 
		   $save = update_option('wp_file_manager_settings', $_POST);
		  if($save) {
			  echo '<script>';
			  echo 'window.location.href="?page=wp_file_manager_root&status=1"';
			  echo '</script>';
		  } else {
			  echo '<script>';
			  echo 'window.location.href="?page=wp_file_manager_root&status=2"';
			  echo '</script>';
		  }
	   }
$settings = get_option('wp_file_manager_settings');	 
?>
<div class="wrap fm_rootWrap">
<h3 class="fm_headingTitle"><?php _e('Settings - Root Directory', 'wp-file-manager');?></h3>
<?php $path = str_replace('\\','/', ABSPATH); ?>
<div class="fm_whiteBg">
<form action="" method="post">
<table class="form-table">
<tr>
<th><?php _e('Public Root Path','wp-file-manager')?></th>
<td>
<input name="public_path" type="text" id="public_path" value="<?php echo isset($settings['public_path']) && !empty($settings['public_path']) ? $settings['public_path'] : $path;?>" class="regular-text">
<p class="description mb15"><?php _e('File Manager Root Path, you can change according to your choice.','wp-file-manager')?></p>
<p>Default: <code><?php echo $path ?></code></p>
<p style="color:#F00" class="description mb15"><?php _e('Please change this carefully, Wrong path can lead file manager plugin to go down.','file-manager-advanced')?></p>
</td>
</tr>
</table>
<p class="submit"><input type="submit" name="submit" id="submit" class="button button-primary" value="Save Changes"></p>
</form>
</div>
</div>