OnAIR options
";
$submit=(!empty($_REQUEST['submit'])) ? $_REQUEST['submit']:'';
if (!empty($submit)) {
update_onair_options();
}
onair_option_form ();
echo "";
}
function update_onair_options(){
$OK = false;
if ($_REQUEST['onair_showtext']){
update_option('onair_showtext',$_REQUEST['onair_showtext']);
$OK = true;
}
if ($_REQUEST['onair_showOn']){
update_option('onair_showOn',$_REQUEST['onair_showOn']);
$OK = true;
}
if ($OK){
echo "Options seved!
";
}
else {
echo "Failed to save options!
";
}
}
function onair_option_form (){
echo "
";
}
echo onair_optionpage ();
?>