Added Block Properties

This commit is contained in:
Shoghi Cervantes Pueyo 2013-02-02 12:50:53 +01:00
parent 4e740e1862
commit 4c06b384c7
38 changed files with 1414 additions and 24 deletions

View file

@ -46,16 +46,20 @@ function kill($pid){
function require_all($path, &$count = 0){
$dir = dir($path."/");
$dirs = array();
while(false !== ($file = $dir->read())){
if($file !== "." and $file !== ".."){
if(!is_dir($path.$file) and strtolower(substr($file, -3)) === "php"){
require_once($path.$file);
++$count;
}elseif(is_dir($path.$file)){
require_all($path.$file."/", $count);
$dirs[] = $path.$file."/";
}
}
}
foreach($dirs as $dir){
require_all($dir, $count);
}
}