Apache-PageKit

 view release on metacpan or  search on metacpan

Changes  view on Meta::CPAN

	- Fix: bug, where path relative components are not listed 
		as an edit component. (Boris Zentner, Gabriel Burca)
	- Fix: A errormessage is fixed, that report file is out of
		the root_dir even if the file is not found.
		(Boris Zentner, Gabriel Burca)
	- Add new server option cookie_postfix. To name cookies just for the
                case, that multiple pkit applications run  in the same
                apache server. (Boris Zentner, David Raimbault)
	- Fix: write the session data and destroy the db connection
		even if an error transpires (Boris Zentner)
	- Fix: defer delivery of static pages if parameters are attached to
		the URI. This allows to login/logout even with a static
		default page (Boris Zentner)
	- Fix iconv conversion: it is perfect legal to convert an empty
		string '' to another charset (Boris Zentner)
	- Add new tags <PKIT_HAVE_MESSAGES> and <PKIT_HAVE_NOT_MESSAGES>
		(Boris Zentner, Sebastian Feuerstack)
1.09
	- Fix: case where something.xml was added to the mtimes hash even
		if it does not exists (only if all your content came from
		another file via xpath document() function) this result in a 

lib/Apache/PageKit.pm  view on Meta::CPAN

	|| $model->pkit_get_default_page;
      unless ($pk->page_exists($pk->{page_id})){
	# if not_found_page is static, then return DECLINED...
	$filename = $pk->static_page_exists($pk->{page_id});
      }
    }}
    if ($filename){
      my $require_login  = $config->get_page_attr($pk->{page_id},'require_login') || 'no';
      my $protect_static = $config->get_global_attr('protect_static') || 'yes';
      if ( $require_login eq 'no' || $protect_static ne 'yes' ) {
        # return the static page only, if no parameters are attached to the uri
	# otherwise we can not login logout and so on when one the default or index
	# or whatever page is static.
	# if we have some parameters, defer the delivery of the page after the
	# auth check
        return $pk->_send_static_file($filename) unless ( () = $apr->param );
      }
      $static_file{name}    = $filename;
      $static_file{page_id} = $pk->{page_id};
    }
  }



( run in 0.652 second using v1.01-cache-2.11-cpan-e1769b4cff6 )