X-Git-Url: http://git.dj3c1t.com/?a=blobdiff_plain;f=mw%2Fapp%2Fdata%2Fmodules%2Fshare%2Fmw_data_out_config.php;fp=mw%2Fapp%2Fdata%2Fmodules%2Fshare%2Fmw_data_out_config.php;h=173efbe1987e33e553dc49f50cbd889e85b46c50;hb=36ed114046cbe3d72a3589230e9f306a54fcc79d;hp=0000000000000000000000000000000000000000;hpb=281c96e95451269f2614684b8de5be25862c8374;p=mtweb diff --git a/mw/app/data/modules/share/mw_data_out_config.php b/mw/app/data/modules/share/mw_data_out_config.php new file mode 100644 index 0000000..173efbe --- /dev/null +++ b/mw/app/data/modules/share/mw_data_out_config.php @@ -0,0 +1,28 @@ +env(); + $config = array(); + if($env->out_file_exists("config.xml")){ + if($this->buffer = file_get_contents($env->out_file("config.xml"))){ + if(!isset($this->sxml)) $this->sxml = new sxml(); + $this->sxml->parse($this->buffer); + $this->buffer = $this->sxml->data["config"][0]; + if($this->buffer["subs"]) foreach($this->buffer["subs"] as $key => $value){ + $config[$key] = array( + "type" => $value[0]["attrs"]["type"], + "default" => $value[0]["attrs"]["default"], + "text" => $value[0]["data"] + ); + } + } + else $config = false; + } + return $config; + } + + } + +?> \ No newline at end of file