60 $this->Messages =
get_package(
'page::messages' ,
'last' , __FILE__ );
61 $this->Security =
get_package(
'security' ,
'last' , __FILE__ );
62 $this->UserAlgorithms =
get_package(
'user::user_algorithms' ,
'last' , __FILE__ );
96 $Result = $this->UserAlgorithms->user_exists( $this->Security->get_gp( $Pair[ 1 ] ,
'string' ) );
98 if( $Result ===
false )
100 $this->Messages->add_error_message(
'user_does_not_exist' );
105 catch( Exception $e )
137 $Result = $this->UserAlgorithms->user_exists( $this->Security->get_gp( $Pair[ 1 ] ,
'string' ) );
139 if( $Result !==
false )
141 $this->Messages->add_error_message(
'user_already_exists' );
146 catch( Exception $e )
178 $PageAccess =
get_package(
'page::page_access' ,
'last' , __FILE__ );
180 if( $PageAccess->get_page_description( $this->Security->get_gp( $Pair[ 1 ] ,
'string' ) ) !==
false )
187 catch( Exception $e )
219 $PageAccess =
get_package(
'page::page_access' ,
'last' , __FILE__ );
221 if( $PageAccess->get_page_description( $this->Security->get_gp( $Pair[ 1 ] ,
'string' ) ) ===
false )
228 catch( Exception $e )
261 $Captcha =
get_package(
'captcha' ,
'last' , __FILE__ );
263 $Result = $Captcha->validate_captcha(
$Security->get_p(
'captcha' ,
'command' , rand() ) , $Options );
265 if( $Result ===
false )
267 $this->Messages->add_error_message(
'captcha_error' );
272 catch( Exception $e )
300 private function validations( $Pair )
312 default:
throw(
new Exception(
'Undefined predicate '.$Pair[ 0 ] ) );
315 catch( Exception $e )
351 $ValidationScript = explode(
";" , $ValidationScript );
353 foreach( $ValidationScript as $vs )
355 $Pair = explode(
':' , $vs );
357 if( $this->validations( $Pair ) ===
false )
365 catch( Exception $e )