. * * Version 0.1 * Author: Octavio Benedi Sanchez */ function addInputGprs() { global $section; global $plugin; global $url_plugin; global $operators_file_path; global $base_plugin; $data=list_operators($operators_file_path); $path='/etc/wvdial.conf'; $path=$base_plugin.'data/wvdial.conf'; $known_operator=parse_wvdial($path); $list='
GPRS
'; //$list.='
'.print_r($data,true).'
'; //$list.='
'.print_r($known_operator,true).'
'; $list.='
'; $list.='
'; $list.=""; $list.=""; $list.=""; $list.=""; $list.=""; $list.=""; $list.=''; $list.=""; $list.=""; $list.=''; $list.=""; $list.=""; $list.=''; $list.=""; $list.=""; $list.=''; $list.=""; $list.=""; $list.=''; $list.=""; $list.=""; $list.="
"; $list.="

Connectivity information from operators provided without warranty.

"; $list.="
Select country"; $list.=add_countries($data,$known_operator['country']); $list.="
Choose operator"; $list.="
"; $list.=add_operators($data,$known_operator['country'],$known_operator['operator']); $list.="
"; $list.="
"; $list.='Click here to edit'; $list.="
Card PINLeave it empty for no PIN
Username Should be provided by your operator."; $list.="
PasswordShould be provided by your operator."; $list.="
PhoneShould be provided by your operator."; $list.="
InitIf more than one init is required you should edit wvdial.conf manually ."; $list.="
DialShould be provided by your operator."; $list.="
"; $list.='
'; $list.=''; $list.=''; $list.='
'; return $list; } function add_countries($data,$known_country='') { global $section; global $plugin; //$list.=""; $list.=''; $country=explode('//',$data['list']); foreach($country as $i) { $list.='