. * * Version 0.1 * Author: Octavio Benedi Sanchez */ function generate_interface() { global $url_plugin; global $base_plugin; global $section; global $plugin; $list='
JOIN NETWORKS
'; $list.='
'; $list.=generate_rules_maker(); $list.='
'; $list.=load_rules(); $list.='
'; return $list; } function load_rules() { global $url_plugin; global $base_plugin; global $section; global $plugin; include_once $base_plugin.'php/load_rule.php'; $output='

Joined networks

'; $conf_file=$base_plugin.'data/join.conf'; $rules=file($conf_file); $rule_number='0'; foreach($rules as $rule) { $join_array=explode('|',trim($rule)); $output.=load_rule($join_array,$rule_number); $rule_number++; } return $output; } function generate_rules_maker() { global $url_plugin; global $base_plugin; global $section; global $plugin; $output='
'; $output.='
1. Select the first interface to join 2. Choose the communication direction 3. Select the second interface to join
ppp0
Right
Bidirectional
Left
ppp0
eth0 eth0
ath0 ath0
ath1 ath1
'; $output.='
'; return $output; } ?>