mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Move newer xmlreader code to xmlreader.inc. Restore old xmlparse code to xmlparse.inc. Default to the older xmlparse.inc but add a flag check if /cf/conf/use_xmlreader is present the newer code will be included instead until the remaining bugs can be resolved with it (see rcs for many).
This commit is contained in:
parent
26433cb842
commit
093bcebcd3
@ -61,7 +61,10 @@ ini_set("memory_limit","128M");
|
||||
require_once('config.lib.inc');
|
||||
require_once("notices.inc");
|
||||
require_once("util.inc");
|
||||
require_once("xmlparse.inc");
|
||||
if(file_exists("/cf/conf/use_xmlreader"))
|
||||
require_once("xmlreader.inc");
|
||||
else
|
||||
require_once("xmlparse.inc");
|
||||
require_once("crypt.inc");
|
||||
|
||||
/* read platform */
|
||||
|
||||
@ -66,7 +66,10 @@ require_once("notices.inc");
|
||||
if($g['booting']) echo ".";
|
||||
require_once("util.inc");
|
||||
if($g['booting']) echo ".";
|
||||
require_once("xmlparse.inc");
|
||||
if(file_exists("/cf/conf/use_xmlreader"))
|
||||
require_once("xmlreader.inc");
|
||||
else
|
||||
require_once("xmlparse.inc");
|
||||
if($g['booting']) echo ".";
|
||||
require_once("crypt.inc");
|
||||
|
||||
|
||||
@ -173,7 +173,10 @@ function close_notice($id) {
|
||||
* Outputs notices in XML formatted text
|
||||
******/
|
||||
function dump_xml_notices() {
|
||||
require_once("xmlparse.inc");
|
||||
if(file_exists("/cf/conf/use_xmlreader"))
|
||||
require_once("xmlreader.inc");
|
||||
else
|
||||
require_once("xmlparse.inc");
|
||||
global $notice_path, $listtags;
|
||||
$listtags[] = 'notice';
|
||||
if(!$notices = get_notices()) return;
|
||||
|
||||
@ -41,7 +41,10 @@
|
||||
*/
|
||||
|
||||
require_once("xmlrpc.inc");
|
||||
require_once("xmlparse.inc");
|
||||
if(file_exists("/cf/conf/use_xmlreader"))
|
||||
require_once("xmlreader.inc");
|
||||
else
|
||||
require_once("xmlparse.inc");
|
||||
require_once("service-utils.inc");
|
||||
require_once("pfsense-utils.inc");
|
||||
require_once("globals.inc");
|
||||
|
||||
@ -39,7 +39,6 @@
|
||||
*/
|
||||
|
||||
require_once("guiconfig.inc");
|
||||
require_once("xmlparse.inc");
|
||||
|
||||
function gentitle_pkg($pgname) {
|
||||
global $config;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user