$pathes = array();
if(($plugins = $this->plugins()) !== false){
foreach($plugins as $plugin_name => $plugin){
- $out_dir = $this->path("mw_dir")."plugins/".$plugin_name."/out/";
+ $out_dir = $this->path("mw_dir")."plugins/".$plugin_name."/app/out/";
if(
$plugin["installed"]
&& $plugin["enabled"]
}
}
if($pathes !== false){
- $pathes = $this->_out_pathes($this->path("mw_dir")."out/", $pathes);
+ $pathes = $this->_out_pathes($this->path("mw_dir")."app/out/", $pathes);
}
}
else $pathes = false;
function _out_file($file, $PRIORITE = "DESC"){
$out_file = false;
if($PRIORITE == "ASC"){
- $tmp_out_file = "out/".$this->config("out")."/".$file;
+ $tmp_out_file = "app/out/".$this->config("out")."/".$file;
if($file && file_exists($this->path("mw_dir").$tmp_out_file)){
$out_file = $tmp_out_file;
}
if(!$out_file){
- $tmp_out_file = "out/".$this->config("default_out")."/".$file;
+ $tmp_out_file = "app/out/".$this->config("default_out")."/".$file;
if($file && file_exists($this->path("mw_dir").$tmp_out_file)){
$out_file = $tmp_out_file;
}
if($out_file) return $out_file;
if(($plugins = $this->plugins($PRIORITE)) !== false){
foreach($plugins as $plugin_name => $plugin){
- $tmp_out_file = "plugins/".$plugin_name."/out/".$this->config("out")."/".$file;
+ $tmp_out_file = "plugins/".$plugin_name."/app/out/".$this->config("out")."/".$file;
if($file && $plugin["installed"] && $plugin["enabled"] && file_exists($this->path("mw_dir").$tmp_out_file)){
$out_file = $tmp_out_file;
break;
}
if(!$out_file){
- $tmp_out_file = "plugins/".$plugin_name."/out/".$this->config("default_out")."/".$file;
+ $tmp_out_file = "plugins/".$plugin_name."/app/out/".$this->config("default_out")."/".$file;
if($file && $plugin["installed"] && $plugin["enabled"] && file_exists($this->path("mw_dir").$tmp_out_file)){
$out_file = $tmp_out_file;
break;
}
}
if($PRIORITE == "DESC" && !$out_file){
- $tmp_out_file = "out/".$this->config("out")."/".$file;
+ $tmp_out_file = "app/out/".$this->config("out")."/".$file;
if($file && file_exists($this->path("mw_dir").$tmp_out_file)){
$out_file = $tmp_out_file;
}
if(!$out_file){
- $tmp_out_file = "out/".$this->config("default_out")."/".$file;
+ $tmp_out_file = "app/out/".$this->config("default_out")."/".$file;
if($file && file_exists($this->path("mw_dir").$tmp_out_file)){
$out_file = $tmp_out_file;
}
foreach($plugins as $plugin_name => $plugin){
if($plugin["installed"] && $plugin["enabled"]){
$FOUND = false;
- $functions_file = $this->path("mw_dir")."plugins/".$plugin_name."/out/".$this->config("out")."/functions.php";
+ $functions_file = $this->path("mw_dir")."plugins/".$plugin_name."/app/out/".$this->config("out")."/functions.php";
if(file_exists($functions_file)){
$FOUND = true;
require $functions_file;
}
if(!$FOUND){
- $functions_file = $this->path("mw_dir")."plugins/".$plugin_name."/out/".$this->config("default_out")."/functions.php";
+ $functions_file = $this->path("mw_dir")."plugins/".$plugin_name."/app/out/".$this->config("default_out")."/functions.php";
if($plugin["installed"] && $plugin["enabled"] && file_exists($functions_file)){
require $functions_file;
}
}
}
$FOUND = false;
- $functions_file = $this->path("mw_dir")."out/".$this->config("out")."/functions.php";
+ $functions_file = $this->path("mw_dir")."app/out/".$this->config("out")."/functions.php";
if(file_exists($functions_file)){
$FOUND = true;
require $functions_file;
}
if(!$FOUND){
- $functions_file = $this->path("mw_dir")."out/".$this->config("default_out")."/functions.php";
+ $functions_file = $this->path("mw_dir")."app/out/".$this->config("default_out")."/functions.php";
if(file_exists($functions_file)){
require $functions_file;
}
function _init_layout($mod){
if(($plugins = $this->plugins("ASC")) !== false){
$layout_file = false;
- $tmp_layout_file = $this->path("mw_dir")."out/".$this->config("out")."/layouts/".$mod.".xml";
+ $tmp_layout_file = $this->path("mw_dir")."app/out/".$this->config("out")."/layouts/".$mod.".xml";
if(file_exists($tmp_layout_file)) $layout_file = $tmp_layout_file;
if(!$layout_file){
- $tmp_layout_file = $this->path("mw_dir")."out/".$this->config("default_out")."/layouts/".$mod.".xml";
+ $tmp_layout_file = $this->path("mw_dir")."app/out/".$this->config("default_out")."/layouts/".$mod.".xml";
if(file_exists($tmp_layout_file)) $layout_file = $tmp_layout_file;
}
if($layout_file) $this->load_layout($layout_file);
foreach($plugins as $plugin_name => $plugin){
if($plugin["installed"] && $plugin["enabled"]){
$layout_file = false;
- $tmp_layout_file = $this->path("mw_dir")."plugins/".$plugin_name."/out/".$this->config("out")."/layouts/".$mod.".xml";
+ $tmp_layout_file = $this->path("mw_dir")."plugins/".$plugin_name."/app/out/".$this->config("out")."/layouts/".$mod.".xml";
if(file_exists($tmp_layout_file)) $layout_file = $tmp_layout_file;
if(!$layout_file){
- $tmp_layout_file = $this->path("mw_dir")."plugins/".$plugin_name."/out/".$this->config("default_out")."/layouts/".$mod.".xml";
+ $tmp_layout_file = $this->path("mw_dir")."plugins/".$plugin_name."/app/out/".$this->config("default_out")."/layouts/".$mod.".xml";
if(file_exists($tmp_layout_file)) $layout_file = $tmp_layout_file;
}
if($layout_file) $this->load_layout($layout_file);