63 $this->Cache =
get_package(
'cache' ,
'last' , __FILE__ );
64 $this->CachedMultyFS =
get_package(
'cached_multy_fs' ,
'last' , __FILE__ );
65 $this->PageCSS =
get_package(
'page::page_css' ,
'last' , __FILE__ );
66 $this->PageJS =
get_package(
'page::page_js' ,
'last' , __FILE__ );
67 $this->Security =
get_package(
'security' ,
'last' , __FILE__ );
68 $this->String =
get_package(
'string' ,
'last' , __FILE__ );
69 $this->Tags =
get_package(
'string::tags' ,
'last' , __FILE__ );
70 $this->TemplateManager =
get_package(
'template_manager' ,
'last' , __FILE__ );
71 $this->Trace =
get_package(
'trace' ,
'last' , __FILE__ );
101 $PageName = $this->Security->get_gp(
'page_name' ,
'command' );
102 $RedirectPage = $Options->get_setting( $PageName ,
false );
103 if( $RedirectPage ===
false )
105 $RedirectPage = $Options->get_setting(
'*' ,
false );
107 if( $RedirectPage ===
false )
111 header(
"HTTP/1.1 301 Moved Permanently" );
112 if( $RedirectPage ==
'self' )
114 header(
"Location: $PageName.html" );
118 header(
"Location: ".$this->Security->get_srv(
'REQUEST_URI' ,
'string' ) );
122 catch( Exception $e )
150 $AutoMarkup =
get_package(
'page::auto_markup' ,
'last' , __FILE__ );
152 if( $this->Security->get_gp(
'trace' ,
'integer' , 0 ) )
155 $String = str_replace(
'{trace}' , $this->Trace->compile_trace() ,
$String );
156 $String = $AutoMarkup->compile_string( $String );
159 elseif( $this->Security->get_gp(
'trace_only' ,
'integer' , 0 ) )
161 $String = $this->Trace->compile_trace();
167 catch( Exception $e )
195 if( $Options->get_setting(
'page_permit_validation' ,
false ) )
197 $Permits =
get_package(
'permit::permit_algorithms' ,
'last' , __FILE__ );
198 $PageName = $this->Security->get_g(
'page_name' ,
'command' );
200 if( $Permits->validate_permits_ex(
false ,
'user' , $PageName ,
'page' ) === false )
202 header(
'Location: ./no_permits.html' );
207 catch( Exception $e )
235 $this->TemplateName = $PageDescription[
'template' ];
236 $this->TemplateVersion = $PageDescription[
'template_version' ];
238 return( $this->TemplateManager->get_template( $this->TemplateName , $this->TemplateVersion ) );
240 catch( Exception $e )
276 $Default = $PageDescription[
'template' ] ==
'default';
277 $DefaultAdmin = $PageDescription[
'template' ] ==
'default_admin';
279 if( $Default || $DefaultAdmin )
282 $this->TemplateManager->get_default_template_name() :
283 $this->TemplateManager->get_default_admin_template_name();
286 list( $PageDescription[
'template' ] , $PageDescription[
'template_version' ] ) = $Data;
289 catch( Exception $e )