68 $this->CachedMultyFS =
get_package(
'cached_multy_fs' ,
'last' , __FILE__ );
69 $this->Security =
get_package(
'security' ,
'last' , __FILE__ );
70 $this->String =
get_package(
'string' ,
'last' , __FILE__ );
101 $PageName =
$Security->get_p(
'page_record_id' ,
'command' );
103 $PageAccess =
get_package(
'page::page_access' ,
'last' , __FILE__ );
104 $PageAccess->set_package_appliance( $PageName ,
$Security->get_p(
'page_packages' ,
'unsafe_string' ) );
106 catch( Exception $e )
135 $PageName =
$Security->get_p(
'page_record_id' ,
'command' );
137 $PermitAccess =
get_package(
'permit::permit_access' ,
'last' , __FILE__ );
138 $Permitions =
$Security->get_p(
'page_permitions' ,
'unsafe_string' );
139 $PermitAccess->set_permits_for_page( $PageName , $Permitions );
141 catch( Exception $e )
169 $ContextSet =
get_package(
'gui::context_set' ,
'last' , __FILE__ );
171 $ContextSet->add_context( dirname( __FILE__ ).
'/conf/cfcxs_update_packages' );
173 $ContextSet->add_context( dirname( __FILE__ ).
'/conf/cfcxs_update_permitions' );
175 $ContextSet->execute( $Options , $this , __FILE__ );
177 catch( Exception $e )
205 $this->Output = $this->CachedMultyFS->get_template( __FILE__ ,
'permitions_form.tpl' );
207 $PermitAccess =
get_package(
'permit::permit_access' ,
'last' , __FILE__ );
208 $PageAlias = $this->Security->get_p(
'page_record_id' ,
'command' );
209 $Permitions = $PermitAccess->get_permits_for_page( $PageAlias );
210 $Permitions = implode(
',' , $Permitions );
212 $this->Output = str_replace(
'{prefix}' ,
'page' , $this->Output );
213 $this->Output = str_replace(
'{page_permitions}' , $Permitions , $this->Output );
214 $this->Output = str_replace(
'{page_alias}' , $PageAlias , $this->Output );
216 catch( Exception $e )
248 $ContextSet =
get_package(
'gui::context_set' ,
'last' , __FILE__ );
250 $ContextSet->add_context( dirname( __FILE__ ).
'/conf/cfcxs_packages_form' );
252 $ContextSet->add_context( dirname( __FILE__ ).
'/conf/cfcxs_permitions_form' );
254 $ContextSet->execute( $Options , $this , __FILE__ );
256 return( $this->Output );
258 catch( Exception $e )