aboutsummaryrefslogtreecommitdiff
path: root/radicale_web/web/infcloud/auth/common.inc
diff options
context:
space:
mode:
Diffstat (limited to 'radicale_web/web/infcloud/auth/common.inc')
-rw-r--r--radicale_web/web/infcloud/auth/common.inc41
1 files changed, 0 insertions, 41 deletions
diff --git a/radicale_web/web/infcloud/auth/common.inc b/radicale_web/web/infcloud/auth/common.inc
deleted file mode 100644
index 419cefb..0000000
--- a/radicale_web/web/infcloud/auth/common.inc
+++ /dev/null
@@ -1,41 +0,0 @@
-<?php
- function array_to_xml($array, $skip_top_closing=false, $level=0)
- {
- static $result="<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n";
-
- foreach($array as $k => $v)
- {
- if(is_numeric($k))
- array_to_xml($v, $skip_top_closing, $level);
- else
- {
- for($j=0; $j<$level; $j++)
- $result.=" ";
-
- $result.="<".htmlspecialchars($k);
- if($k=='resources')
- $result.=" xmlns=\"urn:com.inf-it:configuration\"";
- if($v=='')
- $result.=" />\n";
- else
- {
- $result.=">";
-
- if(is_array($v))
- {
- $result.="\n";
- array_to_xml($v, $skip_top_closing, $level+1);
- for($j=0; $j<$level; $j++)
- $result.=" ";
- }
- else
- $result.=htmlspecialchars($v);
-
- if($level!==0 || $skip_top_closing===false)
- $result.="</".htmlspecialchars($k).">\n";
- }
- }
- }
- return $result;
- }
-?> \ No newline at end of file
bgstack15