70 $this->CachedMultyFS =
get_package(
'cached_multy_fs' ,
'last' , __FILE__ );
100 $Security =
get_package(
'security' ,
'last' , __FILE__ );
101 $PackageAlgoritms =
get_package(
'core::package_algorithms' ,
'last' , __FILE__ );
102 $MasterPackage = explode(
'#' , $Security->get_gp(
'package_selection' ,
'string' ) );
103 $PackageAlgoritms->install_package(
104 $UploadFileAccess->UploadedFilePath , $MasterPackage[ 0 ] , $MasterPackage[ 1 ]
107 catch( Exception $e )
135 $Security =
get_package(
'security' ,
'last' , __FILE__ );
136 $PackageName = $Security->get_gp(
'package_name' ,
'string' );
137 $PackageVersion = $Security->get_gp(
'package_version' ,
'string' );
140 $PackageDirectory =
_get_package_path( $PackageName , $PackageVersion , $ROOT_DIR );
144 catch( Exception $e )
172 $ContextSet =
get_package(
'gui::context_set' ,
'last' , __FILE__ );
174 $ContextSet->add_context( dirname( __FILE__ ).
'/conf/cfcx_delete_package' );
175 $ContextSet->add_context( dirname( __FILE__ ).
'/conf/cfcx_install_package' );
177 if( $ContextSet->execute( $Options , $this , __FILE__ ) )
182 catch( Exception $e )
218 $Title = $Package[
'package_name' ].
'.'.$Package[
'package_version' ];
220 $Branch .= $this->CachedMultyFS->get_template( __FILE__ ,
'package_item_start.tpl' );
222 $Branch = str_replace(
'{title}' , $Title , $Branch );
226 $Branch .= $this->CachedMultyFS->get_template( __FILE__ ,
'package_item_end.tpl' );
228 catch( Exception $e )
260 if( isset( $Packages[ 0 ] ) ==
false )
265 $Branch = $this->CachedMultyFS->get_template( __FILE__ ,
'package_branch_start.tpl' );
267 foreach( $Packages as $i => $Package )
272 return( $Branch.$this->CachedMultyFS->get_template( __FILE__ ,
'package_branch_end.tpl' ) );
274 catch( Exception $e )
302 $PackageAlgorithms =
get_package(
'core::package_algorithms' ,
'last' , __FILE__ );
303 $Packages = $PackageAlgorithms->get_packages_tree();
305 $this->Output = $this->CachedMultyFS->get_template( __FILE__ ,
'package_start.tpl' );
307 foreach( $Packages as $i => $Package )
312 $this->Output .= $this->CachedMultyFS->get_template( __FILE__ ,
'package_end.tpl' );
314 catch( Exception $e )
346 if( isset( $MetaFiles[ 0 ] ) ==
false )
351 $Branch = $this->CachedMultyFS->get_template( __FILE__ ,
'package_meta_start.tpl' );
353 foreach( $MetaFiles as $i => $File )
355 $Title = basename( $File );
357 $Branch .= $this->CachedMultyFS->get_template( __FILE__ ,
'package_meta_item.tpl' );
359 $Branch = str_replace(
'{title}' , $Title , $Branch );
362 return( $Branch.$this->CachedMultyFS->get_template( __FILE__ ,
'package_meta_end.tpl' ) );
364 catch( Exception $e )
396 if( isset( $ConfigFiles[ 0 ] ) ==
false )
401 $Branch = $this->CachedMultyFS->get_template( __FILE__ ,
'package_conf_start.tpl' );
403 foreach( $ConfigFiles as $i => $File )
405 $Title = basename( $File );
407 $Branch .= $this->CachedMultyFS->get_template( __FILE__ ,
'package_conf_item.tpl' );
409 $Branch = str_replace(
'{title}' , $Title , $Branch );
412 return( $Branch.$this->CachedMultyFS->get_template( __FILE__ ,
'package_conf_end.tpl' ) );
414 catch( Exception $e )
450 $Title = $Package[
'package_name' ].
'.'.$Package[
'package_version' ];
452 $Branch .= $this->CachedMultyFS->get_template( __FILE__ ,
'package_system_item_start.tpl' );
454 $Branch = str_replace(
'{title}' , $Title , $Branch );
462 $Branch .= $this->CachedMultyFS->get_template( __FILE__ ,
'package_system_item_end.tpl' );
464 catch( Exception $e )
496 if( isset( $Packages[ 0 ] ) ==
false )
501 $Branch = $this->CachedMultyFS->get_template( __FILE__ ,
'package_system_start.tpl' );
503 foreach( $Packages as $i => $Package )
508 return( $Branch.$this->CachedMultyFS->get_template( __FILE__ ,
'package_system_end.tpl' ) );
510 catch( Exception $e )
538 $PackageAlgorithms =
get_package(
'core::package_algorithms' ,
'last' , __FILE__ );
539 $Packages = $PackageAlgorithms->get_packages_tree();
541 $this->Output = $this->CachedMultyFS->get_template( __FILE__ ,
'system_start.tpl' );
543 foreach( $Packages as $i => $Package )
548 $this->Output .= $this->CachedMultyFS->get_template( __FILE__ ,
'system_end.tpl' );
550 catch( Exception $e )
582 $ContextSet =
get_package(
'gui::context_set' ,
'last' , __FILE__ );
584 $ContextSet->add_context( dirname( __FILE__ ).
'/conf/cfcx_show_package_tree' );
585 $ContextSet->add_context( dirname( __FILE__ ).
'/conf/cfcx_show_system_tree' );
587 if( $ContextSet->execute( $Options , $this , __FILE__ ) )
589 return( $this->Output );
592 catch( Exception $e )