Changeset 3395:445e9ff79a1f
- Timestamp:
- 11/08/16 11:56:54 (9 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/core/class.dc.modules.php
r3333 r3395 193 193 $this->id = $entry; 194 194 $this->mroot = $full_entry; 195 ob_start(); 195 196 require $full_entry.'/_define.php'; 197 ob_end_clean(); 196 198 $this->all_modules[$entry] =& $this->modules[$entry]; 197 199 $this->id = null; … … 203 205 $this->id = $entry; 204 206 $this->mroot = $full_entry; 205 $this->disabled_mode=true; 207 $this->disabled_mode = true; 208 ob_start(); 206 209 require $full_entry.'/_define.php'; 207 $this->disabled_mode=false; 210 ob_end_clean(); 211 $this->disabled_mode = false; 208 212 $this->disabled[$entry] = $this->disabled_meta; 209 213 $this->all_modules[$entry] =& $this->disabled[$entry]; … … 260 264 if (file_exists($dir.'/_define.php')) { 261 265 $this->id = $id; 266 ob_start(); 262 267 require $dir.'/_define.php'; 268 ob_end_clean(); 263 269 $this->id = null; 264 270 } … … 722 728 } 723 729 724 protected function loadModuleFile($________ )730 protected function loadModuleFile($________,$catch = true) 725 731 { 726 732 if (!file_exists($________)) { … … 736 742 } 737 743 744 if ($catch) { 745 // Catch ouput to prevents hacked or corrupted modules 746 ob_start(); 747 $ret = require $________; 748 ob_end_clean(); 749 return $ret; 750 } 751 738 752 return require $________; 739 753 }
Note: See TracChangeset
for help on using the changeset viewer.