. * * For more information, contact Colosa Inc, 2566 Le Jeune Rd., * Coral Gables, FL, 33134, USA, or email info@colosa.com. * */ G::LoadClass('tree'); /* * Esto no deberias borrarlo */ $tree = new Tree(); reView(PATH_TRUNK,$tree); print( $tree->render() ); function reView($path,&$tree) { $tree->name = $path; $tree->value = $path . ' '. setHeader('Set Header','setDirHeader("'.$path.'",this);'). selectPermissions('Set Permission','setDirPermission("'.$path.'",this);'). selectPermissions('Remove Permission','removeDirPermission("'.$path.'",this);'); $tree->contracted = true; foreach(glob($path.'*',GLOB_MARK) as $file) { if (is_dir($file)) { reView($file,$tree->addChild($file, $file )); } elseif (substr($file,-4,4)==='.php') { $nodeFile=&$tree->addChild ( $file, $file . ' '. selectPermissions('Set Permission','setPermission("'.$file.'",this);'). selectPermissions('Remove Permission','removePermission("'.$file.'",this);') ); $nodeFile->addChild("View Permissions",'
View Permissions
'); $nodeFile->addChild("Add Line",'Add Permission
'); $nodeFile->contracted = true; } } } function selectPermissions($label,$onchange) { return ''; } function setHeader($label,$onchange) { return ''; } ?>