71 $this->CachedMultyFS =
get_package(
'cached_multy_fs' ,
'last' , __FILE__ );
72 $this->PermitAlgorithms =
get_package(
'permit::permit_algorithms' ,
'last' , __FILE__ );
73 $this->String =
get_package(
'string' ,
'last' , __FILE__ );
74 $this->UserAlgorithms =
get_package(
'user::user_algorithms' ,
'last' , __FILE__ );
75 $this->UserView =
get_package(
'user::user_view' ,
'last' , __FILE__ );
109 if( $this->UserAlgorithms->logged_in() )
111 return( $this->UserAlgorithms->get_login() );
116 catch( Exception $e )
152 $RawSettings = $Settings->get_raw_settings();
153 $Flag = array_shift( array_keys( $RawSettings ) );
155 $ShowData = ( $Flag ==
'logged_in' && $this->UserAlgorithms->logged_in() === true ) ||
156 ( $Flag ==
'guest' && $this->UserAlgorithms->logged_in() === false );
165 catch( Exception $e )
197 if( $this->UserAlgorithms->logged_in() )
199 return( $this->UserAlgorithms->get_id() );
202 return( $this->UserAccess->GuestUserId );
204 catch( Exception $e )
236 $PermitFilter =
$MacroSettings->get_setting(
'permit_filter' ,
false );
238 if( $PermitFilter !==
false )
240 $Users = $this->PermitAlgorithms->get_users_for_permit( $PermitFilter );
245 $Users = $this->PermitAlgorithms->get_users_for_permit(
'registered' );
250 catch( Exception $e )
282 $Users = $this->fetch_users( $Settings );
283 $Name = $Settings->get_setting(
'name' );
284 $Field = $Settings->get_setting(
'field' ,
'login' );
287 foreach( $Users as $i => $id )
289 $User = $this->UserAlgorithms->get_by_id( $id );
290 $Code .=
"{checkbox:name=_$Name".get_field( $User ,
'id' ).
";current_value=on}".
292 $this->CahcedMultyFS->get_template( __FILE__ ,
'user_end_line.tpl' );
297 catch( Exception $e )
329 $User = $this->UserAlgorithms->get_by_id( $Settings->get_setting(
'user_id' ) );
331 $Code = time() - strtotime(
get_field( $User ,
'registered' ) );
332 $Code = intval( $Code / ( 30 * 24 * 60 * 60 ) );
336 catch( Exception $e )
368 $User = $this->UserAlgorithms->get_by_id( $Settings->get_setting(
'user_id' ) );
372 catch( Exception $e )