FreenetIS
 All Classes Namespaces Functions Variables Pages
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
Web_interface_Controller Class Reference
Inheritance diagram for Web_interface_Controller:
Controller

Public Member Functions

 index ()
 Index prints about message.
 redirected_ranges ()
 Prints to output all subnets which have enabled redirection.
 allowed_ip_addresses ()
 Prints all allowed IP addresses.
 unallowed_ip_addresses ($message_type=NULL)
 Prints all unallowed ip addresses, otherwise same as previous method.
 self_cancelable_ip_addresses ()
 Prints list of IP addresses which are redirected by a message that is self canceble.
 local_subnets ()
 Prints all local subnets.
 voip_callback ($user=null, $pass=null, $number=null)
 Function is used for VoIP callback.
 authorized_keys ($device_id=NULL)
 Generates authorized keys to device.
 key ($user_id=NULL)
 Prints all user's keys.
 members_qos_ceil_rate ()
 Prints members QoS's data in columns.
 ip_addresses_qos_ceil_rate ()
 Prints ip addresses of members with guaranteed speed.
 monitoring_hosts ($priority=NULL)
 Prints all IP addresses of hosts to monitored.
 monitoring_states ()
 Sets states of monitored hosts.
 qos_prometheus ()
 Configuration for Prometheus QoS utility.
- Public Member Functions inherited from Controller
 __construct ()
 Contruct of controller, creates singleton or return it.
 is_user_in_group ($aro_group_id, $aro_id)
 Checks if user is in ARO group.
 acl_check_view ($axo_section, $axo_value, $member_id=NULL, $force_own=FALSE)
 Fuction checks access rights Return true if currently logged user (stored in $_SESSION['user_id']) may view own $axo_value object in $axo_section (and in variable $member_id is his own id of member) or if currently logged user may view all $axo_value object in $axo_section else return false.
 acl_check_edit ($axo_section, $axo_value, $member_id=NULL, $force_own=FALSE)
 Fuction checks access rights Return true if currently logged user (stored in $_SESSION['user_id']) may view own $axo_value object in $axo_section (and in variable $member_id is his own id of member) or if currently logged user may edit all $axo_value object in $axo_section else return false.
 acl_check_new ($axo_section, $axo_value, $member_id=NULL, $force_own=FALSE)
 Fuction checks access rights Return true if currently logged user (stored in $_SESSION['user_id']) may view own $axo_value object in $axo_section (and in variable $member_id is his own id of member) or if currently logged user may add all $axo_value object in $axo_section else return false.
 acl_check_delete ($axo_section, $axo_value, $member_id=NULL, $force_own=FALSE)
 Fuction checks access rights Return true if currently logged user (stored in $_SESSION['user_id']) may view own $axo_value object in $axo_section (and in variable $member_id is his own id of member) or if currently logged user may delete all $axo_value object in $axo_section else return false.
 build_menu ()
 Build menu.
 url ()
 Return URL for controller and method.
 redirect ($uri=NULL, $id=NULL, $glue= '/')
 Redirects to uri according to attribute noredirect.

Public Attributes

const MEMBERS_QOS_PARENT = 1
const MEMBERS_QOS_ORDINARY = 2
const MEMBERS_QOS_ACTIVE = 3
const MEMBERS_QOS_HIGH_PRIORITY = 4
const MEMBERS_QOS_MEMBERS = 5
const MEMBERS_QOS_PRIORITY_NORMAL = 1
const MEMBERS_QOS_PRIORITY_HIGH = 0
const MEMBERS_QOS_PROTOCOL_ALL = 'all'
- Public Attributes inherited from Controller
const ICON_ERROR = 1
const ICON_GOOD = 2
const ICON_HELP = 3
const ICON_INFO = 4
const ICON_WARNING = 5
 $arr
 $settings = NULL
 $popup = 0
 $dialog = 0
 $noredirect = FALSE
 $user_has_voip = 0
 $ip_address_span = ''
 $unread_user_mails = 0
 $count_of_unclosed_logged_errors = 0
 $devices_down_count = 0
 $user_favourites_pages = NULL
 $axo_doc_access = FALSE

Protected Member Functions

 is_preprocesor_enabled ()
 Preprocesor not useful here.

Additional Inherited Members

- Static Public Member Functions inherited from Controller
static & instance ()
 Singleton instance of Controller.
static error ($message_type, $content=NULL)
 Function shows error of given message number.
static warning ($message_type, $content=NULL)
 Function shows warning of given message number.
- Protected Attributes inherited from Controller
 $member_id
 $user_id
 $member_account_id = 1
 $session

Member Function Documentation

Web_interface_Controller::allowed_ip_addresses ( )

Prints all allowed IP addresses.

These are registered IP addresses, which have no redirection set. Unknown IP addresses (not present in system) and IP addresses with a redirection set are not exported.

Author
Jiri Svitak
Web_interface_Controller::authorized_keys (   $device_id = NULL)

Generates authorized keys to device.

Author
Michal Kliment
Parameters
integer$device_id
Returns
mixed
Web_interface_Controller::ip_addresses_qos_ceil_rate ( )

Prints ip addresses of members with guaranteed speed.

Author
Michal Kliment
Returns
type
Web_interface_Controller::is_preprocesor_enabled ( )
protected

Preprocesor not useful here.

Returns
boolean

Reimplemented from Controller.

Web_interface_Controller::key (   $user_id = NULL)

Prints all user's keys.

Author
Michal Kliment
Parameters
integer$user_id
Returns
mixed
Web_interface_Controller::local_subnets ( )

Prints all local subnets.

Author
Michal Kliment
Web_interface_Controller::members_qos_ceil_rate ( )

Prints members QoS's data in columns.

Author
Michal Kliment
Returns
type
Web_interface_Controller::monitoring_hosts (   $priority = NULL)

Prints all IP addresses of hosts to monitored.

Author
Michal Kliment
Parameters
type$priority
Web_interface_Controller::monitoring_states ( )

Sets states of monitored hosts.

Author
Michal Kliment
Returns
type
Web_interface_Controller::qos_prometheus ( )

Configuration for Prometheus QoS utility.

This configuration does not includes handlind of upload values of speed, it takes just download.

Author
Ondřej Fibich
See Also
http://freecode.com/projects/prometheus-qos
Web_interface_Controller::redirected_ranges ( )

Prints to output all subnets which have enabled redirection.

Any IP address belonging to these subnet ranges can be redirected.

Author
Jiri Svitak
Web_interface_Controller::self_cancelable_ip_addresses ( )

Prints list of IP addresses which are redirected by a message that is self canceble.

Author
Michal Kliment
Web_interface_Controller::unallowed_ip_addresses (   $message_type = NULL)

Prints all unallowed ip addresses, otherwise same as previous method.

Parameters
int$message_typemessage type to filter only IP redirected with the specified type or NULL for all types
Author
Michal Kliment
Ondřej Fibich
Web_interface_Controller::voip_callback (   $user = null,
  $pass = null,
  $number = null 
)

Function is used for VoIP callback.

See Also
http://www.voip-info.org/wiki/index.php?page=Asterisk+Manager+API+Action+Originate
Parameters
integer$user
string$pass
integer$number

The documentation for this class was generated from the following file: