X-Git-Url: http://git.dj3c1t.com/?a=blobdiff_plain;ds=sidebyside;f=web%2Fapp%2Fdata%2Fmodules%2Fshare%2Fmw_data_out_config.php;fp=web%2Fapp%2Fdata%2Fmodules%2Fshare%2Fmw_data_out_config.php;h=173efbe1987e33e553dc49f50cbd889e85b46c50;hb=29b6377f43bf4477e04b57069cf779ac1b913bdb;hp=bdd8ead79fd9371f8f9a2d087d9a850682adfa9a;hpb=a21fbfe1301f83b72d2815899ff334445b7830cf;p=mtweb diff --git a/web/app/data/modules/share/mw_data_out_config.php b/web/app/data/modules/share/mw_data_out_config.php index bdd8ead..173efbe 100644 --- a/web/app/data/modules/share/mw_data_out_config.php +++ b/web/app/data/modules/share/mw_data_out_config.php @@ -1,19 +1,18 @@ env(); + function out_config(){ + $env = $this->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(); + 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"], + 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"] );