yayy new stuffs
parent
443887dc10
commit
aea5136ef5
@ -0,0 +1,6 @@
|
|||||||
|
display_errors = "stderr"
|
||||||
|
display_startup_errors = true
|
||||||
|
html_errors = true
|
||||||
|
error_reporting = 'E_ALL'
|
||||||
|
zlib.output_compression = 1
|
||||||
|
zlib.output_compression_level = 9
|
@ -0,0 +1,8 @@
|
|||||||
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
|
<flags>
|
||||||
|
<any>
|
||||||
|
<sbox>
|
||||||
|
<input_type valid="text;search;" default="text">text</input_type>
|
||||||
|
</sbox>
|
||||||
|
</any>
|
||||||
|
</flags>
|
@ -0,0 +1,12 @@
|
|||||||
|
<?php
|
||||||
|
libxml_use_internal_errors(true);
|
||||||
|
function validateXML($xmlstr,$type): bool{
|
||||||
|
if($type=="flags"){
|
||||||
|
$_xml=simplexml_load_string($xmlstr);
|
||||||
|
if($_xml===false){
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
Loading…
Reference in New Issue