A_Fs_Access_Page

Class A_Fs_Access_Page.

Defined (1)

The class is defined in the following location(s).

/products/photocrati_nextgen/modules/nextgen_admin/package.module.nextgen_admin.php  
  1. class A_Fs_Access_Page extends Mixin 
  2. function index_action() 
  3. $router = C_Router::get_instance(); 
  4. $url = $this->param('uri') ? $router->get_url($this->param('uri')) : admin_url('/admin.php?' . $router->get_querystring()); 
  5. // Request filesystem credentials from user 
  6. $creds = request_filesystem_credentials($url, '', FALSE, ABSPATH, array()); 
  7. if (WP_Filesystem($creds)) { 
  8. global $wp_filesystem; 
  9. /** 
  10. * Determines whether the given paths are writable 
  11. * @return boolean 
  12. */ 
  13. function are_paths_writable() 
  14. $retval = TRUE; 
  15. $path = $this->object->param('path'); 
  16. if (!is_array($path)) { 
  17. $path = array($path); 
  18. foreach ($path as $p) { 
  19. if (!is_writable($p)) { 
  20. $retval = FALSE; 
  21. break; 
  22. return $retval;