示例#1
0
function check_firmware_version_xmlrpc($raw_params)
{
    global $xmlrpc_g, $XML_RPC_String;
    $params = xmlrpc_params_to_php($raw_params);
    if (!xmlrpc_auth($params)) {
        return $xmlrpc_g['return']['authfail'];
    }
    return new XML_RPC_Response(new XML_RPC_Value(check_firmware_version(false), $XML_RPC_String));
}
                        // Clean firmwarelock: Permit to force all pages to be redirect on the firmware page.
                        if (file_exists($d_firmwarelock_path)) {
                            unlink($d_firmwarelock_path);
                        }
                        // Clean fwupenabled: Permit to know if the ram drive /ftmp is created.
                        if (file_exists($d_fwupenabled_path)) {
                            unlink($d_fwupenabled_path);
                        }
                    }
                }
            }
        }
    }
} else {
    if (!isset($config['system']['disablefirmwarecheck'])) {
        $fwinfo = check_firmware_version();
    }
}
include "fbegin.inc";
?>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td class="tabcont">
			<?php 
if ($input_errors) {
    print_input_errors($input_errors);
}
?>
			<?php 
if ($savemsg) {
    print_info_box($savemsg);