mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-18 02:25:05 +00:00
merge xmlrpc get_notices back in
This commit is contained in:
parent
5e94f62e61
commit
bf0d043e77
59
src/etc/inc/xmlrpc/legacy.inc
Normal file
59
src/etc/inc/xmlrpc/legacy.inc
Normal file
@ -0,0 +1,59 @@
|
||||
<?php
|
||||
/*
|
||||
Copyright (C) 2015 Deciso B.V.
|
||||
Copyright (C) 2009, 2010 Scott Ullrich
|
||||
Copyright (C) 2005 Colin Smith
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
|
||||
1. Redistributions of source code must retain the above copyright notice,
|
||||
this list of conditions and the following disclaimer.
|
||||
|
||||
2. Redistributions in binary form must reproduce the above copyright
|
||||
notice, this list of conditions and the following disclaimer in the
|
||||
documentation and/or other materials provided with the distribution.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
||||
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
|
||||
AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
||||
AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
|
||||
OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* request functions which may be registered by the xmlrpc system
|
||||
* @return array
|
||||
*/
|
||||
function xmlrpc_publishable_test()
|
||||
{
|
||||
$publish = array(
|
||||
'exec_shell_xmlrpc','exec_php_xmlrpc','filter_configure_xmlrpc','interfaces_carp_configure_xmlrpc',
|
||||
'backup_config_section_xmlrpc','restore_config_section_xmlrpc', 'merge_config_section_xmlrpc',
|
||||
'check_firmware_version_xmlrpc','pfsense_firmware_version_xmlrpc','reboot_xmlrpc','get_notices_xmlrpc'
|
||||
);
|
||||
|
||||
|
||||
return array($publish);
|
||||
}
|
||||
|
||||
/**
|
||||
* trigger getnotices
|
||||
* @param $params
|
||||
* @return mixed
|
||||
*/
|
||||
function get_notices_xmlrpc($category)
|
||||
{
|
||||
if (!function_exists("get_notices")) {
|
||||
require_once("notices.inc");
|
||||
}
|
||||
|
||||
return get_notices($category);
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user